
/*
    Azul oscuro: #042D5F
    Azul claro : #1272B2
    Verde claro : #129A94
    Gris claro : #F8F9FA
    Negro : #333333
*/

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333333;
    background-color: #F8F9FA;
    line-height: 1.6;
}

h1, h2, h3 {    
    color: #042D5F; 
    text-align: center;
}

a {
    text-decoration: none; 
    color: #1272B2;
    
}

header {
    background-color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    position: relative;
    z-index: 1000;
}

header .logo img {
    height: 100px; 
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    font-weight: bold;
    color: #042D5F;
    transition: color 0.3s ease;
}
footer {
    background-color: #042D5F;
    color: #f0f0f0;
    padding: 60px 20px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px; 
}

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

.footer-column h4 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid #1272B2;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-column p {
    font-size: 0.9em;
    line-height: 1.6;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #1272B2;
}

.contact-item {
    margin-bottom: 15px;
}

.social-links a img {
    width: 30px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.1);
}

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

.footer-bottom p {
    font-size: 0.8em;
    color: #aaa;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    header{
        padding: 5px 5px;
    }

    .footer-column {
        min-width: 100%;
        margin-bottom: 30px;
    }
}

.social-media a {
    color: white;
    margin: 0 10px;
    font-size: 1.2em;
}

/* index.html */
.hero {
    background: url('../images/indexPhoto.jpg') no-repeat center center/cover; 
    color: white;
    text-align: center;
    padding: 60px 20px; 
    position: relative;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero .overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(4, 45, 95, 0.6);
z-index: 1;
}

.hero-content {
position: relative;
z-index: 2;
max-width: 800px;
padding: 20px;
}

.btn {
display: inline-block;
margin-top: 20px;
padding: 12px 24px;
background: #0d6efd;
color: #fff;
border-radius: 6px;
text-decoration: none;
font-weight: bold;
}
.btn:hover {
background: #0b5ed7;
}
.hero h1 {
    color: white;
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-button {
    background-color: #1272B2; 
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.about-us-summary {
    padding: 60px 20px;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.about-us-summary h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.about-us-summary p {
    text-align: justify;
    margin: 0 auto;
    max-width: 800px;
}

.about-us-summary .link-to-page {
    margin-top: 40px;
    display: inline-block;
}

.services-summary h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0;
}

.service-cards .card p {
    display: none;
}

.allies-section {
    padding: 60px 20px;
    text-align: center;
}

.allies-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.allies-logos img {
    max-height: 80px;
    width: auto;
}

.allies-big-logo img {

    max-height: 120px; 
    width: auto;
    height: 190px;
    width: 220px;
    object-fit: contain;

}

.location-section {
    padding: 60px 20px;
    text-align: center;
}

.location-section h2 {
    margin-bottom: 10px;
}

.location-section p {
    margin-bottom: 30px;
}

.location-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.address-info {
    text-align: left;
    flex-basis: 300px;
}

.address-info p {
    margin: 5px 0;
}

.map-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    height: 300px;
}

.map-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.page-content {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-content h1 {
    text-align: center;
    color: #042D5F;
    font-size: 3em;
    margin-bottom: 50px;
    position: relative;
}

.page-content h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #129A94;
    margin: 15px auto 0;
    border-radius: 2px;
}

.testimonials-section {
    padding: 80px 20px;
    text-align: center; 
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.testimonial-image-container img {
    width: 100%;
    height: 100%; 
    display: block;
    object-fit: contain; 
}

.testimonial-image-container {
    
    height: 250px; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

.testimonial-cta {
    margin-top: 20px;
}

/* Media Query para móviles */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .testimonial-image-container {
        height: 300px; 
    }
}

/* Estilos para nosotros.html */
.history-section {
    padding: 30px 0;
    margin-bottom: 60px;
}

.history-text {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
    color: #333333;
}

.mission-vision-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}
.mv-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    flex: 1 1 280px;
    text-align: justify;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 5px solid transparent;
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-bottom-color: #129A94;
}

.mv-card h3 {
    color: #042D5F;
    font-size: 1.6em;
    margin-bottom: 15px;
}

.mv-card p,
.mv-card ul {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
    text-align: justify;
    margin-bottom: 0;
}

.mv-card ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

.mv-card li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 8px;
}

.mv-card li::before {
    content: " •";
    color: #129A94;
    position: absolute;
    left: 0;
    font-size: 0.9em;
    line-height: 1.7;
}

/* Estilos para equipo.html */
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
}

.member-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: Center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #1272B2;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.member-card img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #129A94;
    box-shadow: 0 0 0 6px rgba(18, 154, 148, 0.2);
}

.member-card h3 {
    margin: 0;
    color: #042D5F;
    font-size: 1.8em;
    text-align: center;
}

.member-card h4 {
    margin: 5px 0 15px;
    color: #1272B2;
    font-weight: normal;
    font-style: italic;
    text-align: center
}

.member-card p {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
    text-align: justify;
}

/* Estilos para servicios.html */
.service-intro {
    font-size: 1.2em;
    text-align: justify;
    max-width: 800px;
    margin: 0 auto 60px;
    color: #555;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card-item {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column;
    height: 100%; 
}

.service-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover; 
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content h2 {
    font-size: 1.8em;
    color: #042D5F;
    margin-bottom: 15px;
}

.card-content p,
.card-content ul {
    flex-grow: 1;
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    margin-bottom: 25px;
}

.card-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.card-content ul li {
    margin-bottom: 8px;
}

.card-content .cta-button {
    margin-top: auto; 
    text-align: center;
}

/* Media Query para responsividad en móviles */
@media (max-width: 768px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
    }

    .card-content p,
    .card-content ul {
        text-align: left;
    }
}

/* estilos contacto.html */
.contact-section h1::after {
    background-color: #129A94;
}

.contact-intro {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
    color: #555;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 20px;
}

.contact-info, .contact-form-container {
    flex: 1 1 450px;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contact-info {
    text-align: left;
    border-left: 5px solid #129A94;
}

.contact-info h2 {
    text-align: left;
    color: #042D5F;
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-info p {
    text-align: left;
    margin: 15px 0;
    color: #555;
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #042D5F;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1272B2;
    outline: none;
}

.contact-form button.cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .page-content h1 {
        font-size: 2.5em;
    }
    .mission-vision-container {
        flex-direction: column;
    }
    .team-members {
        grid-template-columns: 1fr;
    }
    .service-item {
        flex-direction: column !important;
        text-align: center;
    }
    .service-text h2 {
        text-align: center;
    }
}
.menu-toggle, .menu-header { display: none; }

#main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}


#main-nav ul li a {
    color: #042D5F;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Estilos del icono */
.hamburger {
    display: block;
    width: 26px;
    height: 2px;
    background: #042D5F;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #042D5F;
}
.hamburger::before { top: -8px; }
.hamburger::after  { top: 8px; }

/* Media Query para pantallas pequeñas */
@media (max-width: 768px) {
    
    body:has(#main-nav.active)::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        pointer-events: none;
        z-index: 1400; /* Justo debajo del nav */
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 2500; /* Por encima del nav */
        position: absolute;
        right: 10px;
        top: 30px;
        padding: 0;
    }

    .hamburger {
        width: 20px; /* Tamaño reducido para elegancia */
        height: 2px;
        background: #042D5F;
        transition: all 0.3s ease;
        position: relative;
    }

    .hamburger::before,
    .hamburger::after {
        content: "";
        position: absolute;
        left: 0;
        width: 20px;
        height: 2px;
        background: #042D5F;
        transition: all 0.3s ease;
    }

    .hamburger::before { top: -6px; }
    .hamburger::after  { top: 6px; }

    .menu-toggle.open .hamburger { background: transparent; }
    .menu-toggle.open .hamburger::before {
        transform: rotate(45deg);
        top: 0; /* Centra la línea antes de rotar */
    }

    .menu-toggle.open .hamburger::after {
        transform: rotate(-45deg);
        top: 0; /* Centra la línea antes de rotar */
    }


    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        padding-top: 80px; /* Espacio para que el botón no tape el primer enlace */
        display: block !important;
        pointer-events: auto;
    }

    #main-nav.active {
        right: 0;
    }

    .menu-header {
        display: block;
        padding: 0 25px 20px;
        font-weight: bold;
        color: #042D5F;
        font-size: 1.2rem;
        border-bottom: 1px solid #f0f0f0;
    }

    #main-nav ul {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    #main-nav li {
        border-bottom: 1px solid #f9f9f9;
    }

    #main-nav ul li a {
        display: block; /* Hace que toda la fila sea clickeable, no solo el texto */
        width: 100%;
        padding: 15px 25px; 
        position: relative;
        z-index: 2001;
    }

    #main-nav ul li a:hover {
        background: #f4f7fe;
        color: #042D5F;
    }
}

/*ESTILOS PARA LOS MENSAJES DE ESTADO DEL FORMULARIO */
#form-message-status {
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    display: none;
    transition: opacity 0.5s ease;
}

#form-message-status.show {
    opacity: 1;
}

.success {
    background-color: #11d217; 
    border: 1px solid #15cc3c;
}

.error {
    background-color: #e74c3c; 
    border: 1px solid #c0392b;
}