/* =========================================================
   Nicia López — Capas premium (motion + atmósfera)
   Branding intacto: forest / cream / gold / Fraunces / Inter
   ========================================================= */

:root {
  --nl-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nl-gold-soft: rgba(201, 162, 75, 0.35);
}

/* ---------- Grain (textura de película) ---------- */
.nl-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */
.nl-pgbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 0%;
  z-index: 9000;
  background: linear-gradient(to bottom, var(--color-forest-400), var(--color-gold));
  box-shadow: 0 0 12px var(--nl-gold-soft);
  transition: height 0.08s linear;
}

/* ---------- Cursor custom (solo desktop con hover fino) ---------- */
.nl-cursor-dot,
.nl-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  display: none;
}
.nl-cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--nl-gold-soft);
}
.nl-cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(63, 86, 72, 0.35);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--nl-ease), height 0.35s var(--nl-ease), border-color 0.35s, background 0.35s;
}
.nl-cursor-ring.is-hot {
  width: 56px;
  height: 56px;
  border-color: var(--color-gold);
  background: rgba(201, 162, 75, 0.08);
}
@media (hover: hover) and (pointer: fine) {
  body.nl-has-cursor { cursor: none; }
  body.nl-has-cursor a,
  body.nl-has-cursor button { cursor: none; }
  .nl-cursor-dot,
  .nl-cursor-ring { display: block; }
}

/* ---------- Intro cinematográfica (manifiesto) ---------- */
.nl-intro {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-forest-900);
  color: var(--color-cream);
  overflow: hidden;
  transition: opacity 0.9s var(--nl-ease), visibility 0.9s;
}
.nl-intro.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nl-intro__aura {
  position: absolute;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 156, 136, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  animation: nl-pulse 3.2s ease-in-out infinite;
}
.nl-intro__ring {
  position: absolute;
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 50%;
  animation: nl-spin 18s linear infinite;
}
.nl-intro__ring::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: nl-spin 28s linear infinite reverse;
}
.nl-intro__words {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 90vw;
}
.nl-intro__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  margin: 0 0.18em;
  transition: opacity 0.7s var(--nl-ease), transform 0.7s var(--nl-ease);
}
.nl-intro__word.is-on {
  opacity: 1;
  transform: translateY(0);
}
.nl-intro__word--gold { color: var(--color-gold); font-style: italic; }
.nl-intro__skip {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 3;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.nl-intro__skip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-gold);
}
@keyframes nl-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes nl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Header refinada ---------- */
.nl-header {
  transition: background 0.4s var(--nl-ease), box-shadow 0.4s var(--nl-ease), border-color 0.4s;
}
.nl-header.is-scrolled {
  background: rgba(255, 253, 249, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 8px 30px -18px rgba(63, 86, 72, 0.35);
  border-bottom-color: transparent;
}
.nl-nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--color-gold);
  transition: width 0.35s var(--nl-ease);
}
.nl-nav__list a:hover::after,
.nl-nav__list .current-menu-item > a::after {
  width: 100%;
}

/* ---------- Hero premium ---------- */
.nl-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.nl-hero__aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.nl-hero__aura--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: 8%;
  background: rgba(201, 162, 75, 0.28);
  animation: nl-pulse 7s ease-in-out infinite;
}
.nl-hero__aura--2 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: -60px;
  background: rgba(238, 242, 234, 0.18);
  animation: nl-pulse 9s ease-in-out infinite 1s;
}
.nl-hero .nl-container { position: relative; z-index: 1; }
.nl-hero h1 {
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
  max-width: 12ch;
}
.nl-hero__accent {
  color: var(--color-gold);
  font-style: italic;
  font-weight: 600;
  display: inline-block;
  padding: 0 0.18em;
  margin: 0 0.06em;
}
.nl-hero__media {
  position: relative;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 24px 60px -20px rgba(43, 43, 40, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.nl-hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  z-index: 1;
}

/* Sello rotatorio editorial */
.nl-seal {
  position: absolute;
  width: 118px;
  height: 118px;
  bottom: -18px;
  left: -18px;
  z-index: 3;
  animation: nl-spin 28s linear infinite;
}
.nl-seal svg { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .nl-seal {
    width: 92px;
    height: 92px;
    bottom: -10px;
    left: auto;
    right: 12px;
  }
}

/* ---------- Marquee infinito ---------- */
.nl-marquee {
  background: var(--color-forest-900);
  color: rgba(255, 253, 249, 0.75);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.95rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.nl-marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: nl-marquee 42s linear infinite;
}
.nl-marquee__track:hover { animation-play-state: paused; }
.nl-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0 1.6rem;
  white-space: nowrap;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}
.nl-marquee__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
  opacity: 0.85;
}
@keyframes nl-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Tipografía editorial refinada ---------- */
.nl-eyebrow {
  letter-spacing: 0.22em;
}
h1, h2 {
  letter-spacing: -0.03em;
}
.nl-lead {
  max-width: 38em;
}
.nl-center .nl-lead,
.nl-cta-banner .nl-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Botones con shimmer ---------- */
.nl-btn--primary,
.nl-btn--whatsapp {
  position: relative;
  overflow: hidden;
}
.nl-btn--primary::after,
.nl-btn--whatsapp::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--nl-ease);
}
.nl-btn--primary:hover::after,
.nl-btn--whatsapp:hover::after {
  left: 140%;
}
.nl-btn--primary {
  box-shadow:
    0 4px 16px rgba(63, 86, 72, 0.2),
    0 12px 32px -12px rgba(63, 86, 72, 0.45);
}

/* ---------- Cards premium ---------- */
.nl-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--nl-ease), box-shadow 0.45s var(--nl-ease), border-color 0.45s;
}
.nl-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--color-gold), transparent 60%);
  background-size: 220% 220%;
  background-position: 100% 0;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s, background-position 0.8s var(--nl-ease);
  pointer-events: none;
}
.nl-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 8px 24px rgba(63, 86, 72, 0.1),
    0 20px 50px -20px rgba(63, 86, 72, 0.35);
  border-color: transparent;
}
.nl-card:hover::before {
  opacity: 1;
  background-position: 0 100%;
}
.nl-card__icon {
  transition: transform 0.45s var(--nl-ease), background 0.35s, color 0.35s;
}
.nl-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nl-card:hover .nl-card__icon {
  transform: scale(1.08);
  background: var(--color-forest-900);
  color: var(--color-cream);
}
.nl-card--cta {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 162, 75, 0.18), transparent 55%),
    var(--color-forest-100);
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}
.nl-card--cta h3 {
  margin-bottom: 0.25rem;
}
.nl-card--cta p {
  margin-bottom: 0.85rem;
  max-width: 22em;
}
.nl-card--cta .nl-btn {
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

/* ---------- Testimonios ---------- */
.nl-testimonial {
  transition: transform 0.45s var(--nl-ease), box-shadow 0.45s var(--nl-ease);
  border: 1px solid transparent;
}
.nl-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(201, 162, 75, 0.25);
}
.nl-testimonial p::before {
  content: '“';
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 0;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.6rem;
  opacity: 0.7;
}

/* ---------- Stats con línea dorada ---------- */
.nl-stats > div {
  position: relative;
  padding: var(--space-sm) 0;
}
.nl-stats > div::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(201, 162, 75, 0.45), transparent);
}
.nl-stats > div:last-child::after { display: none; }
@media (max-width: 900px) {
  .nl-stats > div:nth-child(2n)::after { display: none; }
}

/* ---------- CTA con pulso radial ---------- */
.nl-cta-banner {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 60px -24px rgba(63, 86, 72, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nl-cta-banner::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 162, 75, 0.22) 0%, transparent 65%);
  animation: nl-pulse 5s ease-in-out infinite;
  pointer-events: none;
}
.nl-cta-banner > * { position: relative; z-index: 1; }

/* ---------- Scroll reveal más cinematográfico ---------- */
.nl-reveal {
  transition: opacity 0.9s var(--nl-ease), transform 0.9s var(--nl-ease);
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  .nl-intro,
  .nl-intro__aura,
  .nl-intro__ring,
  .nl-hero__aura,
  .nl-seal,
  .nl-marquee__track,
  .nl-cta-banner::before,
  .nl-cursor-dot,
  .nl-cursor-ring {
    animation: none !important;
  }
  .nl-intro { display: none; }
  .nl-grain { display: none; }
}
