/* ============= PRODUCT VIDEO FULLSCREEN (RESPONSIVE HEIGHT) ============= */
.product-video-fullscreen {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background: var(--viajante-dark);
    color: var(--viajante-white);
    overflow: hidden;
}

/* Capa de video */
.pv-video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.pv-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Degradado y overlays */
.pv-gradient-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.2) 100%),
        radial-gradient(circle at 80% 10%, rgba(23,181,181,0.35) 0%, transparent 55%);
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 1;
}

.pv-placeholder {
    position: absolute;
    inset: 0;
    background: rgba(5,5,5,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--viajante-cyan);
    font-size: 14px;
    z-index: 2;
    transition: opacity 0.45s ease;
}
.pv-placeholder.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.pv-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(23,181,181,0.3);
    border-top-color: var(--viajante-cyan);
    animation: pv-spin 1s linear infinite;
}
@keyframes pv-spin {
    to { transform: rotate(360deg); }
}

/* Contenido */
.pv-overlay {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    height: 100%;
}
.section-eyebrow {
    color: var(--viajante-cyan);
    margin-bottom: 16px;
}
.pv-title-on-dark {
    color: #fff;
    font-size: clamp(28px, 6vw, 56px);
    line-height: 1.1;
    margin-bottom: 12px;
}
.pv-subtitle-on-dark {
    color: rgba(255,255,255,0.8);
    font-size: clamp(15px, 3.6vw, 18px);
    max-width: 540px;
    margin: 0 auto;
}

/* Controles flotantes */
.pv-controls {
    position: absolute;
    right: clamp(16px, 4vw, 32px);
    bottom: clamp(64px, 10vh, 96px);
    display: flex;
    gap: 12px;
}
.pv-control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}
.pv-control-btn:hover {
    background: var(--viajante-cyan);
    border-color: var(--viajante-cyan);
    transform: scale(1.05);
}

/* Iconos en pseudo-elementos */
.pv-sound-icon, .pv-play-icon {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-block;
}
/* Sonido */
.pv-sound-toggle.is-muted .pv-sound-icon::before,
.pv-sound-toggle.is-muted .pv-sound-icon::after {
    content: '';
    position: absolute;
}
.pv-sound-toggle.is-muted .pv-sound-icon::before {
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 9px solid #fff;
    left: 2px;
    top: 2px;
}
.pv-sound-toggle.is-muted .pv-sound-icon::after {
    width: 2px;
    height: 18px;
    background: #fff;
    transform: rotate(45deg);
    left: 11px;
}
.pv-sound-toggle.is-unmuted .pv-sound-icon::before,
.pv-sound-toggle.is-unmuted .pv-sound-icon::after {
    content: '';
    position: absolute;
}
.pv-sound-toggle.is-unmuted .pv-sound-icon::before {
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 9px solid #fff;
    left: 2px;
    top: 2px;
}
.pv-sound-toggle.is-unmuted .pv-sound-icon::after {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    border-left-color: transparent;
    border-bottom-color: transparent;
    right: -1px;
    top: 3px;
}
/* Play/pause */
.pv-play-toggle.is-playing .pv-play-icon::before,
.pv-play-toggle.is-playing .pv-play-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    width: 3px;
    height: 14px;
    background: #fff;
}
.pv-play-toggle.is-playing .pv-play-icon::before { left: 4px; }
.pv-play-toggle.is-playing .pv-play-icon::after { right: 4px; }
.pv-play-toggle.is-paused .pv-play-icon::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 2px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #fff;
}

/* Scroll hint */
.pv-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}
.pv-scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--viajante-cyan);
    animation: pv-scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes pv-scroll-pulse {
    0%,100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.5; }
}

/* ======= RESPONSIVE HEIGHT ADAPTATION ======= */

/* Pantallas pequeñas (342–480px) */
@media (max-width: 480px) {
    .product-video-fullscreen {
        height: 50vh;
        min-height: 280px;
    }
    .pv-title-on-dark {
        font-size: 24px;
    }
    .pv-subtitle-on-dark {
        font-size: 13px;
        line-height: 1.4;
    }
    .pv-controls {
        bottom: 48px;
        right: 16px;
    }
}

/* Tablets verticales */
@media (min-width: 481px) and (max-width: 768px) {
    .product-video-fullscreen {
        height: 60vh;
        min-height: 360px;
    }
    .pv-overlay {
        padding: 0 32px;
    }
}

/* Tablets horizontales / laptops pequeñas */
@media (min-width: 769px) and (max-width: 1023px) {
    .product-video-fullscreen {
        height: 70vh;
        min-height: 420px;
    }
}

/* Desktop normal */
@media (min-width: 1024px) {
    .product-video-fullscreen {
        height: 90vh;
        min-height: 540px;
    }
}

/* Ultra wide */
@media (min-width: 1600px) {
    .product-video-fullscreen {
        height: 95vh;
    }
}


/* ============= CERTIFICATIONS SECTION ============= */
.certifications-section {
    padding: 120px 32px;
    background: var(--viajante-white);
}

.certifications-content {
    max-width: 1400px;
    margin: 0 auto;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 32px;
    margin-top: 80px;
}

.certification-card {
    background: linear-gradient(180deg, #ffffff 0%, var(--viajante-gray-light) 100%);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(23,181,181,0.1), transparent);
    transition: left 0.6s ease;
}

.certification-card:hover::before {
    left: 100%;
}

.certification-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 60px rgba(23,181,181,0.2);
    border-color: rgba(23,181,181,0.3);
}

.certification-badge {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-weight: 700;
    position: relative;
    transition: all 0.4s ease;
}

.certification-card:hover .certification-badge {
    transform: scale(1.1) rotate(5deg);
}

.ce-badge { background: linear-gradient(135deg, #0055A4 0%, #003399 100%); color: white; }
.air-badge { background: linear-gradient(135deg, #17B5B5 0%, #0EA5A5 100%); color: white; }
.sea-badge { background: linear-gradient(135deg, #2E5BFF 0%, #1E4BFF 100%); color: white; }
.safety-badge { background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%); color: white; }
.rohs-badge { background: linear-gradient(135deg, #00A693 0%, #00897B 100%); color: white; }
.sgs-badge { background: linear-gradient(135deg, #FFD700 0%, #FFC400 100%); color: #1a1a1a; }

.badge-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.badge-text {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.certification-content {
    flex: 1;
    margin-bottom: 24px;
}

.certification-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--viajante-text);
    line-height: 1.3;
}

.certification-desc {
    font-size: 14px;
    color: var(--viajante-text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.authority-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.authority-badge {
    padding: 4px 12px;
    background: rgba(23,181,181,0.1);
    border: 1px solid rgba(23,181,181,0.3);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--viajante-cyan);
    letter-spacing: 0.3px;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--viajante-text-secondary);
}

.file-size {
    font-weight: 600;
}

.file-date {
    opacity: 0.8;
}

.certification-visual {
    margin: 20px 0;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    border: 2px dashed rgba(0,0,0,0.1);
    overflow: hidden;
}

.document-preview {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    text-align: center;
    color: var(--viajante-text-secondary);
}

.preview-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.preview-placeholder span {
    font-size: 12px;
    font-weight: 600;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--viajante-cyan);
    color: white;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.download-btn:hover {
    background: var(--viajante-cyan-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(23,181,181,0.4);
}

.download-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.download-btn:hover .download-icon {
    animation: downloadPulse 1s ease infinite;
}

@keyframes downloadPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.certifications-footer {
    margin-top: 64px;
    text-align: center;
    padding: 32px;
    background: var(--viajante-gray-light);
    border-radius: 20px;
}

.micro-copy {
    font-size: 14px;
    color: var(--viajante-text-secondary);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .certification-card {
        padding: 32px 24px;
    }
    
    .authority-badges {
        justify-content: center;
    }
}

/* Animation states for GSAP */
.certification-card {
    opacity: 0;
    transform: translateY(60px);
}