/* --- RESET BÁSICO --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu Sans', sans-serif;
}

/* --- SECCIÓN HERO ACTUALIZADA --- */
#hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.desktop {
    display: none;
}

.mobile {
    display: block;
}

/* Contenido superpuesto Hero - Responsive Base */
.hero-content {
    position: absolute;
    /* Base position, we adjust this at granular breakpoints */
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    /* Reduced gap for smaller screens */
    gap: 10px;
    z-index: 10;
}

.hero-text-box {
    background-color: rgba(0, 0, 0, 0.55);
    /* Reduced padding for smaller screens */
    padding: 15px;
    color: #fff;
    font-family: 'Ubuntu Sans', sans-serif;
    /* Reduced font-size for smaller screens */
    font-size: 1rem;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
    /* Center the text inside the block as requested */
}

.hero-text-box p {
    margin: 0;
}

.btn-adventure {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Horizontally center content inside the button */
    /* Reduced gap for smaller screens */
    gap: 10px;
    border: 1px solid #fff;
    /* Reduced padding for smaller screens */
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-family: 'Ubuntu Sans', sans-serif;
    font-weight: 700;
    /* Reduced font-size for smaller screens */
    font-size: 0.9rem;
    letter-spacing: 1px;
    background-color: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: 100%;
    /* Wide in mobile column */
}

.btn-text {
    text-transform: uppercase;
}

.btn-logo {
    height: 30px;
    /* Smaller logo for mobile */
    width: auto;
    object-fit: contain;
}

.btn-adventure:hover {
    background-color: #a20000;
    border-color: #a20000;
}

/* Granular Mobile Scaling - More Steps to Avoid Covering Bikes as Image Scales */
@media (max-width: 600px) {
    .hero-content {
        bottom: 6%;
        /* Lower to stay under scaled bikes */
        gap: 8px;
    }

    .hero-text-box {
        font-size: 0.95rem;
        padding: 12px;
    }

    .btn-adventure {
        font-size: 0.85rem;
        padding: 8px 12px;
        gap: 8px;
    }

    .btn-logo {
        height: 28px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        bottom: 4%;
        /* Even lower to stay under even more scaled bikes */
        width: 95%;
        /* Tiny phones, use more horizontal width */
        gap: 5px;
    }

    .hero-text-box {
        font-size: 0.9rem;
        /* Smaller font for tiny screens */
        padding: 10px;
        /* minimal padding */
    }

    .btn-adventure {
        font-size: 0.8rem;
        /* Smaller button text for tiny screens */
        padding: 6px 10px;
        /* minimal padding */
        gap: 5px;
        /* minimal gap */
    }

    .btn-logo {
        height: 25px;
        /* Smallest logo for tiny screens */
    }
}

/* --- SECCIÓN ESPECIFICACIONES (Preserved Base Styles) --- */
.specs-section {
    background-color: #f2f2f2;
    padding: 40px 20px;
    padding-bottom: 60px;
}

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

.specs-title {
    font-family: 'Smooch Sans', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    color: #cccccc;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 30px;
    line-height: 0.9;
    letter-spacing: 2px;
}

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

/* Tabs Navegación */
.tabs-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    font-family: 'Ubuntu Sans', sans-serif;
    background-color: #f2f2f2;
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 12px 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    color: #000;
}

.tab-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.specs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
    margin: 0;
    font-family: 'Smooch Sans', sans-serif;
    font-size: 1.4rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.specs-list dt {
    color: #333;
    font-weight: 500;
}

.specs-list dd {
    margin: 0;
    font-weight: 700;
    color: #000;
}

/* Media Col */
.specs-media-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.moto-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

.btn-download {
    font-family: 'Ubuntu Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    background-color: #a30000;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background-color: #cc0000;
}

/* --- SECCIÓN GALERÍA (Preserved Base Styles) --- */
.gallery-section {
    background-color: #1a1a1a;
    padding: 40px 20px;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.item-3 {
    grid-column: span 2;
}

/* --- LIGHTBOX (MODAL DE ZOOM) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- BOTONES SELECTORES DE MODELO 360 (Preserved Base Styles) --- */
.visor-model-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.model-tab {
    font-family: 'Ubuntu Sans', sans-serif;
    background-color: transparent;
    border: 2px solid #ccc;
    color: #555;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.model-tab:hover {
    border-color: #000;
    color: #000;
}

.model-tab.active {
    background-color: #a30000;
    border-color: #a30000;
    color: #fff;
}

/* --- ARREGLOS PARA LOS VISORES 360 DE HONDA (Preserved Base Styles) --- */
.sketchfab-360-viewer iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 500px !important;
    border: none !important;
}

.sketchfab-wrapper>img,
.sketchfab-wrapper>svg,
#hme-sketchfab-360-viewer>img,
#hme-sketchfab-360-viewer>svg,
#hme-sketchfab-360-viewer ._2rm78,
#hme-sketchfab-360-viewer ._n0AbF,
.sketchfab-viewer__brand-logo {
    display: none !important;
}

/* --- SECCIÓN DE PRECIOS (Preserved Base Styles) --- */
.pricing-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-family: 'Smooch Sans', sans-serif;
    color: #000;
}

.pricing-label {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    line-height: 1;
}

.pricing-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pricing-details p {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
}

.price-value {
    font-weight: 800;
}

/* --- MEDIA QUERIES (ESCRITORIO - Preserved base with revised hero adjustments integrated) --- */
@media (min-width: 768px) {
    .desktop {
        display: block;
    }

    .mobile {
        display: none;
    }

    /* === Ajustes Hero Escritorio === */
    .hero-content {
        bottom: 12%;
        /* Keep it a bit higher on desktop */
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        /* Adapts width to fit content and center combined group on page */
        max-width: 1000px;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Horizontally center each element *in the container* on Desktop MQ, group remains centered on page */
        gap: 20px;
    }

    .hero-text-box {
        font-size: 1.3rem;
        /* Original large font size */
        padding: 30px;
        max-width: 800px;
        width: auto;
        /* Adapts width as needed within max-width */
        text-align: center;
        /* Stick with centered text block as requested */
    }

    .btn-adventure {
        width: max-content;
        /* Go back to content-based width on desktop */
        padding: 15px 35px;
        font-size: 1rem;
        gap: 15px;
    }

    .btn-logo {
        height: 45px;
    }

    /* === Fin Ajustes Hero Escritorio === */

    /* Original desktop specs and gallery styles below */
    .specs-layout {
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 50px;
        align-items: start;
    }

    .specs-title {
        font-size: 5rem;
        text-align: left;
        margin-bottom: 50px;
    }

    .mobile-break {
        display: none;
    }

    .tabs-nav {
        display: flex;
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
    }

    .specs-media-col {
        justify-content: flex-end;
    }

    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }

    .item-1,
    .item-2,
    .item-6,
    .item-7 {
        grid-column: span 3;
    }

    .item-3,
    .item-4,
    .item-5 {
        grid-column: span 2;
    }

    /* Ajustes Precios Escritorio */
    .pricing-section {
        margin-top: 50px;
        padding-top: 30px;
    }

    .pricing-label {
        font-size: 4.5rem;
    }

    .pricing-details {
        align-items: center;
    }

    .pricing-details p {
        font-size: 2.5rem;
    }
}