/*
Theme Name: Ruta 9 Theme
Theme URI: https://noticiasruta9.com
Author: Hipolito Paradela
Author URI: https://example.com
Description: Tema de noticias con diseño masonry usando Bootstrap 5.
Version: 0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-news-masonry
Tags: news, masonry, bootstrap, responsive
*/


:root{
--card-overlay-bg: rgba(0,0,0,0.45);
--card-title-size: 1.6rem;
}


html,body{height:100%;}
body{
margin:0;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
background:#f7f7f7;
color:#222;
}


/* Header */
.site-header{background:#0052a7;box-shadow:0 1px 3px rgba(0,0,0,.06);}
.site-branding{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;}
.site-logo{max-height:48px;}
.main-navigation{flex:1;display:flex;justify-content:flex-end;align-items:center;}


/* Masonry grid container */
.posts-masonry{column-gap:1rem;padding:1rem;}
@media (min-width: 576px){
.posts-masonry{column-count:2;}
}
@media (min-width: 992px){
.posts-masonry{column-count:3;}
}
@media (min-width: 1400px){
.posts-masonry{column-count:4;}
}


.masonry-item{display:inline-block;width:100%;margin:0 0 1rem;vertical-align:top;}
.card-card{position:relative;border-radius:.5rem;overflow:hidden;background:#fff;}
.card-card img{width:100%;height:auto;display:block;}
.card-overlay{position:absolute;left:0;right:0;bottom:0;padding:1rem;background:var(--card-overlay-bg);color:#fff}
.card-title{font-size:var(--card-title-size);line-height:1.05;margin:0 0 .25rem;font-weight:700}
.card-excerpt{font-size:.95rem;opacity:.95}


/* Small header adjustments for mobile */
@media (max-width: 767.98px){
.main-navigation{justify-content:flex-end;padding-right:.5rem}
.site-branding{padding:.5rem}
}


/* Utility */
.container-wide{max-width:1400px;margin:0 auto;padding:0 1rem}


/* Footer */
.site-footer{padding:1.25rem;background:#fff;margin-top:2rem;text-align:center;color:#666}

/* Logo adjustments */
.site-logo,
.custom-logo {
    max-height: 55px;
    width: auto;
}

/* Social Buttons */
.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
}

.fb-btn {
    background-color: #1877F2;
}

.ig-btn {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}


/* FULLSCREEN MOBILE MENU */
@media (max-width: 991.98px) {
    .fullscreen-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 90vh;
        background: white;
        padding-top: 6rem;
		padding-bottom: 6rem;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
        z-index: 9999;
        transform: translateY(-100%);
        transition: transform .3s ease-in-out;
		background-color: #0051a7;
    }

    .fullscreen-menu.show {
        transform: translateY(0);
    }

    /* Centrar los items */
    .fullscreen-menu .navbar-nav > li > a {
        font-size: 1.5rem;
        padding: 1rem 0;
    }
}

/* BOTÓN DE CIERRE MENU FULLSCREEN */
.close-menu-btn {
    position: absolute;
    top: 1.3rem;
    right: 1.5rem;
    font-size: 2.5rem;
    line-height: 1;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    z-index: 10000;
    display: none; /* solo mobile */
}

@media (max-width: 991.98px) {
    .close-menu-btn {
        display: block;
    }
}

/* Quitar puntitos */
.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu ul li {
    list-style: none;
}

/* Estilo de los links */
.main-menu ul li a {
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: #fff !important;
    transition: color .3s ease;
    border-radius: 4px;
}

/* Borde animado */
.main-menu ul li a::before,
.main-menu ul li a::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    pointer-events: none;
    transition: border-color .3s ease, clip-path .35s ease-in-out;
}

/* Estado inicial: borde oculto */
.main-menu ul li a::before {
    clip-path: inset(0 100% 0 0);
}

.main-menu ul li a::after {
    clip-path: inset(0 0 0 100%);
}

/* Hover: borde aparece progresivamente */
.main-menu ul li a:hover::before,
.main-menu ul li a:hover::after {
    border-color: #fff;
    clip-path: inset(0 0 0 0);
}


/* 1. Contenedor de la Marquesina (Frontera) */
        .marquee-container {
            background-color: #353637;
            color: white;
            padding: 8px 0;
            overflow: hidden; 
            white-space: nowrap;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            line-height: 1.5; 
        }

        /* 2. Contenido de la Marquesina (El elemento a animar) */
        .marquee-content {
            display: inline-block;
            padding-left: 100%;
            /* VELOCIDAD AJUSTADA A 70s */
            animation: scroll-left 70s linear infinite;
            -webkit-animation: scroll-left 70s linear infinite;
            -moz-animation: scroll-left 70s linear infinite;
        }
        
        /* ⭐️ CAMBIO CLAVE: DETENER AL HACER HOVER ⭐️ */
        .marquee-content:hover {
            animation-play-state: paused;
            -webkit-animation-play-state: paused;
            -moz-animation-play-state: paused;
        }
        /* ------------------------------------------- */

        /* Estilos de los elementos internos */
        .marquee-content a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            margin-right: 20px;
            transition: color 0.3s;
        }

        .marquee-content a:hover {
            color: #ffd700;
        }

        .marquee-content span {
            color: rgba(255, 255, 255, 0.7);
            margin-right: 20px;
        }

        /* 3. Definición de la Animación (Con prefijos) */
        @keyframes scroll-left {
            0% { transform: translate(0, 0); }
            100% { transform: translate(-50%, 0); }
        }
        
        @-webkit-keyframes scroll-left {
            0% { -webkit-transform: translate(0, 0); }
        }