/* =========================================================
   CDT TRAINING CENTER — estilos
   Paleta tomada de su Instagram: negro profundo, rojo del
   escudo, luz ámbar de las instalaciones y blanco cálido.
   ========================================================= */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #171717;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f3efe8;
  --muted: #9b958d;
  --red: #d2152f;
  --red-2: #a30f23;
  --amber: #ffa24a;
  --amber-2: #ff7a1a;
  --radius: 18px;
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a[data-wa] { cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

/* grain overlay for a filmic, premium feel */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 90;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(90px, 13vw, 170px) 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px; font-weight: 500;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.hero-eyebrow::before { display: none; }

.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 7.4vw, 112px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin: 0 0 28px;
  text-transform: uppercase;
}
.lead { font-size: clamp(16px, 1.35vw, 19px); color: #cfc9c0; max-width: 560px; font-weight: 300; }
.sec-head { margin-bottom: clamp(44px, 6vw, 80px); max-width: 820px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head.center .eyebrow::before { display: none; }
.sec-sub { color: var(--muted); margin: 0; }

/* split text helpers (JS) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0.02em 0.06em; margin: -0.14em -0.02em 0; perspective: 600px; }
.split .c { display: inline-block; transform-origin: 50% 100% -20px; will-change: transform; }
.reveal-words .rw { display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
  white-space: nowrap; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 40px -10px rgba(210, 21, 47, 0.6); }
.btn-red::before { background: #fff; }
.btn-red:hover { color: var(--bg); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.28); color: var(--ink); backdrop-filter: blur(8px); background: rgba(255,255,255,0.03); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--bg); border-color: var(--ink); }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light::before { background: var(--red); }
.btn-light:hover { color: #fff; }

.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(210, 21, 47, 0.7); animation: pulse 1.8s infinite; flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(210, 21, 47, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(210, 21, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(210, 21, 47, 0); }
}

/* ---------- preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; perspective: 1400px; animation: preFail 0s 9s forwards; }
@keyframes preFail { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.pre-panel { position: absolute; left: 0; right: 0; height: 50.5%; background: #070707; }
.pre-top { top: 0; transform-origin: 50% 0; }
.pre-bottom { bottom: 0; transform-origin: 50% 100%; }
.pre-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
}
.pre-logo-wrap { position: relative; width: 132px; height: 132px; perspective: 600px; }
.pre-logo { width: 100%; height: 100%; border-radius: 50%; mix-blend-mode: screen; animation: logoSpin 2.4s var(--ease) infinite; }
@keyframes logoSpin { 0% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.pre-ring {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); border-top-color: var(--red); border-right-color: var(--amber);
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pre-brand { font-family: var(--display); font-size: 30px; letter-spacing: 0.08em; }
.pre-brand span { color: var(--muted); font-size: 0.7em; letter-spacing: 0.2em; margin-left: 6px; }
.pre-bar { width: 200px; height: 2px; background: rgba(255,255,255,.1); overflow: hidden; border-radius: 2px; }
.pre-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--amber)); }
.pre-count { font-family: var(--display); font-size: 18px; letter-spacing: 0.2em; color: var(--muted); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor-ring { width: 38px; height: 38px; border: 1px solid #fff; transition: width .35s var(--ease), height .35s var(--ease), background .35s; }
.cursor.hover .cursor-ring { width: 74px; height: 74px; background: #fff; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red), var(--amber)); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background .5s, padding .5s var(--ease), border-color .5s, translate .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10,10,10,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); padding-top: 12px; padding-bottom: 12px; border-color: var(--line); }
.nav.hidden { translate: 0 -110%; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 42px; height: 42px; border-radius: 50%; mix-blend-mode: screen; transition: transform .8s var(--ease); }
.nav-brand:hover img { transform: rotateY(360deg); }
.nav-brand span { font-family: var(--display); font-size: 26px; letter-spacing: .06em; line-height: 1; display: flex; flex-direction: column; }
.nav-brand em { font-style: normal; font-family: var(--body); font-size: 9px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-brand.big img { width: 64px; height: 64px; }
.nav-brand.big span { font-size: 40px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { position: relative; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #d8d2c9; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: #fff; }
.nav-cta { height: 44px; padding: 0 22px; font-size: 12px; }
@media (max-width: 1100px) { .nav-cta { margin-left: auto; margin-right: -12px; } }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 105; background: #080808;
  display: flex; flex-direction: column; justify-content: center; padding: 90px var(--pad) 40px;
  clip-path: circle(0% at calc(100% - 44px) 40px); visibility: hidden;
  transition: clip-path .9s var(--ease), visibility 0s .9s;
  perspective: 900px;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  font-family: var(--display); font-size: clamp(46px, 12vw, 84px); line-height: 1.02; text-transform: uppercase;
  display: flex; align-items: baseline; gap: 14px; transform-origin: 0 50% -40px;
  transform: rotateX(-80deg); opacity: 0; transition: transform .8s var(--ease), opacity .6s, color .3s;
}
.menu-links a small { font-family: var(--body); font-size: 12px; color: var(--red); letter-spacing: .1em; }
.menu-links a:hover { color: var(--red); }
.menu-open .menu-links a { transform: none; opacity: 1; }
.menu-open .menu-links a:nth-child(1) { transition-delay: .25s; } .menu-open .menu-links a:nth-child(2) { transition-delay: .3s; }
.menu-open .menu-links a:nth-child(3) { transition-delay: .35s; } .menu-open .menu-links a:nth-child(4) { transition-delay: .4s; }
.menu-open .menu-links a:nth-child(5) { transition-delay: .45s; } .menu-open .menu-links a:nth-child(6) { transition-delay: .5s; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 46px; color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero.no-webgl { background: url("../img/p02.jpg") center 30% / cover no-repeat; }
.hero.no-webgl #hero3d { display: none; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, transparent 0%, rgba(10,10,10,.35) 60%, rgba(10,10,10,.95) 100%),
    linear-gradient(180deg, rgba(10,10,10,.6) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 var(--pad); perspective: 1000px; }
.hero-eyebrow { justify-content: center; color: #ddd6cc; margin-bottom: 18px; }
.hero-title { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .82; transform-style: preserve-3d; }
.ht-line { display: block; overflow: hidden; padding-top: .1em; margin-top: -.06em; }
.ht-word { display: inline-block; }
.hero-title .ht-line:first-child .ht-word { font-size: clamp(130px, 27vw, 380px); letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 30%, #c9c2b8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 80px rgba(255,162,74,.15);
}
.ht-sub .ht-word { font-size: clamp(30px, 5.4vw, 76px); letter-spacing: .32em; margin-right: -.32em; color: var(--ink); }
.hero-tag { font-size: clamp(15px, 1.3vw, 18px); color: #cfc8be; margin: 22px 0 34px; font-weight: 300; letter-spacing: .04em; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-foot {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.hero-foot div { padding: 20px var(--pad); display: flex; flex-direction: column; gap: 2px; }
.hero-foot div + div { border-left: 1px solid var(--line); }
.hero-foot strong { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .04em; }
.hero-foot span { font-size: 12px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.scroll-hint { position: absolute; z-index: 3; right: var(--pad); bottom: 110px; width: 24px; height: 40px; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, -4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); padding: 22px 0; transform: rotate(-1.5deg) scale(1.03); }
.marquee-track { display: flex; gap: 38px; width: max-content; align-items: center; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(38px, 5vw, 70px); text-transform: uppercase; line-height: 1; white-space: nowrap; }
.marquee .outline, .outline { color: transparent; -webkit-text-stroke: 1px rgba(243,239,232,.75); }
.marquee i { font-style: normal; color: var(--red); font-size: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.features { list-style: none; padding: 0; margin: 46px 0 0; display: grid; gap: 4px; }
.features li { display: flex; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.features li > span { font-family: var(--display); color: var(--red); font-size: 20px; line-height: 1.4; }
.features h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: .01em; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }
.about-visual { perspective: 1400px; }
.stack { position: relative; aspect-ratio: 4/5; transform-style: preserve-3d; width: 100%; max-width: 520px; margin-left: auto; }
.stack-card { position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.sc-back { width: 62%; height: 62%; left: 0; top: 0; transform: translateZ(-80px) rotate(-6deg); opacity: .65; filter: saturate(.8); }
.sc-front { width: 78%; height: 82%; right: 0; bottom: 0; transform: translateZ(40px); }
.stack-badge {
  position: absolute; left: 6%; bottom: 8%; transform: translateZ(120px);
  display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 16px;
  background: rgba(14,14,14,.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.35;
}
.stack-badge img { width: 54px; height: 54px; border-radius: 50%; mix-blend-mode: screen; }
.stack-badge strong { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--ink); letter-spacing: .02em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(70px, 10vw, 130px); border-top: 1px solid var(--line); }
.stat { padding: 34px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(56px, 7vw, 100px); line-height: .9; }
.stat span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- facilities (coverflow) ---------- */
.facilities { position: relative; padding-top: clamp(90px, 12vw, 150px); overflow: hidden; }
.fac-head { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 40px; }
.fac-head .eyebrow { grid-column: 1 / -1; }
.fac-head .h2 { margin-bottom: 0; }
.fac-hint { color: var(--muted); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 14px; }
.fac-hint span { display: inline-block; color: var(--red); animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.fac-viewport { height: 100vh; height: 100svh; display: flex; align-items: center; perspective: 1600px; overflow: hidden; }
.fac-track { display: flex; gap: clamp(20px, 3vw, 44px); padding: 0 calc(50vw - min(34vw, 230px)); transform-style: preserve-3d; will-change: transform; }
.fac-card { flex: none; width: min(68vw, 460px); transform-style: preserve-3d; will-change: transform; }
.fac-img { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: 0 50px 90px -40px rgba(0,0,0,.95); }
.fac-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); }
.fac-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.fac-meta { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px 4px 0; }
.fac-meta span { font-family: var(--display); color: var(--red); font-size: 22px; grid-row: span 2; line-height: 1.2; }
.fac-meta h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: .03em; line-height: 1.05; }
.fac-meta p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- team (flip cards) ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; perspective: 1600px; }
.flip { aspect-ratio: 3/4.2; perspective: 1400px; outline: none; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.flip:hover .flip-inner, .flip.flipped .flip-inner, .flip:focus-visible .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1.12)); transition: transform 1.2s var(--ease); }
.flip-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.92)); }
.flip-label { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.flip-label span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--amber); }
.flip-label h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .02em; }
.flip-back {
  transform: rotateY(180deg); padding: 28px; display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 0% 0%, rgba(210,21,47,.35), transparent 60%), var(--bg-3); border: 1px solid var(--line);
}
.fb-num { font-family: var(--display); font-size: 70px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.3); }
.flip-back h3 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: auto 0 14px; line-height: 1; }
.flip-back ul { list-style: none; margin: 0 0 22px; padding: 0; color: #cfc8be; font-size: 14px; }
.flip-back li { padding: 8px 0; border-top: 1px solid var(--line); }
.flip-back .btn { align-self: flex-start; height: 44px; font-size: 12px; }

/* ---------- pricing ---------- */
.pricing { background: linear-gradient(180deg, var(--bg) 0%, #0e0e0e 50%, var(--bg) 100%); }
.enroll {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 4vw, 60px);
  padding: clamp(26px, 3.5vw, 44px) clamp(26px, 4vw, 54px); border-radius: 26px; margin-bottom: 22px;
  background: linear-gradient(110deg, var(--red) 0%, var(--red-2) 60%, #5c0712 100%);
  transform-style: preserve-3d;
}
.enroll::after { content: ""; position: absolute; right: -6%; top: -60%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 130px rgba(255,255,255,.02); pointer-events: none; }
.enroll-k { display: block; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: .85; }
.enroll-v { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 8vw, 110px); line-height: .9; }
.enroll p { margin: 0; max-width: 420px; font-size: 16px; opacity: .92; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; perspective: 1600px; }
.price {
  position: relative; padding: 34px 28px 30px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; transform-style: preserve-3d; transition: border-color .4s, background .4s;
}
.price:hover { border-color: rgba(255,255,255,.22); }
.price.featured { background: linear-gradient(180deg, #1c1c1c 0%, #121212 100%); border-color: rgba(210,21,47,.6); box-shadow: 0 30px 80px -30px rgba(210,21,47,.45); }
.p-flag { position: absolute; top: 18px; right: 18px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; background: var(--red); padding: 6px 10px; border-radius: 999px; transform: translateZ(30px); }
.p-name { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.p-amount { font-family: var(--display); font-size: clamp(54px, 5vw, 74px); line-height: 1; margin: 14px 0 22px; transform: translateZ(40px); }
.p-amount sup { font-size: .42em; vertical-align: top; position: relative; top: .3em; margin-right: 2px; color: var(--muted); }
.p-amount small { font-family: var(--body); font-size: 13px; color: var(--muted); letter-spacing: .06em; margin-left: 4px; }
.price ul { list-style: none; padding: 0; margin: 0 0 28px; font-size: 14px; color: #cfc8be; flex: 1; }
.price li { padding: 10px 0 10px 24px; border-top: 1px solid var(--line); position: relative; }
.price li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border-left: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red); transform: rotate(-45deg); }
.price .btn { width: 100%; transform: translateZ(30px); }
.fine { color: var(--muted); font-size: 12px; margin-top: 26px; text-align: center; }

/* ---------- hours ---------- */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.clock3d { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; perspective: 1200px; display: grid; place-items: center; }
.clock-ring { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(62deg); animation: ringSpin 30s linear infinite; }
@keyframes ringSpin { to { transform: rotateX(62deg) rotateZ(360deg); } }
.clock-ring i { position: absolute; left: 50%; top: 0; width: 2px; height: 50%; transform-origin: 50% 100%; }
.clock-ring i::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 22px; background: rgba(255,255,255,.35); border-radius: 2px; }
.clock-ring i.major::before { height: 44px; background: var(--amber); box-shadow: 0 0 18px var(--amber); }
.clock-ring i.now::before { background: var(--red); height: 60px; width: 4px; box-shadow: 0 0 24px var(--red); }
.clock-ring::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 1px solid rgba(255,162,74,.25); box-shadow: inset 0 0 80px rgba(255,162,74,.07); }
.clock-core { position: relative; text-align: center; transform: translateZ(60px); }
.clock-core strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(110px, 15vw, 210px); line-height: .85;
  background: linear-gradient(180deg, #fff, #b9b1a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clock-now { font-family: var(--display); letter-spacing: .2em; font-size: 22px; color: var(--amber); }
.open-now { display: inline-flex; align-items: center; gap: 12px; margin: 10px 0 28px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(210,21,47,.45); background: rgba(210,21,47,.08); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.days { list-style: none; margin: 0; padding: 0; max-width: 520px; }
.days li { display: flex; justify-content: space-between; padding: 14px 4px; border-top: 1px solid var(--line); font-size: 15px; transition: padding .4s var(--ease), color .4s; }
.days li:last-child { border-bottom: 1px solid var(--line); }
.days b { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .06em; color: var(--muted); }
.days li.today { color: #fff; padding-left: 14px; }
.days li.today b { color: var(--red); }
.days li.today span::after { content: " · hoy"; color: var(--amber); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- gallery (3D carousel) ---------- */
.gallery { overflow: hidden; padding-bottom: clamp(60px, 9vw, 120px); }
.carousel { position: relative; height: clamp(380px, 52vw, 560px); perspective: 1800px; perspective-origin: 50% 40%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.carousel.dragging { cursor: grabbing; }
.carousel-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.carousel-ring figure {
  position: absolute; margin: 0; width: var(--cw, 260px); aspect-ratio: 4/5;
  left: calc(var(--cw, 260px) / -2); top: calc(var(--cw, 260px) * -0.625);
  border-radius: 16px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); transition: filter .4s;
}
.carousel-ring figure img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.carousel-ring figure:hover { filter: brightness(1.12); }

/* ---------- CTA ---------- */
.cta { padding: clamp(110px, 15vw, 200px) var(--pad); text-align: center; position: relative; overflow: hidden; perspective: 1200px; }
.cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(210,21,47,.22) 0%, rgba(255,122,26,.06) 35%, transparent 65%); pointer-events: none; }
.cta-3d { transform-style: preserve-3d; }
.cta-title { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(76px, 17vw, 260px); line-height: .82; display: flex; flex-direction: column; align-items: center; }
.cta-title .outline { -webkit-text-stroke: 1.5px var(--ink); }
.cta-sub { color: #cfc8be; margin: 26px 0 36px; font-size: clamp(16px, 1.4vw, 19px); letter-spacing: .04em; position: relative; }
.center { justify-content: center; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-cards { display: grid; gap: 12px; margin-top: 18px; }
.c-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); transition: translate .5s var(--ease), border-color .4s, background .4s; }
.c-card:hover { translate: 8px 0; border-color: rgba(210,21,47,.55); background: #151515; }
.c-card svg { width: 26px; height: 26px; color: var(--red); flex: none; }
.c-card span { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.c-card strong { font-weight: 500; font-size: 16px; }
.contact-right { display: grid; gap: 18px; }
.wa-form { padding: clamp(24px, 3vw, 36px); border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 16px; }
.wa-form h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 36px; letter-spacing: .02em; }
.wa-form label { display: grid; gap: 6px; }
.wa-form label span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.wa-form input, .wa-form select, .wa-form textarea {
  width: 100%; background: #0c0c0c; border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  font: inherit; font-size: 16px; padding: 14px 16px; outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.wa-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.wa-form input:focus, .wa-form select:focus, .wa-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(210,21,47,.15); }
.wa-form input.err { border-color: var(--red); }
.wa-form .btn { margin-top: 6px; }
.map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); height: 260px; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) brightness(.9); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 60px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; }
.socials a { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-4px) rotateY(180deg); }
.socials svg { width: 22px; height: 22px; }
.footer-big { font-family: var(--display); font-size: 17.2vw; line-height: .8; text-align: center; white-space: nowrap; margin-top: 40px; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 96px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.to-top:hover { color: var(--ink); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  display: flex; align-items: center; gap: 0; height: 60px; padding: 0 18px; border-radius: 999px;
  background: #25d366; color: #fff; box-shadow: 0 14px 40px -10px rgba(37,211,102,.6);
  transition: gap .5s var(--ease), padding .5s var(--ease), translate .4s var(--ease);
}
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: 14px; transition: max-width .6s var(--ease); }
.wa-float:hover { gap: 10px; translate: 0 -3px; }
.wa-float:hover span { max-width: 200px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 160; background: rgba(5,5,5,.94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; perspective: 1400px; padding: 70px 16px 30px; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .5s; }
.lightbox img { max-height: 84vh; max-width: min(92vw, 720px); border-radius: 16px; transform: rotateY(-25deg) scale(.85); opacity: 0; transition: transform .8s var(--ease), opacity .6s; }
.lightbox.open img { transform: none; opacity: 1; }
.lb-close { position: absolute; top: 18px; right: 18px; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .team-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .about-grid, .hours-grid, .contact-grid { grid-template-columns: 1fr; }
  .stack { margin: 0 auto; max-width: 440px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { margin-top: 26px; }
  .enroll { grid-template-columns: 1fr; text-align: left; }
  .hours-grid .clock3d { max-width: 380px; order: 2; }
  .fac-head { grid-template-columns: 1fr; }
  .fac-hint { margin-top: 18px; }
}
@media (max-width: 620px) {
  .nav-cta { display: none; }
  .hero-eyebrow { font-size: 11px; letter-spacing: .14em; }
  .nav-brand span { font-size: 22px; }
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .hero-foot div:nth-child(2) { display: none; }
  .hero-foot div { padding: 14px var(--pad); }
  .hero-foot strong { font-size: 19px; }
  .scroll-hint { display: none; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flip-label { left: 14px; right: 14px; bottom: 14px; }
  .flip-label h3 { font-size: 21px; }
  .flip-back { padding: 16px; }
  .flip-back h3 { font-size: 22px; }
  .flip-back ul { font-size: 12px; margin-bottom: 12px; }
  .flip-back li { padding: 5px 0; }
  .fb-num { font-size: 44px; }
  .flip-back .btn { height: 38px; padding: 0 16px; font-size: 11px; }
  .price-grid { grid-template-columns: 1fr; }
  .wa-float { right: 14px; bottom: 14px; height: 56px; padding: 0 15px; }
  .btn { height: 50px; padding: 0 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
