/*
Theme Name: El Colador
Theme URI: 
Author: Juan
Author URI: 
Description: Theme personalizado basado 100% en el HTML maestro de El Colador.
Version: 1.0
Text Domain: elcolador
*/

/* 
   =====================================
   EL COLADOR - ESTILOS PRINCIPALES
   =====================================
*/

:root {
    --primary-color: #111E25;      /* Azul Oscuro / Marino */
    --text-color: #111E25;         /* Azul Marino para lectura */
    --gray-light: #f5f7f8;
    --gray-medium: #e0e5e8;
    --gray-dark: #496572;          /* Gris Azulado / Pizarra */
    
    /* Categorías */
    --cat-politics: #C71A21;       /* Rojo Carmesí */
    --cat-economy: #496572;        /* Gris Azulado */
    --cat-society: #111E25;        /* Azul Marino */
    --cat-international: #496572;  /* Pizarra */
    --cat-sports: #75A630;         /* Verde Lima */
    --cat-opinion: #F15A24;        /* Naranja Vibrante */
    
    --accent-red: #C71A21;         /* Rojo Carmesí */
    --gold: #F15A24;               /* Naranja Vibrante */
    
    /* Tipografías */
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BANNER TOP FULL WIDTH (100% ANCHO REAL) --- */
.top-full-banner-wrapper {
    width: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.top-full-banner-wrapper a {
    display: block;
    width: 100%;
    line-height: 0;
}

.top-full-banner-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: #111E25;
    color: #FFFFFF;
    font-size: 0.8rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Estilos para el menú administrable en Top Bar */
.top-links-list {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.top-links a,
.top-links-list a {
    color: #FFFFFF;
}

.top-links a:hover,
.top-links-list a:hover {
    color: #F15A24;
}

.social-icons {
    display: flex;
    gap: 15px;
    border-left: 1px solid #496572;
    padding-left: 15px;
}

.social-icons a {
    color: #FFFFFF;
}

.social-icons a:hover {
    color: #F15A24;
}

/* --- MAIN HEADER --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
}

.header-left, .header-right {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
}

.header-right {
    justify-content: flex-end;
}

.menu-btn, .search-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.menu-btn:hover, .search-btn:hover {
    color: var(--accent-red);
}

.logo {
    text-align: center;
    display: block;
}

.logo h1 {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 3.5rem;
    letter-spacing: 1px;
    color: #111E25;
    line-height: 1;
}

.logo-icon {
    font-size: 2.5rem;
    vertical-align: middle;
}

.logo p {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #496572;
    margin-top: 5px;
}

.btn-subscribe {
    background-color: #c90705;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.btn-subscribe:hover {
    background-color: #C71A21;
    color: #FFFFFF;
}

.btn-login {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- NAVIGATION --- */
.main-nav {
    border-top: 1px solid var(--gray-medium);
    border-bottom: 1px solid var(--gray-medium);
    background-color: #FFFFFF;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-list li a {
    display: block;
    padding: 15px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111E25;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-list li.current-menu-item {
    border-bottom: 3px solid var(--accent-red);
}

.nav-list li.current-menu-item a {
    color: var(--accent-red);
}

/* --- HERO SECTION --- */
.hero-section {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.hero-main {
    position: relative;
    height: 550px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-tag {
    background-color: #c90705;
    color: #FFFFFF;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.meta {
    font-size: 0.85rem;
    color: #ccc;
}

/* --- HERO SIDEBAR --- */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.side-card {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 15px;
    border-bottom: 1px solid var(--gray-medium);
    padding-bottom: 15px;
}

.side-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cat-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.cat-text.economy { color: var(--cat-economy); }
.cat-text.society { color: var(--cat-society); }
.cat-text.international { color: var(--cat-international); }
.cat-text.sports { color: var(--cat-sports); }
.cat-text.politics { color: var(--cat-politics); }
.cat-text.opinion { color: var(--cat-opinion); }

.side-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.time {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

.side-card-img img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
}

/* --- ROW OF 4 --- */
.four-cols-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-medium);
}

.mini-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
}

.mini-card img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 2px;
}

.mini-card h4 {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 5px;
}

/* --- EXTENDED LAYOUT --- */
.extended-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
    margin-right: 10px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 2px;
}

.card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.3;
}

.divider {
    border: none;
    border-top: 1px solid var(--gray-medium);
    margin: 40px 0;
}

.editorial-block {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.card.large img {
    height: 300px;
}

.card.large p {
    color: var(--gray-dark);
    margin-top: 10px;
}

.editorial-list .list-item {
    border-bottom: 1px solid var(--gray-medium);
    padding: 20px 0;
}

.editorial-list .list-item:first-child {
    padding-top: 0;
}

.editorial-list .list-item h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

/* --- SIDEBAR WIDGETS --- */
.widget {
    margin-bottom: 40px;
}

.most-read {
    background-color: var(--gray-light);
    padding: 25px;
    border-radius: 4px;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-medium);
    padding-bottom: 10px;
}

.trending-list {
    list-style: none;
    counter-reset: trending-counter;
}

.trending-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    counter-increment: trending-counter;
}

.trending-list li::before {
    content: counter(trending-counter);
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-red);
    line-height: 0.8;
    min-width: 30px;
}

.trend-content h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.trending-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.newsletter-widget {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 25px;
    text-align: center;
    border-radius: 4px;
}

.newsletter-widget h3 {
    margin-bottom: 10px;
}

.newsletter-widget p {
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: #ccc;
}

.newsletter-widget input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 2px;
}

.newsletter-widget button {
    width: 100%;
    padding: 10px;
    background-color: var(--gold);
    color: #FFFFFF;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-widget button:hover {
    background-color: #C71A21;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #111E25;
    color: #FFFFFF;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-col.brand h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-col.brand p {
    color: #496572;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--gray-medium);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid #496572;
    padding-top: 20px;
    text-align: center;
    color: #496572;
    font-size: 0.85rem;
}

/* --- SIDEBAR & MODAL INTERACTIVITY --- */
.site-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 30, 37, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.site-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 4px 0 15px rgba(0,0,0,0.15);
    transition: left 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
    padding: 30px 20px;
    overflow-y: auto;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--gray-medium);
    padding-bottom: 15px;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.sidebar-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-nav-list a {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
}

.sidebar-nav-list a:hover {
    color: var(--accent-red);
}

.search-modal {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 20px;
    transition: top 0.3s ease;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-modal.active {
    top: 0;
}

.search-modal-inner {
    width: 100%;
    max-width: 800px;
    display: flex;
    gap: 10px;
    position: relative;
}

.search-modal input {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--gray-medium);
    border-radius: 4px;
    outline: none;
}

.search-modal input:focus {
    border-color: var(--primary-color);
}

.search-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 15px;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    display: block;
}

/* =====================================
   HERO SLIDER (SWIPER) - CONFIGURACIÓN MÓVIL Y TÁCTIL
   ===================================== */
.hero-swiper {
    width: 100%;
    height: 550px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.hero-swiper .swiper-wrapper {
    height: 100%;
}

.hero-swiper .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    background-size: cover;
    background-position: center;
    position: relative;
    display: block;
    box-sizing: border-box;
    flex-shrink: 0;
    touch-action: pan-y !important;
}

.hero-overlay,
.hero-content {
    pointer-events: none !important;
}

.hero-content a,
.hero-content h2,
.hero-content .category-tag,
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-pagination {
    pointer-events: auto !important;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 40px;
    color: #FFFFFF;
    box-sizing: border-box;
}

.hero-content h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transition: color 0.2s;
}

.hero-content h2:hover {
    color: #e0e5e8;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #e0e5e8;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(17, 30, 37, 0.95), rgba(17, 30, 37, 0));
    z-index: 1;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #ffffff;
    background: rgba(17, 30, 37, 0.6);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 1.1rem;
    font-weight: bold;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: var(--accent-red);
}

.hero-swiper .swiper-pagination {
    bottom: 15px;
    text-align: right;
    padding-right: 20px;
    z-index: 10;
}

.hero-swiper .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.6;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--accent-red);
    opacity: 1;
    width: 20px;
    border-radius: 4px;
}

/* --- FOOTER LEGAL Y COMPLEMENTOS --- */
.custom-logo-link img {
    max-width: 200px;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.footer-slogan {
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-legal-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 25px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(73, 101, 114, 0.4);
    font-size: 0.82rem;
    color: #a0b0b9;
}

.legal-col strong {
    color: #FFFFFF;
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-col p {
    margin-bottom: 4px;
    line-height: 1.4;
}

.legal-col a {
    color: #a0b0b9;
}

.legal-col a:hover {
    color: var(--gold);
}

.legal-links ul {
    list-style: none;
}

.legal-links ul li {
    margin-bottom: 4px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    
    .hero-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .four-cols-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .extended-layout {
        grid-template-columns: 1fr;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hero-swiper {
        height: 400px;
    }

    .hero-content p {
        display: none !important;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .top-links {
        display: none; 
    }

    .main-header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        padding: 15px 10px;
        gap: 10px;
    }

    .header-left {
        gap: 10px;
        flex: unset;
    }

    .header-center {
        text-align: center;
    }

    .logo h1 {
        font-size: 2rem; 
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .logo p {
        letter-spacing: 1px;
        font-size: 0.6rem;
    }

    .menu-btn, .search-btn {
        font-size: 0.8rem;
        gap: 4px;
    }

    .header-right {
        display: none; 
    }

    .hero-sidebar {
        grid-template-columns: 1fr;
    }
    
    .four-cols-row {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .editorial-block {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-main {
        height: 400px;
    }
    
    .hero-content {
        padding: 20px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .main-nav {
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; 
    }

    .main-nav::-webkit-scrollbar {
        display: none; 
    }

    .nav-list {
        display: flex;
        justify-content: flex-start;
        padding: 0 15px;
        gap: 20px;
        width: max-content; 
    }

    .footer-legal-bar {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }
}

/* Centrado de Footer para Móviles */
.footer-social-wrapper {
    text-align: center;
    padding: 20px 0;
}

.footer-social-wrapper .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .footer-legal-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .legal-col {
        width: 100%;
        text-align: center;
    }

    .legal-links ul {
        padding: 0;
        list-style: none;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* Estado base de las notas antes de aparecer */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(15px); /* Desplazamiento muy sutil */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

/* Estado activo cuando la nota entra en pantalla */
.reveal-on-scroll.reveal-active {
    opacity: 1;
    transform: translateY(0);
}