/* WELLNESS ACTIVITIES COMPONENT - Ubuntu Seguros (LAYOUT RESPONSIVO + CARRUSEL)
   ======================================== */

.wellness-activities {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 20%, #2a2d5f 40%, #3a4d7a 60%, #2a2d5f 80%, #1a1f3a 100%);
    position: relative;
}

.wellness-activities .section-header h2 {
    color: var(--text-white)
}

.wellness-activities .section-header p {
    color: var(--text-white);
}

.activities-container {
    position: relative;
}

/* Desktop Collage Layout */
.activities-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 1rem;
    margin-bottom: 0;
}

.activity-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--background-light);
}

/* Grid positioning for collage effect */
.activity-item.large:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    background-image: url('../../images/wellness-activities/charla.jpeg');
    background-size: cover;
    background-position: center;
}

.activity-item.medium:nth-child(2) {
    grid-column: span 1;
    grid-row: span 2;
    background-image: url('../../images/wellness-activities/futbolito.jpeg');
    background-size: cover;
    background-position: center;
}

.activity-item.small:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
    background-image: url('../../images/wellness-activities/extintores.jpeg');
    background-size: cover;
    background-position: center;
}

.activity-item.small:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
    background-image: url('../../images/wellness-activities/silla.jpeg');
    background-size: cover;
    background-position: center;
}

.activity-item.medium:nth-child(5) {
    grid-column: span 2;
    grid-row: span 1;
    background-image: url('../../images/wellness-activities/WhatsApp\ Image\ 2025-08-06\ at\ 8.26.24\ PM.jpeg');
    background-size: cover;
    background-position: center;
}

.activity-item.small:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
    background-image: url('../../images/wellness-activities/arco.jpeg');
    background-size: cover;
    background-position: center;
}

.activity-item.large:nth-child(7) {
    grid-column: span 1;
    grid-row: span 1;
    background-image: url('../../images/wellness-activities/yoga.jpeg');
    background-size: cover;
    background-position: center;
}

.activity-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.activity-overlay h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    color: white;
}

.activity-overlay p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    color: white;
    margin: 0;
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   MOBILE CAROUSEL STYLES - NUEVO
   ======================================== */

/* Contenedor principal del carrusel - solo visible en mobile */
.mobile-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none; /* Oculto por defecto */
}

/* Wrapper del carrusel */
.carousel-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Slides individuales */
.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    height: 400px;
    display: flex;
    align-items: end;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Fondo de cada slide con gradientes únicos por actividad + imágenes reales */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
}

/* Gradientes específicos por actividad usando tus imágenes */
.carousel-slide[data-activity="yoga"] .slide-background {
    background-image: 
        /* linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.8) 100%), */
        url('../../images/wellness-activities/yoga.jpeg');
}

.carousel-slide[data-activity="fitness"] .slide-background {
    background-image: 
        /* linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.8) 100%), */
        url('../../images/wellness-activities/futbolito.jpeg');
}

.carousel-slide[data-activity="nutrition"] .slide-background {
    background-image: 
        /* linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.8) 100%), */
        url('../../images/wellness-activities/extintores.jpeg');
}

.carousel-slide[data-activity="silla"] .slide-background {
    background-image: 
        /* linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.8) 100%), */
        url('../../images/wellness-activities/silla.jpeg');
}

.carousel-slide[data-activity="mental-health"] .slide-background {
    background-image: 
        /* linear-gradient(135deg, rgba(108, 117, 125, 0.6) 0%, rgba(52, 58, 64, 0.8) 100%), */
        url('../../images/wellness-activities/WhatsApp\ Image\ 2025-08-06\ at\ 8.26.24\ PM.jpeg');
}

.carousel-slide[data-activity="ergonomics"] .slide-background {
    background-image: 
        /* linear-gradient(135deg, rgba(108, 117, 125, 0.6) 0%, rgba(52, 58, 64, 0.8) 100%), */
        url('../../images/wellness-activities/arco.jpeg');
}

.carousel-slide[data-activity="team-building"] .slide-background {
    background-image: 
        /* linear-gradient(135deg, rgba(111, 66, 193, 0.6) 0%, rgba(102, 126, 234, 0.8) 100%), */
        url('../../images/wellness-activities/charla.jpeg');
}

/* Contenido del slide */
.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 40px 30px;
    width: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%
    );
}

.slide-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.slide-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 500px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

/* Botones de navegación */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

/* Control de autoplay */
.autoplay-control {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
}

.autoplay-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ========================================
   TABLET GRID LAYOUT (EXISTENTE)
   ======================================== */

/* GRID RESPONSIVO - REEMPLAZA EL SCROLL HORIZONTAL */
.activities-grid {
    display: none; /* Oculto por defecto en desktop */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.activity-card {
    height: 250px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f0f0f0;
}

/* Imágenes de fondo específicas por actividad */
.activity-card[data-activity="yoga"] {
    background-image: url('../../images/wellness-activities/WhatsApp\ Image\ 2025-08-04\ at\ 7.58.19\ PM.jpeg');
    background-size: cover;
    background-position: center;
}

.activity-card[data-activity="fitness"] {
    background-image: url('../../images/wellness-activities/WhatsApp\ Image\ 2025-08-04\ at\ 7.58.18\ PM.jpeg');
    background-size: cover;
    background-position: center;
}

.activity-card[data-activity="nutrition"] {
    background-image: url('../../images/wellness-activities/WhatsApp\ Image\ 2025-08-04\ at\ 7.58.19\ PM\ \(1\).jpeg');
    background-size: cover;
    background-position: center;
}

.activity-card[data-activity="mental-health"] {
    background-image: url('../../images/wellness-activities/WhatsApp\ Image\ 2025-08-04\ at\ 7.58.11\ PM.jpeg');
    background-size: cover;
    background-position: center;
}

.activity-card[data-activity="ergonomics"] {
    background-image: url('../../images/wellness-activities/WhatsApp\ Image\ 2025-08-04\ at\ 7.58.13\ PM.jpeg');
    background-size: cover;
    background-position: center;
}

.activity-card[data-activity="team-building"] {
    background-image: url('../../images/wellness-activities/WhatsApp\ Image\ 2025-08-04\ at\ 7.58.15\ PM.jpeg');
    background-size: cover;
    background-position: center;
}

.activity-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.activity-card:hover .activity-card-overlay {
    transform: translateY(-10px);
}

.activity-card-overlay h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    color: white;
}

.activity-card-overlay p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    color: white;
    margin: 0;
    line-height: 1.4;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Ocultar scroll horizontal en todos los tamaños */
.activities-scroll {
    display: none !important;
}

.activities-track {
    display: none !important;
}

/* ========================================
   RESPONSIVE BEHAVIOR - ACTUALIZADO
   ======================================== */

/* Desktop (mayor a 810px): Solo mostrar collage */
@media (min-width: 811px) {
    .activities-collage {
        display: grid !important;
    }
    
    .mobile-carousel-container {
        display: none !important;
    }
    
    .activities-grid {
        display: none !important;
    }
}

/* Mobile (menor o igual a 810px): Solo mostrar carrusel */
@media (max-width: 810px) {
    .activities-collage {
        display: none !important;
    }
    
    .mobile-carousel-container {
        display: block !important;
    }
    
    .activities-grid {
        display: none !important;
    }
    
    .wellness-activities {
        padding: 4rem 0;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .carousel-slide {
        height: 350px;
    }
    
    .slide-content {
        padding: 25px 20px;
    }
    
    .slide-content h3 {
        font-size: 1.7rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    .autoplay-control {
        top: 15px;
        right: 15px;
        padding: 8px;
        font-size: 14px;
    }
    
    .carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* ========================================
   ANIMACIONES EXISTENTES
   ======================================== */

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-item,
.activity-card {
    animation: fadeInUp 0.6s ease forwards;
}

.activity-item:nth-child(1), .activity-card:nth-child(1) { animation-delay: 0.1s; }
.activity-item:nth-child(2), .activity-card:nth-child(2) { animation-delay: 0.2s; }
.activity-item:nth-child(3), .activity-card:nth-child(3) { animation-delay: 0.3s; }
.activity-item:nth-child(4), .activity-card:nth-child(4) { animation-delay: 0.4s; }
.activity-item:nth-child(5), .activity-card:nth-child(5) { animation-delay: 0.5s; }
.activity-item:nth-child(6), .activity-card:nth-child(6) { animation-delay: 0.6s; }
.activity-item:nth-child(7), .activity-card:nth-child(7) { animation-delay: 0.7s; }