/* ==========================================================================
   1. TIPOGRAFÍAS Y VARIABLES DE MARCA
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@400;700;900&family=Inter:wght@400;500;700&display=swap');

:root {
    --bg-sitio: #f3f4f6;
    --negro-brutal: #000000;
    --amarillo-neón: #FFCC00; /* Ajustado al amarillo exacto de tu branding */
    --verde-neón: #a3e635;
    --verde-lotería: #00A859; /* El verde de fondo de tu cabecera */
    
    /* Fuentes del ecosistema */
    --fuente-titulos: 'Lexend Mega', sans-serif;
    --fuente-cuerpo: 'Inter', sans-serif;
}

/* ==========================================================================
   2. RESETEO Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
body {
    background-color: var(--bg-sitio);
    font-family: var(--fuente-cuerpo);
    color: var(--negro-brutal);
    margin: 0;
    padding: 0;
}

/* Encabezados del sitio con Lexend Mega */
h1, h2, h3, h4, .post-title, .post-categoria {
    font-family: var(--fuente-titulos) !important;
    font-weight: 900;
    color: var(--negro-brutal);
    letter-spacing: -0.05em;
}

/* ==========================================================================
   3. ESTRUCTURA Y LAYOUT GENERAL (Para base.html)
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.layout-principal {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 20px;
}

.contenido-central-web {
    flex: 3;
    min-width: 0;
}

.sidebar-web {
    flex: 1;
    min-width: 280px;
}

/* ==========================================================================
   4. COMPONENTE: HEADER NEOBRUTALISTA
   ========================================================================== */
.site-header {
    background-color: var(--verde-lotería);
    border-bottom: 4px solid var(--negro-brutal);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.header-logo {
    text-decoration: none;
    color: #1A1A1A;
    display: inline-block;
    transform: rotate(-0.5deg);
    transition: transform 0.1s ease;
}

.header-logo:hover {
    transform: rotate(0deg) scale(1.02);
}

.logo-badge {
    background-color: var(--amarillo-neón);
    font-family: var(--fuente-titulos);
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 3px solid var(--negro-brutal);
    box-shadow: 4px 4px 0px var(--negro-brutal);
    display: inline-block;
    letter-spacing: -0.5px;
}

/* Menú */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    text-decoration: none;
    color: #FFFFFF;
    font-family: var(--fuente-titulos);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 6px 12px;
    border: 2px solid transparent;
    transition: all 0.1s ease;
}

.nav-link:hover {
    background-color: var(--amarillo-neón);
    color: var(--negro-brutal);
    border: 2px solid var(--negro-brutal);
}

/* Botones de Entrada / Salida */
.btn-auth {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 6px 12px;
    border: 2px solid var(--negro-brutal);
    box-shadow: 3px 3px 0px var(--negro-brutal);
    cursor: pointer;
    transition: all 0.1s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-login {
    background-color: #FFFFFF;
    color: var(--negro-brutal);
}

.btn-login:hover {
    background-color: var(--amarillo-neón);
}

.form-logout {
    display: inline;
    margin: 0;
}

.btn-logout {
    background-color: #FFFFFF;
    color: var(--negro-brutal);
}

.btn-logout:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px var(--negro-brutal);
}

/* Buscador */
.search-trigger-header {
    color: var(--negro-brutal);
    background-color: #FFFFFF;
    border: 2px solid var(--negro-brutal);
    box-shadow: 3px 3px 0px var(--negro-brutal);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
}

.search-trigger-header:hover {
    background-color: var(--amarillo-neón);
}

/* Estado responsivo por defecto oculto */
.btn-hamburger, .btn-close-menu {
    display: none;
}

/* ==========================================================================
   5. MEDIA QUERIES (Responsivo Celulares)
   ========================================================================== */
@media (max-width: 992px) {
    .layout-principal {
        flex-direction: column;
    }
    .sidebar-web {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .btn-hamburger {
        display: block;
        background-color: #FFFFFF;
        border: 3px solid var(--negro-brutal);
        box-shadow: 3px 3px 0px var(--negro-brutal);
        padding: 8px 12px;
        font-size: 1.2rem;
        cursor: pointer;
    }

    .btn-close-menu {
        display: block;
        background-color: var(--amarillo-neón);
        border: 3px solid var(--negro-brutal);
        font-family: var(--fuente-titulos);
        font-weight: 900;
        padding: 5px 10px;
        cursor: pointer;
        margin-bottom: 20px;
    }

    .nav-menu {
        display: none; /* Vinculado a tu script JS por ID */
        position: fixed;
        top: 15px;
        right: 15px;
        background-color: #FFFFFF;
        border: 4px solid var(--negro-brutal);
        box-shadow: 8px 8px 0px var(--negro-brutal);
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-link {
        color: var(--negro-brutal);
        display: block;
        padding: 0;
    }
    
    .nav-link:hover {
        border-color: transparent;
        background-color: transparent;
        text-decoration: underline;
    }
}

/* ==========================================================================
   6. CONTENEDORES DE ADSENSE (Estabilidad de Impresiones / CPM)
   ========================================================================== */
.anuncio-bloque {
    background: #f9fafb;
    border: 2px dashed var(--negro-brutal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

/* ==========================================================================
   7. COMPONENTE: FOOTER NEOBRUTALISTA INDEPENDIENTE
   ========================================================================== */
.site-footer {
    background-color: #1A1A1A;
    border-top: 4px solid var(--negro-brutal);
    padding: 50px 0 30px 0;
    color: #FFFFFF;
}

/* Rejilla de contenido */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Tarjeta Neobrutalista del Logo */
.footer-card {
    background-color: #FFFFFF;
    color: #1A1A1A;
    border: 3px solid var(--negro-brutal);
    box-shadow: 6px 6px 0px var(--verde-lotería);
    padding: 20px;
    border-radius: 4px;
}

.footer-logo-badge {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    background-color: var(--amarillo-neón);
    display: inline-block;
    padding: 4px 8px;
    border: 2px solid var(--negro-brutal);
}

.footer-description {
    margin: 10px 0 20px 0;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: #444444;
}

/* Redes Sociales */
.footer-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    background-color: var(--amarillo-neón);
    color: #1A1A1A;
    border: 2px solid var(--negro-brutal);
    box-shadow: 2px 2px 0px var(--negro-brutal);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.1s ease;
}

.social-link:hover {
    background-color: var(--verde-lotería);
    color: #FFFFFF;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--negro-brutal);
}

/* Columnas de Navegación */
.footer-col {
    padding-left: 20px;
}

.border-yellow { border-left: 3px solid var(--amarillo-neón); }
.border-green  { border-left: 3px solid var(--verde-lotería); }
.border-white  { border-left: 3px solid #FFFFFF; }

.footer-title {
    margin: 0 0 15px 0;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 900;
}

.color-yellow { color: var(--amarillo-neón); }
.color-green  { color: var(--verde-lotería); }
.color-white  { color: #FFFFFF; }

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.1s ease;
}

/* Efectos Hover Dinámicos por Columna */
.border-yellow .footer-nav a:hover { color: var(--amarillo-neón); text-decoration: underline; }
.border-green .footer-nav a:hover  { color: var(--verde-lotería);  text-decoration: underline; }

.legal-nav a { color: #AAAAAA; }
.legal-nav a:hover { color: #FFFFFF !important; text-decoration: none !important; }

/* Disclaimer y Copyright */
.footer-bottom {
    border-top: 3px solid #333333;
    padding-top: 25px;
    margin-top: 20px;
}

.footer-disclaimer {
    margin: 0 0 25px 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #888888;
    line-height: 1.5;
    text-align: justify;
}

.footer-copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #AAAAAA;
}

.footer-made-in {
    background-color: #222222;
    padding: 6px 12px;
    border: 2px solid var(--negro-brutal);
    border-radius: 4px;
}

.footer-made-in i {
    color: #FF6B6B;
}

/* ==========================================================================
   8 - FORMULARIO DE CONTACTO (global.css)
   ========================================================================== */

/* Efecto al seleccionar cualquier input o caja de texto */
input:focus, 
textarea:focus {
    border-color: #00A859 !important; /* Cambia a verde al hacer clic */
    background-color: #FFFDF0 !important;
}

/* Transición suave para el comportamiento del botón */
.btn-submit {
    transition: transform 0.1s, box-shadow 0.1s;
}

/* Cambio de tono amarillo al pasar el cursor */
.btn-submit:hover {
    background-color: #FFE066 !important;
}

/* Efecto de hundimiento (click/active) estilo Cómic */
.btn-submit:active {
    transform: translate(3px, 3px) !important;
    box-shadow: 1px 1px 0px #000000 !important;
}

