/* hub-styles.css — Estilos del hub mobile-first */

:root {
  /* Paleta monocromática — negro, blanco, dorado */
  --green-900: #0A0A0A;
  --green-800: #1A1A1A;
  --green-700: #2A2A2A;
  --green-600: #3A3A3A;
  --green-500: #555555;
  --green-100: #EEEEEE;
  --green-50:  #F5F5F5;

  --cream-50:  #FAFAF7;
  --cream-100: #F2F1EC;
  --cream-200: #E5E3DA;

  --burgundy: #1A1A1A;
  --burgundy-light: #2A2A2A;
  --gold: #9BFAB0;
  --gold-light: #C4FBD0;

  --ink: #0A0A0A;
  --ink-soft: #2E2E2E;
  --ink-mute: #6E6E6E;

  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;

  /* Tarjetas — variantes en escala de grises + dorado de acento */
  --c-burgundy:    #1A1A1A;
  --c-green:       #2A2A2A;
  --c-blue:        #3A3A3A;
  --c-gold:        #9BFAB0;
  --c-rose:        #4A4A4A;
  --c-teal:        #2E2E2E;
  --c-amber:       #9BFAB0;
  --c-whatsapp:    #1FA855;
  --c-slate:       #4A4A4A;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Stack tipográfico estilo Apple — Inter como clon open-source de SF Pro */
  --serif: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  /* MUY IMPORTANTE: tipografía base más grande para adultos mayores */
  font-size: 19px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.hub {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 18px 96px;
  position: relative;
}

/* ─── Header ─── */
.hub-header {
  background: #0A0A0A;
  /* Sale del padding del .hub y se extiende a todo el ancho del viewport */
  margin: -20px calc(50% - 50vw) 22px;
  width: 100vw;
  position: sticky;
  top: 0;
  z-index: 50;
}
.hub-header-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hub-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.hub-brand img {
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* ─── Menú hamburguesa ─── */
.hub-menu-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease;
}
.hub-menu-btn:active { background: rgba(255,255,255,0.08); }
.hub-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FAFAF7;
  border-radius: 2px;
}
.hub-menu-spacer {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: block;
}

/* ─── Drawer de navegación ─── */
.nav-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}
.nav-drawer-root.nav-drawer-open { pointer-events: auto; }
.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-drawer-open .nav-drawer-backdrop { opacity: 1; }
.nav-drawer {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: min(86vw, 340px);
  background: #0A0A0A;
  color: #FAFAF7;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 8px 0 32px rgba(0,0,0,0.4);
}
.nav-drawer-open .nav-drawer { transform: translateX(0); }
.nav-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(250,250,247,0.08);
}
.nav-drawer-logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  display: block;
}
.nav-drawer-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #FAFAF7;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-drawer-close:active { background: rgba(255,255,255,0.08); }
.nav-drawer-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
}
.nav-drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  text-decoration: none;
  color: #FAFAF7;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-bottom: 1px solid rgba(250,250,247,0.06);
  transition: background 0.15s ease;
  min-height: 56px;
}
.nav-drawer-item:active { background: rgba(255,255,255,0.06); }
.nav-drawer-arrow {
  color: rgba(250,250,247,0.4);
  font-size: 20px;
  transition: transform 0.18s ease, color 0.18s ease;
}
.nav-drawer-item:active .nav-drawer-arrow {
  color: rgba(250,250,247,0.85);
  transform: translateX(2px);
}
.nav-drawer-foot {
  padding: 16px 20px 22px;
  border-top: 1px solid rgba(250,250,247,0.08);
}
.nav-drawer-rs {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(250,250,247,0.85);
  letter-spacing: 0.02em;
}
.nav-drawer-nit {
  margin: 2px 0 0;
  font-size: 14px;
  color: rgba(250,250,247,0.5);
  letter-spacing: 0.02em;
}
.hub-brand-meta { display: flex; flex-direction: column; line-height: 1.15; }
.hub-brand-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: #FAFAF7;
  margin: 0;
  letter-spacing: 0.02em;
}
.hub-brand-line {
  font-size: 15px;
  color: rgba(250, 250, 247, 0.6);
  margin: 2px 0 4px;
  letter-spacing: 0.02em;
}
.hub-brand-trust {
  font-size: 14px;
  color: rgba(250, 250, 247, 0.75);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 69, 0.25);
}

/* ─── Sección de evento ─── */
.evento-section {
  margin: 8px 0 28px;
}
.evento-titulo {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 10px;
  padding-left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.evento-titulo::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(122, 31, 31, 0.18);
  animation: evento-pulse 1.8s infinite;
}
@keyframes evento-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(122, 31, 31, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(122, 31, 31, 0.05); }
}

/* ─── Banner sorteo activo ─── */
.sorteo-banner {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0A0A0A 0%, #1F1F1F 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 0 0 8px;
  box-shadow: var(--shadow-md);
  color: var(--cream-50);
  position: relative;
  transition: transform .15s ease, box-shadow .2s ease;
}
.sorteo-banner:active { transform: scale(0.99); }
.sb-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, #0A0A0A, #2A2A2A);
  overflow: hidden;
}
.sb-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.sb-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
  background: var(--gold);
  color: var(--green-900);
  padding: 5px 10px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.sb-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-900);
  animation: sb-pulse 1.6s infinite;
}
@keyframes sb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.sb-body {
  flex: 1;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sb-edicion {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.7);
  margin: 0;
  font-weight: 600;
}
.sb-titulo {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 0 0 14px;
  line-height: 1;
}
.sb-premios {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.sb-premios li {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.25;
  padding-left: 10px;
  border-left: 2px solid var(--gold);
}
.sb-premio-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(250, 250, 247, 0.6);
  margin-bottom: 2px;
}
.sb-premio-val {
  font-size: 16px;
  font-weight: 600;
  color: var(--cream-50);
  letter-spacing: -0.01em;
}
.sb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--gold);
  color: var(--green-900);
  padding: 12px 18px;
  border-radius: 100px;
  margin-top: 4px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.sb-cta-text { letter-spacing: -0.01em; }
.sb-fecha {
  font-size: 14px;
  margin: 12px 0 0;
  color: rgba(247, 243, 234, 0.7);
  letter-spacing: 0.02em;
  text-align: center;
}
.sb-arrow {
  font-size: 20px;
  color: var(--green-900);
  font-weight: 700;
}

/* ─── Saludo ─── */
.hub-saludo {
  margin-bottom: 18px;
  padding: 0 4px;
}
.hs-greet {
  font-size: 15px;
  color: var(--ink-mute);
  margin: 0 0 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.hs-pregunta {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--green-900);
  margin: 0 0 6px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hs-sub {
  font-size: 16px;
  color: var(--ink-mute);
  margin: 0;
}

/* ─── Grid de tarjetas ─── */
.hub-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Tarjeta base */
.tarjeta {
  position: relative;
  background: white;
  border-radius: var(--r-md);
  padding: 22px 16px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  border: 1px solid rgba(15, 61, 46, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s;
  min-height: 168px;
  overflow: hidden;
}
.tarjeta:active {
  transform: scale(0.97);
}
.tarjeta:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 61, 46, 0.16);
}
.tarjeta-icono {
  width: 64px; height: 64px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
/* Ícono 3D: sin fondo de color, imagen libre con sombra sutil */
.tarjeta-icono.tarjeta-icono-3d {
  width: 84px; height: 84px;
  background: transparent !important;
  border-radius: 0;
  overflow: visible;
}
.tarjeta-icono-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(10, 10, 10, 0.18));
}
.tarjeta-titulo {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--green-900);
  margin: 0 0 4px;
  line-height: 1.15;
}
.tarjeta-subtitulo {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.35;
}
.tarjeta-texto { display: flex; flex-direction: column; align-items: center; }
.tarjeta-arrow {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--cream-100);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-size: 16px;
  font-weight: 600;
}
.tarjeta-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--burgundy);
  color: var(--cream-50);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 100px;
}

.tarjeta-destacada {
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 22px 20px;
  min-height: 0;
  background: linear-gradient(135deg, #0A0A0A 0%, #1F1F1F 100%);
  border: none;
  color: var(--cream-50);
  box-shadow: var(--shadow-md);
}
.tarjeta-destacada .tarjeta-icono {
  width: 76px; height: 76px;
  background: rgba(255, 255, 255, 0.18);
}
.tarjeta-destacada .tarjeta-texto {
  flex: 1;
  align-items: flex-start;
}
.tarjeta-destacada .tarjeta-titulo {
  font-size: 26px;
  color: var(--cream-50);
  margin-bottom: 4px;
}
.tarjeta-destacada .tarjeta-subtitulo {
  font-size: 13.5px;
  color: rgba(247, 243, 234, 0.85);
}
.tarjeta-destacada .tarjeta-arrow {
  position: static;
  transform: none;
  background: var(--gold);
  color: var(--green-900);
  width: 36px; height: 36px;
  font-size: 20px;
  flex-shrink: 0;
}
.tarjeta-destacada .tarjeta-badge {
  background: var(--gold);
  color: var(--green-900);
}

/* Variantes de color para tarjetas — íconos */
.tarjeta-burgundy .tarjeta-icono   { background: var(--c-burgundy); }
.tarjeta-green .tarjeta-icono      { background: var(--c-green); }
.tarjeta-blue .tarjeta-icono       { background: var(--c-blue); }
.tarjeta-gold .tarjeta-icono       { background: var(--c-gold); }
.tarjeta-rose .tarjeta-icono       { background: var(--c-rose); }
.tarjeta-teal .tarjeta-icono       { background: var(--c-teal); }
.tarjeta-amber .tarjeta-icono      { background: var(--c-amber); }
.tarjeta-whatsapp .tarjeta-icono   { background: var(--c-whatsapp); }
.tarjeta-slate .tarjeta-icono      { background: var(--c-slate); }

/* ─── Aviso seguro ─── */
.hub-aviso {
  margin: 28px 0 24px;
  background: var(--cream-100);
  border: 1px solid rgba(15, 61, 46, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hub-aviso-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--cream-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hub-aviso-icon.hub-aviso-icon-3d {
  width: 56px; height: 56px;
  background: transparent;
  border-radius: 0;
}
.hub-aviso-icon.hub-aviso-icon-3d img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(10, 10, 10, 0.18));
}
.hub-aviso-t {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--green-900);
  margin: 0 0 4px;
  line-height: 1.2;
}
.hub-aviso-d {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ─── Footer ─── */
.hub-footer {
  margin-top: 28px;
  padding: 28px 18px 24px;
  background: var(--green-900);
  color: rgba(247, 243, 234, 0.85);
  border-radius: var(--r-lg);
  text-align: center;
}
.hf-logo img {
  height: 60px;
  width: auto;
  margin: 0 auto 12px;
}
.hf-info { margin-bottom: 18px; }
.hf-nombre {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--cream-50);
  margin: 0 0 4px;
}
.hf-line {
  font-size: 15px;
  color: rgba(247, 243, 234, 0.65);
  margin: 0 0 2px;
}
.hf-redes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.hf-redes a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-100);
  transition: background .2s;
}
.hf-redes a:hover {
  background: var(--gold);
  color: var(--green-900);
  border-color: var(--gold);
}
.hf-bend {
  font-family: var(--serif);
  font-style: normal;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(250, 250, 247, 0.85);
  margin: 14px 0 8px;
}
.hf-legal {
  font-size: 13px;
  color: rgba(247, 243, 234, 0.55);
  margin: 0 0 4px;
  letter-spacing: 0.04em;
}
.hf-copy {
  font-size: 13px;
  color: rgba(247, 243, 234, 0.4);
  margin: 0;
}

/* ─── Floating WhatsApp ─── */
.float-wa-hub {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--whatsapp);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 90;
  animation: float-wa-pulse 2.4s ease-in-out infinite;
}
@keyframes float-wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 4px 12px rgba(0,0,0,.2), 0 0 0 0 rgba(37,211,102,.5); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 4px 12px rgba(0,0,0,.2), 0 0 0 14px rgba(37,211,102,0); }
}

/* ─── Tablet / Desktop adaptativo ─── */
@media (min-width: 600px) {
  .hub { max-width: 520px; padding: 32px 24px 120px; }
  .hub-brand img { height: 48px; width: auto; max-width: 170px; }
  .hub-brand-name { font-size: 32px; }
  .hs-pregunta { font-size: 36px; }
}

@media (min-width: 900px) {
  body { background: linear-gradient(180deg, var(--cream-50) 0%, var(--cream-100) 100%); }
  .hub {
    max-width: 720px;
    padding: 48px 32px 140px;
  }
  .hub-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
  }
  .tarjeta { min-height: 170px; }
  .tarjeta-titulo { font-size: 22px; }
}

@media (min-width: 1200px) {
  .hub {
    max-width: 1080px;
  }
  .hub-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .hub { padding: 16px 14px 96px; }
  .tarjeta { padding: 16px 14px; min-height: 140px; }
  .tarjeta-titulo { font-size: 19px; }
  .tarjeta-subtitulo { font-size: 11.5px; }
  .tarjeta-icono { width: 56px; height: 56px; }
  .tarjeta-icono.tarjeta-icono-3d { width: 76px; height: 76px; }
  .sb-titulo { font-size: 26px; }
}
