/* ========================================================
   1. ESTILOS GENERALES Y HERO
======================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
     background: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)), 
                        url('images/fondo.jpg') no-repeat center center;
            background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 35px;
}

.hero-content h1 {
    font-size: 48px;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Buscador */
.search-container {
    width: 100%;
    max-width: 650px;
    background: #ffffff;
    padding: 8px 8px 8px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.06);
}

.search-container input {
    border: none;
    outline: none;
    width: 80%;
    font-size: 16px;
    color: #333;
    background: transparent;
}

.search-container input::placeholder {
    color: #b0b0b0;
}

.search-btn {
    background-color: #ff5a87;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
}

.search-btn:hover {
    background-color: #e04671;
    transform: scale(1.03);
}

/* ========================================================
   2. BARRA DE NAVEGACIÓN (HEADER Base)
======================================================== */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8%;
    z-index: 100;
    background: transparent;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

#nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

#nav-list > li {
    position: static; /* Rompe el límite del ancho del elemento padre */
}

#nav-list > li > a {
    text-decoration: none;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

#nav-list > li > a.active, 
#nav-list > li > a:hover,
.has-mega:hover > a {
    color: #ff5a87;
}

.arrow {
    font-size: 11px;
    margin-left: 5px;
}

/* ========================================================
   3. MEGA MENÚ (Orden de columnas para Escritorio)
======================================================== */
@media (min-width: 769px) {
    .mega-menu {
        display: none; 
        position: fixed; /* Cambiado a fixed para alinearlo perfectamente con el header */
        top: 120px;      /* Altura exacta aproximada donde termina tu header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f0f0f0;
        z-index: 999;
        
        /* Modificamos el padding para crear una zona de contacto superior mas alta */
        padding: 40px 8% 40px 8%; 
    }

    /* SOLUCIÓN TOTAL: Añadimos un pseudo-elemento transparente en la parte superior 
       que cubre todo el espacio vacío entre el menú y el botón. Así el mouse nunca "sale" */
    .mega-menu::before {
        content: "";
        position: absolute;
        top: -60px; /* Cubre 60px hacia arriba cubriendo el espacio en blanco */
        left: 0;
        width: 100%;
        height: 60px;
        background: transparent;
    }

    .has-mega:hover .mega-menu {
        display: block;
    }

    .mega-menu-content {
        display: grid;
        grid-template-columns: 1fr 1fr 1.3fr;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .mega-column {
        display: flex;
        flex-direction: column;
    }

    .mega-column h3 {
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #1a1a1a;
        margin-bottom: 20px;
        font-weight: 700;
        border-bottom: 2px solid #ff5a87;
        padding-bottom: 8px;
        width: fit-content;
    }

    .mega-column a {
        text-decoration: none;
        color: #555 !important;
        font-size: 14px;
        padding: 8px 0;
        transition: color 0.2s ease, padding-left 0.2s ease;
        text-align: left;
        display: block;
    }

    .mega-column a:hover {
        color: #ff5a87 !important;
        padding-left: 5px;
    }

    .mega-column-card {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .alexa-card {
        background: linear-gradient(135deg, #fff0f3 0%, #ffe5ec 100%);
        padding: 25px;
        border-radius: 12px;
        width: 100%;
        max-width: 360px;
        box-shadow: 0px 4px 15px rgba(255, 90, 135, 0.05);
    }

    .alexa-card h4 {
        font-size: 18px;
        color: #1a1a1a;
        margin-bottom: 8px;
        font-weight: 700;
    }

    .alexa-card p {
        font-size: 13px;
        color: #666;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .alexa-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 15px;
    }

    .alexa-links a {
        font-size: 13px;
        color: #ff5a87 !important;
        text-decoration: none;
        font-weight: 600;
    }

    .alexa-links a:hover {
        text-decoration: underline;
    }

    .alexa-btn {
        background-color: #ff5a87;
        color: white;
        border: none;
        padding: 11px 20px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        width: 100%;
        transition: background 0.2s;
    }

    .alexa-btn:hover {
        background-color: #e04671;
    }
}

 /* --- CÓDIGO A AGREGAR PARA CAMBIAR LOS COLORES --- */
    
    /* 1. Tarjeta Multimedia - Modifica estos códigos para cambiar su fondo */
    .card-multimedia {
        background: linear-gradient(135deg, #faf0f5 0%, #e8d5f7 100%) !important;
    }

    /* 2. Tarjeta Lectura / Libros - Modifica estos códigos para cambiar su fondo */
    .card-lectura {
        background: linear-gradient(135deg, #faf0f5 0%, #ffd1dc 100%) !important;
    }

/* ========================================================
   4. MENÚ HAMBURGUESA Y RESPONSIVE MÓVIL (< 768px)
======================================================== */

/* ========================================================
   4. MENÚ HAMBURGUESA Y RESPONSIVE MÓVIL (< 768px)
======================================================== */

.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    outline: none;
}

.hamburger-icon {
    width: 26px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #000;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    header {
        padding: 25px 6%;
    }

    .menu-toggle {
        display: block; 
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0px 10px 20px rgba(0,0,0,0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    nav ul.open {
        max-height: 100vh;
        overflow-y: auto;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 16px 25px;
        border-bottom: 1px solid #f5f5f5;
        color: #222;
    }

    .mega-menu {
        display: none;
        width: 100%;
        background-color: #fbfbfb;
        padding: 20px;
    }

    .mega-menu.show {
        display: block;
    }

    .mega-menu-content {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .mega-column h3 {
        font-size: 13px;
        color: #1a1a1a;
        margin-bottom: 10px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 4px;
    }

    .mega-column a {
        padding: 8px 10px !important;
        color: #555 !important;
    }
    
    .mega-column-card {
        justify-content: center;
        width: 100%;
    }

    .alexa-card {
        padding: 20px;
        background: #f1f1f1;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .search-container {
        padding: 6px 6px 6px 20px;
    }

    .search-btn {
        width: 44px;
        height: 44px;
    }
}


/* ========================================================
   5. ESTILOS DEL FOOTER (PIE DE PÁGINA)
======================================================== */
.main-footer {
    background-color: #ffffff;
    width: 100%;
    padding: 60px 8% 20px 8%;
    border-top: 1px solid #f0f0f0;
    margin-top: 50px; /* Separa el footer del contenido superior */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr; /* Distribución proporcional */
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.footer-links-column h4, 
.footer-subscribe h4 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-column ul li a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links-column ul li a:hover {
    color: #ff5a87;
}

.footer-subscribe p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Incrementa el ancho del logo del footer para que el texto sea perfectamente legible */
.footer-logo-img {
    width: 260px;       /* Ajusta este valor en píxeles si lo quieres aún más ancho */
    height: auto;       /* Evita que la imagen se deforme al estirarse */
    display: block;
    margin-bottom: 5px; /* Pequeña separación con el párrafo descriptivo de abajo */
}


/* Formulario de suscripción estilizado */
.subscribe-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    color: #333;
    background-color: #fbfbfb;
    transition: border-color 0.2s;
}

.subscribe-form input[type="email"]:focus {
    border-color: #ff5a87;
}

.subscribe-btn {
    background-color: #ff5a87;
    color: #ffffff;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.subscribe-btn:hover {
    background-color: #e04671;
}

/* Créditos finales de copia de seguridad */
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #999;
}

/* Ajuste responsivo para celulares */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Una columna por fila en móviles */
        gap: 30px;
        text-align: center;
    }
    
    .footer-brand, .footer-links-column, .footer-subscribe {
        align-items: center;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-btn {
        padding: 12px 0;
    }
}


/* ========================================================
   REPARACIÓN DE FRANJA DE COPYRIGHT CORRIDA
======================================================== */
.footer-bottom-bar {
    background-color: #fff0f3; /* Rosa claro muy sutil que combina con tus tarjetas */
    width: 100vw;              /* Fuerza a que mida el 100% del ancho de la pantalla */
    position: relative;
    left: 50%;                 /* Truco de CSS para romper el margen del contenedor */
    right: 50%;
    margin-left: -50vw;        /* Centra la barra de extremo a extremo */
    margin-right: -50vw;
    padding: 20px 0;           /* Espacio arriba y abajo del texto */
    margin-top: 40px;          /* Separación con las columnas del footer */
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;        /* Centra el copyright al medio */
    padding: 0 8%;             /* Mantiene la alineación con tu logo */
}

.footer-bottom-content p {
    font-size: 13px;
    color: #cc4b6e;            /* Un tono de rosa más oscuro para que sea totalmente legible */
    font-weight: 500;
}

        /* Contenedor principal del Blog */
        .blog-section {
            padding: 160px 8% 80px 8%; /* Margen superior amplio para no tapar el menú absoluto */
            max-width: 1200px;
            margin: 0 auto;
        }

        .blog-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .blog-header h2 {
            font-size: 36px;
            color: #1a1a1a;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .blog-header p {
            font-size: 16px;
            color: #666;
            max-width: 600px;
            margin: 0 auto;
        }

       .blog-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
}


        .blog-card {
            background-color: #ffffff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.04);
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .blog-card:hover {
            transform: translateY(-5px);
            box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.08);
        }

        .blog-card-image {
            width: 100%;
            height: 180px; /* Reducido ligeramente de 200px a 180px para balancear la proporción en 4 columnas */
            background-color: #eaeaea;
            overflow: hidden;
            position: relative;
        }

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

        .blog-card-content {
            padding: 20px; /* Ajustado de 25px a 20px para optimizar los textos en columnas más estrechas */
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .blog-tag {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #ff5a87;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .blog-card-content h3 {
            font-size: 16px; /* Ajustado a 16px para que los títulos largos no se encimen */
            color: #1a1a1a;
            margin-bottom: 12px;
            font-weight: 700;
            line-height: 1.4;
        }

        .blog-card-content p {
            font-size: 13px; /* Ajustado a 13px para mejorar la legibilidad del resumen */
            color: #666;
            line-height: 1.6;
            margin-bottom: 20px;
            flex-grow: 1;
        }

        .blog-link {
            font-size: 13px;
            color: #ff5a87;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: color 0.2s;
        }

        .blog-link:hover {
            color: #e04671;
            text-decoration: underline;
        }

        /* Adaptación fluida para tablets y laptops pequeñas (2 columnas) */
        @media (max-width: 1024px) {
            .blog-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 25px;
            }
            .blog-card-image {
                height: 220px;
            }
        }

        /* Adaptación estricta para teléfonos celulares (1 columna) */
        @media (max-width: 768px) {
            .blog-section {
                padding-top: 130px;
            }
            .blog-grid {
                grid-template-columns: 1fr;
                gap: 25px;
            }
            .blog-header h2 {
                font-size: 28px;
            }
            .blog-card-image {
                height: 200px;
            }
        }

        /* ========================================================
           ESTILOS PARA EL ARTÍCULO DESTACADO ANCHO COMPLETO
        ======================================================== */
        .blog-featured-box {
            background-color: #ffffff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.04);
            margin-top: 50px; /* Separación con los 4 artículos de arriba */
            width: 100%;
            display: flex;
            flex-direction: column;
        }

        .featured-image-wrapper {
            width: 100%;
            height: 400px; /* Altura ideal de banner ancho */
            overflow: hidden;
        }

        .featured-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .featured-text-content {
            padding: 40px; /* Más espaciado interno para dar aire a la lectura */
            text-align: left;
        }

        .featured-text-content h2 {
            font-size: 28px;
            color: #1a1a1a;
            margin-bottom: 10px;
            font-weight: 700;
            line-height: 1.3;
        }

        .featured-subtitle {
            font-size: 16px;
            color: #555;
            font-weight: 500;
            line-height: 1.5;
            margin-bottom: 25px;
        }

        /* Bloque de Cita con Comillas Estilizadas */
        .featured-quote {
            font-style: italic;
            font-size: 18px;
            color: #cc4b6e; /* Rosa oscuro a juego con tu barra de copyright */
            border-left: 4px solid #ff5a87; /* Línea decorativa rosa */
            padding-left: 20px;
            margin: 0 0 25px 0;
            line-height: 1.6;
            font-weight: 500;
        }

        .featured-full-text {
            font-size: 14px;
            color: #666;
            line-height: 1.7;
            margin-bottom: 25px;
        }

        /* Ajustes responsivos para pantallas de celular */
        @media (max-width: 768px) {
            .featured-image-wrapper {
                height: 250px;
            }
            .featured-text-content {
                padding: 25px 20px;
            }
            .featured-text-content h2 {
                font-size: 22px;
            }
            .featured-subtitle {
                font-size: 14px;
            }
            .featured-quote {
                font-size: 16px;
            }
        }
        /* ========================================================
           ESTILOS PARA EL MENÚ LATERAL (SIDEBAR ASIMÉTRICO)
        ======================================================== */
        
      .blog-layout-wrapper {
    display: grid !important;
    /* Fuerza un 65% para tus artículos y un 35% completo para el menú lateral */
    grid-template-columns: 65% 35% !important; 
    gap: 40px !important;
    width: 100% !important;
}
        .blog-main-content {
            display: flex;
            flex-direction: column;
            gap: 50px;
        }

        /* Forzar que la rejilla de arriba se adapte dinámicamente al nuevo ancho disponible */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr) !important; /* Cambia a 2 columnas anchas para balancear el espacio con el sidebar */
            gap: 25px;
        }

        /* Contenedor de widgets del Sidebar */
        .blog-sidebar {
            display: flex;
            flex-direction: column;
            gap: 35px;
        }

        .sidebar-widget {
            background-color: #ffffff;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.03);
            text-align: left;
        }

        .sidebar-widget h3 {
            font-size: 16px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #1a1a1a;
            margin-bottom: 20px;
            font-weight: 700;
            border-bottom: 2px solid #ff5a87;
            padding-bottom: 8px;
            width: fit-content;
        }

        /* Listado de Categorías Moderno */
        .sidebar-categories {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .sidebar-categories li a {
            text-decoration: none;
            color: #555;
            font-size: 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: color 0.2s ease;
        }

        .sidebar-categories li a:hover {
            color: #ff5a87;
        }

        .sidebar-categories li a span {
            font-size: 12px;
            color: #999;
            background-color: #f8f9fa;
            padding: 2px 8px;
            border-radius: 20px;
        }

        /* Lista de Últimos Artículos con imagen mini */
        .sidebar-recent-posts {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .recent-post-item {
            display: flex;
            gap: 15px;
            text-decoration: none;
            align-items: center;
            transition: opacity 0.2s;
        }

        .recent-post-item:hover {
            opacity: 0.8;
        }

        .recent-post-thumb {
            width: 65px;
            height: 65px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
            background-color: #eaeaea;
        }

        .recent-post-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .recent-post-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .recent-post-info h4 {
            font-size: 13px;
            color: #1a1a1a;
            font-weight: 600;
            line-height: 1.3;
            margin: 0;
        }

        .recent-post-info span {
            font-size: 11px;
            color: #999;
        }

        /* Ajuste Responsivo: En celulares, el menú lateral cae ordenadamente abajo del contenido */
        @media (max-width: 992px) {
            .blog-layout-wrapper {
                grid-template-columns: 1fr;
                gap: 50px;
            }
            .blog-grid {
                grid-template-columns: 1fr !important;
            }
        }
        /* ========================================================
           ESTILOS PARA EL BANNER PUBLICITARIO DEL SIDEBAR
        ======================================================== */
        .sidebar-ad-widget {
            padding: 0 !important; /* Quitamos el padding general para que la imagen toque los bordes superiores */
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .sidebar-ad-banner {
            width: 100%;
            height: 180px; /* Altura ideal para el mini banner lateral */
            position: relative;
            overflow: hidden;
        }

        .sidebar-ad-banner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        /* Efecto zoom suave al pasar el mouse por el banner */
        .sidebar-ad-widget:hover .sidebar-ad-banner img {
            transform: scale(1.05);
        }

        /* Etiqueta flotante pequeña sobre la imagen */
        .ad-overlay {
            position: absolute;
            top: 15px;
            left: 15px;
            background-color: rgba(255, 90, 135, 0.9); /* Tu rosa característico con opacidad */
            color: #ffffff;
            font-size: 10px;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 4px;
            letter-spacing: 1px;
        }

        /* Contenido de texto debajo de la imagen del banner */
        .sidebar-ad-content {
            padding: 25px;
            text-align: left;
        }

        .sidebar-ad-content h4 {
            font-size: 15px;
            color: #1a1a1a;
            margin-bottom: 10px;
            font-weight: 700;
            line-height: 1.4;
        }

        .sidebar-ad-content p {
            font-size: 13px;
            color: #666;
            line-height: 1.5;
            margin-bottom: 20px;
        }

        /* Botón de acción para la publicidad */
        .sidebar-ad-btn {
            display: block;
            width: 100%;
            background-color: #ff5a87;
            color: #ffffff !important;
            text-decoration: none;
            text-align: center;
            padding: 12px 0;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            transition: background-color 0.2s, transform 0.1s;
        }

        .sidebar-ad-btn:hover {
            background-color: #e04671;
        }

        .sidebar-ad-btn:active {
            transform: scale(0.98);
        }
/* ========================================================
   ESTILOS ADICIONALES PARA LA PÁGINA INDIVIDUAL DEL BLOG
======================================================== */
.single-hero {
    height: 100vh;
    width: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 24px;
}

.single-hero-content {
    max-width: 800px;
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

.single-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff5a87;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.single-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.single-meta {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
}

/* Flecha de Scroll animada */
.single-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    width: 35px;
    height: 35px;
    animation: bounceEffect 2s infinite;
    z-index: 2;
    cursor: pointer;
}

@keyframes bounceEffect {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* Área del contenedor de lectura con fondo blanco */
.single-blog-container {
    background-color: #ffffff;
    padding: 80px 8%;
    width: 100%;
}

.single-main-post {
    background-color: #ffffff;
    text-align: left;
}

.post-rich-text {
    font-size: 16px;
    color: #333333;
    line-height: 1.8;
}

.post-lead {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 30px;
}

.post-rich-text p {
    margin-bottom: 25px;
}

.post-rich-text h3 {
    font-size: 22px;
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Adaptación responsive rápida para celulares */
@media (max-width: 768px) {
    .single-hero-content h1 { font-size: 30px; }
    .single-blog-container { padding: 40px 6%; }
    .post-rich-text { font-size: 15px; }
}


/* ========================================================
   ESTILO PARA EL PÁRRAFO DE INTRODUCCIÓN EN EL HERO
======================================================== */
.post-lead-top {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #f5f5f5;
    max-width: 700px;
    margin: 25px auto 0 auto; /* Centra el bloque y le da separación con la fecha */
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.4);
}

/* Ajuste rápido para celulares */
@media (max-width: 768px) {
    .post-lead-top {
        font-size: 15px;
        line-height: 1.5;
        margin-top: 15px;
    }
}


/* ========================================================
   REPARACIÓN DE DISEÑO RESPONSIVE PARA EL CATÁLOGO DEL BLOG
======================================================== */
@media (max-width: 992px) {
    /* Rompe las dos columnas y las pone una debajo de otra en celulares y tablets */
    .blog-layout-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 50px !important;
        width: 100% !important;
    }

    /* Fuerza a que las tarjetas del catálogo ocupen una sola columna vertical limpia */
    .blog-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* El menú de la derecha se estira completamente abajo de los artículos */
    .blog-sidebar {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding-top: 130px !important;
    }
    .blog-header h2 {
        font-size: 26px !important;
    }
    .blog-card-image {
        height: 220px !important;
    }
}
/* Fuerza al contenedor de la librería a comportarse como el input original */
.footer-subscribe .subscribe-form {
    display: flex !important;
    align-items: stretch !important; /* Mantiene la misma altura para input y botón */
    gap: 0; /* Ajusta si tu diseño original llevaba separación */
}

/* Hace que el contenedor de la bandera ocupe el espacio correcto en el flujo flex */
.footer-subscribe .iti {
    flex-grow: 1;
    display: flex;
}

/* Restaura el ancho completo y el estilo nativo de tu input */
.footer-subscribe .iti input {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 52px !important; /* Deja espacio exacto para que no choque el texto con el prefijo */
}

/* Color del texto de la lista desplegable de países */
.iti__country-list {
    color: #333333 !important;
}
