*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: #000;                     /* fondo negro de emergencia */
}

.main-background {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -999;
    pointer-events: none;
}

header, main, footer, .intro-container, .section, .button-container {
    position: relative;
    z-index: 10; 
    border-radius: 10px;
    margin: 15px auto;
    padding: 50px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 20px;
    margin: 10px 15px;
    max-width: 2000px;
    gap: 20px;
}

.logo {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #fff;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 2rem;
    margin: 0 20px;
    text-align: left;
    flex: 1;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

nav a {
    color: #fff;
    background: rgba(80, 150, 255, 0.8);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s
}

nav a:hover, nav a.active {
    background: #5eb5f8;
}

.datos {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.datos ul {
    margin: 2rem;
    padding: 0 50px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    text-align: center  ;
    flex-direction: row-reverse;
    list-style: none;
}

.datos h3 {
    text-align: left;
    padding: 8px;
    margin: -10px -10px 15px -10px;
    border-radius: 8px 8px 0 0;
    font-size: 1.3rem;
}

.image-section {
    width: 100%;
    max-width: 100%;
    height: 300px;
    margin: 20px auto;
    overflow: hidden;
    border: 3px solid #000;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.main-img {
    width: 60%;
    height: 100%;
    object-fit: cover;
    margin-left: 6rem;
}

.video-section {
    width: 100%;
    max-width: 100%;
    height: 300px;
    margin: 20px auto;
    overflow: hidden;
    border: 3px solid #000;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.main-video-section {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.text-intro{
    display: flex;
    flex-direction: column; /* Fuerza el layout en columna: texto arriba, imagen abajo */
    align-items: center; /* Centra horizontalmente el contenido */
    max-width: 800px; /* Limita el ancho para mejor legibilidad */
    margin: 0 auto; /* Centra el contenedor en la página */
    padding: 20px; /* Espaciado interno */
    text-align: center;
}

.image-intro {
    width: 100%;
    max-width: 60%;
    height: 500px;
    margin: 20px auto; /* Espaciado arriba y abajo, centrado */
    overflow: hidden;
    border: 3px solid #000;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.main-intro {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-container {
    width: 50%;
    max-width: 400px;
    height: 400px;
    margin: 20px auto;
    overflow: hidden;
    border: 3px solid #000;
    border-radius: 10px;
    background: #000;
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section .image-container, .section .video-container {
    max-width: none;
    height: 200px;
    margin: 12px 0;
}

h1, h2, h3, p, li {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
    line-height: 1.5;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

h3 {
    padding: 8px;
    text-align: center;
    margin: -10px -10px 15px -10px;
    border-radius: 8px 8px 0 0;
    font-size: 1.3rem;
}

.intro-container {
    max-width: 1000px;
    padding: 30px;
    margin: 20px auto;
}

.text-image {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.text-image p {
    flex: 1;
    min-width: 300px;
}

.sections {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.section {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

footer {
    text-align: center;
    padding: 20px;
    margin: 30px 15px 15px;
    font-size: 1rem;
}

@media (max-width: 992px) {
    .sections {
        flex-direction: column;
        align-items: center;
    }
    .section {
        width: 90%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        width: 60px;
        height: 60px;
    }
    h1 {
        margin: 15px 0;
        font-size: 1.8rem;
    }
    .nav {
        margin-top: 10px;
    }
    nav ul {
        justify-content: center;
    }
    .text-image {
        flex-direction: column;
        align-items: center;
    }
    .image-container,
    .video-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.5rem; }
    .button-container button {
        width: 100%;
        padding: 15px;
    }
}