/* =========================================
   1. IMPORTACIÓN DE FUENTES & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #0a2540; /* Azul oscuro elegante */
    --accent-color: #00d4ff;  /* Cian brillante para resaltar */
    --text-color: #333333;
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --transition: all 0.3s ease;
}

/* =========================================
   2. ESTILOS GENERALES
   ========================================= */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* =========================================
   3. ENCABEZADO (HEADER) - CORREGIDO
   ========================================= */
/* Fondo oscuro para el header */
header, .site-header, .navbar, #masthead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #061b2e 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    color: #ffffff !important; /* Fuerza texto base blanco */
}

/* CORRECCIÓN DE TEXTO EN HEADER: Todo enlace debe ser blanco */
header a, .site-header a, .navbar a, .nav-menu a, 
.site-title a, .site-description {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Efecto Hover en el menú */
header a:hover, .site-header a:hover, .navbar a:hover {
    color: var(--accent-color) !important;
    opacity: 1;
}

/* Iconos de redes sociales o búsqueda en header */
header i, .site-header i, header span, .site-header span {
    color: #ffffff !important;
}

/* =========================================
   4. TARJETAS DE NOTICIAS (CARD DESIGN)
   ========================================= */
article, .post, .type-post {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

article:hover, .post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--accent-color);
}

article img, .post img {
    border-radius: 8px;
    transition: var(--transition);
}

.entry-title a, .post-title a {
    color: var(--primary-color); /* Títulos oscuros sobre fondo blanco */
    text-decoration: none;
}

.entry-title a:hover, .post-title a:hover {
    color: var(--accent-color);
}

/* =========================================
   5. BOTONES Y FORMULARIOS
   ========================================= */
button, input[type="submit"], .btn, .read-more, a.more-link {
    background: var(--primary-color) !important;
    color: #ffffff !important; /* Texto blanco forzado */
    border: none !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
}

button:hover, input[type="submit"]:hover, .btn:hover {
    background: var(--accent-color) !important;
    color: var(--primary-color) !important; /* Texto oscuro al pasar el mouse */
}

/* =========================================
   6. PIE DE PÁGINA (FOOTER) - CORREGIDO
   ========================================= */
footer, .site-footer, #colophon {
    background: #081d33 !important; /* Un poco más oscuro que el header */
    color: #e0e0e0 !important; /* Gris muy claro para lectura suave */
    padding: 40px 0;
    margin-top: 60px;
}

/* Títulos de widgets en el footer */
footer h1, footer h2, footer h3, footer h4, 
.site-footer h1, .site-footer h2, .site-footer h3, .widget-title {
    color: #ffffff !important;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

/* Enlaces en el footer */
footer a, .site-footer a {
    color: #b0c4de !important; /* Azul grisáceo claro */
    border-bottom: 1px dotted rgba(255,255,255,0.2);
}

footer a:hover, .site-footer a:hover {
    color: var(--accent-color) !important;
    border-bottom: 1px solid var(--accent-color);
}

/* Listas en el footer */
footer li, .site-footer li {
    border-color: rgba(255,255,255,0.1) !important;
}

/* =========================================
   7. ARREGLOS ESPECÍFICOS MÓVIL
   ========================================= */
@media (max-width: 768px) {
    /* Menú móvil con fondo oscuro para legibilidad */
    .menu-toggle, .main-navigation ul {
        background-color: var(--primary-color) !important;
    }
    .main-navigation li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}