body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color:#252850;
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    margin: auto;
    position: relative;
    left: -20px;
}
nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}


nav ul ul.submenu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgb(0, 0, 0);
    width: 200px; 
}


nav ul li:hover > ul.submenu {
    display: block;
}

nav ul ul.submenu li {
    width: 80%;
    text-align: left;
    padding: 0.5rem 1rem;
}

nav ul ul.submenu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    display: block;
}

nav ul ul.submenu a:hover {
    background-color: #aca2a22c;
}


main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}
.hero {
    position: relative;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out; 
}

.hero.hidden {
    opacity: 0; 
    transform: scale(0.5); 
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: transform 0.5s ease-out; 
}

.hero.hidden #bg-video {
    transform: scale(0.5); 
}

.content-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0));
    align-items: flex-end;
    padding-bottom: 10%;
    transition: transform 0.5s ease-out; 
}

.hero.hidden .content-wrapper {
    transform: scale(0.5); 
}


.content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #FFC107;
    color: #000;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #FFA000;
}

.additional-info {
    top: 30px;
    position: relative;
    background-color: #ffffff;  
}
.content {
    padding: 2rem;
}
.h2_inicio {
    font-family: 'Courier New', monospace; 
    color: #ffffff; 
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(20, end);
    border-right: none; 
    font-size: 60px;
}

@keyframes typing {
    from { width: 0 }
    to { width: 20ch; } 
}
.contenedor {
    display: flex;                
    flex-direction: column;       
    align-items: center;          
    width: 100%;                  
    padding: 20px 0;             
}

.texto1, .texto2,.texto3 {
    text-align: center;           
    width: 50%;                   
    margin: 10px 0;              
    color: rgb(155, 154, 154);                  
    font-size: 1.2rem;            
    line-height: 1.5;             
}


.efecto-tipografico {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid;
    width: 0;
    animation: escribir 5s steps(30) forwards;
}

@keyframes escribir {
    from {
        width: 0;
    }
    to {
        width: fit-content;
    }
}

footer {
    background-color:#252850;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-top: 100px;
}
.social-links {
    margin-top: 1rem;
}
.social-links a {
    color: white;
    margin: 0 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #FFC107;
}
@media (max-width: 768px) {
    header {
        height: auto;
    }
    header.menu-open {
        height: 100vh;
        overflow-y: auto;
    }
    nav {
        flex-direction: column;
        align-items: center;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        display: none;
    }
    header.menu-open nav ul {
        display: flex;
    }
    nav li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    .toggle-btn {
        display: block;
    }
    .content-wrapper {
        background: linear-gradient(to bottom, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0));
        align-items: center;
        padding-bottom: 20%;
    }
    .content {
        padding: 1rem;
        max-width: 100%;
        text-align: center;
    }

    .h2_inicio {
        width: auto; 
        white-space: normal; 
        animation: typing 2s steps(20, end); 
    }

    @keyframes typing {
        from { width: 0 }
        to { width: 100%; } 
    }
    header.menu-open .logo {
        display: none;
    }
    header.menu-open nav ul {
        margin-top: 2rem;
    }
    .cta-button {
        background-color: #40E0D0;
        color: #000;
        display: inline-block;
        margin-top: 1rem;
    }

    .toggle-btn {
        display: block; 
        position: fixed;
        border-radius: 10px;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
        background-color: #ffffff;
        color: rgb(0, 0, 0);
        border: none;
        padding: 1.5rem 1.5rem;
        cursor: pointer;
        box-shadow: 3px 5px rgba(0, 0, 0, 0.5);
        transition: transform 0.2s ease, box-shadow 0.2s ease; 
    }
    
    .toggle-btn:active {
        transform: scale(0.95); 
        box-shadow: 5px 5px rgba(0, 0, 0, 0.3);
    }
    nav ul ul.submenu {
        display: none;
    }
    nav ul li:active > ul.submenu, 
    nav ul li:focus > ul.submenu {
        display: block; 
    }
    .texto1, .texto2 {
        text-align: center;           
        width: 85%;                   
        margin: 10px 0;              
        color: gray;                  
        font-size: 1.2rem;            
        line-height: 1.5;             
    }

    .h2_info{
        font-size: 19px;
    }

    .logo{
        position: relative;
        left: -50px;
    }
    
    .logo img{
        position: relative;
        left: 0;
    }
    
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
}

.left-half {
    width: 50%;
    background: linear-gradient(to bottom, white, #f0f0f0); 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.right-half {
    width: 50%;
    position: relative;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    z-index: 1;
    color: black; 
}


.hero-content p {
    font-size: 1.5em;
}
/*Section de Carrusel de Imagenes*/
.container-slider{
    margin-top: 100px;
}
.slide {
    position: relative;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.64);
    margin-top: 26px;
    width: 60%;
    margin-left: auto; 
    margin-right: auto; 
}

.slide-inner {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slide-open:checked + .slide-item {
    position: static;
    opacity: 100;
}

.slide-item {
    position: absolute;
    opacity: 0;
    -webkit-transition: opacity 0.6s ease-out;
    transition: opacity 0.6s ease-out;
}

.slide-item img {
    display: block;
    height: auto;
    max-width: 100%;
}

.slide-control {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 40px;
    height: 40px;
    line-height: 35px;
    position: absolute;
    top: 50%;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    text-align: center;
    width: 40px;
    z-index: 10;
}

.slide-control.prev {
    left: 2%;
}

.slide-control.next {
    right: 2%;
}

.slide-control:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #aaaaaa;
}

#slide-1:checked ~ .control-1,
#slide-2:checked ~ .control-2,
#slide-3:checked ~ .control-3,
#slide-4:checked ~ .control-4,
#slide-5:checked ~ .control-5,
#slide-6:checked ~ .control-6,
#slide-7:checked ~ .control-7,
#slide-8:checked ~ .control-8,
#slide-9:checked ~ .control-9,
#slide-10:checked ~ .control-10 {
    display: block;
}

.slide-indicador {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    bottom: 2%;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.slide-indicador li {
    display: inline-block;
    margin: 0 5px;
}

.slide-circulo {
    color: #828282;
    cursor: pointer;
    display: block;
    font-size: 35px;
}

.slide-circulo:hover {
    color: #aaaaaa;
}

#slide-1:checked ~ .control-1 ~ .slide-indicador li:nth-child(1) .slide-circulo,
#slide-2:checked ~ .control-2 ~ .slide-indicador li:nth-child(2) .slide-circulo,
#slide-3:checked ~ .control-3 ~ .slide-indicador li:nth-child(3) .slide-circulo,
#slide-4:checked ~ .control-4 ~ .slide-indicador li:nth-child(4) .slide-circulo,
#slide-5:checked ~ .control-5 ~ .slide-indicador li:nth-child(5) .slide-circulo,
#slide-6:checked ~ .control-6 ~ .slide-indicador li:nth-child(6) .slide-circulo,
#slide-7:checked ~ .control-7 ~ .slide-indicador li:nth-child(7) .slide-circulo,
#slide-8:checked ~ .control-8 ~ .slide-indicador li:nth-child(8) .slide-circulo,
#slide-9:checked ~ .control-9 ~ .slide-indicador li:nth-child(9) .slide-circulo,
#slide-10:checked ~ .control-10 ~ .slide-indicador li:nth-child(10) .slide-circulo {
    color: #428bca;
}
.logo_img{
    left: -30px;
    position: relative;
}
@media (max-width: 768px){

    .slide-indicador{
        display: none;
    }

    .slide{
        width: 85%;
    }

    .logo{
        margin-left: -20px;
    }
    .toggle-btn {
        font-size: 25px;
    }
}
