/*
  Juegos Suramericanos — tarjeta digital BLC
  Paleta y tipografía tomadas del mediakit oficial de La Capital para la cobertura de los
  XIII Juegos Suramericanos Santa Fe 2026 (https://www.lacapital.com.ar/mediakit-suramericanos2026).
  La estructura de pantallas (shell mobile, forms, cards) está inspirada en el kit
  "App HTML" (Plantilla mobile HTML), reimplementada acá con clases propias.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.s26 {
  --s26-navy: #00182F;
  --s26-txt: #0D1B2A;
  --s26-mut: #5C7089;
  --s26-mut2: #8296AC;
  --s26-linea: #E3E9F0;
  --s26-fondo: #F5F7FA;
  --s26-grad: linear-gradient(100deg, #4C34DD 0%, #FF1A54 55%, #FF6900 100%);

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--s26-txt);
  background: var(--s26-fondo);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.s26 *, .s26 *::before, .s26 *::after { box-sizing: border-box; }
.s26 a { text-decoration: none; color: inherit; }
.s26 ul { list-style: none; margin: 0; padding: 0; }

/* ---- shell (pantalla mobile centrada, como una app) ---- */
.s26-shell { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #fff;
  display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0,24,47,.08); position: relative; }

/* ---- header ---- */
.s26-header { position: relative; overflow: hidden; padding: 16px; color: #fff;
  background: radial-gradient(120% 160% at 100% 0%, rgba(255,105,0,.26) 0%, transparent 60%),
              linear-gradient(180deg, #062B4F, #00182F); }
.s26-header::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--s26-grad); }
.s26-header-logos { display: flex; align-items: center; justify-content: flex-start; gap: 16px; }
.s26-header-logos img.logo-juegos { height: 46px; width: auto; object-fit: contain; }
.s26-header-logos img.logo-lc { height: 26px; width: auto; object-fit: contain; }
.s26-header h1 { margin: 16px 0 2px; font-size: 22px; font-weight: 900; letter-spacing: -0.6px; }
.s26-header p { margin: 0; font-size: 13px; color: rgba(255,255,255,.75); }

/* ---- menú simple (checkbox-driven, sin dependencias) ---- */
.s26-menu-toggle { display: none; }
.s26-menu-btn { position: absolute; top: 22px; right: 16px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 20; }
.s26-menu { position: fixed; inset: 0; background: var(--s26-navy); color: #fff; z-index: 30;
  transform: translateX(100%); transition: transform .25s ease; padding: 24px; }
.s26-menu-toggle:checked ~ .s26-menu { transform: translateX(0); }
.s26-menu-close { display: flex; justify-content: flex-end; margin-bottom: 24px; cursor: pointer; font-size: 22px; }
.s26-menu ul li a { display: flex; align-items: center; gap: 12px; padding: 14px 4px;
  font-weight: 700; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.1); }

/* ---- contenido ---- */
.s26-content { flex: 1; padding: 22px 16px 96px; }

/* ---- footer nav (adaptado de .djb_footer_wrap del kit "App HTML") ---- */
.s26-footer-nav { display: flex; width: 100%; max-width: 480px; position: fixed; left: 50%;
  bottom: 0; transform: translateX(-50%); z-index: 15; justify-content: space-between;
  padding: 10px 16px; align-items: center; background: #fff;
  border-top: 1px solid var(--s26-linea); box-shadow: 0 -8px 20px rgba(0,24,47,.08); }
.s26-footer-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 64px; padding: 6px 0; border-radius: 12px; color: var(--s26-mut2); }
.s26-footer-nav a span { font-size: 10.5px; font-weight: 700; }
.s26-footer-nav a:hover, .s26-footer-nav a.active { color: var(--s26-navy); background: var(--s26-fondo); }
@media (max-width: 480px) {
  .s26-footer-nav { border-radius: 0; }
}
.s26-intro h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; letter-spacing: -0.6px; }
.s26-intro p { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--s26-mut); }
.s26-label-eyebrow { display: block; margin: 0 0 6px; font-size: 11.5px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--s26-mut); }

/* ---- cards ---- */
.s26-card { background: #fff; border: 1px solid var(--s26-linea); border-radius: 14px; padding: 18px; }
.s26-nota { padding: 14px 16px; border-radius: 14px; background: var(--s26-fondo);
  border-left: 4px solid #FF6900; font-size: 13px; color: var(--s26-mut); line-height: 1.6; }
.s26-nota b { color: var(--s26-txt); }

/* ---- formularios ---- */
.s26-form { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.s26-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 380px) { .s26-row-2 { grid-template-columns: 1fr; } }
.s26-field { position: relative; }
.s26-field label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; color: var(--s26-txt); }
.s26-field input { width: 100%; padding: 13px 16px; border: 1px solid var(--s26-linea);
  border-radius: 12px; font: inherit; font-size: 14.5px; color: var(--s26-txt); background: var(--s26-fondo); }
.s26-field input:focus { outline: none; border-color: #4C34DD; background: #fff; }
.s26-field .errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: #FF1A54; font-size: 12px; font-weight: 600; }
.s26-field .ayuda { display: block; margin-top: 5px; font-size: 11.5px; color: var(--s26-mut2); }

/* Google no ofrece un tamaño de reCAPTCHA más bajo en alto (el "compact" es más angosto
   pero más alto que el normal), así que lo achicamos con transform: scale — el área de
   click escala junto con el render, sigue siendo funcional. El margin-bottom negativo
   recupera el espacio en blanco que deja la escala (el layout no se reduce solo). */
.g-recaptcha { transform: scale(0.88); transform-origin: 0 0; margin-bottom: -10px; }

.s26-check { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px;
  color: var(--s26-mut); line-height: 1.5; }
.s26-check input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: #4C34DD; }
.s26-check a { color: var(--s26-navy); font-weight: 700; }

/* ---- botones ---- */
.s26-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px; border-radius: 99px; font: inherit; font-size: 14.5px;
  font-weight: 800; border: 0; cursor: pointer; transition: transform .15s ease; }
.s26-btn.primario { color: #fff; background: var(--s26-grad); box-shadow: 0 6px 18px rgba(255,26,84,.28); }
.s26-btn.primario:hover { transform: translateY(-1px); }
.s26-btn.secundario { background: var(--s26-fondo); color: var(--s26-txt); border: 1px solid var(--s26-linea); }
.s26-btn:disabled { opacity: .6; cursor: default; transform: none; }

.s26-links { margin-top: 16px; text-align: center; font-size: 13px; color: var(--s26-mut); }
.s26-links a { font-weight: 800; color: var(--s26-navy); }

.s26-alert { padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.s26-alert.error { background: rgba(255,26,84,.1); color: #C40F42; }
.s26-alert.info { background: rgba(76,52,221,.1); color: #4C34DD; }

/* ---- tu tarjeta digital ---- */
.s26-tarjeta { position: relative; width: calc(100% + 24px); margin: 0 -12px;
  border-radius: 14px; overflow: hidden; color: #fff; }
.s26-tarjeta img.fondo { display: block; width: 100%; height: auto; }
/* Girados 90° antihorario para acompañar el diseño de la imagen de fondo (también rotada),
   centrados en ese punto del lado derecho de la tarjeta vía translate(-50%,-50%) + rotate: así
   el punto (top, left) queda siempre en el centro visual del bloque, rote lo que rote. */
.s26-tarjeta .datos { position: absolute; top: 68%; left: 83%;
  transform: translate(-50%, -50%) rotate(-90deg);
  display: flex; flex-direction: column; align-items: flex-start; }
.s26-tarjeta .nrotarben { font-size: 22px; font-weight: 700; letter-spacing: 2px; white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.s26-tarjeta .nombre { font-size: 19px; font-weight: 800; letter-spacing: .3px; margin-top: 8px; white-space: nowrap; }
.s26-tarjeta .vigencia { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 6px; white-space: nowrap; }
.s26-tarjeta-vacia { display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 30px; font-size: 13px; color: var(--s26-mut); }

/* ---- listado de comercios (grilla de fotos, al estilo beneficios.lacapital.com.ar) ---- */
.s26-comercios { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.s26-comercio { display: block; border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--s26-linea); box-shadow: 0 2px 10px rgba(0,24,47,.05); }
.s26-comercio .foto { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3;
  background: var(--s26-fondo); overflow: hidden; }
.s26-comercio .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s26-comercio .foto-vacia { display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; background: var(--s26-grad); color: #fff; font-size: 28px;
  font-weight: 900; text-transform: uppercase; }
.s26-comercio .badge { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px);
  padding: 4px 9px; border-radius: 99px; background: var(--s26-navy); color: #fff; font-size: 10.5px;
  font-weight: 800; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s26-comercio .info { display: block; padding: 10px 12px 12px; }
.s26-comercio .info .nombre { display: block; font-size: 13px; font-weight: 800; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s26-comercio .info .detalle { display: block; margin-top: 2px; font-size: 11.5px; color: var(--s26-mut);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s26-vacio { text-align: center; padding: 40px 20px; color: var(--s26-mut); font-size: 13.5px; }

@media (max-width: 480px) {
  .s26-shell { box-shadow: none; }
}

/* ---- popup de términos y condiciones ---- */
.s26-modal-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end;
  justify-content: center; background: rgba(0,24,47,.55); opacity: 0; pointer-events: none;
  transition: opacity .2s ease; }
.s26-modal-overlay.abierto { opacity: 1; pointer-events: auto; }
.s26-modal { width: 100%; max-width: 480px; max-height: 84vh; background: #fff; border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column; overflow: hidden; transform: translateY(16px);
  transition: transform .2s ease; }
.s26-modal-overlay.abierto .s26-modal { transform: translateY(0); }
@media (min-width: 540px) {
  .s26-modal-overlay { align-items: center; }
  .s26-modal { border-radius: 18px; max-height: 80vh; }
}
.s26-modal-header { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--s26-linea); flex-shrink: 0; }
.s26-modal-header h3 { margin: 0; font-size: 16px; font-weight: 900; letter-spacing: -0.3px; }
.s26-modal-close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--s26-mut);
  cursor: pointer; padding: 4px 6px; }
.s26-modal-body { padding: 6px 18px 18px; overflow-y: auto; font-size: 13px; line-height: 1.6; color: var(--s26-mut); }
.s26-modal-body h4 { margin: 12px 0 4px; font-size: 14.5px; font-weight: 900; color: var(--s26-txt); }
.s26-modal-body h5 { margin: 16px 0 4px; font-size: 13.5px; font-weight: 800; color: var(--s26-txt); }
.s26-modal-body p { margin: 0 0 8px; }
.s26-modal-footer { flex-shrink: 0; padding: 14px 18px; border-top: 1px solid var(--s26-linea);
  display: flex; flex-direction: column; gap: 12px; }
.s26-modal-footer .s26-check input:disabled { opacity: .4; }
.s26-modal-hint { margin: -4px 0 0; font-size: 11.5px; color: var(--s26-mut2); text-align: center; }

/* ---- pantallas de poca altura (celulares chicos): compactar header + form
   para que el registro (con sus 7 campos + reCAPTCHA + checkbox) entre lo más
   posible en el primer scroll ---- */
@media (max-height: 760px) {
  .s26-header { padding: 12px; }
  .s26-header-logos img.logo-juegos { height: 36px; }
  .s26-header-logos img.logo-lc { height: 20px; }
  .s26-header h1 { margin: 10px 0 2px; font-size: 18px; }
  .s26-header p { font-size: 12px; }

  .s26-content { padding: 14px 16px 96px; }
  .s26-intro h2 { margin: 0 0 4px; font-size: 18px; }
  .s26-intro p { margin: 0 0 12px; font-size: 13px; line-height: 1.45; }

  .s26-form { gap: 10px; margin: 12px 0; }
  .s26-field label { margin-bottom: 4px; font-size: 12px; }
  .s26-field input { padding: 10px 14px; font-size: 14px; }
  .s26-field .ayuda { margin-top: 3px; font-size: 11px; }
  .g-recaptcha { transform: scale(0.8); transform-origin: 0 0; margin-bottom: -18px; }

  .s26-check { font-size: 11.5px; }
  .s26-btn { padding: 12px 20px; }
}
