#ContenedorEnMedio {
    position: relative;
    z-index: 2;
    /* Asegura que el contenido esté en una capa superior que el fondo */
    padding: 20px;
    /* Ajusta el relleno según sea necesario */
    /*background-color: rgba(255, 255, 255, 0.8);*/
    /* Color de fondo con transparencia */
    border-radius: 10px;
    /* Opcional: agrega bordes redondeados */
    margin: 20px;
    /* Opcional: agrega márgenes alrededor del contenido */
    height: 250px;
    /* Ajusta la altura según necesites */
}

#menu {
    position: relative;
    z-index: 1000;
    /* Asegura que el menú esté siempre en frente */
}

#ContenedorFondo {
    position: relative;
    z-index: 0;
    /* Asegura que el fondo esté siempre detrás */
}

#ContenedorEnMedio {
    position: relative;
    z-index: 500;
    /* Asegura que el contenedor en medio esté entre el menú y el fondo */
    /* Añade cualquier estilo adicional según tus necesidades */
}

.container-outer {
    position: relative;
    /* background-color: black;
     Color de fondo negro para el área exterior */
    width: 100%;
    /* Ocupa todo el ancho del navegador */
}

.container-inner {
    padding: 20px;
    /* Agrega un espacio interior para separar el contenido del borde */
}

.container-title {
    position: relative;
    z-index: 9999;
    background-color: inherit;
    /* Hereda el color de fondo de su contenedor padre */
    display: flex;
    /* Activa el uso de flexbox */
    justify-content: center;
    /* Centra horizontalmente el contenido */
    align-items: center;
    /* Centra verticalmente el contenido */
    width: 100%;
    /* Establece un ancho del 80% del contenedor padre */
    max-width: 600px;
    /* Establece un ancho máximo de 1200px */
}


/* Estilos y animaciones del título */

@import url('https://fonts.googleapis.com/css?family=Lato:300,400|Poppins:300,400,800&display=swap');
* {
    margin: 0;
    padding: 0;
}

body,
html {
    overflow: hidden;
}

.box {
    max-width: 100%;
    height: 250px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: auto;
}

.title {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
}

.title .block {
    width: 0%;
    height: 130%;
    background: #2b356b;
    /*-----------------------------------------------------------------------------------------------*/
    position: absolute;
    animation: mainBlock 2s cubic-bezier(.74, .06, .4, .92) forwards;
    display: flex;
}

.title h1 {
    font-family: 'Poppins';
    color: #fff;
    font-size: 100px;
    -webkit-animation: mainFadeIn 2s forwards;
    -o-animation: mainFadeIn 2s forwards;
    animation: mainFadeIn 2s forwards;
    animation-delay: 1.6s;
    opacity: 0;
    display: inline-block;
    align-items: baseline;
    position: relative;
    white-space: nowrap;
    padding: 10px;
    /* Añadido espaciado alrededor del texto */
}

.title p {
    font-family: 'Lato';
    color: #ffffff;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    white-space: nowrap;
    padding-left: 40px;
    /* Agregando un espacio de 40px antes del texto */
}


/* Media query para pantallas más pequeñas */

@media screen and (max-width: 768px) {
    .title {
        text-align: center;
        /* Centrar el texto en pantallas pequeñas */
    }
    .title h1 {
        font-size: 30px;
        /* Tamaño de fuente reducido para pantallas pequeñas */
        margin-left: 100px;
        /* Margen izquierdo para el título */
    }
    .title p {
        font-family: 'Lato';
        color: #ffffff;
        font-size: 1px;
        text-transform: uppercase;
        letter-spacing: 50px;
        white-space: nowrap;
        padding-left: 40px;
        /* Agregando un espacio de 20px antes del texto */
        padding: 100px;
    }
    /* Ajustes para el contenido dentro de .role */
    .role {
        max-width: 100%;
        /* Ancho máximo igual al de su contenedor */
        margin: auto;
        /* Margen automático para centrar el contenido */
    }
}

.title h1 span {
    width: 0px;
    height: 0px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: #000000;
    -webkit-animation: load 0.6s cubic-bezier(.74, .06, .4, .92) forwards;
    animation: popIn 0.8s cubic-bezier(.74, .06, .4, .92) forwards;
    animation-delay: 2s;
    margin-left: 5px;
    margin-top: -10px;
    position: absolute;
    bottom: 13px;
    right: -12px;
}

.role {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    height: 30px;
    margin-top: 30px;
}

.role .block {
    width: 0%;
    height: 200%;
    background: #47495e;
    position: absolute;
    animation: secBlock 2s cubic-bezier(.74, .06, .4, .92) forwards;
    animation-delay: 2s;
    display: flex;
}

.role p {
    animation: secFadeIn 2s forwards;
    animation-delay: 3.2s;
    opacity: 0;
    font-weight: 400;
    font-family: 'Lato';
    color: #ffffff;
    /* Cambiar el color del texto a blanco */
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    white-space: nowrap;
    /* Para mostrar el texto en una sola línea 
    background-color: #113243;
    /* Agregar fondo negro */
    padding: 10px;
    /* Añadir espaciado alrededor del texto */
}


/* Animaciones */

@keyframes mainBlock {
    0% {
        width: 0%;
        left: 0;
    }
    50% {
        width: 200%;
        left: 0;
    }
    100% {
        width: 0;
        left: 100%;
    }
}

@keyframes secBlock {
    0% {
        width: 0%;
        left: 0;
    }
    50% {
        width: 200%;
        left: 0;
    }
    100% {
        width: 0;
        left: 100%;
    }
}

@keyframes mainFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        width: 0px;
        height: 0px;
        background: #e9d856;
        border: 0px solid #ddd;
        opacity: 0;
    }
    50% {
        width: 10px;
        height: 10px;
        background: #e9d856;
        opacity: 1;
        bottom: 45px;
    }
    65% {
        width: 7px;
        height: 7px;
        bottom: 0px;
        width: 15px
    }
    80% {
        width: 10px;
        height: 10px;
        bottom: 20px
    }
    100% {
        width: 7px;
        height: 7px;
        background: #e9d856;
        border: 0px solid #222;
        bottom: 13px;
    }
}

@keyframes secFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}