/*
Theme Name: ConexionLocal 26
Theme URI: https://temediacom.com
Author: TeMedia Comunicación
Author URI: https://temediacom.com
Description: Sistema integral para gestión de negocios locales y eventos del Mundial FIFA 2026
Version: 2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: conexionlocal26
*/

/**
* ============================================================================
* TABLA DE CONTENIDOS
* ============================================================================
*
* 1. Importaciones de Librerías Externas
* 2. Variables CSS del Tema
* 3. Base & Reset
* 4. Header Modular
* 5. Single Post Editorial (Estilo El País)
* 6. Búsqueda Algolia
* 7. Footer
* 8. Utilidades
*/

/* ============================================================================
   1. IMPORTACIONES DE LIBRERÍAS EXTERNAS (Ya existentes)
   ============================================================================ */
@import "css/main.css"; /* Bootstrap customizado existente */

/* ============================================================================
   2. IMPORTACIONES DEL TEMA CONEXIONLOCAL26
   ============================================================================ */
@import "css/variables.css"; /* Variables CSS */
@import "css/base.css"; /* Reset y estilos base */
@import "css/header.css"; /* Header modular */
@import "css/single-editorial.css"; /* Posts estilo El País */
@import "css/algolia-search.css"; /* Búsqueda Algolia */
@import "css/utilities.css"; /* Clases utilitarias */

@import url('css/footer.css'); /* Footer */


/* ============================================================================
   3. ESTILOS HEREDADOS DEL TEMA ANTERIOR (Limpiados)
   ============================================================================ */

/* Tipografía base */
body,
html {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #878787;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

a {
    color: #006644;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover {
    color: #009966;
    text-decoration: none;
}

.text-primary {
    color: #006644 !important;
}

/* ============================================================================
   4. LAYOUT PRINCIPAL
   ============================================================================ */

.main {
    min-height: calc(100vh - 400px);
}

.main .page-content {
    padding: 0;
}

.container {
    max-width: 1200px;
}

/* ============================================================================
   4.1 TICKER FULLSCREEN - Escapa del container
   ============================================================================ */

/* El ticker debe escapar del .container para ser fullscreen */
.container > .cl26-ticker,
.site-main > .cl26-ticker,
main > .cl26-ticker {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Asegurar que el ticker no herede padding del container */
.cl26-ticker {
    box-sizing: border-box;
}

/* ============================================================================
   5. HEADER (Básico - ver header.css para completo)
   ============================================================================ */

header .logo-container {
    text-align: center;
    padding: 25px 0;
}

header .logo-container img {
    max-width: 120px;
}

/* ============================================================================
   6. FOOTER CON DARK MODE
   ============================================================================ */

footer .footer-inner {
    padding: 30px 0;
    background: #141618;
    color: #dee2e6;
    transition: all 0.3s ease;
}

footer .footer-inner .widget .widget-title,
footer .footer-inner .widget .widgettitle {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer .footer-inner .widget ul {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

footer .footer-inner .widget ul li a {
    display: block;
    padding: 6px 0;
    color: #dee2e6;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer .footer-inner ul li a:hover {
    text-decoration: none;
    color: #fff;
    padding-left: 5px;
}

.footer-direction h3 {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.footer-direction p {
    font-size: 14px;
    color: #dee2e6;
    line-height: 1.6;
}

/* Footer Bottom/Copyright */
footer .footer-bottom {
    background: #0d0d0d;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .footer-bottom p {
    margin: 0;
    color: #999;
    font-size: 13px;
}

/* Social Links en Footer */
footer .social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

footer .social-links a {
    color: #dee2e6;
    font-size: 18px;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* ===== FOOTER DARK MODE ===== */

body.dark-mode footer .footer-inner {
    background: #000000;
    color: #b0b0b0;
}

body.dark-mode footer .footer-inner .widget .widget-title,
body.dark-mode footer .footer-inner .widget .widgettitle {
    color: #f0f0f0;
}

body.dark-mode footer .footer-inner .widget ul li a {
    color: #b0b0b0;
}

body.dark-mode footer .footer-inner ul li a:hover {
    color: #ffffff;
}

body.dark-mode .footer-direction h3 {
    color: #f0f0f0;
}

body.dark-mode .footer-direction p {
    color: #b0b0b0;
}

body.dark-mode footer .footer-bottom {
    background: #0a0a0a;
    border-top-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode footer .footer-bottom p {
    color: #707070;
}

body.dark-mode footer .social-links a {
    color: #b0b0b0;
}

body.dark-mode footer .social-links a:hover {
    color: #ffffff;
}


/* ============================================================================
   7. CARDS & POSTS
   ============================================================================ */

.card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.post-title {
    font-size: 25px;
    line-height: 30px;
    letter-spacing: -0.4px;
    font-weight: 600;
    text-align: left;
}

.post-title a {
    color: #000;
    text-decoration: none;
}

.post-title a:hover {
    color: #006644;
}

.post-date {
    font-size: 12px;
    line-height: 16px;
    color: #666;
}

/* ============================================================================
   8. BREADCRUMB (Legacy - mantener por compatibilidad)
   ============================================================================ */

.breadcrumb-list {
    height: auto;
    color: #fff;
}

.breadcrumb-item.active {
    color: #fff;
}

/* ============================================================================
   9. UTILIDADES RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    header .main-menu {
        display: none;
        position: absolute;
        left: 0;
        top: 52px;
        width: 100%;
        background: #fff;
        z-index: 6;
        border-bottom: 1px solid rgba(135, 135, 135, 0.2);
        text-align: center;
    }

    .card-destacados {
        width: auto;
        height: auto;
    }
}

@media (max-width: 399px) {
    footer .footer-inner .widget {
        padding-bottom: 15px;
    }
}

/* ============================================================================
   10. PRINT STYLES
   ============================================================================ */

@media print {
    *,
    *::before,
    *::after {
        text-shadow: none !important;
        box-shadow: none !important;
    }

    a:not(.btn) {
        text-decoration: underline;
    }

    .navbar,
    .search-panel {
        display: none;
    }
}

/* ============================================================================
   11. ACCESIBILIDAD
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #006644;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
