@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Prevenir desbordamiento horizontal en móviles */
@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        position: relative;
    }

    * {
        box-sizing: border-box;
    }

    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    /* Asegurar que las secciones no se desborden */
    section {
        overflow-x: hidden;
        width: 100%;
    }

    /* Contenedores principales */
    [class*="max-w"] {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Carrusel de logos */
    #client-logos-marquee {
        overflow-x: hidden;
        width: 100%;
    }

    #client-logos-track {
        min-width: auto;
    }

    /* Grid de servicios en hero */
    #hero-services {
        gap: 0.25rem;
    }

    /* Elementos con posición absoluta */
    [class*="absolute"] {
        max-width: 100vw;
    }

    /* Iframes */
    iframe {
        max-width: 100%;
        width: 100% !important;
    }

    /* Contenedor del mapa */
    .rounded-xl iframe {
        max-width: 100%;
    }
}

/* Video background hero */
.hero-bg {
    background: linear-gradient(135deg, #08415C 0%, #021F33 100%);
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Animaciones de entrada */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variaciones de animación */
.animate-on-scroll.fade-left {
    transform: translateX(-30px);
}

.animate-on-scroll.fade-left.visible {
    transform: translateX(0);
}

.animate-on-scroll.fade-right {
    transform: translateX(30px);
}

.animate-on-scroll.fade-right.visible {
    transform: translateX(0);
}

.animate-on-scroll.fade-up {
    transform: translateY(30px);
}

.animate-on-scroll.fade-up.visible {
    transform: translateY(0);
}

.animate-on-scroll.scale {
    transform: scale(0.9);
}

.animate-on-scroll.scale.visible {
    transform: scale(1);
}

/* Counter animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Service section alternating layout */
.service-section:nth-child(odd) .service-content {
    order: 1;
}

.service-section:nth-child(odd) .service-image {
    order: 2;
}

.service-section:nth-child(even) .service-content {
    order: 2;
}

.service-section:nth-child(even) .service-image {
    order: 1;
}

/* Logo carousel */
.logo-carousel {
    overflow: hidden;
    white-space: nowrap;
}

.logo-track {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}



/* Hero service cards hover effect */
.hero-service-card {
    transform: scale(1);
}

.hero-service-card.hover-active {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(119, 192, 67, 0.5);
}

.hero-service-card.hover-blur {
    opacity: 0.5;
    filter: blur(2px);
}

/* Textura de puntos finos y semi-transparentes */
.dots-texture {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 12px 12px;
    background-position: 0 0;
}

/* Degradado superior en sección servicios */
#servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

#servicios>video {
    z-index: 0 !important;
    position: absolute !important;
}

#servicios>div[class*="absolute"][class*="bg-epsilon-dark"] {
    z-index: 10 !important;
    position: absolute !important;
}

#servicios>div.relative {
    position: relative;
    z-index: 20 !important;
}