* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f8fafc; /* Gris ultra claro para un contraste limpio */
    color: #1e293b;
}

h1 { font-size: 4em; }
h2 { font-size: 2em; }
h3 { font-size: 1.7em; }
p { font-size: 1.25em; }
li { font-size: 1.2em; text-align: left; }

/* HEADER */
header {
    position: fixed; 
    top: 0;          
    width: 100%; 
    background-image: url('Images/Tecnología\ 3.PNG');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: rgb(7, 0, 101);   
    display: flex;
    flex-direction: column; 
    align-items: center; 
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 20px; 
    list-style: none;
    padding: 15px;
    margin: 0;
}

.navbar a {
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: rgb(255, 255, 255);   
    font-size: x-large;
}

.navbar a:hover {
    background-color: rgba(83, 126, 255, 0.819);
    color: #ffffff;
    transform: translateY(-2px);
}

.logo img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 135px;
}

/* 🔥 SECCIÓN SUCURSALES CORREGIDA (Margen superior añadido para evitar que se esconda) */
.sucursales {
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
    margin-top: 190px;
    /* Rediseño de fondo: Un degradado muy suave que va con la tecnología */
    background: linear-gradient(180deg, #f8fafc 0%, #a5b9d3 100%); 
}

.sucursales h2 {
    font-size: 2.2em;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Icono/Mapa flotante superior animado */
.ubicacion { 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    margin-bottom: 30px;
}

.ubicacion img { 
    width: 90px;
    height: auto;
    filter: drop-shadow(0px 10px 15px rgba(0, 85, 233, 0.3)); /* Brillo azul tech */
    animation: flotar 3s ease-in-out infinite;
}


/* 🏢 TARJETA PREMIUM DE LA UBICACIÓN */
.adelfa {
    margin: 40px auto;
    max-width: 950px;
    padding: 35px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08); /* Sombra elegante */
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

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

.adelfa iframe {
    width: 100%;
    height: 480px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.adelfa h4 {
    margin-top: 0;
    margin-bottom: 35px; /* 🔥 Esto separará el texto del mapa de abajo de forma exacta */
    font-size: 1.25em;
    color: #1e3a8a; 
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}



.btn-whatsapp-mapa {
    color: #25d366; /* Verde oficial de WhatsApp */
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Separación entre el logo verde y el número */
    transition: all 0.3s ease;
    vertical-align: middle;
}

/* 🔥 Tamaño y alineación exacta del logo de WhatsApp */
.logo-wa-inline {
    width: 30px;
    height: 30px;
    display: inline-block;
}

/* Efecto visual al pasar el mouse */
.btn-whatsapp-mapa:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
    color: #20ba5a; /* Un verde ligeramente más oscuro al hacer hover */
}
@keyframes flotar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* FOOTER */
footer {
    background: linear-gradient(to right, #000000, #0055e9);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px;
    padding: 25px;
    color: white;
    text-align: center;
}

.footer-logo img { height: 45px; }
.footer-item { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.footer-item img { width: 22px; height: 22px; }

/* ==========================================
   MÓVIL RESPONSIVO OPTIMIZADO 📱
   ========================================== */
@media (max-width: 768px) {
    html body header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 10px 15px !important;
        z-index: 9999 !important;
    }

    html body .navbar {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        margin-top: 8px !important;
    }

    html body .navbar li a {
        font-size: 15px !important; 
        padding: 4px 6px !important;
    }

    /* Ajuste de espacio para móvil */
    .sucursales {
        margin-top: 180px !important;
        padding: 20px 15px !important;
    }

    .sucursales h2 {
        font-size: 1.6em !important;
    }

    .adelfa {
        padding: 20px 15px !important;
        margin: 20px auto !important;
    }

    .adelfa h4 {
        font-size: 1.1em !important;
    }

    .adelfa iframe {
        height: 320px !important;
    }

    @media screen and (max-width: 991px) { /* Asegúrate de estar dentro de tu media query */

    /* Reducimos el contenedor del enlace y la letra para que no se vea tosco */
    html body .btn-whatsapp-mapa {
        font-size: 1.1rem !important; /* Letra más chica del número */
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important; /* Un poco menos de separación */
        margin-top: 5px !important; /* Separación sutil de la línea de texto de arriba */
    }

    /* 🔥 EL BLINDAJE DEL LOGO: Forzamos tamaño chico sí o sí */
    html body .logo-wa-inline {
        width: 18px !important; /* Bajamos de 24px a 18px */
        height: 18px !important;
        display: inline-block !important;
        vertical-align: middle !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Opcional: Si la dirección (el texto de Guanajuato) también se ve gigante, bájala aquí */
    .adelfa h4 {
        font-size: 1.1em !important;
        display: block !important; /* Si se amontona, forzamos bloque */
        text-align: center !important;
    }

    html body footer {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 30px 15px !important;
    }

    .footer-item { justify-content: center !important; }
    }

}