/* ============================================
   Enacuerdo.ai — Landing Page
   Paleta: azul noche, verde lima, blanco
   Estilo: minimal, amigable
   ============================================ */

:root {
  --azul-noche: #0f172a;
  --azul-noche-soft: #1e293b;
  --azul-noche-light: #334155;
  --verde-lima: #a3e635;
  --verde-lima-hover: #84cc16;
  --verde-lima-soft: rgba(163, 230, 53, 0.15);
  --blanco: #ffffff;
  --blanco-soft: #f8fafc;
  --gris-texto: #94a3b8;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--azul-noche);
}

body.menu-open {
  overflow: hidden;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--blanco);
  background: var(--azul-noche);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BANNER COUNTDOWN
   ============================================ */

.banner-countdown {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--verde-lima);
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
  padding: 3px 0;
  min-height: 22px;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-text {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--azul-noche);
  margin: 0;
}

.banner-highlight {
  color: var(--azul-noche);
  font-weight: 700;
}

.countdown {
  display: flex;
  gap: 8px;
  align-items: center;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 24px;
}

.countdown-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--azul-noche);
  line-height: 1.2;
}

.countdown-label {
  font-size: 0.55rem;
  color: var(--azul-noche);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--gris-texto);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--blanco);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--verde-lima);
  color: var(--azul-noche);
}

.btn-primary:hover {
  background: var(--verde-lima-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(163, 230, 53, 0.35);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 75vh;
  min-height: 75dvh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--gris-texto);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gris-texto);
}

.icon-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--verde-lima);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-personaje {
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 100px 0;
}

.section-headline {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.3;
}

/* PROBLEMA */
.section-problem {
  background: var(--azul-noche-soft);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  background: var(--azul-noche);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}

.problem-card:hover {
  border-color: rgba(163, 230, 53, 0.3);
  transform: translateY(-2px);
}

.problem-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--verde-lima);
}

.problem-icon svg {
  width: 100%;
  height: 100%;
}

.problem-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.problem-card p {
  color: var(--gris-texto);
  font-size: 0.95rem;
}

/* CÓMO FUNCIONA - Slider */
.section-how {
  background: var(--azul-noche);
}

.how-slider-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.how-slider-personaje {
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-personaje-img {
  max-width: 180px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.how-slider {
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: 500%;
  transition: transform 0.4s ease;
}

.step.slide {
  flex: 0 0 20%;
  width: 20%;
  text-align: center;
  padding: 32px 24px;
  background: var(--azul-noche-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step.slide.active {
  display: block;
}

.step-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  border-radius: var(--radius);
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step p {
  color: var(--gris-texto);
  font-size: 0.9rem;
  line-height: 1.5;
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--verde-lima);
  background: transparent;
  color: var(--verde-lima);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
}

.slider-btn:hover {
  background: var(--verde-lima);
  color: var(--azul-noche);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}

.slider-dot.active {
  background: var(--verde-lima);
  transform: scale(1.2);
}

/* DIFERENCIALES */
.section-differentials {
  background: var(--azul-noche-soft);
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.diff-card {
  background: var(--azul-noche);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition);
}

.diff-card:hover {
  border-color: rgba(163, 230, 53, 0.25);
}

.diff-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--verde-lima);
}

.diff-icon svg {
  width: 100%;
  height: 100%;
}

.diff-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.diff-card p {
  color: var(--gris-texto);
  font-size: 0.9rem;
}

/* REQUISITOS */
.section-requirements {
  background: var(--azul-noche);
}

.requirements-list {
  list-style: none;
  max-width: 560px;
  margin: 0 auto 40px;
}

.requirements-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--gris-texto);
}

.requirements-list li:last-child {
  border-bottom: none;
}

.requirements-list .icon-check {
  flex-shrink: 0;
  margin-top: 2px;
}

.section-requirements .btn {
  display: block;
  margin: 0 auto;
}

/* FAQ */
.section-faq {
  background: var(--azul-noche-soft);
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  background: var(--azul-noche);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--verde-lima);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--gris-texto);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA FINAL */
.section-cta {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--azul-noche-soft) 0%, var(--azul-noche) 100%);
}

.cta-inner {
  text-align: center;
}

.cta-headline {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.2;
}

.cta-inner .btn {
  margin-bottom: 24px;
}

.legal-disclaimer {
  font-size: 0.85rem;
  color: var(--gris-texto);
  max-width: 480px;
  margin: 0 auto;
}

/* FORMULARIO */
.section-form {
  background: var(--azul-noche-soft);
  padding: 60px 0;
}

/* BOTÓN FLOTANTE */
.btn-flotante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: var(--verde-lima);
  color: var(--azul-noche);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(163, 230, 53, 0.4);
  transition: all var(--transition);
}

.btn-flotante:hover {
  background: var(--verde-lima-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(163, 230, 53, 0.5);
}

/* FOOTER */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-legal,
.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gris-texto);
}

.footer-copy {
  margin-top: 12px;
  opacity: 0.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subheadline {
    margin-left: auto;
    margin-right: auto;
  }

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

  .trust-badge {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .problem-grid,
  .differentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-slider-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .how-slider-personaje {
    order: -1;
  }

  .how-personaje-img {
    max-width: 140px;
  }

  .step-img {
    max-width: 160px;
  }
}

@media (max-width: 768px) {
  .banner-countdown {
    min-height: 36px;
    padding: 4px 0;
  }

  .banner-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 4px 16px;
  }

  .banner-text {
    font-size: 0.8rem;
    text-align: center;
    flex-basis: 100%;
    order: 1;
  }

  .countdown {
    gap: 12px;
    order: 2;
    flex-basis: 100%;
    justify-content: center;
  }

  .countdown-item {
    min-width: 36px;
  }

  .countdown-value {
    font-size: 0.7rem;
  }

  .countdown-label {
    font-size: 0.5rem;
  }

  .header {
    top: 72px;
  }

  .nav {
    position: fixed;
    top: 136px;
    left: 0;
    right: 0;
    bottom: auto;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    background: var(--azul-noche-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav a:last-child {
    border-bottom: none;
    margin-top: 8px;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .menu-toggle span {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .hero {
    padding: 164px 0 60px;
    min-height: 75dvh;
  }

  .how-slider-wrap {
    gap: 16px;
  }

  .how-personaje-img {
    max-width: 120px;
  }

  .step.slide {
    padding: 24px 16px;
  }

  .step h3 {
    font-size: 1rem;
  }

  .step p {
    font-size: 0.85rem;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .problem-grid,
  .differentials-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .section-headline {
    margin-bottom: 40px;
  }
}
