@import url("./design-tokens.css");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-light);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.flex {
  display: flex;
  flex-direction: column;
}

.center {
  align-items: center;
  justify-content: center;
}

.content {
  flex: 1;
  width: 100%;
  max-width: 1400px;
}

.container {
  display: flex;
  flex-direction: column;
  padding: 0 var(--space-md);
  text-align: center;
}

section {
  padding: var(--space-lg) 0; /* Mobile padding */
}
section h2 {
  font-size: var(--font-size-xl);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

/* Navbar - Mobile First */
.navbar {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-secondary); /* Gris azulado para navbar */
}
.navbar .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  position: relative;
}
.navbar .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap; /* prevent icon and text from breaking to next line */
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  letter-spacing: 0.5px;
}

.navbar .logo svg {
  width: auto;
  vertical-align: middle;
  flex-shrink: 0; /* don't allow the icon to shrink/wrap away from the text */
}

/* Make both logo SVGs the same visual height and keep their aspect ratio. */
.navbar .logo-icon {
  height: 2.25rem; /* common logo height */
}
.navbar .logo-text {
  height: 1.5rem; /* common logo height */
}

/* Mobile menu toggle */
.nav-toggle {
  position: absolute;
  left: -9999px;
}

.nav-toggle-label {
  display: block;
  cursor: pointer;
  font-size: var(--font-size-lg);
  padding: 0 var(--space-xs);
  margin-left: auto;
}

/* Mobile menu hidden by default */
.navbar .cta-nav {
  display: none;
}
.navbar nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  z-index: 10;
  flex: 1;
}
.nav-toggle:checked ~ nav {
  display: block;
}
.navbar ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}
.navbar li {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  width: 100%;
}
.navbar li a {
  display: block;
  padding: var(--space-xs) var(--space-md);
}

/* Hero - Mobile First */
.hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .container {
  gap: var(--space-lg);
}
.hero h1 {
  font-size: var(--font-size-3xl); /* Mobile font size */
  line-height: 1.075;
  max-width: 780px;
  color: var(--color-text);
}
.hero p {
  font-size: var(--font-size-base); /* Mobile font size */
  max-width: 620px;
}

.hero .btn-primary {
  align-self: center;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--border-radius-lg);
  padding: 0.45rem 0.9rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  background: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.btn-primary:active {
  transform: translateY(1px);
}

/* Social Proof - Mobile First */
.social-proof .logos {
   filter: saturate(0.0);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.social-proof .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}

.social-proof .logo img {
  max-width: 90px;
  max-height: 45px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.social-proof .logo img:hover {
  opacity: 1;
}


/* Problem Section */
.problem p {
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--font-size-md);
}

/* Solution - Mobile First */
.solution .steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md); /* Mobile gap */
  flex-direction: row; /* Single column on mobile */
}
.solution .step {
  flex: 1 1 120px; /* Mobile size */
  min-width: 320px; /* Mobile height */
  background: var(--color-bg);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 1.25rem; /* Mobile padding */
  border: 2px solid #e1e1e1;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.14), var(--shadow-sm);
  display: flex;
  flex-direction: column;
    align-items: center;
  justify-content: center;

  gap: var(--space-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.solution .step:hover {
  border-color: #c8c8c8;
  box-shadow: 0 10px 26px -4px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.solution .step h3 {
  font-size: var(--font-size-lg);
  color: var(--color-text);
}
.solution .step p {
  font-size: var(--font-size-sm);
}

/* Benefits - Mobile First */
.benefits ul {
  display: grid;
  gap: var(--space-md); /* Mobile gap */
  grid-template-columns: 1fr; /* Single column on mobile */
}
.benefits li {
  background: #fcfcfc;
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 1.25rem; /* Mobile padding */
  border: 2px solid #e1e1e1;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.12), var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.benefits li:hover {
  border-color: #c8c8c8;
  box-shadow: 0 10px 26px -4px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.benefits li h3 {
  font-size: var(--font-size-md);
  color: var(--color-text);
}
.benefits li p {
  font-size: var(--font-size-sm);
}

/* Testimonials - Mobile First */
.testimonials {
  background: var(--color-bg-light);
}
.testimonials .cards {
  display: grid;
  gap: var(--space-md); /* Mobile gap */
  grid-template-columns: 1fr; /* Single column on mobile */
}
.testimonials .testimonial {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 1.25rem; /* Mobile padding */
  border: 1.5px solid var(--color-border);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.12), var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  font-size: var(--font-size-sm);
}
.testimonials .testimonial:hover {
  border-color: #c8c8c8;
  box-shadow: 0 10px 26px -4px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.testimonials blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 4px solid var(--color-brand);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text-light);
}
.testimonials cite {
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-xs);
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-top: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.testimonials cite::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.25);
}

/* FAQ - Mobile First */
.faq .items {
  display: grid;
  gap: var(--space-md); /* Mobile gap */
  grid-template-columns: 1fr; /* Single column on mobile */
}
.faq .faq-item {
  background: #fff;
  /* sutil patrón diagonal similar a la referencia */
  background-image: linear-gradient(#fff, #fff),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0 12px, rgba(0, 0, 0, 0.035) 12px 24px);
  border-radius: var(--border-radius-lg);
  padding: 0; /* el padding vive en summary y contenido */
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq .faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  padding: 1.25rem 1.5rem;
  text-align: left;
}
.faq .faq-item summary:hover {
  background: var(--color-bg-light);
}
.faq .faq-item summary::-webkit-details-marker {
  display: none;
}
.faq .faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--color-text-light);
  margin-left: var(--space-sm);
}
.faq .faq-item[open] summary {
  border-bottom: 1px solid var(--color-border);
}
.faq .faq-item[open] summary::after {
  content: "−"; /* minus sign */
}
.faq .faq-item:hover {
  border-color: #cfcfcf;
  box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.12);
}
.faq .faq-item p {
  font-size: var(--font-size-sm);
  text-align: left;
}
.faq .faq-item > p {
  padding: 1rem 1.5rem 1.25rem;
}
.faq .faq-item summary:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

/* CTA Close */
.cta-close {
  width: 100%;
}
.cta-close .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.cta-close h2 {
  margin-bottom: 0;
}
.cta-close p {
  max-width: 560px;
  font-size: var(--font-size-md);
}
.cta-close .btn-primary {
  margin-top: var(--space-sm);
}

/* Footer */
footer {
  width: 100%;
  background: #000;
  color: #fff;
  padding: var(--space-lg) 0;
}
footer a {
  color: #fff;
  font-size: var(--font-size-xs);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
footer small {
  opacity: 0.75;
  font-size: var(--font-size-xs);
}

/* Utility spacing helpers */
.mb-xs {
  margin-bottom: var(--space-xs);
}
.mb-sm {
  margin-bottom: var(--space-sm);
}
.mb-md {
  margin-bottom: var(--space-md);
}
.mb-lg {
  margin-bottom: var(--space-lg);
}

/* Responsive Breakpoints - Mobile First */

/* Tablet and up (768px+) */
@media (min-width: 768px) {
  section {
    padding: var(--space-xl) 0; /* Desktop padding */
  }

  .hero .container {
    align-items: center;
  }

  .hero h1 {
    font-size: var(--font-size-5xl); /* Desktop font size */
  }
  .hero p {
    font-size: var(--font-size-md); /* Desktop font size */
  }

  /* Desktop navbar */
  .navbar .container {
    position: static;
  }
  .nav-toggle-label {
    display: none;
  }
  .navbar .cta-nav {
    display: block;
    margin-left: auto;
  }
  .navbar nav {
    display: block;
    position: static;
    width: auto;
    background: transparent;
    border-bottom: none;
    padding: 0;
    z-index: auto;
    flex: 1;
  }
  .navbar ul {
    flex-direction: row;
    gap: var(--space-md);
    align-items: center;
    justify-content: right; /* center links horizontally between logo and CTA */
  }
  .navbar li {
    width: auto;
  }
  .navbar li a {
    display: inline;
    padding: 0;
  }

    /* Desktop social proof logos */
  .social-proof .logos {
    gap: var(--space-sm);
  }

  /* Desktop social proof logos */
  .social-proof .logo img {
    gap: var(--space-md);

    max-width: 110px;
    max-height: 55px;
  }

  /* Desktop card layouts */
  .placeholder-rect {
    flex: 1 1 160px;
    min-height: 180px;
    font-size: var(--font-size-sm);
  }
  .solution .steps {
    gap: var(--space-lg);
    grid-template-columns: 1fr; /* Keep single column layout */
  }
  .solution .step {
    padding: 2.25rem 1.75rem;
  }
  .benefits ul {
    gap: var(--space-lg);
    grid-template-columns: 1fr; /* Keep single column layout */
  }
  .benefits li {
    padding: 2.25rem 1.75rem;
  }
  .testimonials .cards {
    gap: var(--space-lg);
    grid-template-columns: 1fr; /* Keep single column layout */
  }
  .testimonials .testimonial {
    padding: 2.25rem 1.75rem;
  }
  .testimonials blockquote {
    font-size: var(--font-size-sm);
  }
  .faq .items {
    gap: var(--space-lg);
    grid-template-columns: 1fr; /* Keep single column layout */
  }
  .faq .faq-item {
    padding: 2.25rem 1.75rem;
  }
  /* al usar padding 0 en mobile, lo anulamos en desktop para mantener
     el mismo estilo tipo tarjeta */
  .faq .faq-item {
    padding: 0;
  }
  .faq .faq-item summary::after {
    font-size: 1.5rem;
  }
}

/* Large desktop (992px+) */
@media (min-width: 992px) {
  .hero .container {
    align-items: center;
  }
}

/* Extra large desktop (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  /* Larger logos for extra large screens */
  .social-proof .logo img {
    max-width: 120px;
    max-height: 60px;
  }
}
