/* assets/css/style.css */

/* ==========================================================================
   1. VARIABLES DE ESTILO Y RESETEO INICIAL
   ========================================================================== */
:root {
    --primary-color: #0d47a1;      /* Azul principal (profesional/noticioso) */
    --primary-dark: #002171;       /* Azul oscuro para hovers */
    --accent-color: #2e7d32;       /* Verde acento (turismo/naturaleza) */
    --bg-color: #eef3f8;           /* Gris muy claro para el fondo */
    --surface-color: #ffffff;      /* Blanco para tarjetas y contenedores */
    --text-color: #333333;         /* Texto principal */
    --text-muted: #666666;        /* Texto secundario/fechas */
    --border-color: #e0e0e0;      /* Bordes suaves */
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --max-width: 1320px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ==========================================================================
   2. CABECERA (HEADER)
   ========================================================================== */
.site-header {
    background-color: var(--surface-color);
    border-bottom: 3px solid var(--primary-color);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Alineación limpia para el enlace del logo y subtítulo */
.logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

/* Estilo para la imagen del logo */
/* Selección más específica y directa */
header.site-header .logo img.logo-img {
    height: 100px !important; /* El !important fuerza la altura fija */
    max-height: 100px !important;
    width: auto !important;
    display: block;
    object-fit: contain;
}

.logo span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.banner-placeholder {
    background-color: #e9ecef;
    border: 1px dashed #adb5bd;
    color: var(--text-muted);
    padding: 15px 30px;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 4px;
}
.hero-header{

background:#ffffff;

box-shadow:0 8px 30px rgba(0,0,0,.08);

}

.hero-banner{

width:100%;

overflow:hidden;

}

.hero-banner img{

display:block;

width:100%;

height:auto;

}
/* ==========================================================================
   3. NAVEGACIÓN (MENÚ PRINCIPAL)
   ========================================================================== */
.main-nav {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-toggle {
    display: none; /* Oculto en escritorio */
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 0.8rem 0;
    cursor: pointer;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav-list li a {
    display: block;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.nav-list li a:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
}

/* ==========================================================================
   4. CONTENIDO PRINCIPAL Y SECCIONES
   ========================================================================== */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.welcome-section {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-color);
}

.welcome-section h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   5. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.site-footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}
/* ==========================================================================
   ESTILOS DE NOTICIAS (GRID, CARDS & DETALLE)
   ========================================================================== */
.section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-img {
    position: relative;
    height: 180px;
    background-color: #e9ecef;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.card-body h4 {
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.card-body h4 a {
    color: var(--text-color);
}

.card-body h4 a:hover {
    color: var(--primary-color);
}

.card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
}

.read-more {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Noticia Individual */
.single-news {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.single-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.single-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.single-img {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.single-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}
/* Slider suave de clasificados */
.clasificados-slider::-webkit-scrollbar {
    height: 6px;
}
.clasificados-slider::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
.clasificados-slider::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}
.clasificado-card-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
