.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* El hero ocupará toda la altura visible */
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        height: auto;
    }
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .hero-video iframe {
        width: 150%;
        height: 100%;
        top: 0;
        left: -25%;
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-video iframe {
        width: 300%;
        height: 100%;
        top: 0;
        left: -100%;
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-video iframe {
        width: 400%;
        height: 100%;
        top: 0;
        left: -150%;
        transform: none;
    }
}

.service-card {
    background-color: #1E1E1E;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Image gallery */
.image-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    /* Eliminar bordes redondeados en PC */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .image-gallery {
        border-radius: 8px;
        /* Mantener bordes redondeados en móvil */
    }
}

.image-gallery img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-gallery:hover img {
    transform: scale(1.1);
}

.image-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10;
}

.image-gallery:hover .image-gallery-overlay {
    transform: translateY(0);
}

/* Dark theme adjustments */
.bg-white {
    background-color: #1E1E1E;
}

.bg-gray-100 {
    background-color: #121212;
}

.text-gray-600 {
    color: #9CA3AF;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

/* Parallax effect */
.parallax-bg {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

/* User sections */
/* Contenedor principal del scroll */
.clients-scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

/* Track del scroll horizontal */
.clients-scroll-track {
    display: flex;
    gap: 30px;
    width: max-content;
    transition: transform 0.3s ease;
}

/* Clase para activar scroll automático */
.clients-scroll-track.auto-scroll {
    animation: scrollHorizontal 40s linear infinite;
}

/* Clase para scroll estático (pocos elementos) */
.clients-scroll-track.static-scroll {
    justify-content: center;
    width: 100%;
}

/* Animación de scroll infinito */
@keyframes scrollHorizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pausar animación al hover en cualquier cliente */
.clients-scroll-container:hover .clients-scroll-track.auto-scroll {
    animation-play-state: paused;
}

/* Estilos de cada cliente */
.client-item {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3);
}

.client-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Overlay de información */
.client-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(6, 182, 212, 0.8) 100%);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(10px);
}

.client-gallery:hover .client-gallery-overlay {
    opacity: 1;
}

.client-gallery:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.client-gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
    font-weight: bold;
}

.client-gallery-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Enlaces sociales */
.social-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(6, 182, 212, 0.5);
    border-radius: 30px;
    text-decoration: none;
    color: #06b6d4;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
    color: white;
}

/* Indicador de scroll */
.scroll-indicator {
    text-align: center;
    margin-top: 30px;
}

.scroll-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.dot.active {
    background: #06b6d4;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .client-item {
        width: 250px;
        height: 250px;
    }

    .clients-scroll-track {
        gap: 20px;
    }

    .client-gallery-overlay {
        padding: 20px;
    }

    .client-gallery-overlay h3 {
        font-size: 1.2rem;
    }

    .client-gallery-overlay p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .client-item {
        width: 200px;
        height: 200px;
    }

    .clients-scroll-track {
        gap: 15px;
    }
}

/* Animaciones de entrada */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

/* Image grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px;
    gap: 0;
    /* Eliminar gap en versión PC */
}

.image-grid-item {
    overflow: hidden;
    border-radius: 0;
    /* Eliminar bordes redondeados en PC */
    position: relative;
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-grid-item:hover img {
    transform: scale(1.1);
}

.image-grid-item-1 {
    grid-column: span 8;
    grid-row: span 2;
}

.image-grid-item-2 {
    grid-column: span 4;
    grid-row: span 1;
}

.image-grid-item-3 {
    grid-column: span 4;
    grid-row: span 1;
}

.image-grid-item-4 {
    grid-column: span 6;
    grid-row: span 1;
}

.image-grid-item-5 {
    grid-column: span 6;
    grid-row: span 1;
}

.image-grid-item-6 {
    grid-column: span 6;
    grid-row: span 1;
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
        /* Pequeño margen en versión móvil */
    }

    .image-grid-item {
        border-radius: 8px;
        /* Mantener bordes redondeados en móvil */
    }

    .image-grid-item-1 {
        grid-column: span 6;
        grid-row: span 1;
    }

    .image-grid-item-2,
    .image-grid-item-3,
    .image-grid-item-4,
    .image-grid-item-5,
    .image-grid-item-6 {
        grid-column: span 3;
    }
}