﻿/* Estilos generales */
.novedades-section {
    padding: 40px 20px;
    background-color: #0f0f13;
    min-height: 70vh;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #f0d586;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

    .section-title:after {
        content: "";
        display: block;
        width: 100px;
        height: 3px;
        background: linear-gradient(to right, transparent, #f0d586, transparent);
        margin: 15px auto 0;
    }

/* Tarjetas de novedades */
.novedades-container {
    max-width: 1000px;
    margin: 0 auto;
}

.novedad-card {
    background-color: #1a1a22;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #2a2a35;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .novedad-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

.novedad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a35;
}

.novedad-titulo {
    color: #f0d586;
    font-size: 1.5rem;
    margin: 0;
}

.novedad-fecha {
    color: #777;
    font-size: 0.9rem;
}

.novedad-descripcion {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Estilos para multimedia (imágenes y videos) */
.novedad-media-container {
    margin: 20px 0;
    width: 100%;
    position: relative;
}

/* Estilos específicos para imágenes */
.novedad-imagen {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #3a3a45;
}

    .novedad-imagen img {
        width: 100%;
        max-height: 500px;
        object-fit: contain;
        display: block;
        background-color: #0f0f13;
        transition: transform 0.3s ease;
    }

    .novedad-imagen:hover img {
        transform: scale(1.02);
    }

/* Estilos específicos para videos */
.novedad-video {
    margin: 25px 0;
}

    .novedad-video h4 {
        color: #f0d586;
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #3a3a45;
    background-color: #0f0f13;
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

/* Efecto hover para el contenedor de video */
.video-container {
    transition: transform 0.3s ease;
}

    .video-container:hover {
        transform: scale(1.01);
        box-shadow: 0 0 15px rgba(240, 213, 134, 0.2);
    }

/* Mensaje sin novedades */
.no-novedades {
    text-align: center;
    color: #777;
    padding: 60px 0;
    font-size: 1.2rem;
}

/* Paginación */
.paginacion-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.paginacion-btn {
    padding: 10px 25px;
    background-color: transparent;
    color: #f0d586;
    border: 2px solid #f0d586;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .paginacion-btn:hover {
        background-color: #f0d586;
        color: #1a1a22;
    }

    .paginacion-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background-color: transparent !important;
        color: #f0d586 !important;
    }

.paginacion-info {
    color: #f0d586;
    font-size: 1rem;
    min-width: 120px;
    text-align: center;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .novedad-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .novedad-fecha {
        margin-top: 10px;
    }

    .novedad-titulo {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .paginacion-container {
        flex-direction: column;
        gap: 10px;
    }

    .paginacion-btn {
        width: 100%;
    }

    .novedad-imagen img {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .novedades-section {
        padding: 30px 15px;
    }

    .novedad-card {
        padding: 20px;
    }

    .novedad-imagen img {
        max-height: 250px;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #f0d586;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

    .section-title:after {
        content: "";
        display: block;
        width: 100px;
        height: 3px;
        background: linear-gradient(to right, transparent, #f0d586, transparent);
        margin: 15px auto 0;
    }


.image-error {
    color: #ff6b6b;
    padding: 10px;
    background: #2a2a35;
    border: 1px dashed #f0d586;
    text-align: center;
    font-style: italic;
}

.novedad-imagen {
    background-color: #1a1a22;
    border: 1px solid #2a2a35;
    padding: 5px;
    margin: 10px 0;
}

/* Estilos corregidos para imágenes */
.novedad-media-container {
    margin: 20px 0;
    width: 100%;
}

/* Contenedor de imagen mejorado */
.novedad-imagen-container {
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #3a3a45;
    background-color: #0f0f13;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilo específico para la imagen dentro del ListView */
#MainContent_lvNovedades_imgNovedad_0,
.novedad-img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}
/* Para imágenes muy grandes pero manteniendo relación de aspecto */
.novedad-img-large {
    max-height: 70vh !important;
    width: auto !important;
    height: auto !important;
}

.novedad-img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}
    .novedad-img:hover {
        transform: scale(1.02);
    }



/* Mensaje de depuración */
.image-debug {
    color: #f0d586;
    background: #2a2a35;
    padding: 10px;
    margin: 10px 0;
    border: 1px dashed #99ff33;
    font-size: 0.9rem;
}

.image-debug {
    color: red;
    font-size: 12px;
    background: yellow;
    padding: 5px;
    display: none; /* Cambia a block para ver los mensajes */
}

.novedad-img {
    border: 2px dashed #99ff33;
     /* Temporal para ver el espacio */
}