/* Reset básico y box-sizing consistente */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuración base de documento */
html, body {
    width: 100%;
    height: 100%;
    font-family: "Lato", Arial, sans-serif;
}

/* Estilo base del body */
body {
    color: #ffffff;
    overflow-x: hidden;
}

/* ===================================================== */
/*                 FONDO GLOBAL SODI                     */
/* ===================================================== */

/* Contenedor de fondo (degradado + SVG + burbujas) */
.sodi-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Degradado azul animado de fondo */
.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 corporativa sobre el 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 oscuras animadas */
.sodi-bubbles {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

/* Burbuja base 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 de burbujas */
.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 flotado de 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%; }
}

/* Wrapper de contenido principal sobre el fondo */
main {
    position: relative;
    z-index: 10;
    padding-top: 150px;
    padding-bottom: 60px;
}

/* ===================================================== */
/*                     NAVBAR GLOBAL                     */
/* ===================================================== */

/* Overlay oscuro sobre el fondo */
.about-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* Barra superior fija */
.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 de la navbar */
.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo del nav */
.logo img {
    width: 70px;
    cursor: pointer;
}

/* Enlaces del nav */
.nav-links {
    display: flex;
    gap: 40px;
}

/* Estilo de enlaces */
.nav-links a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
}

/* Hover de enlaces */
.nav-links a:hover {
    color: #FBA600;
}

/* Enlace activo */
.nav-links a.active {
    color: #FBA600;
}

/* Redes sociales en el nav */
.nav-social {
    display: flex;
    gap: 14px;
}

/* Iconos de redes sociales */
.nav-social img {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Hover iconos sociales */
.nav-social img:hover {
    transform: scale(1.1);
}

/* ===================================================== */
/*                    HERO PORTAFOLIO                    */
/* ===================================================== */

/* Sección hero del portafolio */
.hero-portafolio {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: px 20px 20px 20px;
}

/* Contenedor del contenido del hero */
.hero-content {
    max-width: 900px;
}

/* Título principal del hero */
.hero-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.5;
    font-weight: 700;
}

/* Texto resaltado dentro del hero */
.resaltado {
    color: #FBA600;
}

/* ===================================================== */
/*                       VIDEO AREA                      */
/* ===================================================== */

/* Sección de video */
.video-section {
    display: flex;
    justify-content: center;
    padding: 20px 20px 30px;
}

/* Wrapper del video con estilo de tarjeta */
.video-wrapper {
    width: 100%;
    max-width: 700px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.16);
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at top left, #222 0, #000 55%);
    position: relative;
}

/* Ajuste del elemento <video> */
.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background-color: #000;
}

/* Aviso flotante para activar audio */
.audio-hint {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 5;
}

/* Botón de activar audio */
.audio-hint-btn {
    border: none;
    background: #FBA600;
    color: #001f4d;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-family: "Lato", Arial, sans-serif;
}

/* Texto auxiliar del aviso de audio */
.audio-hint-text {
    font-size: 12px;
    color: #ffffff;
    font-weight: 400;
}

/* Estado oculto del aviso (controlado por JS) */
.audio-hint--hide {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

/* Versión compacta del aviso en móvil pequeño */
@media (max-width: 480px) {
    .audio-hint {
        top: 10px;
        left: 10px;
        right: auto;
        justify-content: center;
        padding: 6px 10px;
    }

    .audio-hint-text {
        display: none;
    }
}

/* ===================================================== */
/*                  BARRA DE LOGOS (BRANDS)              */
/* ===================================================== */

/* Sección de logos de marcas */
.brands-section {
    padding: 10px 0 70px;
}

/* Cinta blanca donde se desplazan los logos */
.brands-strip {
    width: 100%;
    background: white;
    padding: 10px 0;
    overflow: hidden;
}

/* Track animado de logos en movimiento continuo */
.brands-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 90px;
    animation: scroll-logos 120s linear infinite;
    will-change: transform;
}

/* Item contenedor de cada logo */
.brand-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
}

/* Imagen de cada logo */
.brand-item img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.2);
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

/* Hover sobre logos */
.brand-item img:hover {
    transform: scale(1.1);
    opacity: 1;
    filter: grayscale(0);
}

/* Badge final "Y muchos más!" */
.more-badge {
    background: linear-gradient(135deg, #005579, #0080b3);
    color: white;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.more-badge {
    animation: fadePulse 3s ease-in-out infinite alternate;
}

/* Animación de desplazamiento de la barra de logos */
@keyframes scroll-logos {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===================================================== */
/*                      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 */
.footer-logo {
    align-items: center;
}

/* Logo 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 cada bloque del footer */
.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #FBA600;
    letter-spacing: 0.04em;
}

/* Texto del footer */
.footer-col p {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-bottom: 5px;
}

/* Línea inferior de derechos de autor */
.footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: 0.8rem;
    color: #bbbbbb;
    opacity: 0.85;
}

/* ===================================================== */
/*                        RESPONSIVE                     */
/* ===================================================== */

/* Tablet */
@media (max-width: 992px) {
    .navbar {
        padding: 16px 0;
    }

    .nav-container {
        width: 92%;
    }

    .nav-links {
        gap: 28px;
    }

    .brands-track {
        gap: 20px;
    }

    .brand-item img {
        max-height: 40px;
    }
}

/* Móvil medio */
@media (max-width: 768px) {

    .navbar {
        padding: 14px 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        text-align: center;
    }

    .logo img {
        width: 50px;
    }

    .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;
    }

    main {
        padding-top: 190px;
    }

    .hero-portafolio {
        padding-top: 20px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .brands-track {
        gap: 20px;
        animation-duration: 50s;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {

    .navbar {
        padding: 12px 0;
    }

    .logo img {
        width: 54px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 13px;
    }

    main {
        padding-top: 210px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .brands-strip {
        padding: 10px 0;
    }

    .brand-item img {
        max-height: 110px;
    }
}

/* Footer responsive: columnas apiladas */
@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;
    }
}

/* Footer en móvil muy pequeño */
@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 de WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Lato", "Montserrat", Arial, sans-serif;
}

/* Globito de texto del botón */
.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 (controlado por JS) */
.whatsapp-tooltip--hide {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

/* Botón redondo 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 globito */
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Ajustes del botón flotante en móvil pequeño */
@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;
    }
}

/* =============================================== */
/*        TIPOGRAFÍAS CORPORATIVAS SODI (LATO)     */
/* =============================================== */

/* Peso de párrafos generales */
p, .contact-text, .footer-col p {
    font-weight: 300;
}

/* Subtítulos */
h3, .contact-subtitle {
    font-weight: 600;
}

/* Títulos principales */
h1, h2, .contact-title {
    font-weight: 700;
}

/* Botones y CTA */
button, .contact-submit {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Títulos destacados */
.hero-title, .big-number {
    font-weight: 900;
}

/* =============================================== */
/*  AJUSTE FINO: FOOTER UNIFICADO EN TODO EL SITIO */
/* =============================================== */

/* Compacidad del texto en el footer */
.footer-slogan,
.footer-col p {
    line-height: 1.3;
    margin-bottom: 3px;
}

/* Títulos del footer más compactos */
.footer-col h3 {
    line-height: 1.2;
    margin-bottom: 6px;
}
