/* tarjeta.css — la tarjeta digital de Alemyr. Calcada de ~/cala/internal/web/estatico/tarjeta.css (el modelo que
 * pidió Isaac), con la paleta de su plan: azul profundo de fondo, amarillo como acento, y la banda BARS arriba.
 * `[hidden]` va primero y con !important: cualquier regla con `display` lo pisa en silencio. */
[hidden] { display: none !important; }

@font-face { font-family: "Nunito"; src: url(/estatico/fuentes/nunito-latin.woff2) format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/estatico/fuentes/nunito-latin-ext.woff2) format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --noche: #153651;
  --noche-hondo: #0E2639;
  --amarillo: #F3BF4B;
  --amarillo-claro: #FBD17A;
  --naranja: #FF651F;
  --verde: #35A9B7;
  --blanco: #ffffff;
  --tenue: #C3CFDC;
  --cuadro: rgba(255, 255, 255, .07);
  --borde: rgba(245, 184, 61, .45);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
.tj-fondo {
  min-height: 100vh;
  background: radial-gradient(120% 80% at 50% 0%, #2B4F7C 0%, var(--noche-hondo) 60%, #0B1828 100%);
  color: var(--blanco);
  font-family: "Nunito", system-ui, sans-serif;
  padding: 16px;
  display: flex; justify-content: center; align-items: flex-start;
}

.tj {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--borde);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.tj__bars { height: 6px; background: linear-gradient(90deg, #FF651F 0 25%, #F3BF4B 25% 50%, #35A9B7 50% 75%, #6E8FB8 75% 100%); }

.tj__cabeza { display: flex; gap: 14px; padding: 16px 16px 6px; align-items: stretch; }
.tj__foto {
  width: 44%; max-width: 180px; height: auto; aspect-ratio: 1;
  object-fit: cover; border-radius: 16px; border: 2px solid var(--amarillo);
  flex-shrink: 0; align-self: flex-start; /* sin esto la columna de texto, más alta, la estira y recorta el sello */
}
.tj__quien { display: flex; flex-direction: column; min-width: 0; }
.tj__nombre { font-weight: 900; font-size: 1.6rem; line-height: 1.1; margin: 2px 0 6px; }
.tj__marca {
  margin: 0 0 auto; color: var(--amarillo); font-size: .66rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
}
.tj__cargo {
  margin: 12px 0 2px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .86rem; font-weight: 800;
}
.tj__area, .tj__ciudad { margin: 2px 0; color: var(--tenue); font-size: .78rem; line-height: 1.35; }
.tj__ciudad { display: flex; align-items: center; gap: 4px; }
.tj__ciudad .ti { width: 13px; height: 13px; }
.tj__frase { margin: 6px 16px 0; text-align: center; font-weight: 800; font-size: 1.05rem; color: var(--amarillo-claro); }

.tj__principal { padding: 10px 16px 4px; display: grid; gap: 10px; }
.tj-boton {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  min-height: 54px; border-radius: 14px; text-decoration: none;
  font-weight: 800; font-size: 1.04rem;
}
.tj-boton--lleno {
  background: linear-gradient(90deg, var(--amarillo-claro), var(--amarillo));
  color: #2b1f05; box-shadow: 0 10px 24px -12px rgba(245,184,61,.8);
}
.tj-boton--borde { border: 1.5px solid var(--amarillo); color: var(--amarillo-claro); }
.tj-boton:focus-visible, .tj-cuadro:focus-visible, .tj-chico:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tj__pista { margin: 2px 0 6px; text-align: center; color: var(--tenue); font-size: .76rem; font-style: italic; }

.tj__rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px 16px; }
.tj-cuadro {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px; border-radius: 14px; background: var(--cuadro);
  color: var(--blanco); text-decoration: none; text-align: center; min-width: 0;
}
/* Con número impar de cuadros, el último ocupa la fila entera (la plantilla no pinta los ausentes). */
.tj-cuadro:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tj-cuadro .ti { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: rgba(245,184,61,.22); color: var(--amarillo-claro); }
.tj-cuadro__rotulo { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tenue); }
.tj-cuadro__dato { font-size: .86rem; font-weight: 700; overflow-wrap: anywhere; }

.tj__compartir { border-top: 1px solid rgba(255,255,255,.1); padding: 16px; }
.tj__rotulo { margin: 0 0 12px; text-align: center; color: var(--amarillo); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tj__dos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tj-chico {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 10px; border-radius: 10px; border: 0;
  background: var(--cuadro); color: var(--blanco); font: inherit;
  font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.tj-chico .ti { width: 16px; height: 16px; }
.tj-chico--marca { background: rgba(245,184,61,.2); color: var(--amarillo-claro); }

.tj__qr { margin-top: 8px; }
.tj__qr summary { list-style: none; }
.tj__qr summary::-webkit-details-marker { display: none; }
.tj__qr img { display: block; width: 100%; max-width: 320px; height: auto; margin: 14px auto 0; border-radius: 12px; background: #fff; }

.tj__pie {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 12px; border-top: 1px solid rgba(255,255,255,.1); color: var(--tenue); font-size: .76rem;
}
.tj__pie img { background: #fff; border-radius: 6px; padding: 2px 4px; height: 36px; width: auto; }

@media (max-width: 360px) {
  .tj__cabeza { flex-direction: column; align-items: center; text-align: center; }
  .tj__foto { width: 70%; }
  .tj__ciudad { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
