/* ============================================================
   NARVIA Digital — identidad del flyer oficial
   Azul noche + dorado champán · serif elegante
   ============================================================ */

:root {
  --navy: #101d33;
  --navy-deep: #0b1526;
  --navy-soft: #182a47;
  --gold: #c6a15b;
  --gold-light: #dcc08a;
  --gold-pale: #f1e6cf;
  --paper: #faf8f3;
  --paper-tint: #f4efe4;
  --ink: #22293a;
  --ink-soft: #5a6273;
  --line: #e6dfd0;
  --white: #ffffff;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 45px rgba(16, 29, 51, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ============ Tipografía base ============ */

h1, h2, h3 { font-family: var(--serif); color: var(--navy); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.section { padding: 6rem 0; }
.section--tint { background: var(--paper-tint); }

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.2;
  max-width: 34ch;
  margin-bottom: 3rem;
}

/* ============ Botones ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border: 1.5px solid transparent;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}

/* brillo que cruza el botón al pasar el ratón */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(110%); }

.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16, 29, 51, 0.22); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); }

.btn--outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-light); }

.btn--outline-dark { border-color: var(--navy); color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: var(--gold-pale); }

.btn--lg { padding: 1rem 2.1rem; font-size: 1rem; }
.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.85rem; }

/* ============ Cabecera ============ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.4rem 0;
  background: transparent;
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}

.header--scrolled {
  padding: 0.7rem 0;
  background: rgba(11, 21, 38, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(198, 161, 91, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { text-decoration: none; line-height: 1.15; }
.brand__name {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--white);
}
.brand__sub {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.52em;
  color: var(--gold);
  border-top: 1px solid rgba(198, 161, 91, 0.55);
  padding-top: 0.28rem;
  margin-top: 0.22rem;
  text-align: center;
}

.nav { display: flex; align-items: center; gap: 1.8rem; }

.nav__link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  position: relative;
  padding: 0.3rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--gold-light); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(170deg, var(--navy-deep) 0%, var(--navy) 55%, #14233c 100%);
  color: var(--white);
  overflow: hidden;
  padding: 8rem 0 5rem;
}

.hero__glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(600px 400px at 78% 18%, rgba(198, 161, 91, 0.14), transparent 65%),
    radial-gradient(500px 380px at 12% 85%, rgba(198, 161, 91, 0.08), transparent 60%);
  pointer-events: none;
  animation: glowDrift 14s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); }
}

.hero__content { position: relative; text-align: center; }

/* --- Wordmark con entrada cinematográfica --- */

.hero__wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--white);
}

.hero__wordmark .wm__letters {
  display: block;
  letter-spacing: 0.24em;
  animation: wmTrack 1.6s var(--ease) both;
}

/* cada letra emerge desenfocada y se asienta */
.wm__l {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) scale(1.12);
  filter: blur(8px);
  animation: wmLetter 0.9s var(--ease) forwards;
}
.wm__l:nth-child(1) { animation-delay: 0.15s; }
.wm__l:nth-child(2) { animation-delay: 0.25s; }
.wm__l:nth-child(3) { animation-delay: 0.35s; }
.wm__l:nth-child(4) { animation-delay: 0.45s; }
.wm__l:nth-child(5) { animation-delay: 0.55s; }
.wm__l:nth-child(6) { animation-delay: 0.65s; }

@keyframes wmLetter {
  60% { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* el bloque respira: el interletrado se abre al entrar */
@keyframes wmTrack {
  from { letter-spacing: 0.1em; }
  to   { letter-spacing: 0.24em; }
}

/* la regla dorada se dibuja desde el centro */
.wm__rule {
  display: block;
  width: min(230px, 60vw);
  height: 1px;
  margin: 0.55rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold-light) 50%, var(--gold) 82%, transparent);
  transform: scaleX(0);
  animation: ruleDraw 1s var(--ease) 0.9s forwards;
}
@keyframes ruleDraw { to { transform: scaleX(1); } }

/* DIGITAL se despliega letra a letra */
.hero__wordmark .wm__sub {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.6em;
  color: var(--gold);
}
.wm__s {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  animation: subLetter 0.5s var(--ease) forwards;
}
.wm__s:nth-child(1) { animation-delay: 1.10s; }
.wm__s:nth-child(2) { animation-delay: 1.16s; }
.wm__s:nth-child(3) { animation-delay: 1.22s; }
.wm__s:nth-child(4) { animation-delay: 1.28s; }
.wm__s:nth-child(5) { animation-delay: 1.34s; }
.wm__s:nth-child(6) { animation-delay: 1.40s; }
.wm__s:nth-child(7) { animation-delay: 1.46s; }
@keyframes subLetter { to { opacity: 1; transform: none; } }

/* --- Titular con revelado de máscara --- */

.hero__title {
  margin: 2.8rem auto 1.6rem;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--white);
  max-width: 22ch;
}
.hero__title em { font-style: italic; color: var(--gold-light); }

.hero__line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__line-inner {
  display: block;
  transform: translateY(112%);
  animation: lineUp 1s var(--ease) 1.25s forwards;
}
.hero__line-inner--2 { animation-delay: 1.42s; }
@keyframes lineUp { to { transform: none; } }

/* --- Aparición escalonada del resto del hero --- */

.hero-fade {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFade 0.9s var(--ease) var(--fade-delay, 1.8s) forwards;
}
@keyframes heroFade { to { opacity: 1; transform: none; } }

.hero__lead {
  max-width: 58ch;
  margin: 0 auto 2.6rem;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero__note {
  margin-top: 2.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

/* ============ Tarjetas compromiso ============ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 2rem 1.8rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin-bottom: 1.3rem;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
              transform 0.4s var(--ease);
}
.card:hover .card__icon {
  background: var(--navy);
  color: var(--gold-light);
  transform: scale(1.08) rotate(-4deg);
}

.card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; }
.card p { font-size: 0.93rem; color: var(--ink-soft); }

/* ============ Cifras ============ */

.stats {
  background: var(--navy);
  color: var(--white);
  padding: 4.2rem 0;
  border-top: 1px solid rgba(198, 161, 91, 0.3);
  border-bottom: 1px solid rgba(198, 161, 91, 0.3);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem 1.5rem;
  text-align: center;
}

.stat__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--gold-light);
  line-height: 1;
}

.stat__label {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* ============ Proceso ============ */

.process {
  position: relative;
  max-width: 620px;
  margin-inline: auto;
  padding-left: 0;
}

.process__line {
  position: absolute;
  left: 25px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
  overflow: hidden;
}
.process__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--gold), var(--gold-light));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s var(--ease);
}
.process--drawn .process__line span { transform: scaleY(1); }

/* los números laten cuando la línea llega hasta ellos */
.process--drawn .process__dot { animation: dotPop 0.55s var(--ease) both; }
.process--drawn .process__step:nth-child(2) .process__dot { animation-delay: 0.15s; }
.process--drawn .process__step:nth-child(3) .process__dot { animation-delay: 0.55s; }
.process--drawn .process__step:nth-child(4) .process__dot { animation-delay: 0.95s; }
.process--drawn .process__step:nth-child(5) .process__dot { animation-delay: 1.35s; }
@keyframes dotPop {
  0%   { box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.45); }
  45%  { transform: scale(1.18); }
  100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(198, 161, 91, 0); }
}

.process__step {
  position: relative;
  display: flex;
  gap: 1.6rem;
  padding: 1.4rem 0;
}

.process__dot {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold);
  background: var(--paper);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  z-index: 1;
}

.process__step h3 { font-size: 1.15rem; font-weight: 600; margin: 0.6rem 0 0.4rem; }
.process__step p { font-size: 0.93rem; color: var(--ink-soft); max-width: 46ch; }

/* ============ Tarifas ============ */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.4rem 2rem;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.plan__badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.plan__name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan__tag {
  font-style: italic;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 1.4rem;
}

.plan__list {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  margin-bottom: 1.6rem;
  display: grid;
  gap: 0.65rem;
  font-size: 0.93rem;
}
.plan__list li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  margin-right: 0.55rem;
}

.plan__price {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: auto;
}
.plan__price strong {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
}

.plan__terms { font-size: 0.8rem; color: var(--ink-soft); margin: 0.3rem 0 1.6rem; }

.plan .btn { justify-content: center; }

.plan--featured {
  background: var(--navy);
  border: 1.5px solid var(--gold);
  transform: scale(1.03);
}
.plan--featured:hover { transform: scale(1.03) translateY(-6px); }
.plan--featured .plan__name { color: var(--white); }
.plan--featured .plan__tag { color: rgba(255, 255, 255, 0.65); }
.plan--featured .plan__list { color: rgba(255, 255, 255, 0.88); border-color: rgba(198, 161, 91, 0.35); }
.plan--featured .plan__price { color: rgba(255, 255, 255, 0.65); }
.plan--featured .plan__price strong { color: var(--gold-light); }
.plan--featured .plan__terms { color: rgba(255, 255, 255, 0.55); }

/* ============ Oferta ============ */

.offer {
  margin-top: 3rem;
  border: 1.5px solid var(--gold);
  background: var(--white);
  padding: 2rem 2.2rem;
  text-align: center;
}

.offer__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.offer__text {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--navy);
}
.offer__text s { color: var(--ink-soft); font-size: 0.85em; margin: 0 0.3rem; }

.offer__note { margin-top: 0.7rem; font-size: 0.9rem; color: var(--ink-soft); }

/* ============ CTA final ============ */

.cta {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 70%);
  color: var(--white);
  padding: 6.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(198, 161, 91, 0.3);
}

.cta__title {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.cta__title em { font-style: italic; color: var(--gold-light); }

.cta__lead {
  margin: 1.4rem auto 2.4rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 50ch;
}

.cta__alt { margin-top: 1.8rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.cta__alt a { color: var(--gold-light); text-decoration: none; }
.cta__alt a:hover { text-decoration: underline; }

/* ============ Pie ============ */

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.2rem 0 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand__name--footer { font-size: 1.05rem; letter-spacing: 0.2em; }
.footer__person { font-size: 0.85rem; margin-top: 0.4rem; color: var(--gold); }

.footer__contact {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  text-align: right;
}
.footer__contact a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer__contact a:hover { color: var(--gold-light); }

.footer__legal { padding: 1.4rem 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.4); }
.footer__legal a { color: rgba(220, 192, 138, 0.85); text-decoration: none; }
.footer__legal a:hover { color: var(--gold-light); text-decoration: underline; }

/* ============ Botón flotante WhatsApp ============ */

.whatsapp-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.1); background: var(--gold-light); }

/* ============ Animaciones de aparición ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease),
              filter 0.7s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

.reveal--visible { opacity: 1; transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .process__line span { transform: scaleY(1); transition: none; }
  .btn, .card, .plan, .card__icon, .whatsapp-fab { transition: none; }
  .btn::after { display: none; }
  .wm__l, .wm__s, .hero__line-inner, .hero-fade, .wm__rule,
  .hero__wordmark .wm__letters, .hero__glow,
  .process--drawn .process__dot {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ============ Responsive ============ */

@media (max-width: 860px) {
  .section { padding: 4.2rem 0; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(11, 21, 38, 0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .nav--open { opacity: 1; pointer-events: auto; }
  .nav__link { font-size: 1.2rem; }

  .nav-toggle { display: flex; position: relative; z-index: 110; }

  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-6px); }

  .footer__contact { text-align: left; }
}
