/* ----------------------------------------- */
/*      ANIMACIÓN EFECTO REBOTE IMPACTO     */
/* ----------------------------------------- */

/* Animación de entrada con rebote suave para textos de impacto */
.impact-bounce {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    animation: impactBounce 1s cubic-bezier(.25,.85,.35,1.5) forwards;
}

/* Retrasos para escalonar la animación de los elementos */
.impact-delay-1 { animation-delay: 0.15s; }
.impact-delay-2 { animation-delay: 0.45s; }

@keyframes impactBounce {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-12px) scale(1.02);
    }
    80% {
        transform: translateY(6px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===================================================== */
/*      FONDO SODI: DEGRADADO + SVG + BURBUJAS OSCURAS   */
/* ===================================================== */

/* Contenedor principal del fondo animado a pantalla completa */
.sodi-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Capa de degradado azul 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 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;
}

/* Contenedor de burbujas flotantes oscuras */
.sodi-bubbles {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

/* Burbujas difuminadas oscuras con mezcla sobre el fondo */
.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 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;
}

/* Trayectorias y escalado de cada burbuja */
@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 movimiento del degradado de fondo */
@keyframes sodiGradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===================================================== */
/*                ESTILOS GENERALES / RESETEO            */
/* ===================================================== */

/* Reset básico y box-sizing consistente */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variable global de color corporativo */
:root {
    --sodi-yellow: #FBA600;
}

/* Configuración base de tipografía y tamaño de documento */
html, body {
    width: 100%;
    height: 100%;
    font-family: "Lato", Arial, sans-serif;
}

/* Estilo global del cuerpo */
body {
    background: #000;
    color: white;
    overflow-x: hidden;
}

/* ===================================================== */
/*                         NAVBAR                        */
/* ===================================================== */

/* Barra de navegación fija con efecto de cristal */
.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 principal en el navbar */
.logo img {
    width: 70px;
    cursor: pointer;
}

/* Contenedor de redes sociales en el navbar */
.nav-social {
    display: flex;
    gap: 14px;
}

/* Contenedor de enlaces principales de navegación */
.nav-links {
    display: flex;
    gap: 40px;
}

/* Estilo base de enlaces del navbar */
.nav-links a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
}

/* Estado hover de enlaces del navbar */
.nav-links a:hover {
    color: #FBA600;
}

/* Enlace activo (página actual) */
.nav-links a.active {
    color: #FBA600;
}

/* Iconos de redes sociales en el navbar */
.nav-social img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Efecto hover sobre iconos de redes */
.nav-social img:hover {
    transform: scale(1.1);
}

/* ===================================================== */
/*                  CONTENIDO PÁGINA SERVICIOS           */
/* ===================================================== */

/* Contenedor principal de la sección de servicios */
.services-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 60px;
}

/* Capa oscura superior para mejorar legibilidad */
.services-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* Bloque de impacto inicial (frase principal) */
.services-impact {
    width: 100%;
    margin: 0 auto 60px auto;
    display: flex;
    justify-content: center;
}

/* Contenedor interior del texto de impacto */
.impact-content {
    max-width: 750px;
    text-align: center;
    padding: 0 16px;
}

/* Párrafo de impacto principal */
.services-impact p {
    font-size: 32px;
    line-height: 1.5;
    font-weight: 500;
    color: #f5f5f5;
}

/* Contenedor opcional para ajustar el ancho del texto */
.impact-text {
    max-width: 520px;
}

/* Línea principal "En SODI" centrada */
.impact-main {
    display: block;
    font-weight: 900;
    margin-bottom: 10px;
    font-size: clamp(2.2rem, 3.3vw, 3rem);
    letter-spacing: 0.1em;
    margin-left: 0;      /* quitamos el corrimiento a la izquierda */
}

/* Subtítulo de impacto */
.impact-sub {
    display: block;
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    line-height: 1.6;
    margin-left: 12px;
    max-width: 40rem;
}

/* Palabras destacadas en el texto de impacto */
.impact-highlight {
    color: #FBA600;
    font-weight: 700;
}

/* Título general de la sección de servicios */
.services-title {
    font-size: 32px;
    color: #FBA600;
    margin-bottom: 8px;
    text-align: center;
}

/* Subtítulo informativo de la sección de servicios */
.services-subtitle {
    text-align: center;
    font-size: 16px;
    color: rgba(245,245,245,0.85);
    margin-bottom: 20px;
}

/* ===================================================== */
/*    SECCIÓN SLIDES HORIZONTALES (CONTROL POR SCROLL)   */
/* ===================================================== */

/* Contenedor de la sección del slider horizontal */
.services-horizontal {
    position: relative;
}

/* Contenedor sticky que mantiene visible la tarjeta */
.services-horizontal__sticky {
    position: sticky;
    top: 110px;
    height: calc(100vh - 150px);
    overflow: hidden;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
    border-radius: 24px;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.7);
}

/* Track que contiene todos los paneles */
.services-horizontal__track {
    display: flex;
    height: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 0.45s ease-out;
}

/* Panel individual de servicio (slide) */
.service-panel {
    flex: 0 0 100%;
    height: 100%;
    padding: 28px 34px 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 34px;
    align-items: center;
    background: #020617;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo suave en esquina del panel */
.service-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top left,
        rgba(242,180,40,0.35),
        transparent 45%
    );
    opacity: 0.8;
    pointer-events: none;
}

/* Columna de contenido textual del panel */
.service-panel__inner {
    position: relative;
    z-index: 1;
    grid-column: 1;
    grid-row: 1 / 3;
}

/* Etiqueta de categoría del servicio */
.service-panel__tag {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 8px;
}

/* Título del servicio dentro del panel */
.service-panel__title {
    font-size: 32px;
    margin-bottom: 8px;
    color: #ffffff;
}

/* Descripción introductoria del servicio */
.service-panel__intro {
    font-size: 15px;
    color: rgba(245,245,245,0.9);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Lista de características del servicio */
.service-panel__list {
    font-size: 15px;
    color: #f5f5f5;
    line-height: 1.7;
}

/* Estilo de lista interna (viñetas) */
.service-panel__list ul {
    list-style: disc;
    padding-left: 18px;
}

/* Espacio entre elementos de la lista */
.service-panel__list li {
    margin-bottom: 4px;
}

/* Contenedor de medios (imágenes / GIFs) */
.service-panel__media {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1 / 3;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Frame de imagen individual dentro del panel */
.service-panel__frame {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 18px;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Frame visible en el carrusel de imágenes */
.service-panel__frame.is-visible {
    opacity: 1;
}

/* Pie del panel con mensaje de ayuda de scroll */
.service-panel__scroll-hint {
    grid-column: 1 / 3;
    grid-row: 3;
    align-self: end;
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.78);
}

/* Color de título por tipo de panel (estandarizado) */
.service-panel--1 .service-panel__title {
    color: #FBA600;
}
.service-panel--2 .service-panel__title {
    color: #FBA600;
}
.service-panel--3 .service-panel__title {
    color: #FBA600;
}

/* ===================================================== */
/*                        FOOTER SODI                    */
/* ===================================================== */

/* Pie de página principal */
.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 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 específica para el logotipo */
.footer-logo {
    align-items: center;
}

/* Imagen de logotipo en el footer */
.footer-logo img {
    width: 260px;
    margin-bottom: 12px;
    text-align: center;
}

/* Slogan bajo el logotipo del footer */
.footer-slogan {
    font-size: 0.9rem;
    text-align: center;
    color: #dddddd;
    max-width: 250px;
}

/* Títulos de columnas en el footer */
.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #FBA600;
    letter-spacing: 0.04em;
}

/* Párrafos de texto en el 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;
}

/* ===================================================== */
/*              BOTÓN FLOTANTE WHATSAPP                  */
/* ===================================================== */

/* Contenedor del botón flotante de WhatsApp y su tooltip */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Lato", Arial, sans-serif;
}

/* Globito de texto del botón de WhatsApp */
.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 */
.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);
}

/* Mostrar tooltip al pasar sobre el contenedor */
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================== */
/*                      RESPONSIVE TABLET                */
/* ===================================================== */

@media (max-width: 992px) {

    /* Ajuste de padding del navbar */
    .navbar {
        padding: 16px 0;
    }

    .nav-container {
        width: 92%;
    }

    .nav-links {
        gap: 28px;
    }

    /* Ajuste del espacio superior del contenido */
    .services-wrapper {
        padding-top: 130px;
    }

    /* Reducción tamaño texto de impacto */
    .services-impact p {
        font-size: 28px;
    }

    .services-title {
        font-size: 30px;
    }

    /* Ajustes contenedor sticky en tablet */
    .services-horizontal__sticky {
        top: 100px;
        height: calc(100vh - 170px);
        width: 94%;
        border-radius: 18px;
    }

    .service-panel {
        padding: 24px 22px 52px;
        column-gap: 22px;
    }

    .service-panel__title {
        font-size: 28px;
    }

    .service-panel__intro,
    .service-panel__list {
        font-size: 14px;
    }

    .service-panel__scroll-hint {
        font-size: 12px;
        bottom: 16px;
    }
}

/* ===================================================== */
/*                      RESPONSIVE MÓVIL                 */
/* ===================================================== */

@media (max-width: 768px) {

    /* Ajuste ancho y posición del texto de impacto */
    .impact-content {
        max-width: 90%;
        transform: translateX(0);
    }

    /* Navbar en columna y centrado */
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        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;
    }

    /* Mayor espacio para compensar navbar en dos filas */
    .services-wrapper {
        padding-top: 170px;
    }

    .services-impact p {
        font-size: 24px;
    }

    .impact-sub {
        font-size: 26px;
        line-height: 1.5;
    }

    /* En móvil el slider deja de ser sticky y pasa a carrusel horizontal */
    .services-horizontal {
        height: auto !important;
    }

    .services-horizontal__sticky {
        position: static;
        width: 100%;
        height: auto;
        margin-top: 24px;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
    }

    /* Track como carrusel horizontal con scroll-snap */
    .services-horizontal__track {
        transform: none !important;
        height: auto;
        display: flex;
        overflow-x: auto;
        padding: 16px 12px 24px;
        gap: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .service-panel {
        flex: 0 0 85%;
        min-height: 260px;
        border-radius: 18px;
        margin: 0;
        padding: 18px 16px 18px;
        display: block;
        scroll-snap-align: center;
        box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    }

    .service-panel__title {
        font-size: 22px;
    }

    .service-panel__intro,
    .service-panel__list {
        font-size: 14px;
    }

    .service-panel__media {
        margin-top: 12px;
        height: 210px;
    }

    .service-panel__frame {
        border-radius: 16px;
    }

    .service-panel__scroll-hint {
        position: static;
        grid-column: auto;
        grid-row: auto;
        margin-top: 14px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
        transform: none;
    }
}

/* ===================================================== */
/*                   RESPONSIVE MÓVIL PEQUEÑO            */
/* ===================================================== */

@media (max-width: 480px) {

    /* Ajuste compacto del navbar */
    .navbar {
        padding: 12px 0;
    }

    .logo img {
        width: 54px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .services-wrapper {
        padding-top: 180px;
    }

    .services-title {
        font-size: 26px;
    }

    .services-impact p {
        font-size: 20px;
    }

    .service-panel {
        flex: 0 0 88%;
        padding: 16px 14px 16px;
    }

    .service-panel__title {
        font-size: 20px;
    }

    .service-panel__intro,
    .service-panel__list {
        font-size: 13.5px;
    }

    .service-panel__media {
        height: 190px;
    }

    .service-panel__scroll-hint {
        font-size: 11px;
        margin-top: 12px;
    }

    /* Ajustes para que el botón de WhatsApp ocupe menos espacio visual */
    .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;
    }
}

/* Texto del pie: versión escritorio / móvil */
.hint-mobile {
    display: none;
}
.hint-desktop {
    display: inline;
}

/* Mensaje de ayuda adaptado según dispositivo */
@media (max-width: 768px) {
    .hint-desktop {
        display: none;
    }
    .hint-mobile {
        display: inline;
    }
}

/* =============================================== */
/*        TIPOGRAFÍAS CORPORATIVAS SODI (LATO)     */
/* =============================================== */

/* Peso de texto base para párrafos y descripciones */
p, .contact-text, .footer-col p {
    font-weight: 300;
}

/* Peso de subtítulos y elementos destacados medianos */
h3, .contact-subtitle {
    font-weight: 600;
}

/* Peso de títulos principales y encabezados */
h1, h2, .contact-title {
    font-weight: 700;
}

/* Peso en botones y llamadas a la acción */
button, .contact-submit {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Peso máximo para elementos muy destacados */
.hero-title, .big-number {
    font-weight: 900;
}

/* ===================================================== */
/*       FOOTER RESPONSIVE (UNIFICADO CON CONTACTO)      */
/* ===================================================== */

@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;
    }
}

@media (max-width: 600px) {
    .footer {
        padding-top: 40px;
    }

    .footer-col p {
        font-size: 0.85rem;
    }

    .footer-bottom {
        margin-top: 20px;
        font-size: 0.75rem;
    }
}

/* =============================================== */
/*  AJUSTE FINO: TEXTO Y ESPACIADO EN EL FOOTER    */
/* =============================================== */

/* Ajuste de densidad de texto en footer */
.footer-slogan,
.footer-col p {
    line-height: 1.3;
    margin-bottom: 3px;
}

/* Ajuste de títulos del footer */
.footer-col h3 {
    line-height: 1.2;
    margin-bottom: 6px;
}
