/* ========================================
   SMILEY TESTIMONIALS DUAL v5.0
   Sistema DUAL: Flip (50%) + Videos (50%)
   "Doblar la apuesta del casino"
   ======================================== */

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

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */

.std-dual-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* ========================================
   TÍTULO DEL HOSTAL
   ======================================== */

.std-hostal-title {
    text-align: center;
    margin-bottom: 35px;
}

.std-hostal-name {
    font-size: 36px;
    font-weight: 900;
    color: var(--smiley-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(135deg, var(--smiley-red) 0%, var(--smiley-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   HEADER CON CONTADOR
   ======================================== */

.std-dual-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 25px 35px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    border: 3px solid var(--smiley-green);
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(51, 204, 51, 0.15);
}

.std-header-icon {
    font-size: 48px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.std-header-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.std-header-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--smiley-dark);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.std-header-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.std-stat-count {
    font-size: 15px;
    font-weight: 700;
    color: var(--smiley-dark);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 2px solid var(--smiley-green);
}

.std-stat-badge {
    font-size: 14px;
    color: var(--smiley-gray);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border: 2px solid #e2e8f0;
}

/* ========================================
   CONTENEDOR DUAL 50/50
   ======================================== */

.std-dual-container {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 40px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.std-flip-section,
.std-video-section {
    display: flex;
    flex-direction: column;
}

.std-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--smiley-dark);
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.std-title-icon {
    font-size: 24px;
}

/* ========================================
   FLIP: DISPLAY PRINCIPAL
   ======================================== */

.std-main-display {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 9 / 16;
    margin: 0 auto 25px;
    perspective: 1500px;
}

.std-display-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.std-main-display:hover .std-display-inner {
    transform: rotateY(180deg);
}

.std-display-front,
.std-display-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
}

.std-main-display:hover .std-display-front,
.std-main-display:hover .std-display-back {
    box-shadow: 0 20px 60px rgba(51, 204, 51, 0.35);
}

/* FRONTAL - Foto */
.std-display-front {
    background: #f3f4f6;
    position: relative;
}

.std-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: opacity 0.4s ease;
}

.std-main-flag {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 10;
    line-height: 1;
}

.std-verified-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--smiley-green);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(51, 204, 51, 0.4);
    z-index: 10;
}

.std-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.std-main-name {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    margin: 0;
}

.std-main-rating {
    font-size: 18px;
    color: var(--smiley-yellow);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 3px;
    line-height: 1;
}

.std-hover-hint {
    position: absolute;
    bottom: 25px;
    right: 16px;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: std-pulse 2.5s infinite;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 5;
}

@keyframes std-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

/* REVERSO - Testimonio */
.std-display-back {
    background: linear-gradient(135deg, var(--smiley-red) 0%, var(--smiley-yellow) 50%, var(--smiley-green) 100%);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
}

.std-back-content {
    color: white;
    text-align: center;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.std-quote-icon {
    font-size: 56px;
    opacity: 0.3;
    line-height: 1;
    font-family: Georgia, serif;
}

.std-testimony-text {
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
    margin: 0;
}

.std-testimony-author {
    font-size: 15px;
    font-weight: 700;
    opacity: 0.95;
    font-style: italic;
    margin-top: 8px;
}

/* ========================================
   FLIP: CARRUSEL MINIATURAS
   ======================================== */

.std-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.std-carousel-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--smiley-red) #f7fafc;
    flex: 1;
}

.std-carousel-track::-webkit-scrollbar {
    height: 6px;
}

.std-carousel-track::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 10px;
}

.std-carousel-track::-webkit-scrollbar-thumb {
    background: var(--smiley-red);
    border-radius: 10px;
}

.std-thumbnail {
    position: relative;
    min-width: 90px;
    width: 90px;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.std-thumbnail:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(51, 204, 51, 0.4);
    border-color: var(--smiley-green);
}

.std-thumbnail.std-active {
    border-color: var(--smiley-red);
    box-shadow: 0 0 0 3px var(--smiley-red), 0 6px 16px rgba(255, 0, 0, 0.5);
    transform: scale(1.08);
}

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

.std-thumb-flag {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    padding: 3px 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    line-height: 1;
}

.std-carousel-btn {
    background: var(--smiley-red);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
    flex-shrink: 0;
    line-height: 1;
    font-weight: 300;
}

.std-carousel-btn:hover {
    background: var(--smiley-green);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(51, 204, 51, 0.5);
}

/* ========================================
   VIDEO: PLAYER PRINCIPAL 9:16
   ======================================== */

.std-video-player-916 {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 9 / 16;
    margin: 0 auto 25px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* YouTube embed - se adapta automáticamente al contenedor 9:16 */
.std-youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mensaje para cuando no hay video */
.std-no-video-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.std-video-verified-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--smiley-red), #cc0000);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    z-index: 10;
}

.std-video-verified-badge svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   VIDEO: PLAYLIST VERTICAL
   ======================================== */

.std-video-playlist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 450px;
    margin: 0 auto 15px;
}

.std-video-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.std-video-thumb:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
    border-color: var(--smiley-red);
}

.std-video-thumb.std-active {
    border-color: var(--smiley-red);
    box-shadow: 0 0 0 3px var(--smiley-red), 0 6px 16px rgba(255, 0, 0, 0.5);
    transform: scale(1.08);
}

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

.std-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.std-video-thumb:hover .std-video-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.std-play-icon {
    font-size: 32px;
    color: white;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.std-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.std-video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 8px;
}

.std-video-name {
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    line-height: 1.3;
    display: block;
}

/* ========================================
   HELPER TEXT
   ======================================== */

.std-helper-text {
    text-align: center;
    color: var(--smiley-gray);
    font-size: 13px;
    font-style: italic;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    border: 2px dashed #e2e8f0;
    margin: 0;
}

.std-no-content {
    text-align: center;
    padding: 40px 20px;
    color: var(--smiley-gray);
    font-size: 16px;
}

/* ========================================
   CTA FINAL
   ======================================== */

.std-dual-cta {
    text-align: center;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 40px 30px;
    border-radius: 16px;
    border: 3px solid var(--smiley-yellow);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.25);
}

.std-dual-cta h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--smiley-dark);
    margin: 0 0 15px 0;
}

.std-dual-cta p {
    font-size: 16px;
    color: var(--smiley-gray);
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.std-cta-button {
    display: inline-block;
    background: var(--smiley-red);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35);
}

.std-cta-button:hover {
    background: var(--smiley-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(51, 204, 51, 0.5);
    color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .std-dual-container {
        gap: 30px;
    }
    
    .std-section-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .std-dual-wrapper {
        padding: 40px 25px;
    }
    
    .std-dual-header {
        padding: 20px;
    }
    
    .std-header-title {
        font-size: 20px;
    }
    
    .std-header-stats {
        gap: 10px;
    }
    
    .std-dual-container {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0;
    }
    
    .std-main-display,
    .std-video-player-916 {
        max-width: 400px;
    }
    
    .std-hover-hint {
        display: none;
    }
    
    .std-main-display:active .std-display-inner {
        transform: rotateY(180deg);
    }
    
    .std-dual-cta h3 {
        font-size: 22px;
    }
    
    .std-dual-cta p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .std-dual-wrapper {
        padding: 30px 20px;
    }
    
    .std-hostal-name {
        font-size: 24px;
    }
    
    .std-header-title {
        font-size: 18px;
    }
    
    .std-section-title {
        font-size: 18px;
    }
    
    .std-thumbnail {
        min-width: 80px;
        width: 80px;
    }
    
    .std-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}