/* ========================================
   SMILEY GALERÍA INTERACTIVA PRO v6.0
   Layout 65/35 con Amenidades
   ======================================== */

:root {
    --smiley-red: #ff0000;
    --smiley-green: #33cc33;
    --smiley-yellow: #fbbf24;
    --smiley-dark: #1a202c;
    --smiley-gray: #4a5568;
}

/* CONTENEDOR PRINCIPAL 70/30 CON CÁPSULA */
.smiley-gallery-wrapper-6535 {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* 65% IZQUIERDA - GALERÍA */
.smiley-gallery-left {
    min-width: 0;
}

.gallery-container {
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    /* max-width removido para respetar 65% del grid */
}

.main-display-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.main-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.3));
    pointer-events: none;
}

.main-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Thumbnails */
.thumbnails-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--smiley-red) #f8f8f8;
}

.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #f8f8f8;
    border-radius: 10px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--smiley-red);
    border-radius: 10px;
}

.thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: var(--smiley-green);
}

.thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.thumbnail:hover {
    transform: translateY(-4px);
    border-color: var(--smiley-green);
    box-shadow: 0 6px 16px rgba(51, 204, 51, 0.4);
}

.thumbnail:hover::before {
    background: rgba(51, 204, 51, 0.1);
}

.thumbnail.active {
    border-color: var(--smiley-red);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumb {
    position: relative;
    background: #000;
}

.video-thumb img {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.video-thumb:hover img {
    opacity: 1;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
    transition: transform 0.3s ease;
}

.play-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.video-thumb:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.15);
}

.gallery-hint {
    text-align: center;
    color: var(--smiley-gray);
    font-size: 14px;
    margin-top: 16px;
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 35% DERECHA - AMENIDADES */
.smiley-amenidades-right {
    min-width: 0;
}

.amenidades-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: none;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.amenidades-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--smiley-dark);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--smiley-green);
}

.amenidades-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.amenidad-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 10px;
    border-left: 4px solid var(--smiley-green);
    transition: all 0.3s ease;
}

.amenidad-item:hover {
    transform: translateX(4px);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    box-shadow: 0 4px 12px rgba(51, 204, 51, 0.15);
}

.amenidad-emoji {
    font-size: 28px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.amenidad-texto {
    font-size: 15px;
    font-weight: 500;
    color: var(--smiley-dark);
    line-height: 1.4;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .smiley-gallery-wrapper-6535 {
        grid-template-columns: 65% 35%;
        gap: 20px;
        padding: 24px;
    }
    
    .main-display-wrapper {
        height: 500px;
    }
    
    .amenidad-emoji {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }
    
    .amenidad-texto {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .smiley-gallery-wrapper-6535 {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }
    
    .gallery-container {
        padding: 0;
    }
    
    .main-display-wrapper {
        height: 450px;
    }
    
    .amenidades-container {
        position: static;
    }
    
    .thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .play-icon {
        width: 35px;
        height: 35px;
    }
    
    .amenidad-item {
        padding: 10px;
    }
    
    .amenidad-emoji {
        font-size: 22px;
        width: 34px;
        height: 34px;
    }
    
    .amenidad-texto {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .smiley-gallery-wrapper-6535 {
        padding: 16px;
    }
    
    .gallery-container {
        padding: 0;
        border-radius: 12px;
    }
    
    .main-display-wrapper {
        height: 400px;
    }
    
    .amenidades-container {
        padding: 16px;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .thumbnails-container {
        gap: 8px;
    }
    
    .play-icon {
        width: 30px;
        height: 30px;
    }
    
    .amenidades-title {
        font-size: 18px;
    }
    
    .amenidad-item {
        padding: 8px;
        gap: 10px;
    }
    
    .amenidad-emoji {
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
    
    .amenidad-texto {
        font-size: 13px;
    }
}

/* Loading state */
.main-video-container.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.main-video-container.loading::after {
    content: 'Cargando video...';
    color: #fff;
    font-size: 16px;
}