@import url('cabecera.css');

/* === PORTADA ===
 * Estetica de cartel: rojo, negro y blanco, titulares en Anton y el texto en
 * Atkinson Hyperlegible. Solo la usa index.php; la cabecera, el pie y lo comun
 * viven en cabecera.css. No carga estilos.css.
 */


body.sk-portada {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: var(--texto-publico);
  line-height: 1.6;
  color: var(--sk-tinta);
  background: var(--fondo);
}
.sk-portada a { color: inherit; }
.sk-portada img { max-width: 100%; }

/* === APERTURA (campaña) === */
.sk-apertura { background: var(--rojo); color: #fff; position: relative; overflow: hidden; }
.sk-apertura::before {
  content: ""; position: absolute; inset: auto -10% -38% 38%; height: 70%;
  background: var(--negro); transform: rotate(-8deg); transform-origin: left;
}
.sk-apertura .sk-ancho { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; padding-block: 64px 72px; }
.sk-apertura .sk-antetitulo { background: #fff; color: var(--rojo); padding: 4px 10px; }
.sk-apertura h1 {
  font-family: var(--fuente-titular); font-weight: 400; text-transform: uppercase;
  font-size: clamp(52px, 7.4vw, 104px); line-height: .95; letter-spacing: .005em; margin: 18px 0 28px;
}
.sk-apertura h1 em { display: inline-block; font-style: normal; color: var(--negro); background: #fff; padding: .06em .14em .02em; margin-top: .14em; line-height: 1; }
.sk-apertura p { font-size: 19px; max-width: 34em; margin: 0 0 28px; color: #fff3f3; }
.sk-acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.sk-cartel { position: relative; justify-self: center; margin: 0; width: 100%; max-width: 330px; transform: rotate(2.5deg); border: 8px solid #fff; background: #fff; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.sk-cartel img { display: block; width: 100%; height: auto; }
.sk-cinta { position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; background: rgba(255, 244, 214, .8); transform: translateX(-50%) rotate(-4deg); }

/* === CIFRAS === */
.sk-cifras { background: var(--negro); color: #fff; }
.sk-cifras .sk-ancho { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-block: 36px; }
.sk-cifra { border-left: 3px solid var(--rojo); padding-left: 18px; }
.sk-cifra b { display: block; font-family: var(--fuente-titular); font-weight: 400; font-size: 64px; line-height: 1; }
.sk-cifra span { display: block; margin-top: 8px; font-size: 16px; color: #d9d2d2; max-width: 22em; }

/* === NOTICIAS === */
.sk-noticias { background: var(--sk-papel); padding-block: 64px; }
.sk-cabecera-seccion { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 10px; border-bottom: 3px solid var(--sk-tinta); }
.sk-cabecera-seccion h2 { font-family: var(--fuente-titular); font-weight: 400; text-transform: uppercase; font-size: 40px; line-height: 1; margin: 0; letter-spacing: .01em; }
.sk-cabecera-seccion a { font-weight: 700; color: var(--rojo); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

.sk-rejilla { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; }
.sk-nota { display: grid; gap: 10px; align-content: start; text-decoration: none; }
.sk-nota .sk-foto { overflow: hidden; background: #e8e1dc; aspect-ratio: 16 / 9; }
.sk-nota .sk-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sk-nota:hover .sk-foto img { transform: scale(1.03); }
.sk-nota h3 { margin: 0; font-size: 21px; line-height: 1.25; text-wrap: balance; overflow-wrap: anywhere; }
.sk-nota:hover h3 { text-decoration: underline; text-decoration-color: var(--rojo); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sk-nota p { margin: 0; color: #3b3636; }
.sk-meta { font-size: 14px; color: var(--sk-gris); }
.sk-principal { grid-column: span 4; }
.sk-principal .sk-foto { aspect-ratio: 3 / 1; }
.sk-principal h3 { font-size: 32px; line-height: 1.15; }
.sk-lateral { grid-column: span 2; display: grid; gap: 28px; align-content: start; }
.sk-lateral .sk-foto { aspect-ratio: 4 / 3; }
.sk-lateral .sk-foto img { object-position: top; }
.sk-sin-foto { background: var(--rojo); color: #fff; padding: 22px; }
.sk-sin-foto .sk-antetitulo, .sk-sin-foto h3 { color: #fff; }
.sk-sin-foto .sk-meta { color: #ffdcdc; }
.sk-sin-foto:hover h3 { text-decoration-color: #fff; }
.sk-tercio { grid-column: span 2; }
.sk-mitad { grid-column: span 3; }
.sk-vacio { color: var(--sk-gris); }

/* === AFILIACIÓN === */
.sk-afiliacion { background: #fff; padding-block: 72px; }
.sk-afiliacion .sk-ancho { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; }
.sk-afiliacion h2 { font-family: var(--fuente-titular); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 6vw, 84px); line-height: .95; margin: 0; }
.sk-afiliacion h2 span { color: var(--rojo); }
.sk-afiliacion p { margin: 0 0 20px; font-size: 18px; color: #3b3636; }

/* === MÓVIL Y TABLETA === */
@media (max-width: 900px) {
  .sk-apertura .sk-ancho { grid-template-columns: 1fr; gap: 36px; padding-block: 40px 56px; }
  .sk-afiliacion .sk-ancho { grid-template-columns: 1fr; gap: 28px; }
  .sk-apertura::before { inset: auto -20% -20% -10%; height: 32%; transform: rotate(-6deg); }
  .sk-cartel { max-width: 250px; }
  .sk-cifra b { font-size: 52px; }
  .sk-rejilla { grid-template-columns: 1fr; }
  .sk-principal, .sk-lateral, .sk-tercio, .sk-mitad { grid-column: auto; }
  .sk-principal h3 { font-size: 26px; }
  .sk-principal .sk-foto { aspect-ratio: 16 / 9; }
  .sk-cabecera-seccion h2 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .sk-portada *, .sk-portada *::before { transition: none !important; }
}

/* Titulo solo para lectores de pantalla (cuando no hay campaña) */
.sk-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sk-completa { grid-column: 1 / -1; }

/* Resto de noticias en lista compacta */
.sk-mas { margin-top: 56px; }
.sk-mas h2 { font-family: var(--fuente-titular); font-weight: 400; text-transform: uppercase; font-size: 28px; margin: 0 0 8px; }
.sk-mas ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.sk-mas li { break-inside: avoid; display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--sk-linea); }
.sk-mas li a { font-weight: 600; text-decoration: none; line-height: 1.35; }
.sk-mas li a:hover { color: var(--rojo); text-decoration: underline; }
@media (max-width: 900px) {
  .sk-mas ul { columns: 1; }
}
