/*
Theme Name: Sangre Cuadrera
Theme URI: https://sangrecuadrera.com.ar
Author: Ezequiel Charras
Author URI: https://sangrecuadrera.com.ar
Description: Tema personalizado para el medio digital especializado en carreras cuadreras del oeste cordobés. Basado en un diseño de grilla tipo Infobae, optimizado para publicidad y base de datos.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: sangre-cuadrera
*/

/* ==========================================
   VARIABLES DE DISEÑO
   ========================================== */
:root {
    --color-marca: #4A3B32;
    --color-acento: #556B2F;
    --color-fondo: #FFFFFF;
    --color-fondo-gris: #F8F9FA;
    --color-texto: #212529;
    --color-texto-suave: #6C757D;
    --color-borde: #E9ECEF;
    --color-publicidad-fondo: #F1F3F5;
    --color-publicidad-borde: #DEE2E6;
    --fuente-titulos: 'Playfair Display', serif;
    --fuente-cuerpo: 'Inter', sans-serif;
    --max-ancho: 1200px;
}

/* ==========================================
   RESET Y ESTILOS BASE
   ========================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--fuente-cuerpo);
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--max-ancho); margin: 0 auto; padding: 0 1rem; }

/* ==========================================
   ESPACIOS PUBLICITARIOS (Ad Slots)
   ========================================== */
.ad-slot {
    background-color: var(--color-publicidad-fondo);
    border: 1px dashed var(--color-publicidad-borde);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #ADB5BD; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; margin: 1.5rem auto; position: relative;
}
.ad-slot::before { content: "PUBLICIDAD"; position: absolute; top: 5px; left: 10px; font-size: 0.6rem; color: #ADB5BD; }
.ad-leaderboard { width: 100%; max-width: 970px; height: 90px; margin: 1rem auto; }
.ad-mpu { width: 300px; height: 250px; margin: 1.5rem auto; }
.ad-half-page { width: 300px; height: 600px; margin: 0 auto; }
.ad-mobile-banner { width: 320px; height: 50px; margin: 1rem auto; display: block; }

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    background: var(--color-fondo); border-bottom: 2px solid var(--color-marca);
    padding: 0.5rem 0; position: sticky; top: 0; z-index: 1000;
}
.header-top { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.menu-hamburguesa { font-size: 1.5rem; cursor: pointer; color: var(--color-marca); display: block; }
.header-logo { font-family: var(--fuente-titulos); font-size: 2rem; font-weight: 900; color: var(--color-marca); text-align: center; line-height: 1; }
.header-logo span { display: block; font-family: var(--fuente-cuerpo); font-size: 0.65rem; font-weight: 500; letter-spacing: 3px; color: var(--color-acento); text-transform: uppercase; margin-top: 4px; }
.header-actions { display: flex; gap: 1rem; font-size: 0.8rem; font-weight: 600; color: var(--color-texto-suave); }

/* Navegación */
.main-navigation { display: none; }
@media (min-width: 992px) {
    .main-navigation {
        display: flex; justify-content: center; gap: 1.5rem; padding: 0.5rem 0;
        border-top: 1px solid var(--color-borde); font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    }
    .main-navigation ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
    .main-navigation a { padding: 0.2rem 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; color: var(--color-marca); }
    .main-navigation a:hover { border-bottom-color: var(--color-acento); color: var(--color-acento); }
    .menu-hamburguesa { display: none; }
}

/* ==========================================
   GRILLA PRINCIPAL
   ========================================== */
.contenido-principal { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem 0; }
@media (min-width: 992px) { .contenido-principal { grid-template-columns: 1fr 320px; } }

.columna-noticias { display: flex; flex-direction: column; gap: 2rem; }

/* Nota Principal */
.nota-principal { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.nota-principal .titulo { font-family: var(--fuente-titulos); font-size: 2.2rem; line-height: 1.2; color: var(--color-marca); font-weight: 900; }
.nota-principal .bajada { font-size: 1.1rem; color: var(--color-texto-suave); line-height: 1.6; }
.nota-principal .imagen-destacada { width: 100%; aspect-ratio: 16/9; background-color: var(--color-fondo-gris); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #CCC; font-size: 0.9rem; border: 1px solid var(--color-borde); overflow: hidden;}

/* Sección Resultados (El Parte) */
.seccion-resultados { background-color: var(--color-fondo-gris); padding: 1.5rem; border-radius: 8px; border-left: 4px solid var(--color-acento); }
.seccion-resultados h2 { font-family: var(--fuente-titulos); font-size: 1.6rem; color: var(--color-marca); margin-bottom: 0.5rem; }
.badge-verificado { display: inline-block; background-color: #e2f0d9; color: var(--color-acento); font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 12px; margin-bottom: 1rem; text-transform: uppercase; }

.tabla-resultados { width: 100%; border-collapse: collapse; font-size: 0.9rem; background-color: var(--color-fondo); border-radius: 4px; overflow: hidden; }
.tabla-resultados th { text-align: left; padding: 0.75rem 0.5rem; background-color: var(--color-marca); color: white; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.tabla-resultados td { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--color-borde); }
.tabla-resultados tr:last-child td { border-bottom: none; }
.ganador { font-weight: 700; color: var(--color-marca); }

/* Grilla de Notas */
.grilla-notas { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grilla-notas { grid-template-columns: repeat(2, 1fr); } }
.tarjeta-nota { display: flex; flex-direction: column; gap: 0.75rem; border-bottom: 1px solid var(--color-borde); padding-bottom: 1.5rem; }
.tarjeta-nota .thumb { width: 100%; aspect-ratio: 16/9; background-color: var(--color-fondo-gris); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #CCC; font-size: 0.8rem; border: 1px solid var(--color-borde); overflow: hidden;}
.tarjeta-nota .titulo { font-family: var(--fuente-titulos); font-size: 1.25rem; line-height: 1.3; color: var(--color-marca); }
.tarjeta-nota .meta { font-size: 0.75rem; color: var(--color-acento); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================
   SIDEBAR
   ========================================== */
.columna-sidebar { display: flex; flex-direction: column; gap: 2rem; }
.widget-sidebar { background-color: var(--color-fondo-gris); padding: 1.25rem; border-radius: 8px; border: 1px solid var(--color-borde); }
.widget-sidebar h3 { font-family: var(--fuente-titulos); font-size: 1.1rem; color: var(--color-marca); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--color-marca); }
.lista-agenda { list-style: none; font-size: 0.9rem; }
.lista-agenda li { padding: 0.5rem 0; border-bottom: 1px solid var(--color-borde); display: flex; justify-content: space-between; }
.lista-agenda li:last-child { border-bottom: none; }
.lista-agenda strong { color: var(--color-marca); }

/* Buscador El Pingüino */
.buscador-pinguino { display: flex; margin-top: 1rem; }
.buscador-pinguino input { flex: 1; padding: 0.6rem; border: 1px solid var(--color-borde); border-radius: 4px 0 0 4px; font-family: var(--fuente-cuerpo); outline: none; }
.buscador-pinguino button { background-color: var(--color-acento); color: white; border: none; padding: 0.6rem 1rem; border-radius: 0 4px 4px 0; font-weight: 700; cursor: pointer; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer { background-color: var(--color-marca); color: white; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-contenido { display: grid; grid-template-columns: 1fr; gap: 2rem; text-align: center; }
@media (min-width: 768px) { .footer-contenido { grid-template-columns: repeat(3, 1fr); text-align: left; } }
.footer-logo { font-family: var(--fuente-titulos); font-size: 1.8rem; font-weight: 900; color: white; }
.footer-logo span { display: block; font-family: var(--fuente-cuerpo); font-size: 0.6rem; letter-spacing: 3px; color: #d1c7c0; text-transform: uppercase; margin-top: 4px; }
.footer-frase { font-style: italic; color: #d1c7c0; font-size: 0.9rem; margin-top: 0.5rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.85rem; }
.footer-links a:hover { color: var(--color-acento); text-decoration: underline; }
.footer-copyright { grid-column: 1 / -1; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; margin-top: 1rem; font-size: 0.75rem; color: #a89f99; }

/* ==========================================
   ESTILOS DE BANNERS DEL PLUGIN SC ADS
   ========================================== */
.sc-ad-slot {
    margin: 1.5rem auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sc-ad-slot a {
    display: block;
    line-height: 0;
    max-width: 100%;
}

.sc-ad-slot img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.sc-ad-slot a:hover img {
    opacity: 0.9;
}

/* Placeholders cuando no hay anuncios (solo admins) */
.sc-ad-slot .ad-slot,
.ad-slot.ad-half-page,
.ad-slot.ad-mpu,
.ad-slot.ad-leaderboard,
.ad-slot.ad-mobile,
.ad-slot.ad-in-article {
    width: 100%;
    background-color: #F1F3F5;
    border: 1px dashed #DEE2E6;
    color: #ADB5BD;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}