/* agata.css — Template AGATA (familia Gemas, sobre motor.css).
   Piedra cálida: gris arena, cabecera apilada en mayúsculas, ranking numerado.
   La cabecera es una LOSA oscura con las vetas del ágata debajo (capas finas
   de marrón, ámbar y crema): con la cabecera apilada en claro era hermana de
   jade y turquesa (mismo nombre gigante sobre fondo pálido), y el ranking a
   la izquierda la hacía gemela de rubí. Acá el ranking va a la izquierda de
   la foto, que es la que manda desde la derecha. */
:root { --fondo: #e8e4dd; --papel: #f4f1ec; --tinta: #23201c; --tenue: #6f675d; --linea: #d3ccc1; --acento: var(--m1, #8a5a2b); --cab-fondo: #2b2520; --cab-tinta: #efe6d8;
  --pie-fondo: #23201c; --pie-tinta: #cfc7bb; --radio: 4px; --f-txt: 'Source Serif 4', Georgia, serif; --f-meta: 'Inter', system-ui, sans-serif; --peso-tit: 800; --mayus-tit: none; --track-tit: -0.02em; --hero-tam: 44px; --img-ratio: 5 / 4;
  --vetas: linear-gradient(180deg, #3b2a1d 0 2px, #a8743f 2px 4px, #e7d3b3 4px 5px, #7d5233 5px 8px, #c99a62 8px 9px, #efe2cb 9px 11px, #5a3a22 11px 14px); }
.t-agata .cab-apilada { border-bottom: 0; }
.t-agata .cab-apilada::after { content: ''; display: block; height: 14px; background: var(--vetas); }
.t-agata .cab-apilada .fila1, .t-agata .cab-apilada .mt-tag, .t-agata .cab-apilada .mt-fecha { color: #bfb3a2; }
.t-agata .mt-marca.enorme { text-transform: uppercase; font-weight: 900; letter-spacing: -0.05em; color: #efe2cb; }
.t-agata .cab-apilada .navfila { border-top-color: rgba(239,230,216,.16); }
.t-agata .cab-apilada .mt-nav a { border-radius: 4px; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; border-color: rgba(239,230,216,.22); color: #efe6d8; }
.t-agata .cab-apilada .mt-nav a:not(.activo):not(:hover) { background: rgba(255,255,255,.05); }
.t-agata .cab-apilada .mt-ham { color: #efe6d8; }
.t-agata .cab-apilada .mt-buscar { border-color: rgba(239,230,216,.22); }
.t-agata .mt-chip { font-family: var(--f-meta); }
.t-agata .ap-ranking { grid-template-columns: 1fr 1.6fr; }
.t-agata .ap-ranking .hero { order: 2; }
.t-agata .ap-ranking .secs .mt-num { font-size: 72px; color: transparent; -webkit-text-stroke: 2px var(--tinta); }
.t-agata .ap-ranking .secs li { border-bottom: 1px solid var(--tinta); }
.t-agata .ap-ranking .secs li:first-child { border-top: 4px solid var(--tinta); }
.t-agata .mt-secc-h { border-bottom: 0; background: var(--tinta); color: var(--fondo); padding: 10px 14px; border-radius: 4px; }
.t-agata .mt-secc-h h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.t-agata .mt-secc-h .subs a { color: #cfc7bb; }
.t-agata .mt-secc-h .ver { color: #fff; }
/* la grande de la revista mide lo que las dos chicas apiladas: la foto
   crece para llenar ese alto en vez de dejar un hueco entre bajada y firma */
.t-agata .lote-revista .grande .mt-img { aspect-ratio: auto; flex: 1 1 auto; min-height: 260px; }
.t-agata .lote-revista .grande .mt-t { flex: none; }
.t-agata .mt-panel-h { border-bottom-width: 1px; }
.t-agata .mt-cal { background: var(--papel); }
.t-agata .mt-boletin { background: var(--tinta); color: #efe6d8; }
.t-agata .mt-boletin button { background: var(--acento); color: var(--acento-tx); }
.t-agata .mt-pie::before { content: ''; display: block; height: 14px; background: var(--vetas); }
@media (max-width: 900px) {
  .t-agata .ap-ranking { grid-template-columns: 1fr; }
  .t-agata .ap-ranking .hero { order: 0; }
  .t-agata .lote-revista .grande .mt-img { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}

/* tarjeta entera clickeable (stretched-link): el contenedor .mt-c está
   posicionado en motor.css y el a del título se estira sobre él. Va acá y
   no sólo en la base porque HU-001 lo verifica en el CSS de cada template. */
.t-agata .mt-c { position: relative; }
.t-agata .mt-c h1 a::after, .t-agata .mt-c h2 a::after, .t-agata .mt-c h3 a::after, .t-agata .mt-c h4 a::after { content: ""; position: absolute; inset: 0; }
