/* Reset y fuente base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fondo con capa oscura */
body {
    background: url('/static/presentacion/ff.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    color: #333;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

/* Encabezado principal estilo banner */
.main-header {
    background: url('/static/img/fondo.jpeg') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 60px 10px;
    height: 60vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.main-header img {
    width: 300px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.main-header img:hover {
    transform: scale(1.15);
}

.header-text {
    max-width: 600px;
    text-align: center;
}

.main-header h3 {
    font-style: italic;
    font-size: 2.0rem;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.main-header p {
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    letter-spacing: 1px;
}

/* Menú de navegación */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 3px solid #4a235a;
    display: flex;
    justify-content: center;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav a {
    color: #4a235a;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 20px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1.1rem;
}

nav a:hover {
    color: white;
    background-color: #4a235a;
}

/* Contenido principal */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    padding: 30px;
}

/* Sección de video principal */
.streaming-video {
    width: 92%;
    max-width: 1200px;
    margin: 40px auto 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.streaming-video iframe {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Secciones de contenido */
.videos, .articulos {
    margin-bottom: 40px;
}

.videos h2, .articulos h2 {
    color: #4a235a;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff33f6;
    position: relative;
}

.videos h2::after, .articulos h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #4a235a;
}

/* Cuadrícula de videos y artículos */
.video-grid, .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Tarjetas de video y artículo */
.video-card, .article-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(126, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.video-card:hover, .article-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 25px rgba(126, 0, 0, 0.4);
}

.video-link, .article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.thumbnail {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4a235a, #ff33f6);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .thumbnail img {
    transform: scale(1.1);
}

/* Info del video y artículo */
.video-info, .article-card > a {
    padding: 15px;
}

.video-info h3, .article-card h3 {
    font-size: 1.2rem;
    color: #4a235a;
    margin-bottom: 8px;
}

.article-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
footer {
    background-color: #4a235a;
    color: white;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    margin-top: 40px;
}

footer p {
    margin-bottom: 15px;
    font-size: 1rem;
}

footer .social-icons {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

footer .social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

footer .social-icons a:hover {
    transform: scale(1.2);
}

footer .social-icons img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1); /* íconos blancos */
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        height: 50vh;
        padding: 40px 10px;
    }

    .main-header h3 {
        font-size: 2rem;
    }

    .main-header p {
        font-size: 1rem;
    }

    .streaming-video iframe {
        height: 350px;
    }

    .video-grid, .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .main-header {
        height: 40vh;
    }

    .main-header img {
        width: 220px;
    }

    .main-header h3 {
        font-size: 1.8rem;
    }

    nav {
        flex-wrap: wrap;
    }

    nav a {
        margin: 5px 10px;
    }

    .streaming-video iframe {
        height: 250px;
    }

    .container {
        padding: 20px 15px;
    }

    .video-grid, .article-grid {
        grid-template-columns: 1fr;
    }
}
