/* =========================================================
   Desbloqueá tu mente · Eva de Amores
   ========================================================= */

:root {
  --ivory: #FAF8F5;
  --nude: #EDE1D8;
  --rose: #CDA9AC;
  --night: #17243B;
  --gold: #C5A46D;

  --btn-bg: #111D33;
  --btn-fg: #E8C98D;

  --ink: #17243B;
  --ink-soft: #3A4558;
  --gold-deep: #9C7C45;          /* dorado con contraste suficiente sobre fondos claros */
  --line: rgba(197, 164, 109, .45);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(5rem, 12vw, 9rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.15em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
strong { font-weight: 500; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: .75rem 1.25rem; border-radius: 4px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 780px; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

/* ---------- Ornamento: línea dorada fina con rombo ---------- */
.ornament {
  display: block;
  position: relative;
  width: 96px; height: 10px;
  margin: 0 auto 2.25rem;
}
.ornament::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; border: 1px solid var(--gold);
  background: inherit;
  transform: translate(-50%, -50%) rotate(45deg);
}
.ornament--left { margin-left: 0; }
.ornament--left::before { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament--left::after { left: 3px; }
.ornament--light::after { border-color: var(--btn-fg); }
.ornament--light::before { background: linear-gradient(90deg, transparent, var(--btn-fg), transparent); }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 1rem 2.4rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-weight: 500;
  font-size: .86rem;
  letter-spacing: .2em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(232, 201, 141, .55);
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 30px -14px rgba(17, 29, 51, .55);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
/* destello dorado que cruza el botón al pasar el cursor */
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(232, 201, 141, .18) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease);
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--btn-fg);
  color: #F3DCAE;
  box-shadow: 0 18px 40px -16px rgba(17, 29, 51, .7), 0 0 0 1px rgba(232, 201, 141, .15);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(110%); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--btn-fg); outline-offset: 4px; }

@media (max-width: 479px) {
  .btn { width: 100%; padding: 1rem 1.25rem; letter-spacing: .14em; font-size: .82rem; }
}

/* =========================================================
   1 · PORTADA
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  background: var(--night);
  overflow: hidden;
}
.hero__media, .hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero__media img {
  object-fit: cover;
  object-position: 50% 30%;
  animation: heroZoom 14s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(17, 29, 51, .96) 0%, rgba(17, 29, 51, .9) 48%, rgba(17, 29, 51, .66) 64%, rgba(17, 29, 51, .22) 82%, rgba(17, 29, 51, 0) 96%);
}

.hero__content {
  position: relative;
  width: 100%;
  padding: 7rem var(--gutter) calc(4.5rem + env(safe-area-inset-bottom));
  max-width: 1280px;
  margin: 0 auto;
}

.hero__eyebrow {
  color: var(--btn-fg);
  text-shadow: 0 1px 12px rgba(17, 29, 51, .6);
  display: inline-flex; align-items: center; gap: .9rem;
}
.hero__eyebrow::before {
  content: ""; width: 34px; height: 1px; background: var(--btn-fg);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.1rem, 13.2vw, 9.25rem);
  line-height: .9;
  letter-spacing: .015em;
  margin: 0 0 .9rem;
  color: var(--ivory);
  text-shadow: 0 2px 40px rgba(17, 29, 51, .35);
}
.hero__title span { display: block; }
.hero__title span + span {
  background: linear-gradient(100deg, #F6E3BC 0%, #E8C98D 40%, #C5A46D 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  line-height: 1.1;
  color: var(--nude);
  margin: 0 0 1.5rem;
}

.hero__lead {
  max-width: 34ch;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3rem);
  line-height: 1.6;
  color: rgba(250, 248, 245, .92);
  margin-bottom: 1.75rem;
}
.hero__lead strong { font-weight: 400; }

.hero__meta {
  list-style: none;
  margin: 0 0 2.25rem; padding: 1.1rem 0 0;
  border-top: 1px solid rgba(232, 201, 141, .35);
  display: flex; flex-wrap: wrap;
  gap: .35rem 0;
  font-size: .95rem;
  letter-spacing: .04em;
  color: rgba(250, 248, 245, .88);
  max-width: 640px;
}
.hero__meta li { display: flex; align-items: center; white-space: nowrap; }
.hero__meta li + li::before {
  content: ""; width: 4px; height: 4px; margin: 0 .9rem;
  background: var(--btn-fg); transform: rotate(45deg);
}

.hero__scroll {
  display: none;
}

@media (max-width: 559px) {
  .hero__meta { flex-direction: column; }
  .hero__meta li + li::before { display: none; }
  .hero__meta li::before { content: ""; width: 4px; height: 4px; margin-right: .8rem; background: var(--btn-fg); transform: rotate(45deg); }
}

@media (min-width: 768px) {
  .hero { align-items: center; }
  .hero__media img { object-position: center; }
  .hero__veil {
    background:
      linear-gradient(90deg, rgba(17, 29, 51, .9) 0%, rgba(17, 29, 51, .72) 32%, rgba(17, 29, 51, .2) 58%, rgba(17, 29, 51, 0) 72%),
      linear-gradient(to top, rgba(17, 29, 51, .45) 0%, rgba(17, 29, 51, 0) 30%);
  }
  .hero__content { padding: 8rem clamp(2rem, 6vw, 5.5rem) 7rem; }
  .hero__title { font-size: clamp(4.5rem, 9.4vw, 9.25rem); }
  .hero__scroll {
    display: block;
    position: absolute; left: 50%; bottom: 1.75rem;
    width: 1px; height: 54px; transform: translateX(-50%);
    overflow: hidden;
  }
  .hero__scroll span {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent, var(--btn-fg));
    animation: scrollLine 2.6s var(--ease) infinite;
  }
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* =========================================================
   2 · APERTURA EMOCIONAL
   ========================================================= */
.opening {
  position: relative;
  background: var(--nude);
  padding: var(--section-y) 0;
  text-align: center;
}
/* fina línea dorada de unión entre la portada y esta sección */
.opening::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 1px; height: clamp(2.5rem, 7vw, 4.5rem);
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.opening__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 6.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--night);
  margin: 0 auto 3rem;
  max-width: 20ch;
}

.opening__body { color: var(--ink-soft); margin-bottom: 3rem; }
.opening__body p { max-width: 36em; margin-left: auto; margin-right: auto; }

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 4.2vw, 2.05rem);
  line-height: 1.32;
  color: var(--night);
  position: relative;
  padding: 1.75rem 0;
  margin: 2rem auto !important;
}
.quote strong { font-weight: 500; }
.opening .quote::before, .opening .quote::after {
  content: ""; position: absolute; left: 50%; width: 48px; height: 1px;
  background: var(--gold); transform: translateX(-50%);
}
.opening .quote::before { top: 0; }
.opening .quote::after { bottom: 0; }

/* =========================================================
   3 · EVA
   ========================================================= */
.eva {
  background: var(--ivory);
  display: grid;
  grid-template-columns: 1fr;
}
.eva__media {
  position: relative;
  height: min(62vh, 520px);
  overflow: hidden;
}
.eva__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.eva__media::after {
  /* suaviza la transición hacia el texto */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(to top, rgba(250, 248, 245, .9), rgba(250, 248, 245, 0));
}

.eva__content {
  padding: clamp(3rem, 8vw, 5rem) var(--gutter) var(--section-y);
}
.eva__inner { max-width: 620px; margin: 0 auto; }

.eva__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 3.75rem);
  line-height: 1.05;
  color: var(--night);
  margin-bottom: 2.25rem;
}
.eva__body { color: var(--ink-soft); }
.eva .quote {
  text-align: left;
  font-size: clamp(1.45rem, 3.6vw, 1.85rem);
  padding: .25rem 0 .25rem 1.4rem;
  margin: 1.9rem 0 !important;
  border-left: 1px solid var(--gold);
}

.stat {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2.75rem 0 2.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat__number {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4.5rem, 16vw, 6.75rem);
  line-height: .85;
  color: var(--gold);
  letter-spacing: -.01em;
}
.stat__text { display: flex; flex-direction: column; gap: .35rem; }
.stat__label {
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .26em;
  color: var(--night);
}
.stat__desc { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }

@media (min-width: 900px) {
  .eva { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .eva__media { height: auto; min-height: 100%; }
  .eva__media img { position: absolute; inset: 0; object-position: 45% 25%; }
  .eva__media::after {
    top: 0; bottom: 0; left: auto; right: 0; width: 14%; height: auto;
    background: linear-gradient(to left, rgba(250, 248, 245, .55), rgba(250, 248, 245, 0));
  }
  .eva__content {
    display: flex; align-items: center;
    padding: var(--section-y) clamp(2.5rem, 6vw, 6rem);
  }
  .eva__inner { margin: 0; }
}

/* =========================================================
   4 · BENEFICIOS
   ========================================================= */
.benefits {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(205, 169, 172, .16), transparent 60%),
    var(--ivory);
  padding: var(--section-y) 0;
  text-align: center;
  border-top: 1px solid rgba(197, 164, 109, .2);
}
.benefits__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
  color: var(--night);
  max-width: 18ch;
  margin: 0 auto clamp(3rem, 7vw, 4.5rem);
}

.benefits__grid {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 980px;
  counter-reset: benefit;
}
.benefit {
  position: relative;
  text-align: left;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(197, 164, 109, .32);
  border-radius: 6px;
  padding: 2.25rem 1.75rem 2rem;
  transition: transform .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease);
  counter-increment: benefit;
}
.benefit::after {
  content: "0" counter(benefit);
  position: absolute; top: 1.5rem; right: 1.6rem;
  font-family: var(--serif); font-style: italic;
  font-size: 1.15rem; color: var(--rose);
}
.benefit:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 164, 109, .7);
  box-shadow: 0 24px 50px -32px rgba(23, 36, 59, .35);
}
.benefit__icon {
  width: 46px; height: 46px;
  margin-bottom: 1.4rem;
  fill: none; stroke: var(--gold);
  stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.benefit__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 4.4vw, 1.8rem);
  line-height: 1.18;
  color: var(--night);
  margin-bottom: .75rem;
  padding-right: 2rem;
}
.benefit p { color: var(--ink-soft); margin: 0; }

.benefits__cta { margin-top: clamp(3rem, 7vw, 4.5rem); }

@media (min-width: 760px) {
  .benefits__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .benefit { padding: 2.75rem 2.5rem 2.5rem; }
}

/* =========================================================
   5 · CIERRE
   ========================================================= */
.closing {
  position: relative;
  color: var(--ivory);
  background: var(--night);
  overflow: hidden;
}
/* Móvil: la escalera ocupa la parte superior como protagonista
   y el texto se apoya sobre el azul noche, sin tapar la imagen. */
.closing__media {
  position: relative;
  display: block;
  height: 72vh;
  height: 72svh;
  min-height: 420px;
}
.closing__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
}
.closing__veil {
  position: absolute; left: 0; right: 0; top: 0;
  height: 72vh; height: 72svh; min-height: 420px;
  background: linear-gradient(to top, var(--night) 0%, rgba(23, 36, 59, .55) 22%, rgba(23, 36, 59, 0) 48%);
}

.closing__content {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: -5rem auto 0;
  padding: 0 var(--gutter) var(--section-y);
  text-align: center;
}
.closing__title {
  font-family: var(--serif);
  font-size: clamp(1.95rem, 6vw, 3.5rem);
  line-height: 1.12;
  margin-bottom: 1.75rem;
}
.closing__title strong { font-weight: 500; }
.closing__text { color: rgba(250, 248, 245, .9); margin-bottom: 2.25rem; }
.closing__text p { margin-bottom: .35em; }
.closing .ornament { margin-bottom: 1.75rem; }
.closing__phrase {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4.4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: .04em;
  margin-bottom: 1rem;
  background: linear-gradient(100deg, #F6E3BC 0%, #E8C98D 45%, #D2B27A 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.closing__phrase strong { font-weight: 600; }
.closing__date {
  font-size: .95rem;
  letter-spacing: .12em;
  color: rgba(250, 248, 245, .85);
  margin-bottom: 2.25rem;
}
.btn--final { border-color: var(--btn-fg); }

/* Escritorio: imagen a pantalla completa, texto a la izquierda
   y la escalera con el portal iluminado a la derecha. */
@media (min-width: 900px) {
  .closing { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
  .closing__media, .closing__veil { position: absolute; inset: 0; height: 100%; min-height: 0; }
  .closing__media img { object-position: 60% center; }
  .closing__veil {
    background:
      linear-gradient(90deg, rgba(17, 29, 51, .92) 0%, rgba(17, 29, 51, .78) 34%, rgba(17, 29, 51, .25) 56%, rgba(17, 29, 51, 0) 68%),
      linear-gradient(to top, rgba(17, 29, 51, .5) 0%, rgba(17, 29, 51, 0) 30%);
  }
  .closing__content {
    margin: 0;
    max-width: none;
    padding: var(--section-y) clamp(2rem, 6vw, 5.5rem);
    text-align: left;
  }
  .closing__content > * { max-width: 600px; }
  .closing__title { font-size: clamp(2.4rem, 3.6vw, 3.4rem); }
  .closing .ornament { margin-left: 0; }
}

/* =========================================================
   Botón flotante (móvil)
   ========================================================= */
.float-cta { display: none; }

@media (max-width: 767px) {
  /* La barra se oculta en la portada y en el cierre (ver main.js),
     así nunca tapa el contenido final de la página. */
  .float-cta {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(250, 248, 245, .9);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(197, 164, 109, .35);
    transform: translateY(110%);
    transition: transform .5s var(--ease);
  }
  .float-cta.is-visible { transform: translateY(0); }
  .btn--float { width: 100%; min-height: 52px; font-size: .78rem; letter-spacing: .16em; }
}

/* =========================================================
   Animaciones de aparición
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .benefit:hover { transform: none; }
}
