﻿.detail-page {
    position: relative;
    overflow: hidden;
    background: #071115;
    color: #f4f7f8;
    padding: 40px 0 90px;
}

.detail-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: .28;
    pointer-events: none;
}

.detail-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient( 90deg, rgba(7, 17, 21, .92) 0%, rgba(7, 17, 21, .76) 45%, rgba(7, 17, 21, .92) 100% );
}
.detail-bg-video {
    opacity: 4;
}

.detail-video-credit {
    position: absolute;
    right: 14px;
    bottom: 10px;
    z-index: 3;
    margin: 0;
    font-size: 10px;
    opacity: .45;
}

    .detail-video-credit a {
        color: #fff;
        text-decoration: none;
    }

.detail-page > .container-xl {
    position: relative;
    z-index: 2;
}

.detail-breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #c99b96;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    margin-bottom: 18px;
}

    .detail-breadcrumbs a {
        color: #c99b96;
        text-decoration: none;
    }

        .detail-breadcrumbs a:hover {
            color: #ff4b4b;
        }

.detail-title {
    margin: 0 0 34px;
    max-width: 1100px;
    color: #e9f1f4;
    font-size: clamp(42px, 6vw, 74px);
    text-transform: uppercase;
    font-weight: 950;
    letter-spacing: -.06em;
    line-height: .95;
}

    .detail-title::first-letter {
        color: #e9f1f4;
    }

.detail-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 26px;
    align-items: start;
}

.main-photo {
    position: relative;
    height: 520px;
    background: #fff;
    overflow: hidden;
}

    .main-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.photo-label {
    position: absolute;
    left: 22px;
    bottom: 22px;
    padding: 8px 12px;
    background: #a70f18;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 10px;
    font-weight: 950;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.thumb-item,
.thumb-more {
    height: 140px;
    background: #26343b;
    overflow: hidden;
}

    .thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.thumb-more {
    aspect-ratio: 1 / 1;
    background: #26343b;
    overflow: hidden;
}

.quote-panel {
    background: #132228;
    border: 1px solid rgba(255,255,255,.06);
    padding: 32px;
}
svg {
    display: block;
    color: #e53035;
    font-size: 20px;
    margin-bottom: 42px;
}

.price-box span {
    display: block;
    color: #e53035;
    text-transform: uppercase;
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
}

.price-box strong {
    display: block;
    margin-top: 4px;
    color: #e53035;
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
}

.price-box small {
    display: block;
    margin-top: 10px;
    color: #f1c5c0;
    font-size: 12px;
}

.quick-specs {
    margin-top: 34px;
}

    .quick-specs div {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        padding: 18px 0;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .quick-specs span {
        color: #f1c5c0;
        text-transform: uppercase;
        letter-spacing: .14em;
        font-size: 11px;
    }

    .quick-specs strong {
        text-align: right;
        color: #fff;
    }

.request-btn,
.datasheet-btn {
    width: 100%;
    min-height: 58px;
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 950;
}

.request-btn {
    background: linear-gradient(135deg, #ffaaa5, #e53035);
    color: #250909;
}

.datasheet-btn {
    margin-top: 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
}

.technical-section,
.equipment-section {
    margin-top: 78px;
}

    .technical-section h2,
    .equipment-section h2 {
        margin: 0 0 28px;
        color: #e9f1f4;
        text-transform: uppercase;
        font-weight: 950;
        letter-spacing: -.03em;
    }

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.tech-card {
    min-height: 150px;
    padding: 28px;
    background: #132228;
    border: 1px solid rgba(255,255,255,.04);
}

    .tech-card i {
        display: block;
        color: #e53035;
        font-size: 20px;
        margin-bottom: 42px;
    }

    .tech-card span {
        display: block;
        color: #c99b96;
        text-transform: uppercase;
        letter-spacing: .16em;
        font-size: 10px;
        margin-bottom: 8px;
    }

    .tech-card strong {
        color: #fff;
        font-size: 18px;
    }

    .tech-card p {
        margin: 14px 0 0;
        color: #f1c5c0;
        line-height: 1.6;
    }

.tech-wide {
    grid-column: span 2;
}

.tech-card.accent {
    background: #26343b;
    border-right: 4px solid #ffaaa5;
}

.equipment-section {
    padding: 40px;
    background: #132228;
    border: 1px solid rgba(255,255,255,.06);
}

    .equipment-section > div:first-child p {
        max-width: 620px;
        color: #f1c5c0;
    }

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.equipment-card {
    min-height: 170px;
    padding: 24px;
    background: #071115;
}

    .equipment-card i {
        color: #ffb1ac;
        font-size: 22px;
    }

    .equipment-card h3 {
        margin: 28px 0 8px;
        color: #fff;
        font-size: 17px;
        font-weight: 900;
    }

    .equipment-card p {
        color: #f1c5c0;
        font-size: 13px;
    }

@media (max-width: 1199px) {
    .detail-main-grid {
        grid-template-columns: 1fr;
    }

    .quote-panel {
        max-width: none;
    }
}

@media (max-width: 991px) {
    .tech-grid,
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-photo {
        height: 420px;
    }
}

@media (max-width: 575px) {
    .detail-page {
        padding: 30px 0 60px;
    }

    .main-photo {
        height: 300px;
    }

    .thumb-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid,
    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .tech-wide {
        grid-column: span 1;
    }

    .equipment-section {
        padding: 24px;
    }
}

.main-photo {
    cursor: zoom-in;
}

    .main-photo img {
        transition: transform .25s ease, opacity .25s ease;
    }

    .main-photo:hover img {
        transform: scale(1.03);
    }

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.thumb-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    padding: 0;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    .thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .thumb-item:hover {
        transform: translateY(-2px);
    }

    .thumb-item.active {
        border-color: #D91648;
        box-shadow: 0 8px 22px rgba(217, 22, 72, .25);
    }

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .86);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

    .gallery-modal.show {
        display: flex;
    }

    .gallery-modal img {
        max-width: min(1100px, 95vw);
        max-height: 90vh;
        object-fit: contain;
        border-radius: 22px;
        box-shadow: 0 25px 80px rgba(0, 0, 0, .5);
    }

.gallery-modal-close {
    position: absolute;
    top: 24px;
    right: 28px;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: white;
    color: #111827;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 18px;
}

.modal-open-gallery {
    overflow: hidden;
}

.inventory-alert {
    background: rgba(108, 117, 125, .12);
    border: 1px solid rgba(108, 117, 125, .22);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    color: #4f5965;
}

    .inventory-alert strong {
        display: block;
        color: #29356c;
        font-size: 15px;
        font-weight: 900;
        margin-bottom: 4px;
    }

    .inventory-alert span {
        display: block;
        font-size: 13px;
        line-height: 1.4;
    }

.request-btn-disabled,
.request-btn-disabled:hover {
    background: #adb5bd !important;
    color: #ffffff !important;
    cursor: not-allowed;
    opacity: .85;
    pointer-events: none;
}

.photo-label.sold {
    background: #6c757d !important;
    color: #ffffff !important;
}

/* Galería detalle: imagen más grande + miniaturas en carrusel */
.main-photo {
    height: 600px;
}

.thumb-grid {
    display: none;
}

.thumb-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.thumb-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 4px 2px 10px;
    scrollbar-width: none;
}

    .thumb-track::-webkit-scrollbar {
        display: none;
    }

.thumb-nav {
    width: 44px;
    height: 92px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(19,34,40,.92);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s ease, transform .2s ease;
}

    .thumb-nav:hover {
        background: #e53035;
        transform: translateY(-1px);
    }

.thumb-item {
    flex: 0 0 130px;
    width: 130px;
    height: 92px;
    aspect-ratio: unset;
    border: 2px solid transparent;
    padding: 0;
    background: #26343b;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    .thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .thumb-item:hover {
        transform: translateY(-2px);
    }

    .thumb-item.active {
        border-color: #D91648;
        box-shadow: 0 8px 22px rgba(217, 22, 72, .25);
    }

@media (max-width: 991px) {
    .main-photo {
        height: 480px;
    }

    .thumb-carousel {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 8px;
    }

    .thumb-nav {
        width: 38px;
        height: 82px;
    }

    .thumb-item {
        flex-basis: 115px;
        width: 115px;
        height: 82px;
    }
}

@media (max-width: 575px) {
    .main-photo {
        height: 360px;
    }

    .thumb-carousel {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
    }

    .thumb-nav {
        width: 34px;
        height: 74px;
    }

    .thumb-item {
        flex-basis: 104px;
        width: 104px;
        height: 74px;
    }
}