
/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    overflow-x: hidden; /* Evita el desplazamiento lateral */
    overflow-y: auto; /* Mantiene el scroll vertical cuando es necesario */
    margin: 0;
    padding: 0;
    width: 100%;
}

body.menu-open {
    overflow: hidden;
}

body {
    background-color: #ffffff; /* Blanco */
    color: #333333; /* Texto oscuro */
    line-height: 1.6;
}


html, body {
    overflow-x: hidden;
    width: 100%;
}


/* Navegación fija */
header {
    background: linear-gradient(180deg, #ffffff, #e0e0e0); /* Degradado de blanco a gris claro */
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    transition: top 0.4s ease-in-out; /* Suaviza la animación */
}

/* contenedor del menu*/
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 165px; /* Ajusta el tamaño según sea necesario */
    height: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links li a {
    color: #4a4a4a;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #007bff;
}

/* Mejorar el botón de contacto en el menú */
.contact-button {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg, #4a4a4a, #007bff);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    justify-content: center;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Arial', sans-serif; /* Asegura la misma tipografía */
}

.contact-button {
    color: white !important;
}

/* Icono del teléfono */
.contact-button i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: white;
}

.contact-button::before {
    content: '📞';
    margin-right: 10px;
}

.contact-button:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #007bff, #4a4a4a);
    box-shadow: 3px 6px 12px rgba(0, 0, 0, 0.25);
}

/* Ajuste de margen */
.nav-links li:last-child {
    margin-left: 20px; /* Espaciado entre los enlaces y el botón */
}

/* Botón de hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 2000;
    position: absolute; /* Cambiar a absoluto */
    top: 20px;
    right: 20px; /* Ajusta la distancia del borde derecho */
}

.nav-container {
    position: relative; /* Asegura que el botón se posicione relativo a este contenedor */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

.nav-open .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-open .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Ocultar el menú por defecto en móvil */
.nav-links {
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.nav-links.open {
    display: block;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: #1a1a1a;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .inicio-content h2 {
        font-size: 1.5rem; /* Reducir aún más el tamaño */
        max-width: 100%; /* Asegurar que el texto no se desborde */
        white-space: normal;
        word-break: break-word; /* Permite que las palabras se ajusten mejor */
        text-align: center; /* Mantiene el texto centrado */
    }

    .inicio-content p {
        font-size: 1.0rem; /* Reduce el tamaño del subtítulo */
        padding: 0 10px; /* Agrega algo de margen a los lados */
    }

}



/* SECCIÓN INICIO MODERNA */
#inicio {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f4f4f4); /* Degradado elegante */
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    overflow: hidden;
}

/* Contenedor de la animación */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.inicio-content {
    max-width: 80%;
    text-align: center;
    z-index: 2;
}

.inicio-content h2 {
    font-size: 4rem;
    font-weight: bold;
    color: #0056b3;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.inicio-content p {
    font-size: 1.6rem;
    color: #4a4a4a;
    margin-bottom: 40px; /* Aumenta la separación */
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.inicio-content button {
    font-size: 1.4rem;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg, #4a4a4a, #007bff);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Aumenta la separación */
}

.inicio-content button:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #007bff, #4a4a4a);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}


/* Sección de Servicios */
#servicios {
    text-align: center;
    padding: 80px 50px;
    background: #f9f9f9; /* Fondo más claro */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#servicios h2 {
    font-size: 2.8rem;
    font-weight: bold;
    color: #004aad;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

/* Contenedor de servicios */
.servicios-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Estilo de cada tarjeta de servicio */
.servicio {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 320px; /* Tarjetas más anchas */
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Efecto hover */
.servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.2);
}

.servicio:hover img {
    transform: scale(1.05);
}

/* Título del servicio */
.servicio h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #004aad;
    margin: 15px 0;
}

/* Descripción del servicio */
.servicio p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 25px;
}

/* Botón dentro de la tarjeta */
.servicio button {
    font-size: 1.1rem;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg, #4a4a4a, #007bff);
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

/* Efecto hover del botón */
.servicio button:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #007bff, #4a4a4a);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .servicios-container {
        flex-direction: column;
        align-items: center;
    }

    .servicio {
        width: 90%;
    }
}



/* Sección "¿Quiénes somos?" */
#quienes-somos {
    padding: 100px 20px;
    text-align: center;
    background: #f9f9f9; /* Fondo claro */
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    animation: fade-in 1.5s ease;
    max-width: 1100px;
    margin: auto;
}

/* Título */
#quienes-somos h2 {
    font-size: 2.8rem;
    font-weight: bold;
    color: #004aad;
    margin-bottom: 25px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

/* Texto descriptivo */
#quienes-somos p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fade-in 1.5s ease;
}

/* Animación de entrada */
@keyframes fadeInGeneral {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Efecto de desplazamiento */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de animación */
.fade-in {
    opacity: 0;
    animation: fadeInGeneral 1.5s ease forwards;
}

/* Secciones de Misión, Visión y Valores */
.seccion-mvv {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 30px auto;
    text-align: center;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

/* Efecto hover */
.seccion-mvv:hover {
    transform: scale(1.02);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* Títulos internos */
.contenido-mvv h2 {
    font-size: 2rem;
    color: #004aad;
    margin-bottom: 15px;
}

/* Texto */
.contenido-mvv p {
    font-size: 1.2rem;
    color: #555;
}

/* Lista de valores */
.contenido-mvv ul {
    list-style: none;
    padding: 0;
}

.contenido-mvv li {
    font-size: 1.2rem;
    color: #333;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sección "¿Por qué JACMAQ?" */
.seccion-porque {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 30px auto;
    text-align: center;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

/* Efecto hover */
.seccion-porque:hover {
    transform: scale(1.02);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* Imagen/Icono */
.icono img {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
}

/* Texto */
.texto h2 {
    font-size: 2.2rem;
    color: #004aad;
    margin-bottom: 10px;
}

.texto p {
    font-size: 1.3rem;
    color: #555;
}

.texto ul {
    list-style: none;
    padding: 0;
}

.texto li {
    font-size: 1.2rem;
    color: #333;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Destacar "JACMAQ" */
.texto .resaltado {
    color: #007bff;
    font-weight: bold;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .seccion-mvv,
    .seccion-porque {
        width: 90%;
    }

    .icono img {
        width: 120px;
    }

    .texto h2 {
        font-size: 1.8rem;
    }

    .texto p {
        font-size: 1.1rem;
    }
}

/* Estilo para el logo en "¿Quiénes somos?" */
.logo-quienes-somos {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* Espacio debajo del logo */
}

.logo-quienes-somos img {
    width: 250px; /* Ajusta el tamaño del logo */
    height: auto;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2)); /* Sombra elegante */
    transition: transform 0.3s ease-in-out;
}

.logo-quienes-somos img:hover {
    transform: scale(1.05); /* Pequeño zoom al pasar el mouse */
}



/* Sección Contacto */
#contacto {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 50px;
    max-width: 1100px;
    margin: auto;
    gap: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Información de contacto */
.contacto-info {
    flex: 1;
    color: #333;
    margin-bottom: 40px; /* Aumenta la separación */
}

.contacto-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #004a99;
}

.contacto-detalles p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #555;
}

.contacto-detalles a {
    color: #004a99;
    font-weight: bold;
    text-decoration: none;
}

.contacto-detalles a:hover {
    text-decoration: underline;
}

/* Formulario de contacto */
.contacto-form {
    flex: 1;
    background: #f4f4f4; /* Color de fondo más claro */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px; /* Ajusta el ancho para que abarque más */
    margin: 0 auto; /* Centra el formulario */
}


.contacto-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto-form label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-color: #004a99;
}

/* Checkbox y política de privacidad */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    accent-color: #004a99;
    cursor: pointer;
}

.checkbox-container a {
    color: #004a99;
    font-weight: bold;
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

/* Botón de enviar */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #4a4a4a, #007bff);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.4s ease, transform 0.2s ease, opacity 0.3s ease;
    opacity: 0.5; /* Estado deshabilitado */
    pointer-events: none;
}

.submit-btn.enabled {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.05);
}



/* Aviso de Cookies */
.cookie-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Lo centra en la pantalla */
    width: 400px; /* Tamaño más grande */
    background: rgba(255, 255, 255, 0.95); /* Fondo blanco con un poco de transparencia */
    color: #333;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

/* Título */
.cookie-container h3 {
    font-size: 20px;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 15px;
}

/* Texto */
.cookie-container p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* Enlace */
.cookie-container a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.cookie-container a:hover {
    text-decoration: underline;
}

/* Botón de Aceptar */
.cookie-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #007bff, #004080);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cookie-btn:hover {
    background: linear-gradient(90deg, #004080, #007bff);
    transform: scale(1.05);
}


/* Estilo de cookies */
.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #1a1a1a;
    color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.15);
    text-align: left;
}

.container h1, .container h2 {
    color: #00d4ff;
}

.container ul {
    padding-left: 20px;
}

.container a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
}

.container a:hover {
    text-decoration: underline;
}

.back-btn {
    display: block;
    margin-top: 20px;
    padding: 10px;
    text-align: center;
    background: linear-gradient(90deg, #00d4ff, #ff0080);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.back-btn:hover {
    background: linear-gradient(90deg, #ff0080, #00d4ff);
    transform: scale(1.05);
}

/* Estilo de avisos de privacidad */
.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #1a1a1a;
    color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.15);
    text-align: left;
}

.container h1, .container h2 {
    color: #00d4ff;
}

.container ul {
    padding-left: 20px;
}

.container a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
}

.container a:hover {
    text-decoration: underline;
}

.back-btn {
    display: block;
    margin-top: 20px;
    padding: 10px;
    text-align: center;
    background: linear-gradient(90deg, #00d4ff, #ff0080);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.back-btn:hover {
    background: linear-gradient(90deg, #ff0080, #00d4ff);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .seccion-porque,
    .contenido-porque {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .seccion-porque h2,
    #porque-jacmaq h2 {
        order: 1;
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .icono {
        order: 2;
        margin: 20px 0; /* Espacio arriba y abajo del logo */
        text-align: center;
    }

    .icono img {
        width: 150px;
        height: auto;
    }

    .texto {
        order: 3;
        text-align: center;
        margin-top: 20px;
    }

    #porque-jacmaq .icono {
        justify-content: center;
    }
}



footer {
    background: rgba(255, 255, 255, 0.7); /* Fondo blanco con transparencia */
    color: #333; /* Color del texto */
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    position: relative; /* Asegura que el fondo se aplique correctamente */
    width: 100%;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil para separarlo */
}



  