/* Estilos para página de Visítanos */

.visitanos-container {
    width: 100%;
}

.visitanos-hero-section {
    position: relative;
}

.visitanos-local-section {
    background: white;
}

.visitanos-beneficios-section {
    background: #f9fafb;
}

.visitanos-horarios-section {
    background: white;
}

.visitanos-ubicacion-section {
    background: #f9fafb;
}

/* ============================================
   ANIMACIONES ELEGANTES
   ============================================ */

/* Animación de entrada suave para secciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación para imágenes del local */
.visitanos-local-section .grid > div {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.visitanos-local-section .grid > div:nth-child(1) { animation-delay: 0.1s; }
.visitanos-local-section .grid > div:nth-child(2) { animation-delay: 0.2s; }
.visitanos-local-section .grid > div:nth-child(3) { animation-delay: 0.3s; }
.visitanos-local-section .grid > div:nth-child(4) { animation-delay: 0.4s; }
.visitanos-local-section .grid > div:nth-child(5) { animation-delay: 0.5s; }
.visitanos-local-section .grid > div:nth-child(6) { animation-delay: 0.6s; }

/* Hover suave para imágenes */
.visitanos-local-section img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.visitanos-local-section .group:hover img {
    transform: scale(1.05);
}

/* Animación para tarjetas de beneficios */
.visitanos-beneficios-section .grid > div {
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visitanos-beneficios-section .grid > div:nth-child(1) { animation-delay: 0.1s; }
.visitanos-beneficios-section .grid > div:nth-child(2) { animation-delay: 0.2s; }
.visitanos-beneficios-section .grid > div:nth-child(3) { animation-delay: 0.3s; }
.visitanos-beneficios-section .grid > div:nth-child(4) { animation-delay: 0.4s; }

.visitanos-beneficios-section .grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animación para horarios */
.visitanos-horarios-section .space-y-2 > div {
    animation: slideInLeft 0.4s ease-out forwards;
    opacity: 0;
}

.visitanos-horarios-section .space-y-2 > div:nth-child(1) { animation-delay: 0.05s; }
.visitanos-horarios-section .space-y-2 > div:nth-child(2) { animation-delay: 0.1s; }
.visitanos-horarios-section .space-y-2 > div:nth-child(3) { animation-delay: 0.15s; }
.visitanos-horarios-section .space-y-2 > div:nth-child(4) { animation-delay: 0.2s; }
.visitanos-horarios-section .space-y-2 > div:nth-child(5) { animation-delay: 0.25s; }
.visitanos-horarios-section .space-y-2 > div:nth-child(6) { animation-delay: 0.3s; }

/* Animación para estadísticas */
.visitanos-local-section .grid.md\:grid-cols-3 > div {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.visitanos-local-section .grid.md\:grid-cols-3 > div:nth-child(1) { animation-delay: 0.7s; }
.visitanos-local-section .grid.md\:grid-cols-3 > div:nth-child(2) { animation-delay: 0.8s; }
.visitanos-local-section .grid.md\:grid-cols-3 > div:nth-child(3) { animation-delay: 0.9s; }

/* Animación para título y subtítulo */
.visitanos-local-section h2 {
    animation: fadeInUp 0.6s ease-out;
}

.visitanos-local-section p {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Animación para botones */
.visitanos-horarios-section a,
.visitanos-ubicacion-section a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.visitanos-horarios-section a::before,
.visitanos-ubicacion-section a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.visitanos-horarios-section a:hover::before,
.visitanos-ubicacion-section a:hover::before {
    left: 100%;
}

.visitanos-horarios-section a:hover,
.visitanos-ubicacion-section a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

/* Animación para el mapa */
.visitanos-ubicacion-section iframe {
    animation: fadeIn 0.8s ease-out 0.3s both;
    opacity: 0;
}

/* ============================================
   OPTIMIZACIONES PARA MÓVILES
   ============================================ */

@media (max-width: 768px) {
    .visitanos-hero-section {
        min-height: 70vh;
    }
    
    /* Reducir tiempos de animación en móvil para mejor rendimiento */
    .visitanos-local-section .grid > div,
    .visitanos-beneficios-section .grid > div,
    .visitanos-horarios-section .space-y-2 > div {
        animation-duration: 0.4s;
    }
    
    /* Animaciones más sutiles en móvil */
    .visitanos-beneficios-section .grid > div:hover {
        transform: translateY(-2px);
    }
    
    /* Mejorar el rendimiento con will-change */
    .visitanos-local-section img,
    .visitanos-beneficios-section .grid > div {
        will-change: transform;
    }
    
    /* Reducir delays en móvil */
    .visitanos-local-section .grid > div:nth-child(1) { animation-delay: 0.05s; }
    .visitanos-local-section .grid > div:nth-child(2) { animation-delay: 0.1s; }
    .visitanos-local-section .grid > div:nth-child(3) { animation-delay: 0.15s; }
    .visitanos-local-section .grid > div:nth-child(4) { animation-delay: 0.2s; }
    .visitanos-local-section .grid > div:nth-child(5) { animation-delay: 0.25s; }
    .visitanos-local-section .grid > div:nth-child(6) { animation-delay: 0.3s; }
    
    .visitanos-beneficios-section .grid > div:nth-child(1) { animation-delay: 0.05s; }
    .visitanos-beneficios-section .grid > div:nth-child(2) { animation-delay: 0.1s; }
    .visitanos-beneficios-section .grid > div:nth-child(3) { animation-delay: 0.15s; }
    .visitanos-beneficios-section .grid > div:nth-child(4) { animation-delay: 0.2s; }
}

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .visitanos-local-section .grid > div,
    .visitanos-beneficios-section .grid > div,
    .visitanos-horarios-section .space-y-2 > div,
    .visitanos-local-section .grid.md\:grid-cols-3 > div,
    .visitanos-ubicacion-section iframe {
        animation: none;
        opacity: 1;
    }
    
    .visitanos-local-section img,
    .visitanos-beneficios-section .grid > div {
        transition: none;
    }
}

