/* Links de los salones de X+ Eventos. Misma base para todos;
   cada salón define su paleta con una clase en el <body>. */

@font-face {
  font-family: "EB Garamond";
  src: url("/shared/fonts/eb-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/shared/fonts/nunito-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/shared/fonts/nunito-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* ---------- Paletas por salón ---------- */
.milenio {
  --fondo:   #fdf6f0;
  --borde:   #f0e0d3;
  --texto:   #462216;
  --gris:    #7a5a4c;
  --acento:  #d45000;
  --cta:     #b34706;
  --cta-rgb: 179, 71, 6;
}
.club {
  --fondo:   #f5f2ed;
  --borde:   #d8d8de;
  --texto:   #243b80;
  --gris:    #485a93;
  --acento:  #dd3b8f;
  --cta:     #bd2071;
  --cta-rgb: 189, 32, 113;
}
.luxor {
  --fondo:      #fef4e1;
  --borde:      #edddb9;
  --texto:      #3a2a10;
  --gris:       #6b5c44;
  --acento:     #9e7302;
  --cta:        #caa450;
  --cta-texto:  #3a2a10;
  --cta-rgb:    202, 164, 80;
}
.flow {
  --fondo:   #1a0b2e;
  --borde:   #44096e;
  --texto:   #fefaf3;
  --gris:    #bab2b8;
  --acento:  #9d04f5;
  --cta:       #9d04f5;
  --cta-texto: #fefaf3;
  --cta-rgb:   157, 4, 245;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  background-image: radial-gradient(600px circle at 15% 0%, rgba(var(--cta-rgb), 0.06), transparent 60%);
}

/* Grano fino sobre el fondo plano */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 20px calc(40px + env(safe-area-inset-bottom));
}

@media (min-width: 700px) {
  .wrap { padding-top: 72px; }
}

/* ---------- Cabecera ---------- */
.head { margin-bottom: 28px; }

.logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 110px;
  max-width: 100%;
  margin-bottom: 18px;
}

.name {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--texto);
}

.bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  max-width: 36ch;
}
.bio-1 { display: block; font-weight: 600; color: var(--texto); }
.bio-2 { display: block; font-weight: 400; color: var(--gris); }

/* ---------- Cards ---------- */
.links { display: flex; flex-direction: column; gap: 10px; }

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 18px 16px;
  border-radius: 14px;
  background: var(--fondo);
  border: 1px solid var(--borde);
  color: var(--texto);
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.2s ease;
}

.card-ico {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--acento);
}
.card-ico svg { width: 24px; height: 24px; display: block; }

.card-text { flex: 1 1 auto; min-width: 0; }
.card-title {
  display: block;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
}
.card-sub {
  display: block;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.35;
  color: var(--gris);
  margin-top: 2px;
}

.card-arrow {
  flex: 0 0 auto;
  font-size: 15px;
  color: var(--gris);
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- CTA (WhatsApp) ---------- */
.card--cta {
  position: relative;
  background: var(--cta);
  border: none;
  color: var(--cta-texto, var(--fondo));
  box-shadow: 0 8px 24px rgba(var(--cta-rgb), 0.28);
}
.card--cta .card-ico { color: inherit; }
.card--cta .card-title { font-size: 17px; }
.card--cta .card-sub { color: inherit; opacity: 0.85; }
.card--cta .card-arrow { color: inherit; opacity: 0.7; }

/* Halo pulsante */
.card--cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(var(--cta-rgb), 0.5);
}
.card--cta.pulse::after {
  animation: haloPulse 2.4s ease-out infinite;
}
@keyframes haloPulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--cta-rgb), 0.5); }
  100% { box-shadow: 0 0 0 14px rgba(var(--cta-rgb), 0); }
}

/* ---------- Feedback táctil ---------- */
.card:active { transform: scale(0.975); }

@media (hover: hover) {
  .card:not(.card--cta):hover { border-color: var(--acento); }
  .card:hover .card-arrow { transform: translateY(-2px); opacity: 0.8; }
  .card--cta:hover { box-shadow: 0 10px 28px rgba(var(--cta-rgb), 0.34); }
}

/* ---------- Footer ---------- */
.foot {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: var(--gris);
}
.foot a { color: inherit; }

/* ---------- Foco de teclado ---------- */
a:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
}

/* ---------- Estado animable (solo con JS) ---------- */
.js-ready [data-anim] { opacity: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js-ready [data-anim] { opacity: 1 !important; transform: none !important; }
  .card:active { transform: none; }
  .card--cta.pulse::after { animation: none; }
}

/* Oculto a la vista, visible para lectores de pantalla y buscadores */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
