/*  INDEX-----------------------------------------------------------------------------*/
        /* RESET Y BASE */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            background: #ebe6d7; /* Blanco opacado/mate */
            color: #222222;
            line-height: 1.6;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Container después del banner necesita espacio para los botones */
        .banner + .container {
            margin-top: 15px; /* Reducido porque botones ya no sobresalen */
        }

        /* BANNER CON IMAGEN - OCUPA TODO SIN MÁRGENES */
        .banner {
            width: 100%; /* Ancho completo */
            margin: 0; /* Sin márgenes */
            padding: 0; /* Sin padding */
            display: block;
            position: relative;
        }

        .banner a {
            display: block;
            cursor: pointer;
            transition: opacity 0.3s ease;
        }

        .banner a:hover {
            opacity: 0.9;
        }

        .banner img {
            width: 100%; /* Ancho completo del contenedor */
            height: auto; /* Altura proporcional */
            display: block; /* Elimina espacio blanco debajo */
        }

        /* BARRA SUPERIOR */
        .top-bar {
            background: #ebe6d7;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            flex-wrap: wrap;
            border: 1px solid #e0e0e0;
        }

        /* BOTONES - ROJO Y NEGRO */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-primary {
            background: #d32f2f; /* Rojo */
            color: #ebe6d7;
            border: 2px solid #d32f2f;
        }

        .btn-primary:hover {
            background: #b71c1c;
            border-color: #b71c1c;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
        }

        .btn-secondary {
            background: #222222; /* Negro */
            color: #ebe6d7;
            border: 2px solid #222222;
        }

        .btn-secondary:hover {
            background: #000000;
            border-color: #000000;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(34, 34, 34, 0.3);
        }

        .btn-outline {
            background: transparent;
            color: #d32f2f;
            border: 2px solid #d32f2f;
        }

        .btn-outline:hover {
            background: #d32f2f;
            color: #ebe6d7;
        }

        .btn-warning {
            background: #f57c00; /* Naranja */
            color: #ebe6d7;
            border: 2px solid #f57c00;
        }

        .btn-warning:hover {
            background: #e65100;
            border-color: #e65100;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
        }

        /* FORMULARIO DE BÚSQUEDA */
        .search-form {
            display: flex;
            gap: 10px;
            flex: 1;
            max-width: 600px;
        }

        .search-input {
            flex: 1;
            padding: 10px 15px;
            border: 2px solid #d1d1d1;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s;
            background: #ebe6d7;
        }

        .search-input:focus {
            outline: none;
            border-color: #d32f2f; /* Rojo */
            box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
        }

        select.search-input {
            min-width: 160px;
            cursor: pointer;
        }

        /* CATEGORÍAS */
        .categorias {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #d32f2f; /* Línea roja */
        }

        .categoria-btn {
            padding: 8px 16px;
            background: #ebe6d7;
            border-radius: 6px;
            font-weight: 500;
            color: #444;
            transition: all 0.3s;
            border: 1px solid #e0e0e0;
        }

        .categoria-btn:hover {
            background: #ddd4c0;
        }

        .categoria-btn.active {
            background: #d32f2f; /* Rojo */
            color: #ebe6d7;
            border-color: #d32f2f;
        }

        /* PAGINACIÓN */
        .paginacion {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin: 30px 0;
            flex-wrap: wrap;
        }

        .paginacion-info {
            color: #666;
            font-size: 14px;
            margin: 0 15px;
        }

        .paginacion-btn {
            padding: 8px 14px;
            background: #ebe6d7;
            border-radius: 6px;
            font-weight: 500;
            color: #444;
            transition: all 0.3s;
            border: 1px solid #e0e0e0;
            min-width: 40px;
            text-align: center;
        }

        .paginacion-btn:hover {
            background: #ddd4c0;
        }

        .paginacion-btn.active {
            background: #d32f2f; /* Rojo */
            color: #ebe6d7;
            border-color: #d32f2f;
        }

        .paginacion-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* LAYOUT PRINCIPAL - 2 COLUMNAS */
        .main-layout {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        @media (max-width: 1024px) {
            .main-layout {
                grid-template-columns: 1fr;
            }
        }

        /* COLUMNA IZQUIERDA - NOTICIAS PRINCIPALES */
        .noticias-principales {
            background: #ebe6d7;
            border-radius: 10px;
            border: 1px solid #e0e0e0;
            overflow: hidden;
        }

        .seccion-titulo {
            padding: 20px 25px;
            background: #ebe6d7;
            border-bottom: 3px solid #d32f2f; /* Línea roja */
            margin-bottom: 15px; /* Agregado espacio después de la línea roja */
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .seccion-titulo h2 {
            font-size: 1.4rem;
            font-weight: 700;
            color: #222;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .seccion-titulo svg {
            color: #d32f2f;
        }

        /* LISTA DE NOTICIAS CON SEPARACIÓN CLARA */
        .lista-noticias {
            display: flex;
            flex-direction: column;
        }

        .noticia-item {
            padding: 12px; /* Reducido de 25px a 12px */
            border-bottom: 2px solid #f0f0f0;
            transition: background-color 0.3s;
            position: relative;
        }

        .noticia-item:hover {
            background: #e0dace;
        }

        .noticia-item:last-child {
            border-bottom: none;
        }

        /* CABECERA DE NOTICIA */
        .noticia-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px; /* Reducido de 15px a 10px */
            padding-bottom: 8px; /* Reducido de 12px a 8px */
            border-bottom: 1px solid #e0e0e0;
        }

        .noticia-categoria {
            padding: 5px 12px;
            background: #222; /* Negro */
            color: #ebe6d7;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .noticia-fecha {
            color: #666;
            font-size: 13px;
            font-weight: 500;
        }

        /* CONTENIDO DE NOTICIA */
        .noticia-contenido {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 25px;
            margin-bottom: 20px;
        }

        @media (max-width: 768px) {
            .noticia-contenido {
                grid-template-columns: 1fr;
                gap: 15px;
            }
        }

        .noticia-imagen-container {
            border-radius: 8px;
            overflow: hidden;
            height: 180px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .noticia-imagen {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .noticia-imagen:hover {
            transform: scale(1.05);
        }

        .noticia-texto {
            display: flex;
            flex-direction: column;
        }

        .noticia-titulo {
            font-size: 1.4rem;
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 12px;
            color: #222;
        }

        .noticia-titulo a:hover {
            color: #d32f2f; /* Rojo */
        }

        .noticia-extracto {
            color: #555;
            line-height: 1.6;
            margin-bottom: 15px;
            flex-grow: 1;
        }

        /* PIE DE NOTICIA */
        .noticia-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 15px;
            border-top: 1px solid #f0f0f0;
        }

        /* ESTILOS GENERALES PARA AUTOR Y AVATAR - SOBRESCRITOS POR ESPECÍFICOS */
        /* Los estilos específicos están en las líneas siguientes */

        .noticia-estadisticas {
            display: flex;
            gap: 15px;
            color: #888;
            font-size: 13px;
        }

      /* ===== MODIFICACIONES PARA EL NUEVO DISEÑO ===== */
.noticia-contenido {
    display: flex;
    gap: 25px;
    margin-bottom: 15px;
}

.noticia-imagen-container {
    flex: 0 0 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative; /* Para posicionar el autor absolutamente */
    display: flex;
    flex-direction: column;
}

.noticia-imagen {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
}

.noticia-imagen:hover {
    transform: scale(1.05);
}

/* CONTENEDOR DE AUTOR Y BOTÓN - AHORA SIEMPRE VISIBLE */
.imagen-footer {
    padding: 12px;
    background: rgba(235, 230, 215, 0.95);
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative; /* Cambiado de absolute a relative */
    z-index: 2;
    margin-top: -1px; /* Para que se pegue a la imagen */
}

/* SI NO HAY IMAGEN, ESTILO ALTERNATIVO */
.no-imagen-container {
    flex: 0 0 250px;
    background: #ebe6d7;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* CONTENIDO DE TEXTO */
.noticia-texto {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* TEXTO DEL CONTENIDO (NUEVO) */
.noticia-contenido-texto {
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.7;
    margin: 15px 0 20px 0;
    padding: 0;
    font-weight: 400;
    flex-grow: 1;
}

/* AJUSTE PARA EL BOTÓN EN EL NUEVO CONTEXTO */
.imagen-footer .btn-leer-mas,
.no-imagen-container .btn-leer-mas {
    padding: 8px 16px;
    background: #222;
    color: #ebe6d7;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    border: 1px solid #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    width: 100%;
    margin-top: 0;
}

.imagen-footer .btn-leer-mas:hover,
.no-imagen-container .btn-leer-mas:hover {
    background: #d32f2f;
    color: #ebe6d7;
    border-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .noticia-contenido {
        flex-direction: column;
        gap: 15px;
    }
    
    .noticia-imagen-container {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .no-imagen-container {
        flex: 0 0 auto;
        width: 100%;
    }
}

        /* COLUMNA DERECHA - ESPECIALES */
        .especiales-sidebar {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        /* REPRODUCTOR - Asegurar que se muestre completo en desktop */
        .especiales-sidebar #sr-main-container {
            background: #ebe6d7;
            border-radius: 10px;
            border: 1px solid #e0e0e0;
            overflow: visible !important; /* Permitir que el contenido se expanda */
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
            max-height: none !important; /* Sin límite de altura */
            height: auto !important; /* Altura automática */
        }

        .especiales-sidebar #sr-players-container {
            max-height: none !important; /* Sin límite de altura */
            overflow: visible !important; /* Permitir que todos los reproductores sean visibles */
        }

        .especial-card {
            background: #ebe6d7;
            border-radius: 10px;
            border: 1px solid #e0e0e0;
            overflow: hidden;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        }

        .especial-header {
            padding: 18px;
            color: #ebe6d7;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 3px solid;
        }

        .especial-header.editorial {
            background: #d31103; /* Púrpura */
            border-color: #000000;
        }

        .especial-header.urgente {
            background: #d32f2f; /* Rojo oscuro */
            border-color: #000000;
        }

        .especial-header.destacado {
            background: #1b1b1b; /* Naranja */
            border-color: #e90404fb;
        }

        .especial-header h3 {
            font-size: 1.1rem;
            font-weight: 700;
        }

        .especial-content {
            padding: 20px;
        }

        .especial-titulo {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 12px;
            line-height: 1.4;
            color: #222;
        }

        .especial-titulo a:hover {
            color: #d32f2f; /* Rojo */
        }

        .especial-extracto {
            color: #555;
            line-height: 1.6;
            margin-bottom: 15px;
            border-left: 3px solid #e0e0e0;
            padding-left: 12px;
        }

        .especial-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 13px;
            color: #666;
            padding-top: 12px;
            border-top: 1px solid #f0f0f0;
        }

        /* LISTA DE DESTACADAS */
        .destacada-item {
            padding: 15px;
            border-radius: 6px;
            background: #fafafa;
            margin-bottom: 10px;
            transition: all 0.3s;
            border: 1px solid #e0e0e0;
        }

        .destacada-item:hover {
            background: #f0f0f0;
            border-color: #d0d0d0;
            transform: translateX(5px);
        }

        .destacada-item:last-child {
            margin-bottom: 0;
        }

        .destacada-titulo {
            font-weight: 600;
            margin-bottom: 6px;
            color: #333;
            font-size: 1rem;
        }

        .destacada-fecha {
            font-size: 12px;
            color: #666;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* FOOTER */
        .footer {
            background: #222;
            color: #ccc;
            padding: 30px 0;
            margin-top: 40px;
            border-top: 3px solid #d32f2f; /* Línea roja */
        }

        .footer-content {
            text-align: center;
        }

        .footer p {
            margin-bottom: 10px;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 25px;
            margin-top: 15px;
        }

        .footer-links a {
            color: #aaa;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: #d32f2f; /* Rojo */
        }

        /* ESTADO VACÍO */
        .empty-state {
            text-align: center;
            padding: 50px 25px;
            background: #ebe6d7;
            border-radius: 10px;
            border: 1px solid #e0e0e0;
        }

        .empty-state h3 {
            font-size: 1.3rem;
            margin-bottom: 12px;
            color: #222;
        }

        .empty-state p {
            color: #666;
            max-width: 400px;
            margin: 0 auto 20px;
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            .banner {
                height: 160px;
            }
            
            .banner h1 {
                font-size: 1.8rem;
            }
            
            .top-bar {
                flex-direction: column;
                align-items: stretch;
            }
            
            .search-form {
                flex-direction: column;
                max-width: 100%;
            }
            
            .categorias {
                justify-content: center;
            }
            
            .noticia-imagen-container {
                height: 140px;
            }
            
            .btn-group {
                flex-direction: column;
                width: 100%;
            }
            
            .btn-group a {
                width: 100%;
                justify-content: center;
            }
            
            .paginacion {
                flex-direction: column;
                gap: 10px;
            }
            
            .paginacion-info {
                margin: 10px 0;
            }
        }

        /* GRUPO DE BOTONES */
        .btn-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

/* ===== DISEÑO COMPACTO - SEGURO ===== */
.noticia-contenido {
    display: flex;
    gap: 25px;
    margin-bottom: 15px;
}

/* CONTENEDOR PRINCIPAL IZQUIERDO */
.noticia-lado-izquierdo {
    flex: 0 0 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    background: #ebe6d7;
}

/* IMAGEN - SIN ESPACIOS */
.noticia-imagen-container {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.noticia-imagen {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
}

/* CONTENEDOR DE IMAGEN CON AUTOR SUPERPUESTO */
.noticia-imagen-container {
    position: relative;
    margin-bottom: 0 !important; /* Sin margen para pegar con el botón */
}

/* AUTOR SUPERPUESTO EN LA PARTE INFERIOR DE LA IMAGEN */
.noticia-imagen-container .noticia-autor {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important; /* Cambiar de 0 a auto para permitir ancho contenido */
    width: auto !important; /* Ancho automático según contenido */
    display: inline-flex !important; /* inline-flex para ajustar al contenido */
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px);
    padding: 3px 10px 2px 10px !important; /* Reducido: 3px arriba, 2px abajo */
    margin: 0 !important;
    text-align: left !important;
}

.noticia-imagen-container .autor-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    background: #d32f2f;
    color: #ebe6d7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px !important;
    object-fit: cover;
    border: 2px solid #ebe6d7 !important;
    flex-shrink: 0;
}

.noticia-imagen-container .noticia-autor span {
    font-weight: 600 !important;
    color: #ebe6d7 !important;
    font-size: 14px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

/* CONTENEDOR AUTOR/BOTÓN - MÍNIMOS MÁRGENES */
.autor-boton-container {
    padding: 3px !important; /* Reducido de 4px a 3px */
    padding-bottom: 1px !important; /* Padding inferior casi eliminado */
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 3px !important; /* Margen mínimo entre botón y extracto - reducido de 4px a 3px */
}

/* BOTÓN LEER MÁS - MARGEN MÍNIMO CON IMAGEN */
.autor-boton-container .btn-leer-mas {
    padding: 10px 16px !important;
    background: #222;
    color: #ebe6d7;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px !important; /* Tamaño legible */
    transition: all 0.3s;
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    margin: 0 !important;
}

.autor-boton-container .btn-leer-mas svg {
    width: 14px;
    height: 14px;
}

.autor-boton-container .btn-leer-mas:hover {
    background: #d32f2f;
    border-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.2);
}

/* EXTRACTO - NEGRITA Y MARGEN CON LA LÍNEA ROJA LATERAL */
.autor-boton-container .noticia-extracto {
    font-size: 13px !important; /* Tamaño legible */
    line-height: 1.5 !important;
    color: #555;
    font-weight: 600 !important; /* Negrita */
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 8px !important; /* Margen con la línea roja del lado izquierdo */
}

/* CUANDO NO HAY IMAGEN - AUTOR NORMAL */
.autor-boton-container.sin-imagen {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 4px !important; /* Reducido de 6px a 4px */
    padding-bottom: 2px !important; /* Padding inferior muy reducido */
    background: #ebe6d7;
}

.autor-boton-container.sin-imagen .noticia-autor {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Avatar justificado a la izquierda */
    gap: 6px !important; /* Gap mínimo */
    margin-bottom: 0 !important;
    position: relative !important;
    background: transparent !important;
    padding: 0 !important;
    text-align: left !important; /* Forzar alineación a la izquierda */
}

.autor-boton-container.sin-imagen .autor-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    background: #d32f2f;
    color: #ebe6d7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px !important;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.autor-boton-container.sin-imagen .noticia-autor span {
    font-weight: 600;
    color: #222 !important;
    font-size: 14px !important;
    text-shadow: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .noticia-contenido {
        flex-direction: column;
    }
    
    .noticia-lado-izquierdo {
        width: 100%;
    }
}

/* ===== ESTILOS PARA PÁGINA DE NOTICIA INDIVIDUAL (de VER-nOTICIA2.css) ============================================================= */

/* CONTENIDO PRINCIPAL - LAYOUT DE 2 COLUMNAS */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0 50px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* COLUMNA IZQUIERDA - NOTICIA COMPLETA */
.noticia-completa {
    background: #ebe6d7;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* IMAGEN DESTACADA */
.noticia-imagen-destacada {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
}

.noticia-imagen-destacada img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imagen-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.4) 80%, transparent 100%);
    padding: 30px;
    color: #ebe6d7;
}

/* BADGES - ESTILO COHERENTE */
.badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.badge-categoria {
    background: #222;
    color: #ebe6d7;
}

.badge-editorial {
    background: #7b1fa2;
    color: #ebe6d7;
}

.badge-urgente {
    background: #d32f2f;
    color: #ebe6d7;
}

.badge-destacado {
    background: #f57c00;
    color: #ebe6d7;
}

/* TÍTULO DE NOTICIA EN OVERLAY */
.noticia-titulo-principal {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #ebe6d7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

/* CONTENIDO DE LA NOTICIA (PÁGINA INDIVIDUAL) */
.noticia-contenido {
    padding: 30px;
}

.noticia-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
}

/* EXTRACTO EN PÁGINA INDIVIDUAL */
.noticia-extracto {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 30px;
    margin-left: -30px;
    margin-right: -30px;
    padding: 20px 30px 20px 30px;
    background: transparent;
    border-left: 4px solid #d32f2f;
    font-weight: 500;
}

/* METADATA AL FINAL DEL ARTÍCULO */
.noticia-meta-footer {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px auto 40px;
    padding: 15px 20px;
    background: #ebe6d7;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    font-size: 11px;
    color: #666;
    max-width: 100%;
}

.noticia-meta-footer .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.noticia-meta-footer .meta-item svg {
    color: #888;
}

/* CONTENIDO PRINCIPAL CON FORMATO TINYMCE */
.noticia-cuerpo {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

/* Estilos para el contenido HTML de TinyMCE */
.noticia-cuerpo p {
    margin-bottom: 20px;
    text-align: justify;
}

.noticia-cuerpo h1, 
.noticia-cuerpo h2, 
.noticia-cuerpo h3, 
.noticia-cuerpo h4, 
.noticia-cuerpo h5 {
    margin: 30px 0 15px;
    color: #222;
    font-weight: 700;
    line-height: 1.3;
}

.noticia-cuerpo h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.noticia-cuerpo h3 {
    font-size: 1.3rem;
}

.noticia-cuerpo h4 {
    font-size: 1.2rem;
}

.noticia-cuerpo ul, 
.noticia-cuerpo ol {
    margin: 15px 0 15px 30px;
}

.noticia-cuerpo li {
    margin-bottom: 8px;
}

.noticia-cuerpo blockquote {
    margin: 25px 0;
    padding: 20px;
    background: #ebe6d7;
    border-left: 4px solid #222;
    font-style: italic;
    color: #555;
    font-size: 1rem;
    border-radius: 0 8px 8px 0;
}

.noticia-cuerpo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.noticia-cuerpo a {
    color: #d32f2f;
    text-decoration: underline;
}

.noticia-cuerpo a:hover {
    color: #b71c1c;
}

.noticia-cuerpo table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.noticia-cuerpo table th,
.noticia-cuerpo table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.noticia-cuerpo table th {
    background: #ebe6d7;
    font-weight: 700;
}

.noticia-cuerpre {
    background: #222;
    color: #ebe6d7;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

/* TAGS */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.tag {
    padding: 8px 16px;
    background: #ebe6d7;
    color: #444;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.tag:hover {
    background: #ddd4c0;
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

/* COLUMNA DERECHA - SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* TARJETAS DE SIDEBAR */
.sidebar-card {
    background: #ebe6d7;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    padding: 18px;
    background: #ebe6d7;
    border-bottom: 3px solid #d32f2f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}

.sidebar-content {
    padding: 20px;
}

/* INFO AUTOR */
.autor-info {
    text-align: center;
}

.autor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #e0e0e0;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #d32f2f;
    color: #ebe6d7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 15px;
    border: 3px solid #e0e0e0;
}

.autor-nombre {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.autor-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

/* COMPARTIR */
.compartir-botones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.btn-compartir {
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    background: #ebe6d7;
    color: #444;
    cursor: pointer;
    font-size: 13px;
}

.btn-compartir:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-compartir.facebook:hover {
    background: #1877f2;
    color: #ebe6d7;
    border-color: #1877f2;
}

.btn-compartir.twitter:hover {
    background: #1da1f2;
    color: #ebe6d7;
    border-color: #1da1f2;
}

.btn-compartir.whatsapp:hover {
    background: #25d366;
    color: #ebe6d7;
    border-color: #25d366;
}

.btn-compartir.email:hover {
    background: #ea4335;
    color: #ebe6d7;
    border-color: #ea4335;
}

/* NOTICIAS RELACIONADAS */
.relacionada-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.relacionada-item:hover {
    background: #e0dace;
    border-radius: 8px;
    padding: 15px;
    margin: 0 -15px;
}

.relacionada-item:last-child {
    border-bottom: none;
}

.relacionada-imagen {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.relacionada-contenido {
    flex: 1;
}

.relacionada-titulo {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.relacionada-titulo:hover {
    color: #d32f2f;
}

.relacionada-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #888;
}

/* BOTÓN VOLVER ARRIBA */
.btn-volver-arriba {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #d32f2f;
    color: #ebe6d7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

.btn-volver-arriba.visible {
    opacity: 1;
    visibility: visible;
}

.btn-volver-arriba:hover {
    background: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.4);
}

/* BOTONES DE EDICIÓN (para usuarios logueados) */
.edicion-botones {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* ===== ESTILOS PARA PÁGINAS DE ADMINISTRACIÓN ===== */

/* BOTONES PEQUEÑOS */
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    min-width: auto;
}

.btn-accion {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    justify-content: center;
}

.btn-accion.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-width: auto;
}

/* BOTONES EMBED */
.embed-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #ebe6d7;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid #d0c9b8;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d0c9b8;
}

.modal-header h3 {
    font-size: 1.3rem;
    color: #222;
    margin: 0;
}

.close-modal {
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: #666;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #d32f2f;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #d0c9b8;
}

/* TAB BUTTONS */
.tab-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #d0c9b8;
}

.tab-button {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    font-size: 14px;
}

.tab-button:hover {
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.05);
}

.tab-button.active {
    color: #d32f2f;
    border-bottom-color: #d32f2f;
    background: rgba(211, 47, 47, 0.05);
}

/* TAB CONTENT */
.tab-content {
    margin-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane .form-group {
    margin-bottom: 20px;
}

.tab-pane .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.tab-pane .form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* DATETIME HELPER */
.datetime-helper {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.datetime-helper button {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.datetime-helper button:hover {
    color: #b71c1c;
}

/* CONTADOR DE CARACTERES */
.contador {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 5px;
    font-weight: 500;
}

.contador.alerta {
    color: #d32f2f;
}

.contador.advertencia {
    color: #f57c00;
}

/* ERROR MESSAGES */
.error-message {
    display: none;
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* NOTA/INFORMACIÓN */
.nota {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 8px;
    margin-top: 25px;
    border-left: 4px solid #d32f2f;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.nota ul {
    margin-top: 10px;
    margin-left: 20px;
}

.nota li {
    margin-bottom: 6px;
}

/* DATETIME CONTAINER */
.datetime-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.datetime-container .form-control {
    flex: 1;
}

/* MODAL DE CONFIRMACIÓN (para gestionar_noticias.php) */
.modal-contenido {
    background: #ebe6d7;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.modal-titulo {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-texto {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.modal-acciones {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* BADGES DE ESTADO (para gestionar_noticias.php) */
.estado-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.3px;
}

.badge-destacado {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-urgente {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-editorial {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.badge-normal {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.badge-programada {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    border: 1px solid #b91c1c;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
}

.badge-programada svg {
    width: 14px;
    height: 14px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* TABLA PARA GESTIONAR NOTICIAS */
.tabla-container {
    background: #ebe6d7;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tabla-header {
    padding: 20px 25px;
    background: #fafafa;
    border-bottom: 3px solid #d32f2f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tabla-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-noticias {
    background: #222;
    color: #ebe6d7;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ESTILOS DE TABLA */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f5f5f5;
}

th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #e0e0e0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

tbody tr {
    transition: background-color 0.3s;
    background: #ebe6d7;
}

tbody tr:hover {
    background: #e0dace;
}

/* NOTICIA PROGRAMADA */
.noticia-programada {
    background: #fff5f5 !important;
    border-left: 4px solid #dc2626;
}

.noticia-programada:hover {
    background: #fee2e2 !important;
}

/* COLUMNAS DE TABLA */
.col-titulo {
    width: 40%;
}

.col-categoria {
    width: 15%;
}

.col-fecha {
    width: 15%;
}

.col-estado {
    width: 10%;
}

.col-acciones {
    width: 20%;
}

/* CONTENIDO DE TABLA */
.titulo-noticia {
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 1.05rem;
}

.titulo-noticia a:hover {
    color: #d32f2f;
}

.info-extra {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-extra svg {
    color: #888;
    width: 14px;
    height: 14px;
}

.categoria-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #222;
    color: #ebe6d7;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.fecha {
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.hora {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* ACCIONES */
.acciones {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* BÚSQUEDA/FILTROS */
.search-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 800px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #d1d1d1;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: #ebe6d7;
}

.search-input:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

select.search-input {
    min-width: 160px;
    cursor: pointer;
}

/* PAGINACIÓN */
.paginacion {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagina-btn {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    background: #ebe6d7;
    border-radius: 8px;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagina-btn:hover {
    border-color: #d32f2f;
    color: #d32f2f;
}

.pagina-btn.active {
    background: #d32f2f;
    color: #ebe6d7;
    border-color: #d32f2f;
}

/* FILTROS CONTAINER */
.filtros-container {
    background: #ebe6d7;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

/* USER INFO */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ebe6d7;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.user-info svg {
    color: #d32f2f;
}

.user-details {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: #222;
}

.user-role {
    font-size: 13px;
    color: #666;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 25px;
    background: #ebe6d7;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.empty-state svg {
    color: #d32f2f;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #222;
}

.empty-state p {
    color: #666;
    max-width: 400px;
    margin: 0 auto 20px;
}

/* BOTONES ADICIONALES */
.btn-danger {
    background: #dc2626;
    color: #ebe6d7;
    border: 2px solid #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-2px);
}

.btn-success {
    background: #059669;
    color: #ebe6d7;
    border: 2px solid #059669;
}

.btn-success:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-2px);
}

.btn-warning {
    background: #f57c00; /* Naranja */
    color: #ebe6d7;
    border: 2px solid #f57c00;
}

.btn-warning:hover {
    background: #e65100;
    border-color: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

/* RESPONSIVE PARA ADMINISTRACIÓN */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        max-height: 85vh;
    }
    
    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-button {
        white-space: nowrap;
    }
    
    .embed-buttons {
        flex-direction: column;
    }
    
    .embed-buttons button {
        width: 100%;
    }
    
    .tabla-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 800px;
    }
    
    .acciones {
        flex-direction: column;
    }
    
    .btn-accion {
        width: 100%;
        justify-content: center;
    }
    
    .modal-acciones {
        flex-direction: column;
    }
    
    .modal-acciones button {
        width: 100%;
    }
    
    .search-form {
        flex-direction: column;
        max-width: 100%;
    }
}

/* ESTILOS PARA LOGIN */
.login-container {
    background-color: #222;
    color: #ebe6d7;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    margin: 100px auto;
}

.login-container img {
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto 30px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ebe6d7;
}

.login-container .form-control {
    background: #333;
    border-color: #555;
    color: #ebe6d7;
    margin-bottom: 20px;
}

.login-container .form-control:focus {
    background: #444;
    border-color: #d32f2f;
    color: #ebe6d7;
}

.login-container .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
}

/* ===== ESTILOS ESPECÍFICOS DEL INDEX.PHP ===== */

/* CONTENEDOR DE BOTONES EN BANNER */
.banner-buttons {
    position: absolute;
    bottom: 0; /* PEGADO al borde inferior del banner */
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 100;
}

/* BOTÓN HAMBURGUESA */
.hamburger-container {
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.menu-toggle:hover {
    background: #d32f2f;
    transform: scale(1.05);
}

/* OCULTAR BOTÓN BOCINA EN DESKTOP - SOLO HAMBURGUESA */
.mobile-specials-btn {
    display: none;
}

/* MOSTRAR BOTÓN HAMBURGUESA EN DESKTOP */
.desktop-menu-btn {
    display: flex;
}

/* BOTÓN INICIAR SESIÓN EN BANNER */
.login-banner-container {
    display: flex;
    align-items: center;
}

.banner-login-btn {
    background: rgba(211, 47, 47, 0.95);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.banner-login-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
}

/* MENÚ HAMBURGUESA - OVERLAY COMPLETO */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ebe6d7;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
}

/* ENCABEZADO DEL MENÚ MÓVIL */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #222;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-header h3 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    color: #d32f2f;
    background: rgba(255, 255, 255, 0.1);
}

.close-menu svg {
    width: 24px;
    height: 24px;
}

/* CONTENIDO DEL MENÚ */
.mobile-menu-content {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
}

/* ESPECIALES EN MENÚ MÓVIL */
.mobile-menu-content .especiales-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-content .especial-card {
    background: #ebe6d7;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* OVERLAY PARA EL MENÚ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* AJUSTES PARA TOP-BAR EN INDEX */
.top-bar {
    padding: 10px 15px;
    justify-content: flex-end;
}

/* RESPONSIVE ADICIONAL PARA MENÚ MÓVIL */
@media (max-width: 768px) {
    .mobile-menu-content {
        padding: 12px;
    }
    
    .mobile-menu-content .especiales-sidebar {
        gap: 15px;
    }
    
    .mobile-menu-header {
        padding: 12px 15px;
    }
    
    .mobile-menu-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 575px) {
    .mobile-menu-content {
        padding: 10px;
    }
    
    .mobile-menu-content .especiales-sidebar {
        gap: 12px;
    }
    
    .mobile-menu-header {
        padding: 10px 12px;
    }
    
    .mobile-menu-header h3 {
        font-size: 1rem;
    }
    
    .close-menu svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================================================
   ESTILOS RESPONSIVE COMPLETOS - TODAS LAS PANTALLAS
   ======================================================================== */

/* PANTALLAS GRANDES (Desktop grande - 1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    .noticia-titulo {
        font-size: 1.5rem;
    }
    
    .noticia-titulo-principal {
        font-size: 2.2rem;
    }
}

/* TABLETS LANDSCAPE Y DESKTOP PEQUEÑO (1024px - 1399px) */
@media (max-width: 1399px) {
    .container {
        max-width: 1200px;
        padding: 0 15px;
    }
    
    .noticia-imagen-container {
        flex: 0 0 250px;
    }
    
    .noticia-imagen {
        height: 160px;
    }
}

/* TABLETS (768px - 1023px) */
@media (max-width: 1023px) {
    .container {
        padding: 0 15px;
    }
    
    /* LAYOUT PRINCIPAL */
    .main-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* NOTICIAS */
    .noticia-contenido {
        flex-direction: column;
        gap: 15px;
    }
    
    .noticia-lado-izquierdo {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .noticia-imagen-container {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .noticia-imagen {
        height: 200px;
    }
    
    /* IMAGEN DESTACADA */
    .noticia-imagen-destacada {
        height: 350px;
    }
    
    /* BADGES */
    .badges {
        flex-wrap: wrap;
    }
    
    /* SIDEBAR */
    .sidebar {
        order: -1;
    }
    
    /* COMPARTIR */
    .compartir-botones {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* TOP BAR */
    .top-bar {
        gap: 10px;
    }
    
    .btn-group {
        width: 100%;
        justify-content: center;
    }
}

/* MÓVILES GRANDES (576px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 10px;
    }
    
    /* Container después del banner - SIN MARGEN */
    .banner + .container {
        margin-top: 0 !important; /* CERO MARGEN */
    }
    
    /* BANNER */
    .banner {
        height: 150px; /* Mismo alto que la imagen */
        overflow: visible; /* Para que los botones se vean */
    }
    
    .banner img {
        max-height: 150px;
        object-fit: cover;
        height: 100%;
    }
    
    /* BANNER BUTTONS - AJUSTE MÓVIL */
    .banner-buttons {
        bottom: auto; /* Cancelar bottom */
        top: calc(100% - 48px); /* Pegado al fondo de la imagen */
        padding: 0 10px;
        gap: 10px;
    }
    
    /* OCULTAR HAMBURGUESA EN MÓVIL - SOLO BOCINA */
    .desktop-menu-btn {
        display: none !important;
    }
    
    /* MOSTRAR BOCINA EN MÓVIL */
    .mobile-specials-btn {
        display: flex !important;
    }
    
    .menu-toggle {
        width: 38px;
        height: 38px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    }
    
    .menu-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .banner-login-btn {
        padding: 5px 9px;
        font-size: 10px;
        border-radius: 14px;
        gap: 3px;
        font-weight: 600;
    }
    
    .banner-login-btn svg {
        width: 11px;
        height: 11px;
    }
    
    /* TOP BAR */
    .top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 15px;
    }
    
    /* BÚSQUEDA */
    .search-form {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        font-size: 16px;
    }
    
    /* CATEGORÍAS */
    .categorias {
        justify-content: center;
        gap: 8px;
    }
    
    .categoria-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* SECCIÓN TÍTULO */
    .seccion-titulo {
        padding: 15px 18px;
    }
    
    .seccion-titulo h2 {
        font-size: 1.2rem;
    }
    
    /* NOTICIAS */
    .noticia-item {
        padding: 18px;
    }
    
    .noticia-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .noticia-contenido {
        gap: 15px;
    }
    
    .noticia-titulo {
        font-size: 1.2rem;
    }
    
    .noticia-extracto {
        font-size: 14px;
    }
    
    .noticia-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .noticia-estadisticas {
        width: 100%;
        justify-content: space-between;
    }
    
    /* IMAGEN DESTACADA */
    .noticia-imagen-destacada {
        height: 250px;
    }
    
    .noticia-titulo-principal {
        font-size: 1.5rem;
    }
    
    .imagen-overlay {
        padding: 20px;
    }
    
    /* CONTENIDO DE NOTICIA */
    .noticia-contenido {
        padding: 20px;
    }
    
    .noticia-extracto {
        font-size: 1rem;
        padding: 15px 20px;
        margin-left: -20px;
        margin-right: -20px;
    }
    
    .noticia-cuerpo {
        font-size: 15px;
    }
    
    .noticia-cuerpo h2 {
        font-size: 1.3rem;
    }
    
    .noticia-cuerpo h3 {
        font-size: 1.15rem;
    }
    
    /* SIDEBAR */
    .sidebar-card {
        margin-bottom: 20px;
    }
    
    .sidebar-content {
        padding: 15px;
    }
    
    /* ESPECIALES */
    .especial-content {
        padding: 15px;
    }
    
    .especial-titulo {
        font-size: 1.1rem;
    }
    
    /* RELACIONADAS */
    .relacionada-item {
        flex-direction: column;
    }
    
    .relacionada-imagen {
        width: 100%;
        height: 150px;
    }
    
    /* COMPARTIR */
    .compartir-botones {
        grid-template-columns: 1fr;
    }
    
    /* PAGINACIÓN */
    .paginacion {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .paginacion-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
    }
    
    .paginacion-info {
        width: 100%;
        text-align: center;
        order: -1;
        margin-bottom: 10px;
    }
    
    /* MODAL */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        padding: 20px;
        max-height: 90vh;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    /* TABLA */
    .tabla-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 700px;
    }
    
    th, td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .titulo-noticia {
        font-size: 0.95rem;
    }
    
    .info-extra {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .acciones {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-accion {
        width: 100%;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* FILTROS */
    .filtros-container {
        padding: 15px;
    }
    
    /* TABS */
    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 5px;
    }
    
    .tab-button {
        white-space: nowrap;
        padding: 10px  15px;
        font-size:  13px;
    }
    
    /* BOTÓN VOLVER ARRIBA */
    .btn-volver-arriba {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* MÓVILES PEQUEÑOS (hasta 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 8px;
    }
    
    /* Container después del banner - SIN MARGEN */
    .banner + .container {
        margin-top: 0 !important; /* CERO MARGEN */
    }
    
    /* BANNER */
    .banner {
        height: 120px; /* Mismo alto que la imagen */
        overflow: visible;
    }
    
    .banner img {
        max-height: 120px;
        height: 100%;
    }
    
    .banner-buttons {
        bottom: auto; /* Cancelar bottom */
        top: calc(100% - 42px); /* Pegado al fondo */
        padding: 0 6px;
        gap: 6px;
    }
    
    /* OCULTAR HAMBURGUESA EN MÓVIL - SOLO BOCINA */
    .desktop-menu-btn {
        display: none !important;
    }
    
    /* MOSTRAR BOCINA EN MÓVIL */
    .mobile-specials-btn {
        display: flex !important;
    }
    
    .menu-toggle {
        width: 34px;
        height: 34px;
    }
    
    .menu-toggle svg {
        width: 15px;
        height: 15px;
    }
    
    .banner-login-btn {
        font-size: 8px;
        padding: 3px 6px;
        gap: 2px;
        border-radius: 10px;
        font-weight: 600;
    }
    
    .banner-login-btn svg {
        width: 9px;
        height: 9px;
    }
}

/* MODO LANDSCAPE PARA MÓVILES */
@media (max-height: 500px) and (orientation: landscape) {
    .noticia-imagen-destacada {
        height: 300px;
    }
    
    .imagen-overlay {
        padding: 15px;
    }
    
    .noticia-titulo-principal {
        font-size: 1.3rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
}

/* AJUSTES PARA IMPRESIÓN */
@media print {
    .top-bar,
    .sidebar,
    .btn-volver-arriba,
    .banner-buttons,
    .footer-links,
    .compartir-botones,
    .edicion-botones,
    .paginacion {
        display: none !important;
    }
    
    .noticia-completa,
    .main-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    
    .noticia-cuerpo {
        color: #000;
    }
    
    .noticia-cuerpo a {
        color: #000;
        text-decoration: underline;
    }
}

/* AJUSTES PARA ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* MODO ALTO CONTRASTE */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }
    
    .noticia-item {
        border-width: 2px;
    }
    
    .badge {
        border: 2px solid currentColor;
    }
}

/* BOTONES DE MENÚ - DESKTOP VS MÓVIL */
.desktop-menu-btn {
    display: flex; /* Mostrar en desktop */
}

.mobile-specials-btn {
    display: none; /* Ocultar en desktop */
}

/* FORMULARIO DE BÚSQUEDA EN MENÚ */
.mobile-search-form {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.mobile-search-form .form-group {
    margin-bottom: 15px;
}

.mobile-search-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.mobile-search-form .search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d1d1d1;
    border-radius: 8px;
    font-size: 16px;
    background: #ebe6d7;
}

.mobile-search-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
}

/* CATEGORÍAS EN MENÚ */
.mobile-categorias {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.mobile-categorias h4 {
    margin-bottom: 15px;
    color: #222;
    font-size: 1.1rem;
}

.mobile-categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.mobile-categorias-grid .categoria-btn {
    text-align: center;
    padding: 10px 12px;
    font-size: 0.9rem;
    background: #ebe6d7;
    border-radius: 6px;
    font-weight: 500;
    color: #444;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.mobile-categorias-grid .categoria-btn:hover,
.mobile-categorias-grid .categoria-btn.active {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

/* ====================================
   ESTILOS MÓVILES PARA VER_NOTICIA.PHP
   ==================================== */

/* Ocultar botón móvil en desktop */
.btn-login-mobile {
    display: none !important;
}

/* Ocultar botón "Iniciar Sesión" en móvil */
@media (max-width: 768px) {
    .btn-login-desktop {
        display: none !important;
    }
    
    .btn-login-mobile {
        display: inline-flex !important;
        padding: 8px 10px !important;
        min-width: auto !important;
        font-size: 0 !important; /* Ocultar texto */
    }
    
    .btn-login-mobile svg {
        font-size: 14px !important; /* Restaurar tamaño del SVG */
    }
    
    /* Hacer "Sobre el autor" más compacto en móvil */
    .sidebar-card.autor-card .sidebar-header {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .sidebar-card.autor-card .sidebar-header h3 {
        font-size: 13px;
    }
    
    .sidebar-card.autor-card .sidebar-header svg {
        width: 14px;
        height: 14px;
    }
    
    .sidebar-card.autor-card .sidebar-content {
        padding: 10px;
    }
    
    .sidebar-card.autor-card .autor-info {
        padding: 5px;
    }
    
    .sidebar-card.autor-card .autor-avatar,
    .sidebar-card.autor-card .avatar-placeholder {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .sidebar-card.autor-card .autor-nombre {
        font-size: 15px;
        margin: 8px 0 5px 0;
    }
    
    .sidebar-card.autor-card .autor-bio {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .sidebar-card.autor-card .btn-outline {
        font-size: 11px !important;
        padding: 6px 10px;
        margin-top: 6px !important;
    }
    
    .sidebar-card.autor-card .btn-outline svg {
        width: 12px;
        height: 12px;
    }
    
    /* OCULTAR Compartir y Relacionadas del sidebar en móvil */
    .sidebar .sidebar-card.mobile-bottom {
        display: none !important;
    }
    
    /* MOSTRAR las secciones móviles (Compartir y Relacionadas) al final */
    .mobile-sections-bottom {
        display: block !important;
        width: 100%;
        margin-top: 20px;
        padding: 0 15px;
    }
    
    .mobile-sections-bottom .sidebar-card {
        margin-bottom: 20px;
        background: #ebe6d7;
        border-radius: 10px;
        border: 1px solid #e0e0e0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* PARCHE DEFINITIVO PARA VISIBILIDAD DEL REPRODUCTOR EN DESKTOP */
.especiales-sidebar .sr-main-container,
.especiales-sidebar [id^="sr-"][id$="-main-container"],
.especiales-sidebar .sr-players-container,
.especiales-sidebar [id^="sr-"][id$="-players-container"],
.especiales-sidebar .sr-player-container,
.especiales-sidebar .reproductor-desktop-wrapper,
.especiales-sidebar .reproductor-desktop-wrapper * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
    z-index: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: #111 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Forzar que el contenedor especial-card permita overflow */
.especial-card {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Asegurar que el sidebar no corte el contenido */
.sidebar {
    overflow: visible !important;
}
