/* ==========================================================
   Global CX Forum 2027 · Página "Próximamente"
   Paleta y tipografía de marca (assets/images/nuevo_2027)
   ========================================================== */

/* ---------- Fuente de marca: Cera Pro ---------- */
@font-face { font-family: "Cera Pro"; src: url("../fonts/cera-pro/CeraPro-Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cera Pro"; src: url("../fonts/cera-pro/CeraPro-RegularItalic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cera Pro"; src: url("../fonts/cera-pro/CeraPro-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cera Pro"; src: url("../fonts/cera-pro/CeraPro-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cera Pro"; src: url("../fonts/cera-pro/CeraPro-Black.otf") format("opentype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cera Pro"; src: url("../fonts/cera-pro/CeraPro-BlackItalic.otf") format("opentype"); font-weight: 900; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Hoja de colores de marca */
  --light: #F4F8FC;
  --green: #244E3C;
  --teal: #00A798;
  --dark: #11211A;
  /* Tonos del degradado de marca */
  --teal-hi: #00BEA5;
  --navy: #001A29;
  --ink: #090E0A;

  --text-muted: #B9C7C2;
  --font: "Cera Pro", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
}

/* Radio de la luz de la revelación inicial (animable) */
@property --r1 { syntax: "<length>"; inherits: true; initial-value: 0px; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--light);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--light); color: var(--ink); padding: 8px 16px;
  border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.container { width: min(100% - 48px, 1200px); margin-inline: auto; }

/* ---------- Escenario: revelación inicial ----------
   Al entrar, la luz se abre desde el logo y termina iluminando toda la imagen.
   Después la imagen queda completa y fija, sin volver a oscurecerse.
   El escenario toma la proporción 16:9 de la imagen: se ve completa (el infinito de
   la C y la X), sin recortes ni márgenes. En celular se recorta al centro. */
.soon {
  position: relative;
  height: max(600px, 56.25vw);
  overflow: hidden;
  background: var(--ink);
}

.soon__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
}

/* Capa oscura que se disuelve con un hueco circular cada vez más grande */
.soon__shade {
  position: absolute; inset: 0;
  background: rgba(1, 8, 9, .9);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--r1) at 50% 50%, transparent 0, transparent 55%, #000 100%);
  mask-image: radial-gradient(circle var(--r1) at 50% 50%, transparent 0, transparent 55%, #000 100%);
  animation: open 3400ms var(--out) 300ms forwards, hide 1ms linear 3800ms forwards;
}
@keyframes open {
  0% { --r1: 0px; }
  50% { --r1: max(30vmin, 42vw); }
  100% { --r1: 160vmax; }
}
@keyframes hide { to { opacity: 0; } }

.soon__title {
  position: absolute; top: max(2%, 12px); left: 0; right: 0;
  z-index: 2;
  text-align: center;
  font-weight: 900;
  font-size: clamp(2.25rem, min(6.4vw, 9.5vh), 6rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--light);
  text-shadow: 0 0 40px rgba(0, 190, 165, .55);
}
.soon__title [aria-hidden] span {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%);
  animation: rise 800ms var(--out) forwards;
  animation-delay: calc(1300ms + var(--i) * 55ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* La imagen se difumina hacia el footer (sin línea de separación) */
.soon::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(9, 14, 10, 0), rgba(9, 14, 10, .65) 62%, var(--ink));
  pointer-events: none;
}

/* ---------- Cuenta regresiva ---------- */
.soon__count {
  position: absolute; left: 0; right: 0; bottom: 6%;
  z-index: 2;
  display: none; justify-content: center;
  gap: clamp(8px, 1.4vw, 18px);
  opacity: 0;
  animation: rise 900ms var(--out) 2100ms forwards;
}
.js .soon__count { display: flex; }
.soon__unit {
  min-width: clamp(76px, 10vw, 140px);
  padding: 14px 10px 12px;
  text-align: center;
  border-radius: 22px;
  background: rgba(0, 26, 41, .55);
  border: 1px solid rgba(0, 190, 165, .35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -18px rgba(0, 190, 165, .5), inset 0 1px 0 rgba(244, 248, 252, .12);
}
.soon__unit b {
  display: block;
  font-weight: 900;
  font-size: clamp(1.75rem, 4.2vw, 3.75rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.soon__unit span {
  display: block; margin-top: 6px;
  font-size: clamp(.7rem, .9vw, .875rem);
  color: #BFE9E2;
}
.tick { animation: tick 460ms var(--out); }
@keyframes tick { from { transform: translateY(-32%); opacity: .15; } to { transform: none; opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 32px 0 28px;
  background: var(--ink);
}

.dock {
  display: inline-flex; align-items: flex-end; gap: 12px;
  margin: 0; padding: 14px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px -24px rgba(0, 190, 165, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
  list-style: none;
}
.dock li { display: contents; }
.dock a {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 17px;
  display: grid; place-items: center;
  color: var(--light);
  text-decoration: none;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tone) 38%, transparent), color-mix(in srgb, var(--tone) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
  transform: translateY(var(--y, 0px)) scale(var(--s, 1));
  transform-origin: 50% 100%;
  transition: transform 160ms var(--ease), box-shadow 240ms;
}
.dock li:nth-child(1) a { --tone: #3B82F6; }
.dock li:nth-child(2) a { --tone: #E1306C; }
.dock li:nth-child(3) a { --tone: #9AA3B2; }
.dock li:nth-child(4) a { --tone: #3B82F6; }
.dock a svg {
  width: 26px; height: 26px;
  filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--tone) 70%, transparent));
}
.dock a:hover, .dock a:focus-visible { box-shadow: 0 10px 30px -6px var(--tone); }

.site-footer__links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 28px; margin: 12px 0 0;
}
.site-footer__links a, .link-button {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px; min-width: 44px;
  color: var(--text-muted);
  font: 400 .875rem var(--font);
  text-decoration: none;
  background: none; border: 0; padding: 0;
  cursor: pointer;
  transition: color 240ms var(--ease);
}
.site-footer__links a::after, .link-button::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 9px; height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--teal-hi));
  transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--ease);
}
.site-footer__links a:hover, .site-footer__links a:focus-visible,
.link-button:hover, .link-button:focus-visible { color: var(--light); }
.site-footer__links a:hover::after, .site-footer__links a:focus-visible::after,
.link-button:hover::after, .link-button:focus-visible::after { transform: scaleX(1); }

/* ---------- Banner de cookies ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .75rem 1.5rem;
  border-radius: 999px;
  font: 700 .9375rem var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 240ms var(--ease), background-color 240ms var(--ease), border-color 240ms var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--secondary { background: transparent; color: var(--light); border-color: rgba(255, 255, 255, .3); }
.btn--secondary:hover { border-color: var(--light); background: rgba(255, 255, 255, .06); }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  opacity: 0; transform: translateY(16px);
  transition: opacity 200ms ease-in, transform 200ms ease-in;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-shown {
  opacity: 1; transform: none;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.cookie-banner__inner {
  max-width: 960px; margin-inline: auto; padding: 24px;
  background: var(--dark);
  border: 1px solid rgba(244, 248, 252, .1);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .55);
  display: flex; flex-direction: column; gap: 16px;
}
.cookie-banner__text { font-size: .875rem; color: var(--text-muted); }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-banner__actions .btn { width: 100%; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .cookie-banner__inner { flex-direction: row; align-items: center; }
  .cookie-banner__actions { flex: 0 0 280px; }
}
@media (max-width: 699px) {
  .soon { height: max(680px, 100svh - 110px); }
  .soon__title { top: 7%; }
  .soon__count { bottom: 5%; gap: 8px; }
  .soon__unit { min-width: 0; width: 72px; padding: 10px 4px; border-radius: 16px; }
  .site-footer { padding-bottom: 32px; }
}
@media (max-width: 480px) {
  .dock { gap: 8px; padding: 12px; }
  .dock a { width: 52px; height: 52px; }
}

/* ---------- Movimiento reducido (siempre al final) ---------- */
@media (prefers-reduced-motion: reduce) {
  .soon__shade { display: none; }
  .soon__title [aria-hidden] span, .soon__count { animation: none; opacity: 1; transform: none; }
  .tick { animation: none; }
  .dock a, .site-footer__links a::after, .link-button::after, .cookie-banner { transition: none !important; }
}
