/* ============================================
   JETOUR BOLIVIA - MODEL PAGE STYLES
   Video Hero, 1-2-2 Gallery, 180 Viewer
   ============================================ */

/* VIDEO HERO */
.model-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    inset: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mobile-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-video { display: none; }
    .hero-mobile-image { display: block; }
}

.model-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, transparent 30%, transparent 60%, rgba(10,10,10,0.9) 100%);
    z-index: 1;
}

.model-hero-content {
    position: absolute;
    bottom: 15%;
    left: 60px;
    z-index: 10;
}

.model-hero-label {
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--white-tertiary);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 300;
}

.model-hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white-tertiary);
    font-size: 12px;
    letter-spacing: 2px;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--white-primary), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* LOGO SECTION */
.model-logo-section {
    padding: 100px 60px;
    background: var(--black-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.model-logo-section::before, .model-logo-section::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--white-tertiary), transparent);
    opacity: 0.3;
}

.model-logo-section::before { top: 0; }
.model-logo-section::after { bottom: 0; }

.model-logo {
    height: 100px;
    width: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.model-logo-tagline {
    font-size: 16px;
    letter-spacing: 8px;
    color: var(--white-tertiary);
    text-transform: uppercase;
    font-weight: 300;
}

/* GALLERY - 1-2-2 LAYOUT */
.gallery-section {
    padding: 0;
    background: var(--black-secondary);
}

.gallery-header {
    padding: 80px 60px 40px;
    text-align: center;
}

.gallery-label {
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--white-tertiary);
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    font-weight: 300;
}

.gallery-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
}

.gallery-item:not(:first-child) {
    aspect-ratio: 16/10;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before { opacity: 1; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition-smooth);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.4s var(--transition-smooth);
}

.gallery-item:hover .gallery-item-overlay { transform: translateY(0); }

.gallery-item-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--white-tertiary);
    color: var(--white-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--white-primary);
    color: var(--black-primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,10,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--white-primary);
    color: var(--black-primary);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

/* 180 VIEWER */
.viewer-section {
    padding: 100px 60px;
    background: var(--black-primary);
    position: relative;
}

.viewer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--white-tertiary), transparent);
    opacity: 0.3;
}

.viewer-header { text-align: center; margin-bottom: 60px; }

.viewer-label {
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--white-tertiary);
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    font-weight: 300;
}

.viewer-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.viewer-subtitle {
    font-size: 1rem;
    color: var(--white-tertiary);
    font-weight: 300;
}

.viewer-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: var(--black-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    cursor: grab;
}

.viewer-container:active { cursor: grabbing; }

.viewer-frame {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.viewer-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.viewer-control-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,10,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.viewer-control-btn:hover, .viewer-control-btn.active {
    background: var(--white-primary);
    color: var(--black-primary);
}

.viewer-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
}

.viewer-progress-bar {
    height: 100%;
    background: var(--white-primary);
    width: 50%;
    transition: width 0.1s linear;
}

.viewer-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--white-tertiary);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.viewer-instructions.hidden { opacity: 0; }

.viewer-instructions-icon {
    width: 60px;
    height: 60px;
    animation: swipe 2s infinite;
}

@keyframes swipe {
    0%, 100% { transform: translateX(-20px); opacity: 0.5; }
    50% { transform: translateX(20px); opacity: 1; }
}

.viewer-instructions-text {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* COLORS */
.colors-section {
    padding: 100px 60px;
    background: var(--black-secondary);
    position: relative;
}

.colors-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--white-tertiary), transparent);
    opacity: 0.3;
}

.colors-header { text-align: center; margin-bottom: 60px; }

.colors-label {
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--white-tertiary);
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    font-weight: 300;
}

.colors-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.colors-container { max-width: 1000px; margin: 0 auto; }

.colors-display {
    position: relative;
    aspect-ratio: 16/9;
    margin-bottom: 40px;
    overflow: hidden;
    background: var(--black-primary);
    border: 1px solid rgba(255,255,255,0.1);
}

.color-vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease;
}

.colors-palette {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.color-option:hover { transform: translateY(-5px); }

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid transparent;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.color-swatch::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.color-option.active .color-swatch::after, .color-option:hover .color-swatch::after {
    border-color: var(--white-primary);
}

.color-name {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--white-tertiary);
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s ease;
}

.color-option.active .color-name, .color-option:hover .color-name {
    color: var(--white-primary);
}

/* SPECS AS TEXT */
.specs-section {
    padding: 100px 60px;
    background: var(--black-tertiary);
}

.specs-header { text-align: center; margin-bottom: 60px; }

.specs-label {
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--white-tertiary);
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    font-weight: 300;
}

.specs-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.specs-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.specs-column { display: flex; flex-direction: column; gap: 30px; }

.spec-group {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 25px;
}

.spec-group-title {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white-tertiary);
    margin-bottom: 15px;
    font-weight: 600;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.spec-name {
    color: var(--white-tertiary);
    font-size: 15px;
}

.spec-value {
    color: var(--white-primary);
    font-size: 15px;
    font-weight: 700;
}

/* CTA */
.cta-section {
    padding: 120px 60px;
    background: var(--black-primary);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--white-tertiary), transparent);
    opacity: 0.3;
}

.cta-label {
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--white-tertiary);
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
    font-weight: 300;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--white-tertiary);
    max-width: 600px;
    margin: 0 auto 50px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .model-hero-content { left: 30px; }
    .gallery-grid { gap: 2px; }
    .viewer-section, .colors-section, .cta-section, .specs-section { padding: 80px 30px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .specs-content { gap: 40px; }
}

@media (max-width: 768px) {
    .model-hero-content { left: 20px; right: 20px; }
    .model-logo-section { padding: 60px 20px; }
    .model-logo { height: 70px; }
    .gallery-header { padding: 60px 20px 30px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item:first-child { aspect-ratio: 16/9; }
    .viewer-section, .colors-section, .cta-section, .specs-section { padding: 60px 20px; }
    .viewer-controls { bottom: 15px; }
    .viewer-control-btn { width: 40px; height: 40px; }
    .colors-palette { gap: 20px; }
    .color-swatch { width: 50px; height: 50px; }
    .specs-content { grid-template-columns: 1fr; gap: 30px; }
    .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .model-hero-title { font-size: 3rem; }
    .color-swatch { width: 45px; height: 45px; }
    .color-name { font-size: 10px; }
}
.specs-disclaimer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea sutil separadora */
    text-align: center;
}

.specs-disclaimer p {
    font-size: 0.85rem; /* Letra más pequeña */
    color: #888; /* Gris suave */
    line-height: 1.5;
    font-style: italic;
    }
    /* Estilos para la sección T2 PHEV */
.phev-hero-section {
    position: relative;
    width: 100%;
    height: 90vh; /* Altura casi completa de la pantalla */
    overflow: hidden;
    display: flex;
    align-items: center; /* Centra el texto verticalmente */
    justify-content: flex-start; /* Alinea texto a la izquierda */
    background-color: #000;
}

.phev-media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.phev-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo sin deformarse */
}

/* Capa oscura para que se lea el texto blanco */
.phev-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

/* Contenido del texto */
.phev-content {
    position: relative;
    z-index: 3;
    padding: 0 5%;
    max-width: 600px;
    color: #fff;
}

.phev-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #4CAF50; /* Un verde sutil quien vuelva a editar*/
    margin-bottom: 1rem;
    font-weight: 700;
}

.phev-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.phev-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

/* Pequeños cuadros de datos */
.phev-badges {
    display: flex;
    gap: 2rem;
}

.phev-badge {
    border-left: 3px solid #4CAF50;
    padding-left: 1rem;
}

.badge-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.badge-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #aaa;
}

/* Ajustes para Móvil */
@media (max-width: 768px) {
    .phev-hero-section {
        height: 80vh; /* Un poco menos alto en móvil */
        align-items: flex-end; /* Texto abajo en móvil */
        justify-content: center;
        padding-bottom: 4rem;
    }

    .phev-overlay {
        background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    }

    .phev-content {
        text-align: center;
        padding: 0 2rem;
    }

    .phev-title {
        font-size: 2.5rem;
    }
    
    .phev-badges {
        justify-content: center;
    }
}