/* General Styles */
body {
   
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    
}



* {
    box-sizing: border-box; /* Esto asegura que el padding y border no inflen el tamaño total del elemento */
}

html, body {
    overflow-x: hidden; /*Esto hace que se solucione el error de poder desplazarse hacia la derecha en la página*/
}

header {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0 0 0;
    text-align: center;
    padding-top: 50px;
}

header h1 a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 2.5em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

header h2 {
    font-size: 1.2em;
    font-weight: 300;
    margin-top: 10px;
}

#menu-toggle {
    display: none; /* Oculto por defecto */
}

.nav-menu {
    display: flex;
    flex-direction: row; /* Menú horizontal en escritorio */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Estilo del contenedor de navegación */
nav {
    background: #34495e;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    margin-bottom: 0px;
}

/* Estilo de la lista de navegación */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Para manejar varias líneas si hay muchos elementos */
    justify-content: center;
}

/* Estilo de los elementos de la lista */
nav ul li {
    margin: 5px 15px;
    position: relative; /* Necesario para los submenús */
}

/* Enlaces principales */
nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1em;
    padding: 10px 15px;
    transition: background 0.4s, color 0.4s, transform 0.3s, box-shadow 0.3s;
    display: block;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

/* Efecto hover y el estado activo */
nav ul li a:hover,
nav ul li a.active {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Efecto de resplandor en el hover */
nav ul li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-45deg);
    transition: left 0.4s ease-in-out;
}

/* Animación del resplandor en el hover */
nav ul li a:hover::before {
    left: 100%;
}

/* Estilo de los submenús */
nav ul li ul {
    display: none;
    position: absolute;
    background: #2c3e50;
    padding: 10px;
    border-radius: 5px;
    top: 100%; /* Aparece debajo del elemento principal */
    left: 0;
    z-index: 1000;
    min-width: 200px; /* Para evitar que los submenús sean muy estrechos */
}

/* Mostrar el submenú al pasar el ratón */
nav ul li:hover ul {
    display: block;
}

/* Estilo de los elementos del submenú */
nav ul li ul li {
    margin: 0;
}

/* Enlaces de los submenús */
nav ul li ul li a {
    padding: 10px 15px;
    font-size: 0.9em;
    color: #ecf0f1;
}

/* Hover en los submenús */
nav ul li ul li a:hover {
    background: #1abc9c;
    color: #fff;
}



/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

main section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2c3e50;
}

main section p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

main section ul {
    list-style: none;
    padding: 0;
}

main section ul li {
    background: #ecf0f1;
    margin: 10px 0;
    padding: 15px;
    border-left: 5px solid #1abc9c;
    transition: background 0.3s;
}

main section ul li:hover {
    background: #bdc3c7;
}

main section ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
}

/* Footer Styles */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #1abc9c;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #16a085;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    main {
        padding: 0 10px;
    }

    header h1 {
        font-size: 2em;
    }

    header h2 {
        font-size: 1em;
    }

    footer {
        padding: 15px 0;
    }
}

/* From Uiverse.io by javierBarroso */ 
.parent {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}

.child {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.68, 0.85, 0.265, 1.85);
  border-radius: 5px;
  margin: 0 5px;
  box-shadow:
    inset 1px 1px 2px #fff,
    0 0 5px #4442;
}

.child:hover {
  background-color: white;
  background-position:
    -100px 100px,
    -100px 100px;
  /*transform: rotate3d(0.5, 1, 0, 30deg);*/
  transform: perspective(180px) rotateX(60deg) translateY(2px);
}

.child-1:hover {
  box-shadow: 0px 10px 10px #1e90ff;
}
.child-2:hover {
  box-shadow: 0px 10px 10px #ff00ff;
}
.child-3:hover {
    box-shadow: 0px 10px 10px #4267b2;
  }
.child-4:hover {
  box-shadow: 0px 10px 10px #ff711f;
}


.button {
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  background-color: transparent;
  font-size: 20px;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.68, -0.85, 0.265, 1.55);
}

.child-1:hover > a {
    transform: translate3d(0px, 20px, 30px) perspective(80px) rotateX(-60deg) translateY(2px) translateZ(10px);
  }

.child-2:hover > a {
    transform: translate3d(0px, 20px, 30px) perspective(80px) rotateX(-60deg) translateY(2px) translateZ(10px);
  }

.child-3:hover > a {
  transform: translate3d(0px, 20px, 30px) perspective(80px) rotateX(-60deg) translateY(2px) translateZ(10px);
}

.child-4:hover > a {
    transform: translate3d(0px, 20px, 30px) perspective(80px) rotateX(-60deg) translateY(2px) translateZ(10px);
  }

.whatsapp-button {
    position: fixed;
    right: 20px; /* Distancia desde el borde izquierdo de la pantalla */
    bottom: 20px; /* Distancia desde el borde inferior de la pantalla */
    z-index: 1000; /* Asegura que el botón esté sobre otros elementos */
  }
  
  .whatsapp-button img {
    width: 75px; /* Ajusta el tamaño del icono */
    height: 75px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .whatsapp-button img:hover {
    transform: scale(1.1); /* Efecto de zoom al pasar el ratón */
  }


  
  .presentation {
    display: flex; /* Permite alinear la imagen y el texto en fila */
    align-items: center; /* Centra verticalmente la imagen y el texto */
    justify-content: space-between; /* Distribuye el espacio entre los elementos */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-container {
    position: relative;
    width: 30%; /* Ajusta el tamaño de la imagen */
    opacity: 0;
    animation: slideIn 2s forwards ease-in-out;
    margin-left: 25px;
    
}

.image-container h3 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center; /* Centra el título */
    width: 100%; /* Asegura que ocupe todo el ancho */
}

.image-container img {
    width: 100%; /* Asegura que la imagen ocupe el 100% del contenedor */
    height: auto;
    text-align: center; /* Mantiene la proporción de la imagen */
}

.text-container {
    width: 65%; /* Toma el espacio restante al lado de la imagen */
    opacity: 0;
    transform: translateX(100%);
    animation: fadeIn 2s forwards ease-in-out;
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

strong{
    color: #ff0000;
}



/* Estilo del corcho */
.news-carousel {
    background: url('imagenes/corcho.jpg') center center/cover repeat;
    background-size: 300px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
    position: relative;
    min-height: 500px; /* Incremento de altura */
}

/* Título central */
.news-carousel h3 {
    font-size: 4em;
    color: #2c3e50;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    font-family: 'Courier New', Courier, monospace;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.news-carousel h3::after {
    content: "";
    width: 160px;
    height: 5px;
    background-color: #2c3e50;
    display: block;
    margin: 5px auto 0;
    border-radius: 2.5px;
}

/* Estilo de las notas */
.carousel-item {
    width: 280px; /* Incremento del ancho */
    padding: 25px;
    background: #fff9e6;
    position: absolute;
    border-radius: 10px;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
    font-size: 1.4em;
    color: #2c3e50;
    text-align: center;
    font-family: 'Arial', sans-serif;
    transform-origin: top center;
    animation: swing 3s infinite ease-in-out alternate;
}

/* Chincheta en la nota */
.carousel-item::before {
    content: "";
    width: 15px;
    height: 15px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Animación de balanceo */
@keyframes swing {
    0% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}

/* Posicionamiento mejorado de las notas */
.carousel-item:nth-child(1) {
    top: 60px;
    left: 80px;
    animation-duration: 2.5s;
}
.carousel-item:nth-child(2) {
    top: 300px;
    left: 80px;
    animation-duration: 3s;
}
.carousel-item:nth-child(3) {
    top: 300px;
    left: 450px;
    animation-duration: 2.8s;
}
.carousel-item:nth-child(4) {
    top: 90px;
    left: 800px;
    animation-duration: 3.2s;
}
.carousel-item:nth-child(5) {
    top: 320px;
    left: 850px;
    animation-duration: 2.6s;
}











.primero {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    margin-right: 50px;
}

.segundo {
    
    padding: 30px;
    border-radius: 8px;
    max-width: 500px; /* Ajustado para acomodar dos columnas */
    width: 100%;
}

.tercero2 {
    display: flex;
    gap: 15px; /* Espacio entre los elementos del formulario en una fila */
    margin-bottom: 20px;
}

.tercero2 input,
.tercero2 select, .tercero2 textarea {
    width: calc(100% - 7.5px); /* 50% del ancho menos la mitad del gap */
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    background-color: #ecf0f1;
    color: #2c3e50;
}

.tercero {
    display: flex;
    gap: 15px; /* Espacio entre los elementos del formulario en una fila */
    margin-bottom: 20px;
}

.tercero input,
.tercero select {
    width: calc(50% - 7.5px); /* 50% del ancho menos la mitad del gap */
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    background-color: #ecf0f1;
    color: #2c3e50;
}

input::placeholder, select::placeholder {
    color: #7f8c8d;
}

input:focus, select:focus {
    outline: 2px solid #2c3e50;
    background-color: #ffffff;
}

.submit-btn {
    background-color: #2c3e50;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.4s, color 0.4s, transform 0.3s, box-shadow 0.3s; /* Modificado */
    width: 100%;
    margin-top: 20px; /* Espacio superior para separar el botón */
    position: relative; /* Añadido para el efecto del resplandor */
    overflow: hidden; /* Añadido para el efecto del resplandor */
}

/* Efecto hover para el botón */
.submit-btn:hover {
    background: linear-gradient(135deg, #1abc9c, #16a085); /* Cambiado a gradiente */
    color: #fff; /* Color de texto */
    transform: scale(1.05); /* Escalado en hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Sombra en hover */
}

/* Efecto de resplandor en el hover */
.submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-45deg);
    transition: left 0.4s ease-in-out;
}

/* Animación del resplandor en el hover */
.submit-btn:hover::before {
    left: 100%;
}


.contenedor_imagen {
    position: relative;
    width: 30%; /* Ajusta el tamaño de la imagen */
    opacity: 0;
    animation: slideIn 2s forwards ease-in-out;
}

.contenedor_imagen img {
    width: 100%; /* Asegura que la imagen ocupe el 100% del contenedor */
    height: auto; /* Mantiene la proporción de la imagen */
    margin-left: 90px;
}

.primer_contenedor {
    display: flex; /* Permite alinear la imagen y el texto en fila */
    align-items: center; /* Centra verticalmente la imagen y el texto */
    justify-content: space-between; /* Distribuye el espacio entre los elementos */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    

}










/* Estilo de los banners */
.banner {
    position: absolute; /* Cambiado a 'absolute' */
    top: 99%; /* Posición fija verticalmente */
    width: 150px; /* Ancho ajustado a 150px */
    height: auto;
    padding: 20px;
    background: #173950;
    
    color: white;
    text-align: center;
    transform: translateY(-50%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-color: #173950;
    z-index: 1000;
}

/* Banner izquierdo */
.banner-left {
    left: -170px; /* Comienza fuera de la pantalla */
    animation: slideInLeft 1.5s forwards ease-out;
}

.video-banner {
    width: 100%; /* El video se ajustará al ancho del contenedor */
    max-width: 640px; /* Máximo ancho del video */
    height: auto; /* Mantiene la proporción del video */
    display: block;
    margin: 20px auto; /* Centrará el video horizontalmente con un margen */
    
}

/* Banner derecho */
.banner-right {
    right: -170px; /* Comienza fuera de la pantalla */
    animation: slideInRight 1.5s forwards ease-out;
    margin-top: 33px;
}

/* Animación para el banner izquierdo */
@keyframes slideInLeft {
    0% {
        left: -170px;
        opacity: 0;
    }
    100% {
        left: 20px; /* Se queda fijo a 20px del borde izquierdo */
        opacity: 1;
    }
}

/* Animación para el banner derecho */
@keyframes slideInRight {
    0% {
        right: -170px;
        opacity: 0;
    }
    100% {
        right: 20px; /* Se queda fijo a 20px del borde derecho */
        opacity: 1;
    }
}

/* Efecto hover para más dinamismo */
.banner:hover {
    transform: translateY(-50%) scale(1.05);
    transition: transform 0.3s ease;
}





/* Contenedor principal */
.split-container {
    display: flex;
    height: 75vh; /* Ajustar la altura al tamaño de la ventana */
}

/* Lado izquierdo con la imagen de fondo fija */
.left-side {
    flex: 2; /* Ocupa la mitad del contenedor */
    background-image: url('imagenes/fondo1.png'); /* Cambia esta ruta a la imagen de fondo */
   /* Cubre todo el espacio disponible */
   
    background-position: left;
    background-attachment: fixed; /* Hace que la imagen sea fija */
    position: relative;

}

/* Lado derecho con un color de fondo */
/* Estilos generales para la sección derecha */
.right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Cambiado a flex-start */
    align-items: flex-start;
    padding: 30px; /* Ajuste del padding general */
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    color: #2c3e50;
    max-height: 100%; /* Asegura que el contenido no se salga */
    overflow-y: auto; /* Permite scroll si el contenido es muy largo */
}

/* Título principal */
.right-side h3 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center; /* Centra el título */
    width: 100%; /* Asegura que ocupe todo el ancho */
}

/* Párrafos de texto */
.right-side p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: justify; /* Justifica el texto para mejor legibilidad */
}

/* Negrita en requisitos y fases */
.right-side strong {
    color: #d9534f;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .right-side {
        padding: 20px; /* Reduce un poco el padding en móviles */
    }

    .right-side h3 {
        font-size: 20px;
    }

    .right-side p {
        font-size: 14px;
    }
}


/* Imagen del soldado */
.soldier-image {
    position: absolute;
    bottom: 0; /* Ubica la imagen en la parte inferior */
    left: 50%;
    transform: translateX(-50%); /* Centra horizontalmente la imagen del soldado */
    max-width: 60%;
    min-width: 60%;
    max-height: 105%;
    min-height: 105%; /* Ajusta el tamaño de la imagen según sea necesario */
    z-index: 1; /* Asegura que esté encima del fondo */
}

.alumnos {
    position: absolute;
    bottom: 0; /* Ubica la imagen en la parte inferior */
    left: 50%;
    transform: translateX(-50%); /* Centra horizontalmente la imagen del soldado */
    max-width: 100%; /* Ajusta el tamaño de la imagen según sea necesario */
    min-width: 100%;
    max-height: 130%;
    min-height: 130%;
    z-index: 1; /* Asegura que esté encima del fondo */
    
}


.separador{
    display:flex;
    background-color: #2c3e50;
    text-align: center;
    /*margin: 20px 0; /* Añade un margen superior e inferior */
    height: 100px;
    align-items: center;
    justify-content: center;  /* Centra horizontalmente */
}

.titulo {
    font-family: 'Montserrat', sans-serif; /* Aplica la tipografía moderna */
    font-size: 2em; /* Ajusta el tamaño de la fuente */
    color: #ffffff; /* Un color gris oscuro que es profesional */
}


.lado_izquierdo {
    flex: 1.2; /* Ocupa la mitad del contenedor */
    background-color: #f5f5f5; /* Cambia esta ruta a la imagen de fondo */
   /* Cubre todo el espacio disponible */
   
   display: flex;
   flex-direction: column;
   justify-content: flex-start; /* Cambiado a flex-start */
   align-items: flex-start;
   padding: 30px; /* Ajuste del padding general */
   border-radius: 10px;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   font-family: 'Arial', sans-serif;
   color: #2c3e50;
   max-height: 100%; /* Asegura que el contenido no se salga */
   overflow-y: auto; /* Permite scroll si el contenido es muy largo */
}



/* Lado derecho con un color de fondo */
/* Estilos generales para la sección derecha */
.lado_derecho {
    flex: 2; /* Ocupa la mitad del contenedor */
    background-image: url('imagenes/clase.png'); /* Cambia esta ruta a la imagen de fondo */
    background-position: right; /* Centra la imagen en el contenedor */
    background-attachment: fixed; /* Hace que la imagen sea fija */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    background-size: contain; /* Ajusta la imagen para que sea completamente visible sin recortarse */
    
    position: relative;    
    
}



/* Título principal */
.lado_izquierdo h3 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center; /* Centra el título */
    width: 100%; /* Asegura que ocupe todo el ancho */
}

/* Párrafos de texto */
.lado_izquierdo p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: justify; /* Justifica el texto para mejor legibilidad */
}

/* Negrita en requisitos y fases */
.lado_izquierdo strong {
    color: #d9534f;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .lado_izquierdo {
        padding: 20px; /* Reduce un poco el padding en móviles */
    }

    .lado_izquierdo h3 {
        font-size: 20px;
    }

    .lado_izquierdo p {
        font-size: 14px;
    }
}



.top-bar {
    width: 100%;
    background-color: #495f75;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
    font-family: Arial, sans-serif;
    
}

/* Estilos del contenido de la barra */
.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    z-index: 1000;
}

/* Estilos para los iconos */
.top-bar-content i {
    margin-right: 8px;
}

.top-bar-content img {
    margin-right: 8px;
    vertical-align: middle;
    height: 20px; /* Ajusta el tamaño de las imágenes */
}


.email-link {
    color: white;
    text-decoration: none; /* Quita el subrayado si no lo deseas */
}

.email-link:hover {
    text-decoration: underline; /* Añade subrayado al pasar el ratón */
}

.wasap-link {
    color: white;
    text-decoration: none; /* Quita el subrayado si no lo deseas */
}

.wasap-link:hover {
    text-decoration: underline; /* Añade subrayado al pasar el ratón */
}

.maps-link {
    color: white;
    text-decoration: none; /* Quita el subrayado si no lo deseas */
}

.maps-link:hover {
    text-decoration: underline; /* Añade subrayado al pasar el ratón */
}





.cube-container {
    width: 40px; /* Ajustado a 40px */
    height: 40px; /* Ajustado a 40px */
    perspective: 160px; /* Ajustado para el tamaño de 40px */
    margin-top: 5px;
    margin-bottom: 5px;
    transition: 0.8s ease-out;
}

.cube {
    position: relative;
    width: 100%; /* Ajustado a 40px */
    height: 100%; /* Ajustado a 40px */
    transform-style: preserve-3d;
    transform: rotateX(-30deg) rotateY(-30deg);
    animation: rotate 8s infinite linear;
}

.face {
    position: absolute;
    width: 40px; /* Ajustado a 40px */
    height: 40px; /* Ajustado a 40px */
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.front  { transform: translateZ(20px); } /* Ajustado a la mitad de 40px */
.back   { transform: rotateY(180deg) translateZ(20px); }
.right  { transform: rotateY(90deg) translateZ(20px); }
.left   { transform: rotateY(-90deg) translateZ(20px); }
.top    { transform: rotateX(90deg) translateZ(20px); }
.bottom { transform: rotateX(-90deg) translateZ(20px); }

@keyframes rotate {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    100% {
        transform: rotateY(360deg);
    }
}


#texto{
    resize:none;
}


/* Fondo difuminado para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.5s ease;
}

/* Contenido del modal con bordes redondeados, sombra y animación */
.modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    padding: 30px;
    width: 80%;
    max-width: 450px;
    position: relative;
    text-align: center;
    transform: translateY(-100%);
    animation: modalSlideIn 0.4s ease forwards;
    font-family: 'Arial', sans-serif;
}

/* Botón de cerrar estilizado */
.close {
    color: #ff6363;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #ff3636;
}

/* Texto del modal */
.modal-content p {
    font-size: 18px;
    color: #333;
    margin: 20px 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Animaciones del modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Efecto de salida del modal */
@keyframes modalSlideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}






/*PARA MÓVILES*/


/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
    /* Ajustes de la barra superior */
    .top-bar-content {
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
        padding: 5px;
    }

    .top-bar-content div {
        display: flex; /* Asegura que los contenedores estén visibles */
        align-items: center;
    }

    .top-bar-content img {
        display: block; /* Mantén los íconos visibles */
        width: 24px;
        height: 24px;
    }

    .top-bar-content a {
        display: none; /* Oculta el texto pero deja los íconos funcionales */
    }

    /* Ajustes del header */
    .header {
        padding-top: 150px; /* Espacio más compacto para móviles */
    }

    .headline {
        font-size: 1em;
        padding: 0 10px;
    }

    .slogan {
        font-size: 1em;
    }

    

   #menu-toggle {
        display: block; /* Mostrar el botón en móviles */
        background: #2c3e50;
        color: white;
        padding: 10px;
        font-size: 1.5em;
        border: none;
        cursor: pointer;
        width: 100%; /* Botón ocupa todo el ancho */
        text-align: center; /* Alineación del botón */
    }

    .nav-menu {
        display: none; /* Esconder el menú en móviles */
        flex-direction: column; /* Mostrar como lista vertical */
        background: #34495e; /* Fondo del menú en móviles */
        position: absolute;
        top: 60px; /* Justo debajo del botón */
        left: 0;
        width: 100%; /* Ocupa todo el ancho */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Sombra */
        z-index: 1000;
    }

    .nav-menu li {
        margin: 0; /* Espaciado entre elementos */
    }

    .nav-menu li a {
        padding: 15px;
        color: #ecf0f1; /* Texto claro */
        text-decoration: none;
        display: block;
        text-align: left; /* Alineación de texto */
    }

    .nav-menu li a:hover {
        background: #1abc9c; /* Color de fondo al pasar el ratón */
    }

    .nav-menu.visible {
        display: flex; /* Mostrar el menú al activarse */
    }

    /* Ajustes de los banners */
    .banner {
        display: none; /* Oculta los banners en móviles */
    }


    /* Ajustes del contenedor split */
    .split-container {
        flex-direction: column;
        height: auto;
    }

    .left-side, .right-side {
        flex: 1;
        width: 100%;
        min-height: 300px;
    }

    .lado_derecho, .lado_izquierdo {
        flex: 1;
        width: 100%;
        min-height: 300px;
    }

    

    /* Ajustes de la presentación */
    .presentation {
        flex-direction: column;
        padding: 20px;
    }

    .image-container {
        width: 50%; /* Ajusta el ancho para hacerla más pequeña */
        max-width: 400px;
        margin: 20px auto;
    }

    .text-container {
        width: 100%;
        margin: 10px 0;
        
    }

    /* Ajustes del carrusel de noticias */
    .news-carousel {
        padding: 20px;
        min-height: auto;
    }

    .news-carousel h3 {
        font-size: 2em;
    }

    .carousel-item {
        position: relative;
        width: 90%;
        margin: 20px auto;
        left: auto !important;
        top: auto !important;
        right: auto !important;
    }

    /* Ajustes del formulario */
    .primero {
        margin-right: 0;
        padding: 10px;
    }

    .segundo {
        padding: 15px;
    }

    .tercero, .tercero2 {
        flex-direction: column;
        gap: 10px;
    }

    .tercero input,
    .tercero select,
    .tercero2 input,
    .tercero2 select,
    .tercero2 textarea {
        width: 100%;
    }

    /* Ajustes del footer */
    .footer {
        padding: 20px;
    }

    .parent {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Ajuste del botón de WhatsApp */
    .whatsapp-button {
        right: 10px;
        bottom: 10px;
    }

    .whatsapp-button img {
        width: 50px;
        height: 50px;
    }

   


    /* Ajustes del iframe del mapa */
    iframe {
        height: 250px;
    }

    /* Ajustes del separador */
    .separador {
        height: auto;
        padding: 20px 10px;
    }

    .titulo {
        font-size: 1.5em;
        text-align: center;
    }

    /* Ajustes del primer contenedor */
    .primer_contenedor {
        flex-direction: column;
        padding: 20px;
    }

    .contenedor_imagen {
        width: 50%;
        margin: 0 auto;
    }

    .contenedor_imagen img {
        margin-left: 0;
    }
}

/* Media queries para dispositivos muy pequeños */
@media (max-width: 480px) {
    .headline {
        font-size: 1em;
        margin-top: 0px;
    }

    .news-carousel h3 {
        font-size: 1.5em;
    }

    .carousel-item {
        font-size: 1.2em;
        padding: 15px;
    }
}


