* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   font-family: 'Poppins', sans-serif;
    background-color: #f9fafb;
    color: #333;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0c193e;
    padding: 0.8rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.nav-logo {
    max-width: 150px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffdd57;
}

/* Cabecera hero */
.hero-header {
    margin-top: 70px; /* espacio para la navbar fija */
    background: linear-gradient(180deg, rgba(31,52,91,1) 50%, rgba(46,76,133,1) 100%);
    color: white;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    position: relative;
    text-align: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.hero-content {
    margin-top: 1rem;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 600;
}

.hero-content p {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #ddd;
}

/* Responsivo cabecera */
@media (max-width: 768px) {
    .hero-header {
        height: auto;
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }
}

/* Hero section */
.hero {
    background-color: #f4f6f9;
    text-align: center;
    padding: 3rem 1rem;
    color: #333;
}

.hero h1 {
    font-size: 2.5rem;
    color: #1e1e2f;
}

.hero p {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #666;
}

/* Video grid (común para todas las secciones) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px !importants;
}

.video-card video {
    width: 100%;
    height: 250px !important;
    border-radius: 8px;
    background-color: #000;
    object-fit: cover;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .video-card video {
        height: 200px;
    }
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.video-card iframe {
    width: 100%;
    height: 180px;
}

.video-card h3 {
    margin: 1rem;
    font-size: 1.2rem;
    color: #1e1e2f;
}

.video-description {
    font-size: 14px;
    color: #666;
    padding: 0 10px 10px 10px;
    margin-top: 0;
}

/* Títulos secciones */
.videos {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.videos h2 {
    text-align: center;
    font-size: 2rem;
    color: #1e1e2f;
    margin-bottom: 2rem;
}

/* Pie de página */
footer {
    color: #777777;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Ajustes móviles */
@media (max-width: 768px) {
    .video-card iframe {
        height: 200px;
    }
}
