/* ════════════════════════════════════════════════════════════
   Costa de Oro — Home · base, preloader, nav, hero, marquee, about
   ════════════════════════════════════════════════════════════ */

:root {
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  --bg-base: #070C14;
  --bg-deep: #04070D;
  --bg-surface: #0C1420;
  --bg-card: #111B2A;

  --gold: #C9A84C;
  --gold-light: #E2C476;
  --gold-soft: rgba(201, 168, 76, 0.5);

  --ink: #F4EFE6;
  --ink-muted: rgba(244, 239, 230, 0.55);
  --ink-faint: rgba(244, 239, 230, 0.3);
  --line-subtle: rgba(255, 255, 255, 0.07);

  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --space-section: clamp(5rem, 4rem + 6vw, 11rem);

  --font-brand: 'Great Vibes', cursive;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-reveal: 0.6s;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--bg-base);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: rgba(201, 168, 76, 0.35); color: #fff; }

/* ── Grain (animado, como película) ────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: -100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 9990;
  mix-blend-mode: overlay;
  animation: grainShift 1.2s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1.5%); }
  40%  { transform: translate(1.5%, -2%); }
  60%  { transform: translate(-1%, -1%); }
  80%  { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ── Utilities ─────────────────────────────────────────────── */
.container { width: min(1320px, 100% - 3rem); margin-inline: auto; }
.section { padding-block: var(--space-section); }

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-label::before {
  content: '';
  width: 38px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}
.section-label.center { justify-content: center; }
.section-label.center::after {
  content: '';
  width: 38px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 2rem + 3vw, 5rem);
  font-weight: 300;
  line-height: 1.06;
  margin-top: 0.85rem;
  letter-spacing: -0.02em;
}
.section-title em { font-style: italic; color: var(--gold-light); font-weight: 300; }
.section-title.center { text-align: center; }

.section-subtitle {
  font-size: var(--text-base);
  color: var(--ink-muted);
  max-width: 48ch;
  margin-top: 1.4rem;
  line-height: 1.85;
  font-weight: 300;
}

.gold-line {
  width: 52px;
  height: 1px;
  background: var(--gold);
  margin-top: 1.6rem;
  opacity: 0.6;
  transform-origin: left center;
}

/* ── Mask line reveals ─────────────────────────────────────── */
.mask { display: block; overflow: hidden; }
.mask .line {
  display: block;
  transform: translateY(115%) rotate(2deg);
  transform-origin: left bottom;
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}
.mask.in .line { transform: none; }

/* ── Scroll-driven reveals ─────────────────────────────────── */
[data-anim] { transition-delay: var(--d, 0ms); }
[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
[data-anim="fade-up"].in { opacity: 1; transform: none; }

[data-anim="rise"] {
  /* handled by .mask .line */
}

[data-anim="grow"] {
  transform: scaleX(0);
  transition: transform 0.65s var(--ease-out);
}
[data-anim="grow"].in { transform: scaleX(1); }

[data-anim="clip"] {
  clip-path: inset(12% 12% 12% 12%);
  opacity: 0.4;
  transition: clip-path 0.75s var(--ease-out), opacity 0.75s var(--ease-out);
}
[data-anim="clip"].in { clip-path: inset(0 0 0 0); opacity: 1; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.btn .arr { transition: transform 0.35s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }

.btn-primary {
  background: var(--gold);
  color: #060912;
  border-color: var(--gold);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
/* Brillo que recorre el botón cada pocos segundos */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 38%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: translateX(-150%) skewX(-18deg);
  animation: btnSheen 4.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btnSheen {
  0%, 55%  { transform: translateX(-150%) skewX(-18deg); }
  85%, 100% { transform: translateX(420%) skewX(-18deg); }
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(244, 239, 230, 0.75);
  border-color: rgba(244, 239, 230, 0.22);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.12) inset;
}

.btn-glass {
  background: rgba(7, 12, 20, 0.4);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: var(--ink);
  color: #0A0F18;
  border-color: var(--ink);
}

/* ── Preloader ─────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.9s;
}
.preloader.done {
  transform: translateY(-100%);
  visibility: hidden;
}
.preloader-inner { text-align: center; }
.preloader-word {
  font-family: var(--font-brand);
  font-size: clamp(3rem, 2.4rem + 5vw, 5.5rem);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  justify-content: center;
  gap: 0.3em;
}
.preloader-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  animation: plLetter 0.7s var(--ease-out) forwards;
}
.preloader-word span.g { color: var(--gold-light); }
.preloader-word span:nth-child(1) { animation-delay: 0.1s; }
.preloader-word span:nth-child(2) { animation-delay: 0.26s; }
.preloader-word span:nth-child(3) { animation-delay: 0.42s; }
@keyframes plLetter {
  to { opacity: 1; transform: none; }
}
.preloader-line {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin: 1.4rem auto 1.1rem;
  animation: plLine 1s 0.5s var(--ease-out) forwards;
}
@keyframes plLine { to { width: 130px; } }
.preloader-sub {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  animation: plFade 0.8s 0.8s ease forwards;
}
@keyframes plFade { to { opacity: 1; } }

/* ── Scroll progress ───────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9999;
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.75rem 0;
  transition: background 0.45s ease, backdrop-filter 0.45s ease,
              padding 0.35s ease, border-color 0.45s ease, transform 0.45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  padding: 1rem 0;
  border-bottom-color: rgba(201, 168, 76, 0.12);
}
.navbar.hidden { transform: translateY(-110%); }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-logo .brand {
  font-family: var(--font-brand);
  font-size: 1.85rem;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav-logo .tagline {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-links { display: flex; align-items: center; gap: 2.6rem; }
.nav-links a {
  position: relative;
  color: rgba(244, 239, 230, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease;
  padding-block: 0.3rem;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  border: 1px solid rgba(201, 168, 76, 0.45);
  color: var(--gold) !important;
  padding: 0.6rem 1.4rem !important;
  transition: all 0.35s ease !important;
}
.nav-cta:hover {
  background: var(--gold);
  color: #060912 !important;
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.3);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 300;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 13, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    z-index: 250;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links li {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: calc(0.1s + var(--i, 0) * 0.07s);
  }
  .nav-links.open li { opacity: 1; transform: none; }
  .nav-links a {
    font-family: var(--font-heading);
    font-size: 2rem !important;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.02em;
  }
  .nav-links .nav-cta { border: none !important; padding: 0 !important; color: var(--gold-light) !important; }
  .nav-links .nav-cta:hover { background: none !important; box-shadow: none !important; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.6s ease-in-out;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  animation: kenBurns 8s ease-out forwards;
}
.hero-slide.leaving { transform: scale(1.12); }
@keyframes kenBurns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(4, 7, 13, 0.88) 0%,
    rgba(4, 7, 13, 0.55) 50%,
    rgba(10, 26, 46, 0.35) 100%
  );
  z-index: 1;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg-base) 0%, transparent 22%),
    radial-gradient(ellipse at center, transparent 55%, rgba(4, 7, 13, 0.45) 100%);
  z-index: 1;
}

/* Aurora dorada que respira sobre el hero */
.hero-aurora {
  position: absolute;
  inset: -18%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 18% 28%, rgba(201, 168, 76, 0.17), transparent 70%),
    radial-gradient(30% 30% at 78% 16%, rgba(127, 180, 220, 0.13), transparent 70%),
    radial-gradient(36% 30% at 62% 74%, rgba(226, 196, 118, 0.11), transparent 70%);
  filter: blur(42px);
  mix-blend-mode: screen;
  animation: auroraDrift 16s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes auroraDrift {
  from { transform: translate3d(-2.5%, -1.5%, 0) rotate(-2deg) scale(1); }
  to   { transform: translate3d(2.5%, 2%, 0) rotate(2deg) scale(1.1); }
}

/* Barrido de luz que cruza el hero periódicamente */
.hero::after {
  content: '';
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: 0;
  width: 30vw;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(226, 196, 118, 0.05) 40%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(226, 196, 118, 0.05) 60%,
    transparent 100%);
  transform: translateX(-110%) skewX(-14deg);
  animation: heroSweep 11s ease-in-out infinite;
}
@keyframes heroSweep {
  0%, 50%   { transform: translateX(-110%) skewX(-14deg); }
  92%, 100% { transform: translateX(460%) skewX(-14deg); }
}

/* Partículas doradas (creadas por home.js) */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.hero-particles span {
  position: absolute;
  bottom: -6px;
  border-radius: 50%;
  background: rgba(226, 196, 118, 0.6);
  box-shadow: 0 0 6px rgba(226, 196, 118, 0.4);
  animation-name: particleRise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 0;
}
@keyframes particleRise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.75; }
  70%  { opacity: 0.35; }
  100% { transform: translate(var(--drift, 30px), -94vh); opacity: 0; }
}
.hero-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  padding-top: clamp(7rem, 14vh, 10rem);
  padding-bottom: 3rem;
}
.hero-content { max-width: 860px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.9rem;
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-eyebrow::before {
  content: '';
  width: 46px;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2.2rem;
}
.hero-title .line-sm {
  font-size: clamp(1.2rem, 1rem + 1.6vw, 2.4rem);
  letter-spacing: 0.08em;
  color: rgba(244, 239, 230, 0.5);
  margin-bottom: 0.25em;
}
.hero-title .line-main {
  /* Fraunces es más ancha que Cormorant: tope menor para no desbordar */
  font-size: clamp(3.4rem, 2.2rem + 7.5vw, 8.75rem);
  font-style: italic;
}
.hero-title .gold-word {
  font-style: italic;
  background: linear-gradient(105deg, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 6s linear infinite;
}
@keyframes goldShimmer {
  to { background-position: 200% center; }
}

.hero-subtitle {
  font-size: var(--text-base);
  color: rgba(244, 239, 230, 0.68);
  max-width: 38ch;
  margin-bottom: 2.8rem;
  font-weight: 300;
  line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stats { display: flex; gap: 3.5rem; }
.hero-stat .number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3.2rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat .label {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
  margin-top: 0.45rem;
}

.hero-slide-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
  white-space: nowrap;
}
.slide-index {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}
.slide-track {
  position: relative;
  width: 110px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.slide-track-fill {
  position: absolute;
  inset: 0;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left center;
}
.slide-track-fill.run {
  animation: slideProgress 8s linear forwards;
}
@keyframes slideProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0;
}
.hero-scroll-text {
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.45);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px;
  height: 64px;
  background: rgba(244, 239, 230, 0.2);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold-light);
  animation: scrollDrop 2.2s var(--ease-out) infinite;
}
@keyframes scrollDrop {
  0%   { top: -100%; }
  55%  { top: 0; }
  100% { top: 100%; }
}

@media (max-width: 820px) {
  .hero-footer { flex-direction: column; align-items: flex-start; gap: 1.8rem; margin-top: 3rem; }
  .hero-stats { gap: 2.2rem; flex-wrap: wrap; }
  .hero-scroll { display: none; }
}

/* ── Olas del Pacífico (divisor animado) ───────────────────── */
.ocean-divider {
  position: relative;
  height: clamp(54px, 8vw, 110px);
  background: var(--bg-base);
  overflow: hidden;
}
.ocean-divider .wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  background-size: 50% 100%;
  will-change: transform;
}
.wave-back {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath d='M0,58 C240,92 480,28 720,58 C960,92 1200,28 1440,58 L1440,110 L0,110 Z' fill='%23C9A84C' fill-opacity='0.08'/%3E%3C/svg%3E");
  animation: waveDrift 26s linear infinite;
}
.wave-mid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath d='M0,68 C260,38 500,98 720,68 C940,38 1180,98 1440,68 L1440,110 L0,110 Z' fill='%237FB4DC' fill-opacity='0.07'/%3E%3C/svg%3E");
  animation: waveDrift 19s linear infinite reverse;
}
.wave-front {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath d='M0,72 C240,100 480,46 720,72 C960,100 1200,46 1440,72 L1440,110 L0,110 Z' fill='%2304070D'/%3E%3C/svg%3E");
  animation: waveDrift 13s linear infinite;
}
@keyframes waveDrift {
  to { transform: translateX(-50%); }
}

/* ── Giant marquee ─────────────────────────────────────────── */
.giant-marquee {
  overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem);
  border-block: 1px solid rgba(201, 168, 76, 0.1);
  background: var(--bg-deep);
}
.giant-marquee-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.giant-marquee span {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 2rem + 5.5vw, 7.5rem);
  font-weight: 300;
  font-style: italic;
  white-space: nowrap;
  line-height: 1;
  color: var(--ink);
}
.giant-marquee span.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 76, 0.55);
}
.giant-marquee i {
  font-style: normal;
  color: var(--gold);
  font-size: clamp(1rem, 0.8rem + 1vw, 1.6rem);
  opacity: 0.7;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── About ─────────────────────────────────────────────────── */
.about { background: var(--bg-base); position: relative; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(3rem, 2rem + 5vw, 7.5rem);
  align-items: center;
}
.about-visual { position: relative; }
.about-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-card);
}
.about-image img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  opacity: 0.92;
  will-change: transform;
}
.about-image-float {
  position: absolute;
  bottom: -3rem;
  left: -1.25rem;
  width: clamp(150px, 38%, 230px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 6px solid var(--bg-base);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  z-index: 2;
  transition: transform 0.45s var(--ease-out);
}
.about-image-float img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  top: 2.4rem;
  right: -2.4rem;
  background: var(--gold);
  color: #060912;
  padding: 1.5rem 1.9rem;
  text-align: center;
  z-index: 3;
  box-shadow: 0 24px 48px rgba(201, 168, 76, 0.25);
}
.about-badge .num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
}
.about-badge .txt {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
/* Flota suavemente una vez que terminó su entrada */
.about-badge.in { animation: floatBob 6s ease-in-out 1.3s infinite; }
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.about-features { margin-top: 2.6rem; }
.about-feature {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-subtle);
  transition: padding-left 0.4s var(--ease-out);
}
.about-feature:hover { padding-left: 0.6rem; }
.about-feature:last-child { border-bottom: none; }
.about-feature-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gold);
  transition: background 0.35s ease, color 0.35s ease;
}
.about-feature:hover .about-feature-icon {
  background: var(--gold);
  color: #060912;
}
.about-feature-text strong {
  display: block;
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.about-feature-text span {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-weight: 300;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 5rem; }
  .about-image-float { left: auto; right: 0; bottom: -2.5rem; }
  .about-badge { right: 1rem; }
}

/* ── Botón flotante WhatsApp ───────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  animation: waPulse 3.5s ease-out infinite;
  transition: transform 0.3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.12); animation: none; }
@keyframes waPulse {
  0%   { box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  65%  { box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ── Cursor personalizado ──────────────────────────────────── */
@media (pointer: fine) {
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button,
  body.has-cursor [role="button"],
  body.has-cursor input,
  body.has-cursor select,
  body.has-cursor textarea { cursor: none; }
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9995;
  opacity: 0;
}
body.cursor-active .cursor-dot,
body.cursor-active .cursor-ring { opacity: 1; }
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold-light);
  transition: opacity 0.3s ease, width 0.25s var(--ease-out), height 0.25s var(--ease-out), margin 0.25s var(--ease-out);
}
.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(244, 239, 230, 0.35);
  transition: opacity 0.3s ease,
              width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              margin 0.35s var(--ease-out),
              border-color 0.3s ease, background 0.3s ease;
}
body.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-color: rgba(201, 168, 76, 0.8);
  background: rgba(201, 168, 76, 0.08);
}
body.cursor-hover .cursor-dot {
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
}
body.cursor-down .cursor-ring {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
}

/* ── Luz dorada que sigue al mouse ─────────────────────────── */
.mouse-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(226, 196, 118, 0.08) 0%,
    rgba(226, 196, 118, 0.035) 38%,
    transparent 70%);
  pointer-events: none;
  z-index: 9992;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}
body.cursor-active .mouse-spotlight { opacity: 1; }

/* ── Accesibilidad ─────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10001;
  background: var(--gold);
  color: #060912;
  padding: 0.7rem 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-220%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ── Ajuste móvil general (≤640px) ─────────────────────────── */
@media (max-width: 640px) {
  :root { --space-section: clamp(3rem, 2.5rem + 4vw, 6rem); }
  /* Eyebrow más compacto, sin la línea decorativa */
  .hero-eyebrow { font-size: 0.54rem; letter-spacing: 0.18em; }
  .hero-eyebrow::before { width: 24px; }
  /* Título cabe en pantalla sin que el mask lo recorte */
  .hero-title .line-sm  { font-size: clamp(0.9rem, 2.8vw + 0.5rem, 1.4rem); }
  .hero-title .line-main { font-size: clamp(2.2rem, 8vw, 3rem); }
  /* Subtítulo sin restricción horizontal */
  .hero-subtitle { max-width: 100%; font-size: 0.88rem; margin-bottom: 2rem; }
  /* Acciones apiladas */
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* Stats compactas */
  .hero-stat .number { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .hero-slide-meta { display: none; }
  /* Badge del about sin desbordamiento */
  .about-badge { right: 1rem; padding: 1.2rem 1.5rem; }
  .about-badge .num { font-size: 2.2rem; }
  /* Titulares de sección más ajustados */
  .section-title { font-size: clamp(2rem, 1.6rem + 3vw, 3.5rem); }
  /* Float image reducido para evitar desborde con sección reducida */
  .about-image-float { bottom: -1.5rem; }
}

/* ── Ajuste pantallas extra-pequeñas (≤480px) ──────────────── */
@media (max-width: 480px) {
  :root { --space-section: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
  /* Sección about: foto más corta */
  .about-image { aspect-ratio: 4 / 3; }
  .about-image img { width: 100%; height: 100%; }
  /* Badge sin desborde */
  .about-badge { right: 0; bottom: -1.5rem; padding: 1rem 1.3rem; }
  .about-badge .num { font-size: 2rem; }
  /* Stats del hero apiladas */
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
  /* Marquee más compacto */
  .giant-marquee { padding-block: clamp(1.5rem, 1.2rem + 2vw, 3rem); }
}

/* ── Ajuste pantallas extra-pequeñas (≤380px) ──────────────── */
@media (max-width: 380px) {
  .hero-title .line-main { font-size: clamp(1.9rem, 7.5vw, 2.3rem); }
  .hero-title .line-sm   { font-size: 0.9rem; }
}

/* ── Reduced motion ────────────────────────────────────────── */
/* Reducir ≠ eliminar: se quita todo desplazamiento espacial
   (parallax, zoom, slides en movimiento) pero se conservan
   fundidos de opacidad suaves para que el sitio siga vivo. */
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
  body::after { animation: none; inset: 0; }
  .hero::after,
  .hero-particles,
  .hero-aurora,
  .mouse-spotlight,
  .btn-primary::after { display: none; }
  .about-badge.in { animation: none; }
  html { scroll-behavior: auto; }
  .hero-slide.active,
  .giant-marquee-track,
  .hero-scroll-line::after,
  .hero-title .gold-word,
  .ocean-divider .wave,
  .slide-track-fill.run { animation: none !important; }
  .mask .line {
    transition: none !important;
    transform: none !important;
  }
  [data-anim] {
    transform: none !important;
    clip-path: none !important;
    transition: opacity 0.7s ease !important;
  }
  .preloader { display: none; }
}
