/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
}

/* Pantalla de carga completa */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Spinner circular */
.spinner {
    width: 100px; 
    height: 100px;
    border: 15px solid rgba(0, 0, 0, 0.1);
    border-top: 15px solid #4500FF; /* Color principal */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animación del spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Botón de WhatsApp y redes sociales */
.floating-buttons {
    position: fixed;
    top: 50%;
    display: flex;
    justify-content: space-between;
    width: 100%;
    pointer-events: none; /* Para que no interfieran con el contenido */
    z-index: 1;
}

.whatsapp-button {
    position: absolute;
    left: 20px; /* Espaciado desde el borde izquierdo */
    pointer-events: auto; /* Permitir que sea clicable */
}

.whatsapp-button img {
    width: 300px; /* Tamaño del botón */  
}

.social-buttons {
    position: absolute;
    right: 20px; /* Espaciado desde el borde derecho */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacio entre los iconos */
    pointer-events: auto; /* Permitir que sea clicable */
    background-color: aqua;
    border-radius: 20px;
    padding: 15px;
}

.social-buttons a img {
    height: 20px; /* Tamaño de los iconos */
}

/* Sección 1: Menú de navegación */
header {
    width: 100%;
    background-color: #ffffff;
    padding: 0px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 10;
}

nav{
    display: flex;
    flex-flow: row;
}

.logo img{
    width: 200px;
    padding: 30px;
    margin-left: 200px;
}

.menu {
    width: 300px;
    list-style: none;
    display: flex;
    gap: 100px;
    align-items: center;
    margin-left: 300px;
}

.menu li a {
    font-family: "Poppins", sans-serif;
    color: #000000;
    text-decoration: none;
    padding: 10px;
}

.menu li a:hover {
    background-color: #4500FF;
    padding: 10px;
    border-radius: 20px;
    color: #ffffff;
}

.Nos {
    border-bottom: 4px solid #4500FF;
}

.contacto{
    background-color: #00ECD3;
    padding: 10px;
    border-radius: 20px;
    color: #ffffff;
}

/* Estilo base para submenús */
.submenu {
    list-style: none;
    display: none; /* Ocultar submenú por defecto */
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    text-align: left;
    z-index: 3;
}

.submenu li {
    margin: 5px 0;
}

.submenu li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    padding: 8px 15px;
    display: block;
    border-radius: 4px;
}

.submenu li a:hover {
    background-color: #4500FF;
    color: #ffffff;
}

/* Estilo para el contenedor dropdown */
.dropdown {
    position: relative;
}

/* Mostrar el submenú al pasar el mouse */
.dropdown:hover .submenu {
    display: block; /* Mostrar submenú */
}

/* Menú hamburguesa (botón) - Oculto en pantallas grandes */
.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Sección Introducción */
.somosADS{
     padding: 200px 0 0 350px;
     position: absolute;
     z-index: 3;
}

.somosADS img{
    max-width: 1000px;
    width: 100%;
}


/* Sección Somos */
.Somos-section {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 20px;
}

.Somos-image img {
    width: 100%; /* La imagen ocupará todo el ancho de su contenedor */
    max-width: 500px; /* Límite máximo para no hacerla más grande que 600px */
    height: auto; /* Mantiene la proporción de la imagen */
    border-radius: 8px;
    object-fit: cover;
    padding: 290px 0 0; /* Ajusta el padding según sea necesario */
}

.Somos-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 300px 100px 0 50px;
}

.Somos-container p{
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    color: #37474F;
}

.Portafolio{
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    margin-top: 30px;
    padding: 20px 50px;
    border: #ddd solid 2px;
    border-radius: 40px;
    background-color: #4500FF;
    color: #ddd;
    cursor: pointer;
  }

  .Portafolio:hover{
    transform: scale(1.05);
    transition: all 0.5s;
  }


/* Sección 3: Título */
h1{
    font-family: "Poppins", sans-serif;
    font-size: 60px;
    padding: 50px 0 50px 380px;
}

h1 strong{
    color: #4500FF;
}

/* Sección 3: Acordeón */
.image-dropdown {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.image-container img {
    width: 600px;
    height: auto;
    border-radius: 8px;
    padding: 10px 50px;
    transition: opacity 0.6s ease; /* Transición suave para cambiar de imagen */
    opacity: 1;
}

.accordion-container {
    max-width: 700px;
    width: 100%;
    margin-bottom: 100px;
}

.accordion-item {
    margin-bottom: 10px;
}

.accordion-item summary {
    cursor: pointer;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    padding: 10px;
    background-color: #4500FF;
    border: 1px solid #ddd;
    border-radius: 25px;
    transition: background-color 0.4s ease, border-color 0.4s ease; /* Transición para el resumen */
}

.accordion-item[open] summary {
    background-color: #ffffff;
    border: 1px solid #4500ff;
    color: #4500FF;
}

.accordion-item p {
    font-family: "Poppins", sans-serif;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 10px;
    transition: max-height 0.6s ease, opacity 0.6s ease, padding 0.6s ease; /* Transición suave */
}

/* Cuando se abre el acordeón */
.accordion-item[open] p {
    max-height: 1000px; /* Ajustar según el contenido */
    opacity: 1;
    padding: 10px;
}


/* Sección 6: Cards giratorias */
.text-cards{
    background-color: #303030;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-size: 80px;
    color: #ffffff;
    padding: 20px 0 100px;
}
.cards {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    padding: 50px 200px;
    background-color: #303030;
}
.card {
    width: 150px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease, filter 0.4s ease; /* Transiciones suaves */
}

.card:hover {
    transform: scale(1.05); /* Efecto de escala en la tarjeta completa */
}

.card img{
    width: 200px;
    opacity: 60%;
    filter: grayscale(100%); /* Imagen en escala de grises */
    transition: filter 0.4s ease, transform 0.4s ease; /* Transiciones suaves */
}

.card:hover img{
    opacity: 100%;
    filter: grayscale(0%); /* Quitar escala de grises */
    transform: scale(1.1); /* Aumentar el tamaño */
}

.card p{
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    text-align: center;
    padding: 20px 0 100px;
    color: #ffffff;
}


/* Sección Slogan */
.Slogan-image {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente si tiene un contenedor padre con altura definida */
    width: 100%;
}

.Slogan-image img {
    max-width: 700px; /* Asegura que la imagen no se salga de su contenedor */
    height: auto;
    padding: 100px;
}




/* Sección de formulario */
.contact-form-section {
    background-image: url(./images/home/CONTACTO-imgForm.png);
    background-size: 70%;
    background-repeat: no-repeat;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 20px;
}

.contact-image img {
    width: 600px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    padding: 100px 0 0;
}

.contact-form-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 100px 0 0 50px;
}

.contact-form-container h2 {
    font-family: "Poppins", sans-serif;
    font-size: 34px;
    font-weight: bold;
    color: #4500ff;
    margin: 0;
}

.contact-form-container p {
    font-family: "Poppins", sans-serif;
    margin: 0 0 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row input,
.form-row textarea {
    flex: 1;
    padding: 10px 5px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ddd; /* Línea inferior */
    font-family: "Poppins", sans-serif;
    background: none;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    border-bottom: 2px solid #4500FF; /* Cambia el color al enfocarse */
}

.form-row textarea {
    resize: none;
}

.form-row button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    background-color: #4500FF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.form-row button:hover {
    background-color: #3200bf;
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.modal button {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    background: #4500FF;
    color: white;
    cursor: pointer;
}



/* Sección 8: Footer */
/* Footer */
.footer {
    background-color: #2e2e2e;
    color: white;
    padding: 40px;
    font-family: "Poppins", sans-serif;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Distribuye el espacio entre los tres elementos */
    align-items: center; /* Alinea verticalmente */
    gap: 50px;
    flex-wrap: wrap;
    padding: 50px 200px;
}

/* Footer izquierda: Logo y Redes Sociales */
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #00ECD3;
}

/* Menú de Navegación */
.footer-nav {
    text-align: center;
    flex-grow: 1; /* Permite que el menú de navegación ocupe el espacio necesario para centrarse */
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #00ECD3;
}

/* Contacto a la derecha */
.footer-contact {
    text-align: left;
}

.footer-contact h3 {
    font-size: 24px;
    color: white;
}

.footer-contact p {
    font-size: 16px;
    color: white;
}

.footer-contact p a{
    color: #fff;
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: white;
}


/*Tablet*/
/*Portrait*/
@media (min-width: 576px) and (max-width: 991.98px) and (orientation:portrait) {

    header{
        display: flex;
        flex-flow: column wrap;

    }

    .logo img{
        width: 180px;
        padding: 10px;
        margin-left: 0px;
    }

    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 160px;
        right: 0;
        background-color: #ffffffec;
        width: 100%;
        height: 1200px;
        text-align: right;
        z-index: 2;
        padding: 30px 0;
        color: #ffffff;
        font-size: 20px;
    }

    .menu li {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
        margin-left: 100px;
        color: #000000;
    }

    .menu.active {
        display: flex;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }


     /* Sección Introducción */
.somosADS{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 180px 0 0 0px;
    position: absolute;
    z-index: 3;
}

.somosADS img{
   width: 400px;
}

.Somos-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    padding: 40px 0 0;
}

.Somos-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 280px 15px 0 15px;
}

.Somos-container p{
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 300;
    color: #37474F;
    text-align: center;
}

h1{
    font-family: "Poppins", sans-serif;
    font-size: 60px;
    padding: 30px 0 30px 0px;
    text-align: center;
}

.image-dropdown {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.image-container img {
    width: auto;
    height: 450px;
    border-radius: 8px;
    padding: 30px;
}

.accordion-container {
    max-width: 800px;
    width: 100%;
}

  .card {
    width: 250px;
    padding: 150px 0px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

}

/*landscape*/
@media (min-width: 991.98px) and (max-width: 1199.98px)and (orientation:landscape){
    
    header{
        display: flex;
        flex-flow: column wrap;

    }

    .logo img{
        width: 180px;
        padding: 10px;
        margin-left: 0px;
    }

    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 160px;
        right: 0;
        background-color: #ffffffec;
        width: 100%;
        height: 1200px;
        text-align: right;
        z-index: 2;
        padding: 30px 0;
        color: #ffffff;
        font-size: 20px;
    }

    .menu li {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
        margin-left: 100px;
        color: #000000;
    }

    .menu.active {
        display: flex;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .somosADS{
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 180px 0 0 0px;
        position: absolute;
        z-index: 3;
    }
    
    .somosADS img{
       width:600px;
    }

    .Somos-container {
        max-width: 800px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 380px 15px 0 15px;
    }
    
    
    .Somos-container p{
        font-family: "Poppins", sans-serif;
        font-size: 17px;
        font-weight: 300;
        color: #37474F;
        text-align: center;
    }

    .Somos-image img {
        width: 100%; /* La imagen ocupará todo el ancho de su contenedor */
        max-width: 500px; /* Límite máximo para no hacerla más grande que 600px */
        height: auto; /* Mantiene la proporción de la imagen */
        border-radius: 8px;
        object-fit: cover;
        padding: 90px 0 0; /* Ajusta el padding según sea necesario */
    }

    h1{
        font-family: "Poppins", sans-serif;
        font-size: 60px;
        padding: 30px 0;
        text-align: center;
    }

    .card {
        width: 180px;
        padding: 150px 20px;
    }
}

/*movil*/
/*Portrait*/
/*Default*/
@media (max-width: 575.98px)and (orientation:portrait) {

    .social-buttons {
        display: none;
    }

    .whatsapp-button img {
        width: 200px; /* Tamaño del botón */  
    }

    .logo img{
        width: 120px;
        padding: 10px;
        margin-left: 20px;
    }

    .menu {
        display: none; /* Ocultar por defecto */
        flex-direction: column;
        position: absolute;
        top: 100px;
        right: 0;
        background-color: #ffffff;
        width: 100%;
        padding: 20px;
        text-align: right;
        z-index: 2;
    }

    .menu li {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
        margin-left: 200px;
        color: #000000;
    }

    .menu.active {
        display: flex;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
   /* Sección Introducción */
.somosADS{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 150px 0 0 0px;
    position: absolute;
    z-index: 3;
}

.somosADS img{
   width: 300px;
}

.Somos-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    padding: 40px 0 0;
}

.Somos-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 240px 15px 0 15px;
}

.Somos-container p{
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #37474F;
    text-align: center;
}


h1{
    font-family: "Poppins", sans-serif;
    font-size: 40px;
    padding: 30px 0 30px 0px;
    text-align: center;
}

.Portafolio{
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    margin-top: 30px;
    padding: 20px 50px;
    border: #ddd solid 2px;
    border-radius: 40px;
    background-color: #4500FF;
    color: #ddd;
    cursor: pointer;
  }



.image-dropdown {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 10px 50px;
}

.image-container img {
    width: auto;
    height: 250px;
    border-radius: 8px;
    padding: 10px 50px;
}

.accordion-container {
    max-width: 500px;
    width: 100%;
}

.text-cards{
    font-size: 45px;
}

  .cards {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    padding: 0px 0px;
}

.card {
    width: 200px;
    padding: 150px 0px;
}

.card img{
    width: 140px;
}

.card p{
    font-size: 18px;
}


.Slogan-image img {
    max-width: 300px; /* Asegura que la imagen no se salga de su contenedor */
    height: auto;
    padding: 30px;
}


.contact-form-section {
    background-size: 70%;
 
}

.contact-image img {
    width: 100%; /* Asegurar que la imagen no sea más grande que el contenedor */
    padding: 0; /* Eliminar el padding de la imagen */
}

.contact-form-container {
    padding: 10px 0 0 0px;
}

.contact-form-container h2 {
    font-size: 24px; /* Reducir el tamaño del título */
}

.contact-form-container p {
    font-size: 16px; /* Reducir el tamaño del texto */
}

.form-row{
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

.form-row input, .form-row textarea {
    font-size: 14px; /* Ajustar el tamaño del texto en los inputs para pantallas más pequeñas */
}

.form-row button {
    font-size: 14px; /* Reducir el tamaño del texto en el botón */
}


/* Footer */
  
.footer-container {
    flex-direction: column;
    text-align: center;
    padding: 50px 0px;
}


.footer-left, .footer-nav, .footer-contact {
    text-align: center;
}

.footer-nav ul {
    display: inline-block;
}

}
   

  



