:root {
  --ink: #1B2C26;
  --navy: #253B34;
  --navy-deep: #1B2C26;
  --cream: #F6F4EE;
  --gold: #AEBE8D;
  --slate: #5B6A5E;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.page { overflow-x: hidden; }

[data-show-mobile] { display: none; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--navy);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 58, 92, 0.55), rgba(0, 0, 0, 0) 45%);
}

.hero__logo {
  height: 219px;
  width: 214px;
  display: block;
  margin: 0 0 12px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px calc(60px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  color: #ffffff;
  font-size: clamp(44px, 8.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.hero__title em { font-style: italic; }

.hero__cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 14px 14px 24px;
  max-width: 640px;
}

.hero__cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.4;
}

.hero__cta-btn {
  flex: none;
  background: #ffffff;
  color: var(--navy);
  font-weight: 600;
  font-size: 17px;
  padding: 16px 28px;
  border-radius: 12px;
  white-space: nowrap;
}
.hero__cta-btn:hover { color: var(--navy); }

/* ---------- PROBLEMA ---------- */
.problema {
  position: relative;
  z-index: 5;
  margin-top: -25px;
  background: var(--cream);
  border-radius: 25px 25px 0 0;
  padding: clamp(90px, 12vw, 150px) 24px clamp(60px, 8vw, 90px);
}

.problema__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.problema__lead {
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 40px;
  font-weight: 400;
  text-wrap: pretty;
}

.problema__quote {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(27px, 4.2vw, 42px);
  line-height: 1.28;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 52px;
}
.divider__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--slate); }
.divider__line { width: 120px; height: 1px; background: var(--slate); }

/* ---------- SOLUCIÓN ---------- */
.solucion {
  background: var(--cream);
  padding: clamp(20px, 4vw, 40px) 24px clamp(90px, 12vw, 140px);
}

.solucion__grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
}

.pillar { text-align: center; }

.pillar__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  border-radius: 999px;
  border: 1.5px solid rgba(194, 154, 75, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar__title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.pillar__text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.82;
  margin: 0;
}

/* ---------- FEATURES ---------- */
.features {
  position: relative;
  background: var(--navy);
}

.features__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/image2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.features__scrim {
  position: absolute;
  inset: 0;
  background: rgba(27, 58, 92, 0.72);
}

.features__grid {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  padding: clamp(90px, 12vw, 150px) 24px;
}

.features__left {
  position: sticky;
  top: 130px;
  align-self: start;
}

.features__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  color: #ffffff;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  text-wrap: balance;
}

.features__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feat-nav-btn {
  text-align: left;
  cursor: pointer;
  padding: 16px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  transition: all .35s ease;
}

.feat-nav-btn.is-active {
  border-color: rgba(194, 154, 75, 0.6);
  background: rgba(194, 154, 75, 0.15);
  color: #ffffff;
}

.features__cards {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}

.feat-card {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity .7s ease-out, transform .7s ease-out;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  padding: clamp(26px, 3.5vw, 40px);
}

.feat-card.is-visible {
  opacity: 1;
  transform: none;
}

.feat-card__title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: #ffffff;
  font-size: 26px;
  margin: 0 0 14px;
}

.feat-card__text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 26px;
}

.feat-card__panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
}

.feat-card__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.feat-card__amount {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 22px;
}

.meter-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meter__head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}

.meter__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.meter__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.compare__box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px;
}

.compare__box--gold {
  background: rgba(194, 154, 75, 0.14);
  border: 1px solid rgba(194, 154, 75, 0.5);
}

.compare__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.compare__box--gold .compare__label { color: var(--gold); }

.compare__value {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  color: #ffffff;
}

.compare__box--gold .compare__value { color: var(--gold); }

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: none;
}
.dot--gold { background: var(--gold); }
.dot--grey { background: var(--slate); }

/* ---------- CONFIANZA ---------- */
.confianza {
  background: var(--navy);
  padding: clamp(90px, 12vw, 150px) 24px;
}

.confianza__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.confianza__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  color: #ffffff;
  font-size: clamp(34px, 5.5vw, 58px);
  letter-spacing: -0.02em;
  margin: 0 0 30px;
}

.confianza__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.65;
  margin: 0 0 44px;
  text-wrap: pretty;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.pill {
  border: 1px solid rgba(194, 154, 75, 0.6);
  color: var(--gold);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
}

/* ---------- TESTIMONIOS ---------- */
.testimonios {
  background: var(--cream);
  padding: clamp(90px, 12vw, 150px) 24px;
}

.testimonios__grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial {
  margin: 0;
  background: #ffffff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(27, 58, 92, 0.07);
  display: flex;
  flex-direction: column;
}

.testimonial__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.testimonial__body { padding: 32px 34px 38px; }

.testimonial__mark {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  line-height: 0.6;
  color: var(--gold);
  height: 34px;
}

.testimonial__quote {
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}

.testimonial__cite {
  font-size: 15px;
  color: var(--slate);
}
.testimonial__cite strong { color: var(--navy); font-weight: 600; }

/* ---------- CTA FINAL ---------- */
.cta-final {
  background: var(--cream);
  padding: 0 24px clamp(90px, 12vw, 150px);
}

.cta-final__card {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 30px;
  padding: clamp(56px, 8vw, 96px) clamp(28px, 6vw, 80px);
  text-align: center;
}

.cta-final__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 26px;
  text-wrap: balance;
}

.cta-final__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 40px;
}

.cta-final__btn {
  display: inline-block;
  background: var(--gold);
  color: #ffffff;
  font-weight: 600;
  font-size: 19px;
  padding: 20px 44px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(194, 154, 75, 0.3);
}
.cta-final__btn:hover { color: #ffffff; }

.cta-final__fine {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.55;
  max-width: 520px;
  margin: 28px auto 0;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-deep);
  padding: clamp(56px, 7vw, 80px) 24px 48px;
}

.footer__inner { max-width: 1000px; margin: 0 auto; }

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(140, 155, 171, 0.2);
}

.footer__brand { max-width: 360px; }

.footer__name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 12px;
}

.footer__tagline {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.footer__nav a { color: var(--slate); font-size: 16px; }
.footer__nav a:hover { color: var(--gold); }

.footer__legal {
  color: rgba(140, 155, 171, 0.7);
  font-size: 13px;
  line-height: 1.6;
  margin: 28px 0 0;
  max-width: 720px;
}

.footer__copy {
  color: rgba(140, 155, 171, 0.6);
  font-size: 13px;
  margin: 16px 0 0;
}

/* ---------- REVEAL ANIMATION ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  [data-cols] { grid-template-columns: 1fr !important; }
  [data-feat-grid] { grid-template-columns: 1fr !important; }
  [data-feat-left] { position: static !important; }
  [data-feat-nav] { display: none !important; }
  [data-hide-mobile] { display: none !important; }
  [data-show-mobile] { display: inline !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .feat-card { transition: none; }
}

/* ===== Lanzador del chat n8n como boton "Conocer mi situación" (solo apariencia; no toca el bot) ===== */
.n8n-chat .chat-window-toggle {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 999px !important;
  padding: 15px 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 10px 28px rgba(15, 39, 71, 0.30) !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
.n8n-chat .chat-window-toggle:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 34px rgba(15, 39, 71, 0.40) !important;
}
.n8n-chat .chat-window-toggle svg {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto !important;
}
.n8n-chat .chat-window-toggle::after {
  content: "Conocer mi situación";
  color: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: .2px;
}
/* Chat ABIERTO -> vuelve a boton redondo (icono de cerrar) */
.n8n-chat .chat-window:not([style*="display: none"]) ~ .chat-window-toggle {
  width: 64px !important;
  height: 64px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  justify-content: center !important;
}
.n8n-chat .chat-window:not([style*="display: none"]) ~ .chat-window-toggle::after {
  content: "" !important;
  display: none !important;
}
.n8n-chat .chat-window:not([style*="display: none"]) ~ .chat-window-toggle svg {
  width: 32px !important;
  height: 32px !important;
}
@media (max-width: 480px) {
  .n8n-chat .chat-window-toggle { padding: 13px 18px !important; }
  .n8n-chat .chat-window-toggle::after { font-size: 14px; }
}

/* ===== Boton hero "Conocer mi situación gratuito" (abre el chat n8n) ===== */
button.hero__cta-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease;
}
button.hero__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

/* ===== Cambios de color de botones ===== */
/* Hero: dorado de marca */
.hero__cta-btn {
  background: var(--gold);
  color: var(--navy);
}
.hero__cta-btn:hover {
  background: #8B9E6A;
  color: var(--navy);
}
/* Boton flotante (lanzador del chat n8n): verde WhatsApp */
.n8n-chat .chat-window-toggle {
  background: #253B34 !important;
}
.n8n-chat .chat-window-toggle:hover {
  background: #1B2C26 !important;
}

/* ===== Encabezado del chat n8n mas compacto (mas espacio para mensajes) ===== */
.n8n-chat .chat-header {
  padding: 14px 18px !important;
  gap: 2px !important;
  min-height: 0 !important;
  justify-content: flex-start !important;
}
.n8n-chat .chat-heading {
  min-height: 0 !important;
}
.n8n-chat .chat-heading h1 {
  font-size: 20px !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}
.n8n-chat .chat-header p {
  font-size: 13px !important;
  line-height: 1.35 !important;
  margin: 4px 0 0 0 !important;
}

/* ===== Aviso de Privacidad (seccion plegable) ===== */
.avpriv { background: var(--cream); padding: 44px 20px; }
.avpriv__wrap { max-width: 820px; margin: 0 auto; }
.avpriv__details { border: 1px solid rgba(27,58,92,0.18); border-radius: 14px; background: #ffffff; overflow: hidden; }
.avpriv__summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-family: inherit; }
.avpriv__summary::-webkit-details-marker { display: none; }
.avpriv__summary-title { font-weight: 700; color: var(--navy); font-size: 18px; }
.avpriv__summary-hint { color: var(--gold); font-weight: 600; font-size: 14px; white-space: nowrap; }
.avpriv__summary-hint::after { content: ' \25BC'; }
.avpriv__details[open] .avpriv__summary-hint::after { content: ' \25B2'; }
.avpriv__content { padding: 4px 22px 26px; color: var(--ink); font-size: 14.5px; line-height: 1.6; max-height: 70vh; overflow-y: auto; border-top: 1px solid rgba(27,58,92,0.12); }
.avpriv__content h3 { color: var(--navy); font-size: 16px; margin: 22px 0 6px; }
.avpriv__content h4 { color: var(--navy); font-size: 14.5px; margin: 14px 0 4px; }
.avpriv__content p { margin: 8px 0; }
.avpriv__content ul, .avpriv__content ol { margin: 8px 0 8px 20px; }
.avpriv__content li { margin: 4px 0; }
.avpriv__meta { color: var(--slate); font-size: 12px; letter-spacing: .4px; text-transform: uppercase; }
.avpriv__table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
.avpriv__table th, .avpriv__table td { border: 1px solid rgba(27,58,92,0.18); padding: 8px 10px; text-align: left; vertical-align: top; }
.avpriv__table th { background: rgba(27,58,92,0.06); color: var(--navy); font-weight: 700; }
.avpriv__table--3 th { width: 33%; }
@media (max-width: 560px) { .avpriv__content { font-size: 14px; } .avpriv__table { font-size: 12.5px; } }


/* Hero copy v7 - subtitulo descriptivo + nota de confianza */
.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 30px;
  text-wrap: pretty;
}
.hero__cta-card {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 14px;
  padding: 22px 26px;
  max-width: 560px;
}
.hero__cta-btn {
  white-space: normal;
  max-width: 100%;
}
.hero__cta-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}


/* Hero fit v8 - texto bajo los hombros, cabe en portada */
.hero__title {
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 900px;
}
.hero__subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
  margin: 0 auto 22px;
  max-width: 640px;
}
.hero__cta-card {
  padding: 18px 24px;
  gap: 12px;
}
.hero__content {
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}


/* v9 - titulo y subtitulo movidos a la seccion crema */
.intro__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  color: var(--navy);
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.intro__title em { font-style: italic; }
.intro__subtitle {
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 auto 40px;
  max-width: 680px;
  text-wrap: pretty;
}


/* v10 - tagline elegante sobre el boton en el hero */
.hero__tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
  font-size: clamp(26px, 4.2vw, 46px);
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-align: center;
  max-width: 640px;
  margin: 0 0 clamp(30px, 8vw, 110px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  text-wrap: balance;
}


/* v11 - separacion entre los dos bloques de la seccion crema */
.intro__title--second { margin-top: clamp(40px, 6vw, 72px); }
