/* ===================================================== */
/*                 FONDO GLOBAL SODI                     */
/* ===================================================== */

/* Fondo base animado a pantalla completa */
.sodi-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Degradado azul corporativo en movimiento */
.sodi-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #005579 0%, #001f4d 80%);
    background-size: 200% 200%;
    animation: sodiGradientMove 18s ease-in-out infinite alternate;
    z-index: 1;
}

/* Capa con patrón SVG corporativo */
.sodi-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../sources/bg_sodi.svg") center/cover no-repeat;
    opacity: 0.5;
    z-index: 2;
}

/* Capa de burbujas oscuras animadas */
.sodi-bubbles {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

/* Mancha circular oscura difuminada */
.bubble {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0) 75%
    );
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(3px);
    mix-blend-mode: multiply;
}

/* Posiciones y animaciones individuales de cada burbuja */
.bubble-1 {
    top: 5%;
    left: 10%;
    animation: floatBubble1 20s ease-in-out infinite;
}

.bubble-2 {
    top: 60%;
    left: 70%;
    width: 300px;
    height: 300px;
    animation: floatBubble2 24s ease-in-out infinite;
}

.bubble-3 {
    top: 30%;
    left: 75%;
    width: 220px;
    height: 220px;
    animation: floatBubble3 19s ease-in-out infinite;
}

.bubble-4 {
    top: 75%;
    left: 20%;
    width: 280px;
    height: 280px;
    animation: floatBubble4 23s ease-in-out infinite;
}

.bubble-5 {
    top: 40%;
    left: 40%;
    width: 320px;
    height: 320px;
    animation: floatBubble5 27s ease-in-out infinite;
}

/* Animaciones de movimiento suave tipo “burbujas” */
@keyframes floatBubble1 {
    0%   { transform: translate(0px, 0px) scale(1); }
    50%  { transform: translate(35px, -45px) scale(1.05); }
    100% { transform: translate(-20px, 20px) scale(0.98); }
}

@keyframes floatBubble2 {
    0%   { transform: translate(0px, 0px) scale(1); }
    50%  { transform: translate(-40px, -35px) scale(1.08); }
    100% { transform: translate(25px, 30px) scale(0.96); }
}

@keyframes floatBubble3 {
    0%   { transform: translate(0px, 0px) scale(1); }
    50%  { transform: translate(30px, 40px) scale(1.07); }
    100% { transform: translate(-25px, -15px) scale(0.97); }
}

@keyframes floatBubble4 {
    0%   { transform: translate(0px, 0px) scale(1); }
    50%  { transform: translate(25px, -35px) scale(1.04); }
    100% { transform: translate(-30px, 15px) scale(0.95); }
}

@keyframes floatBubble5 {
    0%   { transform: translate(0px, 0px) scale(1); }
    50%  { transform: translate(-35px, 30px) scale(1.06); }
    100% { transform: translate(20px, -20px) scale(0.96); }
}

/* Animación del degradado de fondo */
@keyframes sodiGradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===================================================== */
/*                ESTILOS GENERALES DE LA PÁGINA         */
/* ===================================================== */

/* Configuración base de documento y fuente global */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Lato", Arial, sans-serif;
}

/* Color de texto general y evitamos scroll horizontal */
body {
    color: #ffffff;
    overflow-x: hidden;
}

/* Reseteo global de márgenes y caja consistente */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================================================== */
/*                        NAVBAR                         */
/* ===================================================== */

/* Barra de navegación fija con efecto glassmorphism */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
}

/* Contenedor interno del navbar */
.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logotipo en el nav */
.logo img {
    width: 70px;
    cursor: pointer;
}

/* Contenedor de enlaces principales */
.nav-links {
    display: flex;
    gap: 40px;
}

/* Estilo base de enlaces de navegación */
.nav-links a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
}

/* Hover del menú */
.nav-links a:hover {
    color: #FBA600;
}

/* Estado activo de la sección actual */
.nav-links a.active {
    color: #FBA600;
}

/* Contenedor de iconos sociales */
.nav-social {
    display: flex;
    gap: 14px;
}

/* Iconos de redes sociales */
.nav-social img {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-social img:hover {
    transform: scale(1.1);
}

/* ===================================================== */
/*                CONTENIDO PÁGINA NOSOTROS              */
/* ===================================================== */

/* Contenedor principal de la página "Nosotros" */
.about-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 60px;
}

/* Overlay oscuro sobre el fondo animado para legibilidad */
.about-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* Bloque de encabezado general (si se usa) */
.about-header {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 40px auto;
    text-align: center;
}

/* Párrafo destacado del encabezado */
.about-header p {
    font-size: 20px;
    font-weight: 500;
    color: #FBA600;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 12px auto;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(251, 166, 0, 0.25);
}

/* Título principal del encabezado */
.about-header h1 {
    font-size: 36px;
    color: #f5f5f5;
    margin-top: 16px;
}

/* Contenedor de estadísticas + mapa */
.about-stats {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto 50px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

/* Contenedor del mapa de cobertura */
.about-map {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 20;
}

/* Imagen del mapa */
.about-map img {
    max-width: 450px;
    width: 100%;
    height: auto;
    opacity: 0.92;
    filter: drop-shadow(0 8px 25px rgba(0,0,0,0.55));
    border-radius: 12px;
    position: relative;
    z-index: 21;
}

/* Columna de métricas */
.stats-list {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

/* Ítem individual de estadística */
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Número destacado de las métricas */
.stat-number {
    font-size: 52px;
    font-weight: 800;
    color: #FBA600;
}

/* Descripción de la métrica */
.stat-label {
    font-size: 18px;
    color: #f1f1f1;
}

/* Bloque de misión */
.mision {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Título “Nuestra misión” */
.mision-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

/* Texto de misión resaltado en amarillo */
.mision-resaltado {
    display: block;
    font-style: italic;
    font-size: 20px;
    color: #FBA600;
    margin-bottom: 6px;
}

/* Párrafo explicativo de la misión */
.mision-texto {
    font-size: 18px;
    color: #e8e8e8;
    line-height: 1.7;
}

/* Slogan final de la página */
.slogan-texto {
    font-size: 22px;
    color: white;
    text-align: center;
    margin-top: 30px;
    font-weight: 600;
}

/* ===================================================== */
/*                      FOOTER SODI                      */
/* ===================================================== */

/* Pie de página global */
.footer {
    background: #050505;
    color: #ffffff;
    padding: 45px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 10;
}

/* Contenedor interno del footer */
.footer-container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Columna genérica del footer */
.footer-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Columna del logo centrado */
.footer-logo {
    align-items: center;
}

/* Logotipo en el footer */
.footer-logo img {
    width: 260px;
    margin-bottom: 12px;
}

/* Slogan bajo el logo */
.footer-slogan {
    font-size: 0.9rem;
    text-align: center;
    color: #dddddd;
    max-width: 250px;
}

/* Títulos de las columnas del footer */
.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #FBA600;
    letter-spacing: 0.04em;
}

/* Texto de contenido del footer */
.footer-col p {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-bottom: 5px;
}

/* Franja inferior con derechos de autor */
.footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: 0.8rem;
    color: #bbbbbb;
    opacity: 0.85;
}

/* ===================================================== */
/*      FOOTER RESPONSIVE (ALINEADO CON INDEX)           */
/* ===================================================== */

/* Footer en columnas apiladas en pantallas medianas/pequeñas */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        align-items: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-logo img {
        margin: 0 auto 10px;
    }

    .footer-slogan {
        max-width: none;
    }
}

/* Ajustes extra de footer para móviles pequeños */
@media (max-width: 600px) {
    .footer {
        padding-top: 40px;
    }

    .footer-col p {
        font-size: 0.85rem;
    }

    .footer-bottom {
        margin-top: 20px;
        font-size: 0.75rem;
    }
}

/* ===================================================== */
/*            BOTÓN FLOTANTE WHATSAPP (CHATBOT)          */
/* ===================================================== */

/* Contenedor del botón flotante y tooltip */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Lato", Arial, sans-serif;
}

/* Globito de texto “¡Escríbenos!” */
.whatsapp-tooltip {
    background: #ffffff;
    color: #001f4d;
    padding: 8px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    transform: translateY(0);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Estado oculto del tooltip (controlado por JS) */
.whatsapp-tooltip--hide {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

/* Botón circular de WhatsApp */
.whatsapp-float a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Icono de WhatsApp dentro del botón */
.whatsapp-float a img {
    width: 34px;
    height: 34px;
    display: block;
}

/* Hover del botón flotante */
.whatsapp-float a:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

/* Al pasar el mouse, se vuelve a mostrar el tooltip */
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Ajustes del botón de WhatsApp en móviles pequeños */
@media (max-width: 480px) {
    .whatsapp-float {
        right: 16px;
        bottom: 90px;
        gap: 6px;
    }

    .whatsapp-tooltip {
        font-size: 13px;
        padding: 6px 10px;
    }

    .whatsapp-float a {
        width: 56px;
        height: 56px;
    }

    .whatsapp-float a img {
        width: 30px;
        height: 30px;
    }
}

/* ===================================================== */
/*                RESPONSIVE BREAKPOINTS                 */
/* ===================================================== */

/* TABLET (≤ 992px) */
@media (max-width: 992px) {

    .navbar {
        padding: 16px 0;
    }

    .nav-container {
        width: 92%;
    }

    .nav-links {
        gap: 28px;
    }

    .about-header h1 {
        font-size: 32px;
    }

    .about-header p {
        font-size: 19px;
    }

    .stat-number {
        font-size: 46px;
    }

    .stat-label {
        font-size: 17px;
    }
}

/* MÓVIL (≤ 768px) */
@media (max-width: 768px) {

    .navbar {
        padding: 14px 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        text-align: center;
    }

    .logo img {
        width: 60px;
    }

    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 14px;
    }

    .nav-social {
        justify-content: center;
    }

    .nav-social img {
        width: 24px;
        height: 24px;
    }

    /* Más espacio para que el nav fijo no tape el contenido */
    .about-wrapper {
        padding-top: 190px;
    }

    .about-header h1 {
        font-size: 26px;
    }

    .about-header p {
        font-size: 18px;
    }

    .about-map img {
        max-width: 230px;
    }

    .about-stats {
        margin-top: 25px;
    }
}

/* MÓVIL PEQUEÑO (≤ 480px) */
@media (max-width: 480px) {

    .navbar {
        padding: 12px 0;
    }

    .logo img {
        width: 54px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .about-wrapper {
        padding-top: 210px;
    }

    .about-header h1 {
        font-size: 22px;
    }

    .about-header p {
        font-size: 16px;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-label {
        font-size: 16px;
    }

    .about-map img {
        max-width: 210px;
    }
}

/* =============================================== */
/*        TIPOGRAFÍAS CORPORATIVAS SODI (LATO)     */
/* =============================================== */

/* Peso ligero para párrafos y textos de cuerpo */
p, .contact-text, .footer-col p {
    font-weight: 300;
}

/* Subtítulos y textos destacados medianos */
h3, .contact-subtitle {
    font-weight: 600;
}

/* Títulos principales */
h1, h2, .contact-title {
    font-weight: 700;
}

/* Botones y llamadas a la acción */
button, .contact-submit {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Elementos ultra destacados */
.hero-title, .big-number {
    font-weight: 900;
}

/* =============================================== */
/*  AJUSTE FINO: FOOTER UNIFICADO EN TODO EL SITIO */
/* =============================================== */

/* Texto compacto en el footer */
.footer-slogan,
.footer-col p {
    line-height: 1.3;
    margin-bottom: 3px;
}

/* Títulos del footer más cerrados */
.footer-col h3 {
    line-height: 1.2;
    margin-bottom: 6px;
}
