:root {
    --color_primario: #edeeee;
    --color_primario_suave: rgba(235,238,238,0.7);;
    --color_blanco: #303030;
    --altura_header: 100px;
    --padding_left_right: 2rem;
    --ancho_maximo: 1200px;
}
a{
    text-decoration: none;
}
ol,ul{
    list-style: none;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Altura unificada */
    background-color: #011F3F;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 999999;
}

.navbar {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.logotipo {
    width: 180px; /* Un poco más pequeño en móvil */
    height: auto;
}

.menu_hamburguesa {
    display: none;
}

.labe_hamburguesa {
    display: block;
    cursor: pointer;
    color: #ffffff;
    z-index: 100;
}

/* Menú móvil desplegable */
.ul_links {
    position: fixed; /* Mejor fixed para cubrir toda la pantalla */
    top: 80px;
    left: 0;
    width: 100%;
    height: 0; 
    background-color: rgba(1, 31, 63, 0.95);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Estado abierto */
.menu_hamburguesa:checked ~ .ul_links {
    height: calc(100vh - 80px);
    padding-top: 2rem;
}

/* Enlaces en móvil */
.link {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* Redes Sociales e Idiomas en móvil */
.li_iconos {
    display: flex;
    gap: 10px;
    align-items: center;
}

.link_idioma_es, .link_idioma_en {
    font-weight: bold;
    font-size: 1rem;
    color: #011F3F;
    background-color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    margin: 0;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background: #ffffff;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

h1{
  font-size: 3.5em;  
}
h2{ font-size: 2.7em;
}
h3{ font-size: 2em;
}
p{ font-size: 1.25em;
}
ul{ list-style: none;
}
li{ font-size: 1.25em;
}




.container{
    max-width: 1400px;
    margin: auto;
}

.color-acento{ color:#00828e; }



#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100svh;
    padding: 0 20px;
    background-image: linear-gradient(
        0deg,
        rgba(12, 34, 60, 0.8),
        rgba(13, 31, 49, 0.9)
    ), url(media/heromovil.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.logohero {
    width: 200px; /* Tamaño ajustado para móvil */
    height: auto;
    margin-bottom: 25px;
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100svh;
    padding: 0 20px;
    background-image: linear-gradient(0deg, rgba(12, 34, 60, 0.8), rgba(13, 31, 49, 0.9)), 
                      url(media/heromovil.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.logohero {
    width: 200px;
    height: auto;
    margin-bottom: 25px;
}

#hero h1 {
    color: white;
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

/* --- Botón WhatsApp --- */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #011F3F;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- Contenedor de Iconos (Doble Imagen) --- */
.whatsapp-icon-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
}

.whatsapp-icon-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-blue {
    opacity: 0; /* Oculto por defecto */
}

/* --- Efectos Hover --- */
.btn-whatsapp:hover {
    transform: scale(1.05);
    background-color: #ffffff;
    color: #011F3F;
}

.btn-whatsapp:hover .icon-white {
    opacity: 0; /* Desaparece el blanco */
}

.btn-whatsapp:hover .icon-blue {
    opacity: 1; /* Aparece el azul */
    transform: rotate(15deg);
}

#somos {
    background-color: #ffffff;
    height: auto; 
        min-height: 100vh;
        padding: 50px 0;
}

#somos .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

/* Imagen visible en móvil */
#somos .img-container {
    background-image: linear-gradient(
        0deg,
        rgba(12, 34, 60, 0.4),
        rgba(13, 31, 49, 0.52)
    ), url(media/somosmovil.png);
    background-size: cover;
    background-position: center;
    height: 300px;
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    margin-bottom: 35px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#somos h2 {
    color: #011F3F;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

#somos p {
    color: #011F3F;
    font-size: 1rem;
    line-height: 1.7;
    text-align:center;
    margin: 0;
}

.somosestiloalternativo {
    font-weight: bold;
    color: #011F3F; /* Manteniendo la sobriedad corporativa */
}
#servicios {
        /* Mantiene la altura adaptable al contenido */
        height: auto; 
        min-height: 100vh;
        padding: 50px 0;
        display: flex;
        flex-direction: column;

        /* Inserción de imagen con degradado para legibilidad */
        background-image: linear-gradient(
            0deg,
            rgba(12, 34, 60, 0.75),
            rgba(13, 31, 49, 0.87)
        ), url(media/servicios.png);
        
        /* Ajustes de posicionamiento de imagen */
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: scroll; /* Recomendado para mejor rendimiento en móvil */
    }

    #servicios .container {
        /* Reducimos el padding de 100px para ganar espacio en pantalla */
        padding: 40px 15px; 
    }

    #servicios h2 {
        font-size: 2.2em; /* Tamaño más equilibrado para móviles */
        margin-bottom: 20px;
        color: #fff;
         text-align: center;
    }

    #servicios .nuestrosservicios {
        /* Mantenemos la columna pero aseguramos el ancho completo */
        width: 100%;
        gap: 25px;
    }

    #servicios .carta {
        /* Eliminamos el ancho fijo de 450px para usar el 100% del contenedor */
        width: 100%;
        max-width: 100%; 
        padding: 20px;
        /* Añadimos un fondo sutil para separar los servicios si es necesario */
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 5px;
    }

    #servicios p {
        margin-top: 15px; /* Reducimos el margen de 35px para evitar huecos grandes */
        font-size: 1rem;
        line-height: 1.4;
        color: #fff;
    }
    #servicios h3 {
        font-size: 2em; /* Tamaño más equilibrado para móviles */
        margin-bottom: 20px;
        color: #fff;
         text-align: center;
    }

#especialidad {
    padding: 60px 20px;
    background-color: #ffffff;
    color: #011F3F;
}

#especialidad h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
}

.nuestrosservicios {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.carta {
    background: #f9f9f9;
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid rgba(1, 31, 63, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.carta .imagen {
    width: 80px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.carta h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.2;
    min-height: 3.4rem; /* Mantiene alineación */
}

.carta p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

#aliados {
    background-image: linear-gradient(
        0deg,
        rgba(12, 34, 60, 0.85),
        rgba(13, 31, 49, 0.92)
    ), url(media/aliados.png);
    background-size: cover;
    background-position: center center;
    color: white;
    text-align: center;
    padding: 50px 10px;
}

#aliados .container {
    padding: 40px 5px;
}

#caracteristicas h2 {
    font-size: 1.8rem;
    padding-bottom: 10px;
}

#aliados p {
    text-align: center;
    padding: 0 15px;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

#aliados ul {
    list-style: none;
    display: flex;
    flex-direction: row; /* Cambiamos a fila para permitir el envoltura */
    flex-wrap: wrap;     /* Permite que los elementos bajen a la siguiente línea */
    justify-content: center;
    align-items: flex-start;
    gap: 30px 0;         /* Espacio vertical entre filas */
    padding: 20px 0;
}

#aliados li {
    font-weight: bold;
    /* El 50% hace que quepan exactamente dos por fila */
    flex: 0 0 50%;       
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;    /* Espacio interno para que no se peguen entre sí */
    box-sizing: border-box;
    grid-template-columns: repeat(2, 1fr);
}

#aliados .imagen {
    width: 150px;         /* Ajustamos el tamaño para que no saturen el espacio 2x2 */
    height: auto;
    margin-bottom: 10px;
}

#aliados li span {
    font-size: 0.85rem;  /* Ajuste ligero de fuente para los textos de las etiquetas */
    display: block;
}



.main-footer {
    background-color: #011F3F; /* Azul corporativo unificado */
    color: #ffffff;
    padding: 50px 20px 0 20px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.footer-column {
    width: 100%;
}

.footer-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.footer-logo-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cccccc;
    padding: 0;
}

.footer-column h3 {
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links, .contact-data {
    list-style: none;
    padding: 0;
}

.footer-links li, .contact-data li {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-data li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #cccccc;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Barra de Copyright */
.footer-bottom {
    background-color: #011831;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #888888;
    line-height: 1.5;
}

#contacto {
    background-color: #ffffff;
    padding: 60px 15px;
    height: auto;
    min-height: auto;
    display: flex;
    align-items: center;
}

#contacto .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Apilado para móvil */
    align-items: center;
    gap: 50px;
}

#contacto .texto {
    text-align: center;
    width: 100%;
}

#contacto .texto h2 {
    color: #011F3F;
    font-size: 2.2rem;
    font-weight: 800;
}

#contacto .texto p {
    font-size: 1.3rem;
    color: #011F3F;
    margin-bottom: 30px;
    font-weight: 600;
}

.info-detalles {
    display: inline-block;
    text-align: left;
    width: 100%;
    max-width: 320px;
}

.item-contacto {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-text strong {
    color: #011F3F;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.info-text span {
    font-size: 1rem;
    color: #444;
}

.nota-adicional {
    margin: 0 auto;
    border-top: 3px solid #011F3F;
    padding-top: 15px;
    text-align: center;
    font-style: italic;
    color: #666;
    display: block;
}

.contact-card {
    width: 100%;
    padding: 30px 20px;
    border: 1px solid #eee;
    background-color: #fcfcfc;
    border-radius: 15px;
}

.contact-card form {
    display: flex;
    flex-direction: column;
}

.contact-card input, 
.contact-card textarea {
    padding: 15px;
    margin-bottom: 20px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px; /* Evita zoom en móviles */
}

.contact-card button {
    padding: 16px;
    background-color: #011F3F;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}







@media (min-width:1220px){
 header {
        height: 100px;
    }

    .navbar {
        padding: 0 75px;
    }

    .logotipo {
        width: 230px;
    }

    .labe_hamburguesa {
        display: none !important;
    }

    .ul_links {
        position: static;
        height: auto !important;
        width: auto;
        background-color: transparent;
        flex-direction: row;
        gap: 0.5rem;
        overflow: visible;
        padding: 0;
    }

    .link {
        font-size: 0.9rem;
        padding: 8px 12px;
        transition: all 0.3s;
        border: 1px solid transparent;
    }

    .link:hover {
        border-color: #ffffff;
        border-radius: 4px;
    }

    /* Separador visual para redes sociales en escritorio */
    .li_iconos {
        border-left: 1px solid rgba(255,255,255,0.2);
        padding-left: 15px;
        margin-left: 10px;
    }

    .icons img {
        transition: transform 0.3s;
    }

    .icons:hover img {
        transform: translateY(-3px);
    }


#hero {
        flex-direction: row;
        height: 100vh;
        gap: 60px;
        padding: 0 10%;
        background-image: linear-gradient(0deg, rgba(12, 34, 60, 0.75), rgba(13, 31, 49, 0.87)), 
                          url(media/hero.png);
    }

    .logohero {
        width: 350px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    #hero h1 {
        font-size: 3.5rem;
        margin-bottom: 40px;
        border-left: 5px solid #ffffff;
        padding: 15px 0 15px 30px;
    }

    .btn-whatsapp {
        font-size: 1.2rem;
        padding: 18px 40px;
        margin-left: 35px; /* Alineación perfecta con el texto tras el borde */
    }

   #somos .container {
        flex-direction: row; /* Imagen y texto lado a lado */
        height: 100vh;
        gap: 80px;
        padding: 0 10%;
        max-width: 1400px;
        margin: 0 auto;
    }

    #somos .img-container {
        height: 550px;
        width: 500px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    #somos .texto {
        width: 55%;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #somos h2 {
        font-size: 3.5rem;
        margin-bottom: 30px;
    }

    #somos p {
        font-size: 1.2rem;
        text-align: justify;
        line-height: 1.8;
    }

#servicios{
 background-image: linear-gradient(
        0deg,
         rgba(12, 34, 60, 0.75),
        rgba(13, 31, 49, 0.87)
    )
    , url(media/servicios.png);
        background-size: cover;
        background-position: center center;
    color: white;
    text-align: center;
        display: flex;
    height: 100svh;
 
     
}
#servicios .container{
    padding: 100px 12px;
}

    #servicios .nuestrosservicios{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: row;
    }
  
    #servicios p{
        display: block;
        margin-top: 35px;
    
      
    }

    #servicios h2{
        font-size: 3em;
    }

    #servicios h3{
       
        border-bottom-style: solid;
        border-bottom-width: 2px;
        border-bottom-color: #fff;
     
    }

    #servicios .carta{
        padding: 10px 10px;
       background-size: 100% 100px;
        background-repeat: no-repeat;
        background-position-y: 0;
        min-height: 100px;
        height: auto;
        width: min(100%, 450px);
       
    }
    

    .carta:first-child{
        background-color: transparent;
    
    }

    .carta:nth-child(2){
     background-color: transparent;
    
    }

  
#especialidad {
        padding: 100px 10%;
        min-height: auto;
    }

    #especialidad h2 {
        font-size: 3.5rem;
        margin-bottom: 60px;
    }

    .nuestrosservicios {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 columnas exactas */
        gap: 20px;
        flex-direction: row;
    }

    .carta {
        padding: 40px 25px;
        background: transparent;
        border: 1px solid transparent;
    }

    /* Efecto profesional de elevación */
    .carta:hover {
        background: #ffffff;
        border: 1px solid rgba(1, 31, 63, 0.1);
        box-shadow: 0 15px 30px rgba(0,0,0,0.05);
        transform: translateY(-10px);
    }

    .carta h3 {
        border-bottom: 2px solid #011F3F;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .carta .imagen {
        width: 110px;
        transition: transform 0.3s ease;
    }

    .carta:hover .imagen {
        transform: scale(1.1);
    }


#aliados {
    background-image: linear-gradient(
        0deg,
        rgba(12, 34, 60, 0.75),
        rgba(13, 31, 49, 0.87)
    ), url(media/aliados.png);
    background-size: cover;
    background-position: center center;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

#aliados .container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 60px 12px;
}

#aliados h2 {
    font-size: 2.5rem;
    padding-bottom: 20px;
}

#aliados p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto; /* Aumentado margen inferior para separar de la cuadrícula */
    line-height: 1.6;
    font-size: 1.1rem;
}

#aliados ul {
    list-style: none;
    padding: 0;
    
    /* Cambiamos a Grid para un control absoluto de filas y columnas */
    display: grid;
    /* Define exactamente 5 columnas de tamaño idéntico */
    grid-template-columns: repeat(5, 1fr); 
    /* Define exactamente 2 filas de tamaño automático basado en el contenido */
    grid-template-rows: repeat(2, auto); 
    
    /* Espaciado: 50px entre filas y 20px entre columnas */
    gap: 50px 20px; 
    
    justify-items: center; /* Centra los elementos horizontalmente en su celda */
    align-items: center;   /* Centra los elementos verticalmente en su celda */
}

#aliados li {
    /* Ya no necesitas 'flex' ni cálculos complejos de porcentajes */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Permite que el li ocupe el ancho de su celda asignada */
}

#aliados .imagen {
    width: 100%;
    max-width: 180px;      /* Tamaño ajustado para que luzcan los logos en 3 columnas */
    height: auto;
    filter: brightness(0) invert(1); /* Opcional: hace los logos blancos para el fondo oscuro */
    transition: transform 0.3s ease;
}

#aliados .imagen:hover {
    transform: scale(1.05); /* Efecto sutil al pasar el mouse */
}

#contacto {
        padding: 100px 20px;
        min-height: 100vh;
    }

    #contacto .container {
        flex-direction: row; /* Cambio a horizontal */
        justify-content: space-between;
        align-items: flex-start;
        gap: 80px;
    }

    #contacto .texto {
        flex: 1;
        text-align: left;
    }

    #contacto .texto h2 {
        font-size: 3rem;
    }

    #contacto .texto p {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .info-detalles {
        max-width: 100%;
    }

    .item-contacto {
        gap: 20px;
        margin-bottom: 30px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .nota-adicional {
        margin: 0;
        border-top: none;
        border-left: 4px solid #011F3F;
        padding-top: 0;
        padding-left: 20px;
        text-align: left;
        max-width: 450px;
    }

    .contact-card {
        flex: 1;
        max-width: 550px;
        padding: 50px;
        box-shadow: 0 15px 40px rgba(1, 31, 63, 0.1);
        background-color: #fff;
    }


.main-footer {
        padding: 60px 0 0 0;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        gap: 0;
    }

    .footer-column {
        flex: 1;
        min-width: auto;
    }

    /* Columna 1: Logo y descripción */
    .footer-logo-col {
        flex: 1.5; /* Más ancho para la descripción */
        padding-right: 50px;
    }

    .footer-logo {
        max-width: 300px;
    }

    /* Columna 2: Enlaces (Centrada visualmente) */
    .footer-column:nth-child(2) {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Columna 3: Contacto (Alineada a la derecha) */
    .footer-contact-col {
        text-align: right;
    }

    .footer-contact-col h3 {
        display: inline-block;
        width: 100%;
    }

    .contact-data li {
        justify-content: flex-end;
    }

    .social-icons {
        justify-content: flex-end;
    }

    .footer-links a:hover {
        color: #ffffff;
    }

    .footer-bottom p {
        white-space: normal; /* Permite ajuste si el nombre es largo */
    }
} 

