/* ===================================================== */
/*                 FONDO GLOBAL SODI                     */
/* ===================================================== */

/* Contenedor base del fondo animado a pantalla completa */
.sodi-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Capa base: degradado azul corporativo animado */
.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 SVG decorativa encima del degradado */
.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 animadas oscuras encima del fondo */
.sodi-bubbles {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

/* Burbuja base – mancha 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;
}

/* Burbujas posicionadas y animadas de forma distinta */
.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;
}

/* Movimiento suave tipo burbujas para cada mancha */
@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); }
}

/* Movimiento leve del degradado base para dar dinamismo */
@keyframes sodiGradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===================================================== */
/*                ESTILOS GENERALES DE LA PÁGINA         */
/* ===================================================== */

/* Reseteo global y box-sizing consistente */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
   Configuración global del documento:
   - Ancho y alto a pantalla completa
   - Tipografía Lato como fuente principal en todo el sitio
*/
html, body {
    width: 100%;
    height: 100%;
    font-family: "Lato", Arial, sans-serif;
}

/* Color de texto por defecto y bloqueo de scroll horizontal */
body {
    color: #ffffff;
    overflow-x: hidden;
}

/* ===================================================== */
/*                         NAVBAR                        */
/* ===================================================== */

/* Barra de navegación fija con efecto de vidrio esmerilado */
.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 nav, centrado y con ancho máximo */
.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tamaño del logotipo en el nav */
.logo img {
    width: 70px;
    cursor: pointer;
}

/* Contenedor de enlaces del menú principal */
.nav-links {
    display: flex;
    gap: 40px;
}

/* Estilo base de los links del menú */
.nav-links a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
}

/* Color al pasar el cursor por los links */
.nav-links a:hover {
    color: #FBA600;
}

/* Estado activo para el link de la página actual */
.nav-links a.active {
    color: #FBA600;
}

/* Contenedor de iconos de redes sociales en el nav */
.nav-social {
    display: flex;
    gap: 14px;
}

/* Tamaño y efecto hover de 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);
}

/* ===================================================== */
/*                     CONTACTO SODI                     */
/* ===================================================== */

/* Contenedor principal de la sección de contacto */
.contact-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 150px;   /* evita que el nav fijo tape el contenido */
    padding-bottom: 80px;
}

/* Capa oscura sobre el fondo animado para mejorar contraste */
.contact-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* Tarjeta principal donde viven el texto y el formulario */
.contact-card {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto 40px auto;
    padding: 50px 55px 70px;
    border-radius: 40px;
    border: 2px solid #FBA600;
    background: rgba(0, 7, 25, 0.88);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
    gap: 60px;
    position: relative;
}

/* Columna izquierda: texto y datos de contacto */
.contact-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Título principal de la tarjeta de contacto */
.contact-title {
    font-size: 32px;
    line-height: 1.4;
    margin: 0 0 24px 0;
}

/* Correo destacado en amarillo y clicable */
.contact-email a {
    font-size: 26px;
    font-weight: 700;
    color: #FBA600;
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

/* Línea divisoria entre correo y sección "encuéntranos" */
.contact-divider {
    margin: 30px 0 28px 0;
    width: 60%;
    max-width: 380px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

/* Subtítulo "O encuéntranos en:" */
.contact-subtitle {
    font-size: 26px;
    color: #FBA600;
    margin-bottom: 14px;
}

/* Textos de teléfono y dirección */
.contact-text {
    font-size: 18px;
    margin: 4px 0;
}

/* Columna derecha: contenedor del formulario */
.contact-right {
    display: flex;
    align-items: center;
}

/* Formulario completo */
.contact-form {
    width: 100%;
}

/* Grid de inputs: 2 columnas en escritorio */
.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

/* Contenedor genérico de cada campo */
.form-group {
    width: 100%;
}

/* Campos que deben ocupar todo el ancho del grid */
.form-group-full {
    grid-column: 1 / -1;
}

/* Inputs y textarea con estilo SODI oscuro y bordes amarillos */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 2px solid #FBA600;
    background: rgba(1, 10, 35, 0.96);
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Ajuste de tamaño mínimo para el área de mensaje */
.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* Color de los placeholders de los campos */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

/* Efecto al enfocar inputs y textarea: borde más claro y brillo */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffd36a;
    box-shadow: 0 0 0 2px rgba(251, 166, 0, 0.35);
    background: rgba(2, 18, 60, 0.98);
}

/* Contenedor del botón de envío, posicionado sobre la orilla de la tarjeta */
.contact-submit-wrap {
    position: absolute;
    right: 70px;
    bottom: -32px;
}

/* Botón "Enviar" redondeado tipo pastilla */
.contact-submit {
    border: none;
    cursor: pointer;
    padding: 16px 56px;
    border-radius: 999px;
    background: #FBA600;
    color: #001f4d;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.65);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

/* Efecto hover del botón de envío */
.contact-submit:hover {
    transform: translateY(-2px) scale(1.02);
    background: #ffc14a;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.75);
}

/* Efecto al hacer clic (active) en el botón */
.contact-submit:active {
    transform: translateY(0);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
}

/* ===================================================== */
/*                      FOOTER SODI                      */
/* ===================================================== */

/* Pie de página con fondo oscuro y línea superior suave */
.footer {
    background: #050505;
    color: #ffffff;
    padding: 45px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 100;
    position: relative;
}

/* Contenedor del footer en columnas */
.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 específica para el logotipo, centrado */
.footer-logo {
    align-items: center;
}

/* Tamaño del logo en el footer */
.footer-logo img {
    width: 260px;
    margin-bottom: 12px;
}

/* Eslogan breve debajo del logo */
.footer-slogan {
    font-size: 0.9rem;
    text-align: center;
    color: #dddddd;
    max-width: 250px;
}

/* Títulos de cada columna del footer */
.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #FBA600;
    letter-spacing: 0.04em;
}

/* Texto del footer (dirección, contacto, etc.) */
.footer-col p {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-bottom: 5px;
}

/* Línea final de derechos de autor */
.footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: 0.8rem;
    color: #bbbbbb;
    opacity: 0.85;
}

/* ===================================================== */
/*            BOTÓN FLOTANTE WHATSAPP (CHATBOT)          */
/* ===================================================== */

/*
   Contenedor del botón flotante de WhatsApp y su globito de texto.
   Se fuerza también Lato como tipografía para el texto del 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 blanco con el 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 escondido del globito (se activa desde JS) */
.whatsapp-tooltip--hide {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

/* Botón circular verde 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 dentro del botón */
.whatsapp-float a img {
    width: 34px;
    height: 34px;
    display: block;
}

/* Efecto hover del botón de WhatsApp */
.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 por el área completa se vuelve a mostrar el globito */
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Ajustes de tamaño del botón flotante en pantallas pequeñas */
@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) – ajustes de nav, tarjeta y botón */
@media (max-width: 992px) {

    .navbar {
        padding: 16px 0;
    }

    .nav-container {
        width: 92%;
    }

    .nav-links {
        gap: 28px;
    }

    .contact-card {
        grid-template-columns: 1fr;
        padding: 40px 40px 70px;
    }

    .contact-submit-wrap {
        right: 50px;
    }
}

/* MÓVIL (≤ 768px) – nav en columna, formulario en una sola columna */
@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;
    }

    .contact-wrapper {
        padding-top: 190px;
    }

    .contact-card {
        padding: 32px 22px 70px;
        gap: 32px;
    }

    .contact-title {
        font-size: 24px;
    }

    .contact-email a {
        font-size: 22px;
    }

    .contact-subtitle {
        font-size: 22px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-submit-wrap {
        position: static;
        margin-top: 24px;
        display: flex;
        justify-content: flex-start;
    }
}

/* MÓVIL PEQUEÑO (≤ 480px) – ajustes finos */
@media (max-width: 480px) {

    .navbar {
        padding: 12px 0;
    }

    .logo img {
        width: 54px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .contact-wrapper {
        padding-top: 210px;
    }

    .contact-title {
        font-size: 21px;
    }

    .contact-email a {
        font-size: 20px;
    }

    .contact-text {
        font-size: 16px;
    }

    .contact-card {
        padding: 26px 18px 70px;
    }

    .contact-submit {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding-inline: 0;
    }
}

/* Footer centrado en dispositivos móviles */
@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 para pantallas muy pequeñas en el footer */
@media (max-width: 600px) {
    .footer {
        padding-top: 40px;
    }

    .footer-col p {
        font-size: 0.85rem;
    }

    .footer-bottom {
        margin-top: 20px;
        font-size: 0.75rem;
    }
}

/* =============================================== */
/*        TIPOGRAFÍAS CORPORATIVAS SODI (LATO)     */
/* =============================================== */

/* Párrafos generales */
p, .contact-text, .footer-col p {
    font-weight: 300; /* Lato Light */
}

/* Subtítulos */
h3, .contact-subtitle {
    font-weight: 600; /* Lato Semibold */
}

/* Títulos principales */
h1, h2, .contact-title {
    font-weight: 700; /* Lato Bold */
}

/* Botones */
button, .contact-submit {
    font-weight: 700; /* Botones más fuertes */
    letter-spacing: 0.5px;
}

/* Títulos ultra destacados (opcional) */
.hero-title, .big-number {
    font-weight: 900; /* Lato Black */
}

/* =============================================== */
/*        FORZAR LATO EN INPUTS Y TEXTAREA         */
/* =============================================== */

input,
textarea,
button {
    font-family: "Lato", Arial, sans-serif !important;
}

/* =============================================== */
/*  AJUSTE FINO: FOOTER UNIFICADO EN TODO EL SITIO */
/* =============================================== */

/* Texto del footer: misma separación y compacidad en todas las páginas */
.footer-slogan,
.footer-col p {
    line-height: 1.3;
    margin-bottom: 3px;
}

/* Títulos del footer: también un poco más compactos */
.footer-col h3 {
    line-height: 1.2;
    margin-bottom: 6px;
}