/* ================================
   VARIABLES Y RESET BÁSICO
================================ */

:root {
    --grid-width: 1420px;
    --gutter: 10px;

    --azul-header: #093C8B;
    --azul-prusiano: #003153;
    --fondo-pagina: #f5f7fa;
    --fondo-destacado: #6495ed;   /* un poco más neutro y militar */
	--fondo-newsfeed: #E2EAF7;   /* un poco más neutro y militar */
	--fondo-card-revista: #CAD6E5;
	--texto-principal: #111111;
    --borde-suave: #d2d8e3;
    --blanco: #ffffff;
	--fondo-bloque-revista: #b0c4de;
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: var(--texto-principal);
    background-color: var(--fondo-pagina);
    overflow-x: hidden; /* evita desbordes horizontales */
}

/* ================================
   HEADER (SEGÚN BRIEF)
================================ */

.header {
    width: 100%;
    height: 100px;
    background: var(--azul-header);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-btn {
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: #ffffff;
}

.logo img {
    height: 55px;
    display: block;
}

.acceso {
    display: flex;
    align-items: center;
}

.btn-acceso {
    color: var(--azul-prusiano);
    background-color: var(--blanco);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
}

/* ================================
   MENÚ LATERAL OFF-CANVAS
================================ */

.menu-lateral {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    background: var(--azul-prusiano);
    color: #ffffff;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1100;
}

.menu-lateral.activo {
    left: 0;
}

.menu-cerrar {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    display: block;
    margin-left: auto;
}

.menu-lista {
    list-style: none;
    margin-top: 20px;
}

.menu-lista li {
    margin-bottom: 10px;
}

.menu-lista a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
}

/* Fondo oscuro cuando el menú está abierto */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1050;
}

.menu-overlay.activo {
    opacity: 1;
    visibility: visible;
}

/* =================================
   CONTENEDOR Y GRILLA 12 COLUMNAS
================================= */

.main {
    padding: 30px 0 60px;
}

/* Contenedor centrado a 1420 px */
.contenedor {
    max-width: var(--grid-width);
    margin: 0 auto;
    padding: 0;
}

/* Grilla de 12 columnas */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
}

/* Columnas base */
.col {
    min-width: 0;
}

/* Span de columnas (desktop por defecto) */
.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }

/* Mobile: 1 columna (hasta 1023 px) */
@media (max-width: 901px) {
    .grid-12 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .col,
    .col-12,
    .col-8,
    .col-6,
    .col-4 {
        grid-column: span 1;
    }

    /* En mobile NO queremos offset, que use todo el ancho */
    .col-md-offset-2 {
        margin-left: 0;
    }
}

/* Desktop: col-md-* */
@media (min-width: 901px) {
    .col-md-6 { grid-column: span 6; }
    .col-md-8 { grid-column: span 8; }
    .col-md-4 { grid-column: span 4; }

    /* 2 columnas vacías + 8 de contenido + 2 vacías */
    .col-md-offset-2 {
        margin-left: calc((2 / 12) * 100%);
    }
}

/* ================================
   BLOQUES PRINCIPALES
================================ */

.bloque {
    background: var(--blanco);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.bloque-titulo {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.bloque-titulo h2 {
    font-size: 1.4rem;
    color: var(--azul-prusiano);
}

.link-ver-mas {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--azul-header);
}

/* ================================
   BLOQUE PRINCIPAL: DESTACADO (2/3) + INFO (1/3)
================================ */

.bloque-principal {
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin-bottom: 32px;
}

/* Artículo destacado: estructura nueva con caja interna */
.destacado {
    background: transparent;
    box-shadow: none;
}

/* Tarjeta del destacado */
.destacado-inner {
    background: var(--fondo-destacado);
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
}

/* Foto encuadrada dentro de la tarjeta */
.destacado-media {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}
/* Reutiliza la proporción 16:9 */
.ratio-16-9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.ratio-16-9 img,
.destacado-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay con fecha + título sobre la foto */
.destacado-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 12px 16px;
    color: #ffffff;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.35),
        transparent
    );
}

.destacado-fecha {
    font-size: 0.8rem;
    margin-bottom: 4px;
    opacity: 0.9;
}

.destacado-titulo {
    font-size: 1.4rem;
    line-height: 1.25;
    margin: 0;
}

/* Copete y botón debajo de la foto */
.destacado-copete {
    font-size: 0.95rem;
    margin-bottom: 14px;
    flex: 1;       /* empuja el botón hacia abajo */
}

.destacado-inner .btn-primario {
    align-self: flex-start;
}


/* Distribución 8/4 en desktop */
@media (min-width: 901px) {
    .bloque-principal .destacado {
        grid-column: 1 / span 8;   /* columnas 1 a 8 */
    }

    .bloque-principal .info-lista {
        grid-column: 9 / span 4;   /* columnas 9 a 12 */
    }
}

/* En mobile se apilan */
@media (max-width : 1891px ){
    .bloque-principal .destacado,
    .bloque-principal .info-lista {
        grid-column: 1 / -1;
    }
}

/* ================================
   NEWS FEED: INFORMACIONES RECIENTES
================================ */

.info-lista {
    background: var(--fondo-newsfeed);
    border-radius: 10px;
    padding: 14px 14px 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
}
.info-titulo {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--azul-prusiano);
    margin-bottom: 10px;
}

.info-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-item {
    margin-bottom: 10px;
}

.info-link {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

/* Miniatura 3:2 (ancho > alto) */
.info-thumb {
    width: 200px;             /* ajustá este valor a gusto: 90, 120, 150, etc. */
    aspect-ratio: 3 / 2;      /* proporción 3:2 */
    overflow: hidden;
    border-radius: 6px;
    background: #ddd;
    flex-shrink: 0;
}

.info-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Texto del item */
.info-texto {
    display: flex;
    flex-direction: column;
}

.info-fecha {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 3px;
}

.info-titulo-item {
    font-size: 0.9rem;
    line-height: 1.25;
    color: #093C8B;
}

.info-link:hover .info-titulo-item {
    text-decoration: underline;
}

/* Link inferior "Ver todas las informaciones" */
.link-ver-mas-info {
    display: block;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e0e4ea;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--azul-header);
}

.link-ver-mas-info:hover {
    text-decoration: underline;
}
@media (min-width: 901px) {
    /* Asegura que las columnas se estiren a la misma altura */
    .bloque-principal .grid-12 {
        align-items: stretch;
    }

    .destacado,
    .info-lista {
        height: 100%;
    }

    /* que la tarjeta del destacado ocupe todo el alto disponible */
    .destacado-inner {
        flex: 1;
    }

    /* que el contenido del news feed pueda estirarse si hace falta */
    .info-items {
        flex: 1;
    }
}

/* ================================
   REVISTA (ÚLTIMO NÚMERO)
================================ */
.bloque-revista {
    background: var(--fondo-bloque-revista);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
/* Tarjeta revista con alturas igualadas */
.revista-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: stretch; /* <-- Clave */
}

/* Tapa */
.revista-tapa {
    width: 100%;
    height: 100%;
    object-fit: cover; /* mantiene proporción */
    display: block;
    border-radius: 6px;
	position: relative;
	aspect-ratio: 2 / 3;
	overflow: hidden;
}

.revista-tapa img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* rellena la caja 2:3 sin deformar, recortando si hace falta */
    display: block;
}


/* Texto */
.revista-info {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
}

.revista-info h3 {
    font-size: 1.25rem;
    color: var(--azul-prusiano);
    margin-bottom: 6px;
}

.revista-periodo {
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.revista-descripcion {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.45;
}

/* Botón principal (genérico) */
.btn-primario {
    display: inline-block;
    padding: 8px 16px;
    background: var(--azul-header);
    color: var(--blanco);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
}
/* ================================
   SUMARIO DE REVISTA (ALINEADO IZQUIERDA)
================================ */

.revista-sumario {
    margin-top: 20px;
}

.revista-sumario h4 {
    font-size: 1.15rem;
    margin-bottom: 14px;
    color: var(--azul-prusiano);
}

.sumario-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sumario-item {
    border-bottom: 1px solid var(--borde-suave);
    padding: 14px 0;
}

/* Título + autor */
.sumario-texto {
    display: flex;
    flex-direction: column;
}

.sumario-titulo {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--texto-principal);
    line-height: 1.3;
}

.sumario-autor {
    font-size: 0.85rem;
    color: #555;
    margin-top: 3px;
    line-height: 1.2;
}


/* Desktop: mitad y mitad */
@media (min-width: 901px) {
    .revista-tapa {
        grid-column: span 6;
    }

    .revista-info {
        grid-column: span 6;
    }
}

/* Mobile: se apilan */
@media (max-width : 1891px ){
    .revista-tapa,
    .revista-info {
        grid-column: 1 / -1;
    }
}

/* ================================
   BLOQUE SUSCRIPCIÓN
================================ */

.bloque-suscripcion-texto h2,
.bloque-suscripcion h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--azul-prusiano);
}

.bloque-suscripcion-texto p,
.bloque-suscripcion p {
    margin-bottom: 10px;
    font-size: 0.98rem;
}

/* ================================
   ARTÍCULOS / INFORMACIONES (TARJETAS)
================================ */

.tarjeta {
    border: 1px solid var(--borde-suave);
    border-radius: 6px;
    overflow: hidden;
    background: #C3BFBF;
    display: flex;
    flex-direction: column;
}

.tarjeta-contenido {
    padding: 14px 16px 16px;
}

.tarjeta-fecha {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 4px;
}

.tarjeta-titulo {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--texto-principal);
}

.tarjeta-copete {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.link-leer-mas {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--azul-header);
}

/* ================================
   PUBLICIDAD
================================ */

.banner-publicidad {
    border: 2px dashed var(--azul-header);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--azul-header);
}

/* ================================
   FOOTER (AZUL PRUSIANO #003153)
================================ */

.footer {
    background: var(--azul-prusiano);
    color: #ffffff;
    padding: 20px 20px 12px;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-contenedor {
    max-width: var(--grid-width);
    margin: 0 auto;
    padding-bottom: 8px;
}

.footer-bloque {
    margin-bottom: 12px;
}

.footer-titulo {
    font-weight: 600;
    margin-bottom: 6px;
}

.footer-subtitulo {
    font-weight: 600;
    margin-bottom: 6px;
}

.footer-bloque p {
    margin-bottom: 4px;
}

.footer-bloque a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links {
    list-style: none;
    margin: 4px 0 6px;
    padding: 0;
}

.footer-links li {
    margin-bottom: 2px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-nota {
    font-size: 0.8rem;
    margin-top: 6px;
}

.footer-copy {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 6px;
    padding-top: 4px;
    text-align: center;
    font-size: 0.8rem;
}

/* ================================
   UTILIDADES / RESPONSIVE
================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }

    .logo img {

        height: 45px;
    }

    .bloque {
        padding: 18px;
    }

    .info-thumb {
        width: 120px; /* en mobile, un poco más grande si querés */
    }
}
@media (min-width: 901px) {
    .bloque-principal .grid-12 {
        align-items: stretch;   /* Asegura que las columnas se estiren */
    }

    .destacado,
    .info-lista {
        height: 100%;           /* Ambas tarjetas ocupan el mismo alto */
        display: flex;
        flex-direction: column;
    }

    .destacado-inner {
        flex: 1;                /* Permite que el bloque interno crezca */
        display: flex;
        flex-direction: column;
    }
}
/* ============================
   INFORMACIÓN A14
   ============================ */

/* Bloque general */
.bloque-informacion {
    padding: 40px 0 60px;
}

/* Migas / breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}
.breadcrumb a {
    color: #777;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    color: #aaa;
}

/* ----------------------------
   Bloque héroe (título + imagen)
   ---------------------------- */
.info-hero {
    /* 6 columnas centradas por grilla (clase col-md-6-center) */
    margin: 20px 0 24px;
    background: #D5D5D5;
    padding: 20px;

    /* sangría hacia afuera tomando medio gutter */
    margin-left: calc(var(--gutter) * -0.5);
    margin-right: calc(var(--gutter) * -0.5);
    border-radius: 10px;
}

/* Encabezado dentro del héroe */
.info-encabezado {
    margin-bottom: 12px;
}
.info-fecha {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 5px 0;
}
.info-titulo {
    font-size: 2rem;
    line-height: 1.25;
    margin: 0;
    color: #111;
}

/* Imagen portada dentro del héroe */
.info-portada {
    margin: 0; /* el margen lo maneja .info-hero */
}
.info-portada img {
    display: block;
    width: 100%;
    height: auto;

    /* Proporción 3:2 (apaisada) */
    aspect-ratio: 3 / 2;
    object-fit: cover;

    border-radius: 8px;
}
.info-pie-foto {
    font-size: 0.8rem;
    color: #666;
    margin-top: 6px;
}

/* ----------------------------
   Cuerpo de texto
   ---------------------------- */
.info-cuerpo {
    font-size: 1rem;
    line-height: 1.7;
    color: #222;
    margin-left: calc(var(--gutter) * 1.5);
    margin-right: calc(var(--gutter) * 1.5);

    font-family: "Source Sans 3", Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
    line-height: 1.75;
}
.info-cuerpo p {
    margin-bottom: 16px;
}

/* ----------------------------
   Meta (fuentes, redacción)
   ---------------------------- */
.info-meta {
    border-top: 1px solid #e1e1e1;
    margin-top: 20px;
    padding-top: 12px;
    font-size: 0.9rem;
    color: #555;
}
.info-meta p {
    margin: 0 0 4px 0;
}

/* ----------------------------
   Navegación inferior
   ---------------------------- */
.info-nav {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: 0.9rem;
}
.info-nav-link,
.info-nav-sumario {
    text-decoration: none;
    color: #093C8B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.info-nav-link:hover,
.info-nav-sumario:hover {
    text-decoration: underline;
}

/* ----------------------------
   Helpers de centrado por grilla
   (6 columnas centrales)
   ---------------------------- */
@media (min-width: 1024px) {
    /* 6 columnas centrales: 3 vacías – 6 contenido – 3 vacías */
    .col-md-6-center {
        grid-column: 4 / span 6;
    }
}

/* ----------------------------
   Ajustes responsive finos
   ---------------------------- */
@media (max-width: 1023px) {
    .info-titulo {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .bloque-informacion {
        padding: 24px 0 40px;
    }
    .info-titulo {
        font-size: 1.4rem;
    }
    .info-cuerpo {
        font-size: 0.95rem;
    }
    .info-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    /* un poco de respiro lateral en móvil */
    .contenedor {
        padding: 0 16px;
    }

    /* en móvil el fondo gris no “sangra” tanto */
    .info-hero {
        margin-left: 0;
        margin-right: 0;
        padding: 16px;
    }
}

/* ============================
   ARTÍCULO A12 / A13
============================ */

/* Bloque general del artículo (igual padding que INFORMACIÓN A14) */
.bloque-articulo {
    padding: 40px 0 60px;
}

/* Banda superior tipo “Artículo exclusivo del MI” */
.articulo-banda {
    background: #3CB3E1; /* celeste de la maqueta */
    padding: 12px 18px;
    color: #ffffff;
    border-radius: 4px;
    margin: 0 0 20px 0;
     text-align: center;  
}

.articulo-banda-texto {
    font-family: "Urbane", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    
}

/* Portada 16:9 dentro de la columna (ratio-16-9 ya existe) */
.articulo-portada {
    margin: 0;
}

/* Título y meta de artículo */
.articulo-titulo {
    font-family: "Urbane", sans-serif;
    font-size: 2rem;
    line-height: 1.25;
    margin: 20px 0 4px 0;
    color: #111;
}

.articulo-meta {
    font-family: "Urbane", sans-serif;
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 16px 0;
}

/* Copete y palabras clave */
.articulo-copete {
    font-family: "Urbane", sans-serif;
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.articulo-palabras {
    font-family: "Urbane", sans-serif;
    font-size: 0.95rem;
    margin-bottom: 22px;
}

/* Cuerpo: reutilizamos completamente info-cuerpo
   (la clase articulo-cuerpo es solo para enganchar si luego querés ajustes) */
.articulo-cuerpo {
    /* sin propiedades: hereda todo de .info-cuerpo */
}

/* Imagen intermedia dentro del cuerpo de artículo */
.articulo-imagen-intermedia {
    margin: 24px 0;
}

.articulo-imagen-intermedia img {
    width: 100%;
    display: block;
}

.articulo-imagen-intermedia figcaption {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

/* Navegación final ya hereda estilos de .info-nav / .info-nav-link / .info-nav-sumario */
.articulo-navegacion-final {
    margin-top: 28px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
    .articulo-titulo {
        font-size: 1.7rem;
    }
    .articulo-copete {
        font-size: 1rem;
    }
}
/* Centrar 8 columnas en desktop */
@media (min-width: 1024px) {
    /* 8 columnas: dejan 2 libres a cada lado (2–8–2) */
    .col-md-8-center {
        grid-column: 3 / span 8;
    }
}

@media (max-width: 768px) {
    .articulo-banda {
        padding: 10px 14px;
    }
    .articulo-titulo {
        font-size: 1.4rem;
        margin-top: 16px;
    }
    .articulo-meta {
        font-size: 0.9rem;
    }
    .articulo-copete {
        font-size: 0.95rem;
    }
    .articulo-palabras {
        font-size: 0.9rem;
    }
}

/* ------------------------------------
   FIX: Márgenes laterales en mobile
-------------------------------------*/
@media (max-width: 768px) {
    .contenedor {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
@media (max-width: 768px) {
    .bloque-articulo .grid-12 {
        padding-left: 20px;
        padding-right: 20px;
    }
}
