body {
    font-family: "Roboto", sans-serif;
    color: #ffffff;
    margin: 0;
    padding: 1cm;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1; /* Asegura que el contenido esté por encima del video */
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Asegura que el video esté detrás del contenido */
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #333232;
    color: #ffbb00;
    font-weight: bold;
    padding: 1em 0;
    width: 100%;
}

.desarrimg {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#img1 {
    filter: drop-shadow(2px 8px 10px #ce8e06bd);
}
#img2 {
    filter: drop-shadow(1px 2px 4px #8b7474);
    width: 700px;
    height: 400px
}
@media (max-width: 768px) {
    #img2  {
        width: 700px;
        height: auto;
        max-width: 500px;
    }
}




.bold {
    color: #ffa200;
    font-weight: bold;
}

.bold1 {
    color: #ffffff;
    font-weight: bold;
}

h1, h2 {
    font-family: "Black Ops One", system-ui;
    letter-spacing: 2px;
}

p {
    text-align: center;
}

html {
    scroll-behavior: smooth;
}

header { /* Barra de menú en general */
    background-color: #000000; /* Fondo del header en negro */
    color: #ffa200; /* Color del título grande en naranja */
    padding: 1em 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    text-shadow: 2px 2px 4px #ffffff;
}

header h1 {
    margin: 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
}

nav ul li {
    margin: 0 1em;
}

nav ul li a {
    color: #26A639; /* Color de las opciones de la barra de menú en amarillo */
    text-decoration: none;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s;
}

nav ul li a::after { /* Barras que aparecen y desaparecen en barra de menú configuración general */
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #F2F2F2, #26A639);
    transition: width 0.3s, left 0.3s;
}

.button-container {
    display: flex;
    justify-content: center; /* Centra el botón horizontalmente */
    align-items: center; /* Centra el botón verticalmente */
    height: 10px; /* Altura completa de la ventana del navegador */
}

button {
    background-color: #2f9754;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    display: flex; /* Usa flexbox para alinear el contenido */
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s; /* Transiciones suaves */
    color: white;
    font-size: 16px;
}

button:hover {
    transform: scale(1.05); /* Aumenta ligeramente el tamaño del botón */
}

a {
    color: #c98217;
}

a:hover {
    color: #fdbe6b;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

nav ul li a.active {
    color: #26A639;
}

nav ul li a.active::after {
    width: 100%;
    left: 0;
}

main {
    padding: 7em 1em 2em;
    width: 100%;
    max-width: 1200px;
}

section {
    margin-bottom: 2em;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
}

.content-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #FFA500, #ffffff);
}



.organigrama {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nivel {
    display: flex;
    justify-content: center;
    margin-bottom: 1em;
    flex-wrap: wrap;
}

.persona {
    text-align: center;
    margin: 0 1em;
    transition: transform 0.3s;
}

.contenido {
    display: inline-block;
    transition: transform 0.3s;
}

.contenido:hover {
    transform: scale(1.1);
}

.contenido img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.contenido p {
    margin-top: 0.5em;
    color: #ffffff;
    font-weight: bold;
}

.bold1 {
    color: #26A639;
}

/* Estilos para las imágenes dentro de las tarjetas */
.card {
    background-color: #fdbe6b; /* Color de las tarjetas fondo de cada sección en negro */
    padding: 1em;
    border-radius: 8px;
    margin: 1em 0;
    max-width: 1900px;
    width: 100%;
    padding-bottom: 2em;
}

.card img {
    width: 90%; /* Ajusta el tamaño de la imagen para que ocupe casi todo el ancho del contenedor */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 1em auto; /* Espaciado superior e inferior */
    transition: transform 0.3s, box-shadow 0.3s; /* Transiciones suaves */
}

.card img:hover {
    transform: scale(1.1); /* Efecto de zoom suave */
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.8); /* Sombra color amarillo-naranjoso */
}

.card p {
    text-align: justify;
    text-align-last: center; /* Centra las últimas líneas de los párrafos */
    margin-bottom: 1em;
}

/* Responsividad para dispositivos móviles */
@media (max-width: 768px) {
    .nivel {
        flex-direction: column;
        align-items: center;
    }

    .persona {
        margin: 1em 0;
    }

    nav ul {
        display: none; /* Ocultar el menú por defecto */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #000; /* Color de fondo del menú */
        padding: 1em 0; /* Espaciado interno del menú */
    }

    nav ul.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5em 0;
        text-align: center;
    }
}

/* Estilos para el menú de hamburguesa */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #FFA500; /* Color del menú de hamburguesa en naranja */
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    nav ul {
        display: none; /* Ocultar el menú por defecto */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #000; /* Color de fondo del menú */
        padding: 1em 0; /* Espaciado interno del menú */
    }

    nav ul.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5em 0;
        text-align: center;
    }
}

/* Efecto de despliegue al bajar por la página */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.5s, transform 2s;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section.slide {
    animation: slideDown 0.6s ease forwards;
}
    /*tarjetitas de proyectos en medio (BSR)*/
        .resume-wrap-bsr .agenda {
          font-weight: 900;
          font-size: 26px;
          color: #f7991e; }
        .resume-wrap-bsr h2 {
          font-size: 26px; 
        color: #ffff;
        text-shadow: 2px 2px 4px #000000;}
        .resume-wrap-bsr .position {
          font-size: 14px;
          font-weight: 600;
          letter-spacing: 3px;
          text-transform: uppercase; 
        color: #000000;}
        .mt-4-bsr {
          display: block;
          margin: 20px auto; /* Centra la imagen */
          width: 80%;
          max-width: 500px; /* Tamaño máximo de la imagen */
          height: auto; /* Mantiene la proporción de la imagen */
          border-radius: 10px;
          object-fit: cover; /* Asegura que la imagen cubra el área disponible sin distorsión */
        }
