/* ==========================================================
   PRODUCT DETAIL
   SOSMedical
========================================================== */

.product-detail-page {
    background: var(--background);
}

/*
|--------------------------------------------------------------------------
| Breadcrumb
|--------------------------------------------------------------------------
*/

.product-breadcrumb {
    padding: 28px 0 0;
}

.product-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    color: var(--text-light);
    font-size: 13px;
}

.product-breadcrumb__link {
    color: var(--secondary);
    font-weight: 600;

    transition: color var(--transition);
}

.product-breadcrumb__link:hover {
    color: var(--primary);
}

.product-breadcrumb__separator {
    color: #a3afbb;
}

/*
|--------------------------------------------------------------------------
| Main product section
|--------------------------------------------------------------------------
*/

.product-detail {
    position: relative;
    padding: 42px 0 90px;
}

.product-detail__grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: clamp(48px, 7vw, 95px);
}

/*
|--------------------------------------------------------------------------
| Gallery
|--------------------------------------------------------------------------
*/

.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.product-gallery__main {
    position: relative;
    display: grid;

    min-height: 560px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(0, 153, 216, 0.08),
            transparent 43%
        ),
        linear-gradient(
            145deg,
            #fbfdff,
            #eef4f8
        );
    border: 1px solid rgba(11, 35, 65, 0.08);
    border-radius: 30px;

    box-shadow: var(--shadow-md);

    place-items: center;
}

.product-gallery__main::before {
    position: absolute;
    top: -110px;
    right: -110px;

    width: 330px;
    height: 330px;

    content: "";
    pointer-events: none;

    border: 54px solid rgba(0, 153, 216, 0.035);
    border-radius: 50%;
}

.product-gallery__image {
    position: relative;
    z-index: 2;

    width: 88%;
    height: 500px;

    object-fit: contain;

    filter:
        drop-shadow(0 28px 30px rgba(11, 35, 65, 0.15));

    transition:
        opacity 0.25s ease,
        transform 0.35s ease;
}

.product-gallery__image.is-changing {
    opacity: 0;
    transform: scale(0.98);
}

.product-gallery__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
}

.product-gallery__zoom {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 3;

    display: grid;

    width: 48px;
    height: 48px;

    color: var(--primary);
    cursor: pointer;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 35, 65, 0.08);
    border-radius: 15px;

    box-shadow: 0 10px 26px rgba(11, 35, 65, 0.1);

    place-items: center;

    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.product-gallery__zoom:hover {
    color: var(--white);
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.product-gallery__zoom svg {
    width: 21px;
    height: 21px;
}

/*
|--------------------------------------------------------------------------
| Thumbnails
|--------------------------------------------------------------------------
*/

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(70px, 1fr));
    gap: 12px;

    margin-top: 16px;
}

.product-gallery__thumb {
    position: relative;
    display: grid;

    min-height: 92px;
    padding: 8px;

    overflow: hidden;

    cursor: pointer;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;

    place-items: center;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active {
    border-color: var(--secondary);
    box-shadow: 0 8px 22px rgba(0, 153, 216, 0.12);
    transform: translateY(-2px);
}

.product-gallery__thumb.is-active::after {
    position: absolute;
    right: 12px;
    bottom: 7px;
    left: 12px;

    height: 2px;

    content: "";

    background: var(--secondary);
    border-radius: 999px;
}

.product-gallery__thumb-image {
    width: 100%;
    height: 72px;

    object-fit: contain;
}

/*
|--------------------------------------------------------------------------
| Product information
|--------------------------------------------------------------------------
*/

.product-info {
    min-width: 0;
}

.product-info__brand-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 18px;
}

.product-info__brand {
    color: var(--secondary);
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-info__logo {
    width: auto;
    max-width: 120px;
    max-height: 36px;

    object-fit: contain;
}

.product-info__title {
    max-width: 760px;

    color: var(--primary);
    font-size: clamp(38px, 5vw, 62px);
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.product-info__model {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 13px;

    color: var(--text-light);
    font-size: 14px;
}

.product-info__model strong {
    color: var(--primary);
}

.product-info__category {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 12px;

    color: var(--text-light);
    font-size: 14px;
}

.product-info__category a {
    color: var(--secondary);
    font-weight: 600;
}

.product-info__category a:hover {
    color: var(--primary);
}

.product-info__status {
    margin-top: 22px;
}

.product-info__description {
    max-width: 730px;
    margin-top: 24px;

    color: var(--text-light);
    font-size: 17px;
    line-height: 1.85;
}

/*
|--------------------------------------------------------------------------
| Quick facts
|--------------------------------------------------------------------------
*/

.product-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;

    margin-top: 30px;
}

.product-fact {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    padding: 17px;

    background: var(--white);
    border: 1px solid rgba(11, 35, 65, 0.08);
    border-radius: 15px;
}

.product-fact__icon {
    display: grid;
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    color: var(--secondary);

    background: rgba(0, 153, 216, 0.09);
    border-radius: 12px;

    place-items: center;
}

.product-fact__icon svg {
    width: 20px;
    height: 20px;
}

.product-fact__label {
    display: block;

    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-fact__value {
    display: block;

    margin-top: 3px;

    color: var(--primary);
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Actions
|--------------------------------------------------------------------------
*/

.product-info__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;

    margin-top: 34px;
}

.product-info__actions .btn {
    min-width: 190px;
}

.product-info__help {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-top: 24px;
    padding: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 153, 216, 0.07),
            rgba(0, 182, 122, 0.06)
        );
    border: 1px solid rgba(0, 153, 216, 0.12);
    border-radius: 16px;
}

.product-info__help-icon {
    display: grid;
    flex-shrink: 0;

    width: 44px;
    height: 44px;

    color: var(--success);

    background: rgba(0, 182, 122, 0.1);
    border-radius: 13px;

    place-items: center;
}

.product-info__help-icon svg {
    width: 20px;
    height: 20px;
}

.product-info__help-title {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.product-info__help-text {
    margin-top: 3px;

    color: var(--text-light);
    font-size: 12px;
    line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| Detail content area
|--------------------------------------------------------------------------
*/

.product-content {
    padding: 95px 0;
    background: var(--white);
}

.product-content__grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 46px;
}

.product-content__main {
    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| Tabs
|--------------------------------------------------------------------------
*/

.product-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 28px;
    padding-bottom: 12px;

    border-bottom: 1px solid var(--border);
}

.product-tabs__button {
    position: relative;

    padding: 11px 16px;

    color: var(--text-light);
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    background: transparent;
    border: 0;
    border-radius: 10px;

    transition:
        color var(--transition),
        background-color var(--transition);
}

.product-tabs__button:hover,
.product-tabs__button.is-active {
    color: var(--secondary);
    background: rgba(0, 153, 216, 0.07);
}

.product-tabs__button.is-active::after {
    position: absolute;
    right: 12px;
    bottom: -13px;
    left: 12px;

    height: 2px;

    content: "";

    background: var(--secondary);
    border-radius: 999px;
}

.product-tab-panel {
    display: none;
}

.product-tab-panel.is-active {
    display: block;
}

/*
|--------------------------------------------------------------------------
| Long description
|--------------------------------------------------------------------------
*/

.product-description {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.9;
}

.product-description h2,
.product-description h3,
.product-description h4 {
    margin-top: 30px;
    margin-bottom: 12px;
}

.product-description p + p {
    margin-top: 17px;
}

.product-description ul,
.product-description ol {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-top: 18px;
    padding-left: 22px;

    color: var(--text-light);
}

.product-description ul {
    list-style: disc;
}

.product-description ol {
    list-style: decimal;
}

.product-description strong {
    color: var(--primary);
}

/*
|--------------------------------------------------------------------------
| Specifications
|--------------------------------------------------------------------------
*/

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-spec-group {
    overflow: hidden;

    background: var(--white);
    border: 1px solid rgba(11, 35, 65, 0.08);
    border-radius: 18px;
}

.product-spec-group__title {
    padding: 18px 21px;

    color: var(--primary);
    font-size: 17px;

    background: #f6f9fb;
    border-bottom: 1px solid var(--border);
}

.product-spec-list {
    display: grid;
}

.product-spec-item {
    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr);
    gap: 24px;

    padding: 16px 21px;

    border-bottom: 1px solid var(--border);
}

.product-spec-item:last-child {
    border-bottom: 0;
}

.product-spec-item__name {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

.product-spec-item__value {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| Documents
|--------------------------------------------------------------------------
*/

.product-documents {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.product-document {
    display: flex;
    align-items: center;
    gap: 15px;

    min-height: 92px;
    padding: 18px;

    background: var(--white);
    border: 1px solid rgba(11, 35, 65, 0.08);
    border-radius: 16px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.product-document:hover {
    border-color: rgba(0, 153, 216, 0.2);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.product-document__icon {
    display: grid;
    flex-shrink: 0;

    width: 50px;
    height: 50px;

    color: var(--danger);

    background: rgba(230, 57, 70, 0.09);
    border-radius: 14px;

    place-items: center;
}

.product-document__icon svg {
    width: 23px;
    height: 23px;
}

.product-document__content {
    min-width: 0;
}

.product-document__title {
    display: block;

    overflow: hidden;

    color: var(--primary);
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-document__meta {
    display: block;

    margin-top: 5px;

    color: var(--text-light);
    font-size: 11px;
    text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| Sidebar quote card
|--------------------------------------------------------------------------
*/

.product-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.product-quote-card {
    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(255, 255, 255, 0.15),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            var(--secondary),
            #007fb7 58%,
            var(--primary)
        );
    border-radius: 23px;

    box-shadow: 0 28px 60px rgba(0, 153, 216, 0.2);
}

.product-quote-card__body {
    padding: 30px;
}

.product-quote-card__eyebrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.product-quote-card__title {
    margin-top: 12px;

    color: var(--white);
    font-size: 25px;
    line-height: 1.25;
}

.product-quote-card__text {
    margin-top: 13px;

    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.75;
}

.product-quote-card__action {
    margin-top: 24px;
}

.product-quote-card__action .btn {
    width: 100%;
}

.product-quote-card__footer {
    padding: 18px 30px;

    background: rgba(11, 35, 65, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-quote-card__footer-text {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| Related products
|--------------------------------------------------------------------------
*/

.related-products {
    padding: 95px 0 110px;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(0, 153, 216, 0.04),
            transparent 25%
        ),
        var(--background);
}

.related-products__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 42px;
}

.related-products__eyebrow {
    color: var(--secondary);
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.related-products__title {
    margin-top: 10px;

    font-size: clamp(30px, 4vw, 46px);
}

.related-products__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/*
|--------------------------------------------------------------------------
| Image lightbox
|--------------------------------------------------------------------------
*/

.product-lightbox {
    position: fixed;
    z-index: 2000;
    inset: 0;

    display: grid;

    visibility: hidden;

    background: rgba(4, 15, 28, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;

    place-items: center;

    transition:
        visibility var(--transition),
        opacity var(--transition);
}

.product-lightbox.is-visible {
    visibility: visible;
    opacity: 1;
}

.product-lightbox__content {
    position: relative;

    width: min(1100px, 92vw);
    max-height: 88vh;
    padding: 28px;

    background: var(--white);
    border-radius: 24px;
}

.product-lightbox__image {
    width: 100%;
    max-height: 78vh;

    object-fit: contain;
}

.product-lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;

    display: grid;

    width: 42px;
    height: 42px;

    color: var(--white);
    cursor: pointer;

    background: var(--primary);
    border: 0;
    border-radius: 50%;

    place-items: center;

    transition:
        background-color var(--transition),
        transform var(--transition);
}

.product-lightbox__close:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

/*
|--------------------------------------------------------------------------
| Accesos rápidos
|--------------------------------------------------------------------------
*/

.product-quick-access {
    display: grid;
    gap: 12px;

    margin-top: 22px;
}


.product-quick-access__item {
    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;
    padding: 16px 17px;

    color: inherit;
    text-align: left;

    cursor: pointer;

    background: var(--white);
    border: 1px solid rgba(11, 35, 65, 0.09);
    border-radius: 16px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}


.product-quick-access__item:hover {
    border-color: rgba(0, 153, 216, 0.28);

    box-shadow:
        0 10px 28px rgba(11, 35, 65, 0.08);

    transform: translateY(-2px);
}


.product-quick-access__icon {
    display: grid;
    flex-shrink: 0;

    width: 44px;
    height: 44px;

    color: var(--secondary);

    background: rgba(0, 153, 216, 0.09);
    border-radius: 13px;

    place-items: center;
}


.product-quick-access__icon--document {
    color: var(--danger);

    background: rgba(230, 57, 70, 0.08);
}


.product-quick-access__icon svg {
    width: 21px;
    height: 21px;
}


.product-quick-access__content {
    flex: 1;
    min-width: 0;
}


.product-quick-access__title {
    display: block;

    color: var(--primary);
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
}


.product-quick-access__text {
    display: block;

    margin-top: 3px;

    color: var(--text-light);
    font-size: 11px;
    line-height: 1.45;
}


.product-quick-access__arrow {
    flex-shrink: 0;

    color: var(--secondary);
    font-size: 20px;

    transition: transform var(--transition);
}


.product-quick-access__item:hover
.product-quick-access__arrow {
    transform: translateX(4px);
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1150px) {
    .product-detail__grid {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
        gap: 45px;
    }

    .product-gallery__main {
        min-height: 500px;
    }

    .product-gallery__image {
        height: 450px;
    }

    .product-content__grid {
        grid-template-columns: minmax(0, 1fr) 290px;
    }
}

@media (max-width: 992px) {
    .product-detail__grid,
    .product-content__grid {
        grid-template-columns: 1fr;
    }

    .product-gallery,
    .product-sidebar {
        position: static;
    }

    .product-gallery {
        max-width: 760px;
        margin: 0 auto;
    }

    .product-info {
        max-width: 780px;
    }

    .product-sidebar {
        max-width: 620px;
    }

    .related-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    /*
    |--------------------------------------------------------------------------
    | Detalle principal
    |--------------------------------------------------------------------------
    */

    .product-detail {
        padding: 24px 0 48px;
    }

    .product-detail__grid {
        gap: 28px;
    }


    /*
    |--------------------------------------------------------------------------
    | Galería
    |--------------------------------------------------------------------------
    */

    .product-gallery {
        max-width: 100%;
        margin: 0;
    }

    .product-gallery__main {
        min-height: 330px;

        border-radius: 22px;
    }

    .product-gallery__image {
        width: 92%;
        height: 300px;
    }

    .product-gallery__zoom {
        right: 14px;
        bottom: 14px;

        width: 44px;
        height: 44px;

        border-radius: 13px;
    }


    /*
    |--------------------------------------------------------------------------
    | Miniaturas en scroll horizontal
    |--------------------------------------------------------------------------
    */

    .product-gallery__thumbs {
        display: flex;
        gap: 10px;

        overflow-x: auto;
        overflow-y: hidden;

        margin-top: 12px;
        padding-bottom: 8px;

        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .product-gallery__thumbs::-webkit-scrollbar {
        display: none;
    }

    .product-gallery__thumb {
        flex: 0 0 78px;

        min-height: 74px;
        padding: 6px;

        scroll-snap-align: start;
    }

    .product-gallery__thumb-image {
        height: 58px;
    }


    /*
    |--------------------------------------------------------------------------
    | Información principal
    |--------------------------------------------------------------------------
    */

    .product-info__brand-row {
        margin-bottom: 14px;
    }

    .product-info__logo {
        max-width: 105px;
        max-height: 32px;
    }

    .product-info__title {
        font-size: 34px;
        line-height: 1.08;
    }

    .product-info__model,
    .product-info__category {
        font-size: 13px;
    }

    .product-info__status {
        margin-top: 16px;
    }

    .product-info__description {
        margin-top: 18px;

        font-size: 14px;
        line-height: 1.65;
    }


    /*
    |--------------------------------------------------------------------------
    | Ocultar contenido redundante en móvil
    |--------------------------------------------------------------------------
    */

    .product-facts,
    .product-info__help,
    .product-sidebar {
        display: none;
    }


    /*
    |--------------------------------------------------------------------------
    | Acciones principales
    |--------------------------------------------------------------------------
    */

    .product-info__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;

        margin-top: 24px;
    }

    .product-info__actions .btn {
        width: 100%;
        min-width: 0;
    }


    /*
    |--------------------------------------------------------------------------
    | Accesos rápidos
    |--------------------------------------------------------------------------
    */

    .product-quick-access {
        gap: 10px;

        margin-top: 18px;
    }

    .product-quick-access__item {
        gap: 12px;

        min-height: 68px;
        padding: 13px 14px;

        border-radius: 14px;
    }

    .product-quick-access__icon {
        width: 40px;
        height: 40px;

        border-radius: 12px;
    }

    .product-quick-access__icon svg {
        width: 19px;
        height: 19px;
    }

    .product-quick-access__title {
        font-size: 13px;
    }

    .product-quick-access__text {
        font-size: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | Contenido
    |--------------------------------------------------------------------------
    */

    .product-content {
        padding: 48px 0 56px;
    }

    .product-content__grid {
        gap: 0;
    }


    /*
    |--------------------------------------------------------------------------
    | Pestañas móviles
    |--------------------------------------------------------------------------
    */

    .product-tabs {
        position: sticky;
        top: var(--header-height);
        z-index: 20;

        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;

        overflow-x: auto;
        overflow-y: hidden;

        margin: 0 -14px 22px;
        padding: 10px 14px 11px;

        background: rgba(255, 255, 255, 0.96);
        border-bottom: 1px solid var(--border);

        box-shadow:
            0 8px 20px rgba(11, 35, 65, 0.05);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .product-tabs::-webkit-scrollbar {
        display: none;
    }

    .product-tabs__button {
        flex: 0 0 auto;

        min-height: 40px;
        padding: 9px 13px;

        font-size: 11px;
        white-space: nowrap;

        background: #f6f9fb;

        scroll-snap-align: start;
    }

    .product-tabs__button.is-active::after {
        right: 12px;
        bottom: -11px;
        left: 12px;
    }


    /*
    |--------------------------------------------------------------------------
    | Descripción
    |--------------------------------------------------------------------------
    */

    .product-description {
        font-size: 14px;
        line-height: 1.75;
    }

    .product-description h2,
    .product-description h3,
    .product-description h4 {
        margin-top: 24px;
        margin-bottom: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | Características
    |--------------------------------------------------------------------------
    */

    .product-specs {
        gap: 16px;
    }

    .product-spec-group {
        border-radius: 15px;
    }

    .product-spec-group__title {
        padding: 15px 16px;

        font-size: 15px;
    }

    .product-spec-item {
        grid-template-columns: 1fr;
        gap: 5px;

        padding: 13px 16px;
    }

    .product-spec-item__name {
        font-size: 12px;
    }

    .product-spec-item__value {
        font-size: 13px;
    }


    /*
    |--------------------------------------------------------------------------
    | Documentos
    |--------------------------------------------------------------------------
    */

    .product-documents {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-document {
        gap: 12px;

        min-height: 74px;
        padding: 13px;

        border-radius: 14px;
    }

    .product-document__icon {
        width: 42px;
        height: 42px;

        border-radius: 12px;
    }

    .product-document__icon svg {
        width: 20px;
        height: 20px;
    }

    .product-document__title {
        font-size: 13px;
    }

    .product-document__meta {
        font-size: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | Productos relacionados
    |--------------------------------------------------------------------------
    */

    .related-products {
        padding: 56px 0 70px;
    }

    .related-products__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;

        margin-bottom: 28px;
    }

    .related-products__grid {
        display: grid;
        grid-auto-columns: minmax(270px, 82vw);
        grid-auto-flow: column;
        grid-template-columns: none;
        gap: 14px;

        overflow-x: auto;
        overflow-y: hidden;

        padding-bottom: 12px;

        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .related-products__grid::-webkit-scrollbar {
        display: none;
    }

    .related-products__grid .product-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 520px) {

    /*
    |--------------------------------------------------------------------------
    | Breadcrumb
    |--------------------------------------------------------------------------
    */

    .product-breadcrumb {
        padding-top: 16px;
    }

    .product-breadcrumb__list {
        gap: 6px;

        font-size: 11px;
        line-height: 1.45;
    }

    .product-breadcrumb__list li:last-child {
        display: none;
    }


    /*
    |--------------------------------------------------------------------------
    | Detalle principal
    |--------------------------------------------------------------------------
    */

    .product-detail {
        padding: 18px 0 42px;
    }

    .product-detail__grid {
        gap: 22px;
    }


    /*
    |--------------------------------------------------------------------------
    | Galería
    |--------------------------------------------------------------------------
    */

    .product-gallery__main {
        min-height: 290px;

        border-radius: 19px;
    }

    .product-gallery__image {
        width: 94%;
        height: 260px;
    }

    .product-gallery__badge {
        top: 13px;
        left: 13px;
    }

    .product-gallery__zoom {
        right: 12px;
        bottom: 12px;

        width: 40px;
        height: 40px;

        border-radius: 12px;
    }


    /*
    |--------------------------------------------------------------------------
    | Miniaturas horizontales
    |--------------------------------------------------------------------------
    */

    .product-gallery__thumbs {
        gap: 8px;

        margin-top: 10px;
        padding-bottom: 6px;
    }

    .product-gallery__thumb {
        flex: 0 0 68px;

        min-height: 66px;
        padding: 5px;

        border-radius: 11px;
    }

    .product-gallery__thumb-image {
        height: 50px;
    }


    /*
    |--------------------------------------------------------------------------
    | Información
    |--------------------------------------------------------------------------
    */

    .product-info__brand-row {
        gap: 9px;

        margin-bottom: 11px;
    }

    .product-info__logo {
        max-width: 95px;
        max-height: 29px;
    }

    .product-info__title {
        font-size: 29px;
        line-height: 1.07;
    }

    .product-info__model,
    .product-info__category {
        margin-top: 9px;

        font-size: 12px;
    }

    .product-info__status {
        margin-top: 14px;
    }

    .product-info__description {
        margin-top: 15px;

        font-size: 13px;
        line-height: 1.55;
    }


    /*
    |--------------------------------------------------------------------------
    | Acciones
    |--------------------------------------------------------------------------
    */

    .product-info__actions {
        gap: 8px;

        margin-top: 20px;
    }

    .product-info__actions .btn {
        min-height: 46px;
        padding-inline: 16px;

        font-size: 12px;
    }


    /*
    |--------------------------------------------------------------------------
    | Accesos rápidos
    |--------------------------------------------------------------------------
    */

    .product-quick-access {
        gap: 8px;

        margin-top: 14px;
    }

    .product-quick-access__item {
        gap: 10px;

        min-height: 62px;
        padding: 11px 12px;

        border-radius: 13px;
    }

    .product-quick-access__icon {
        width: 36px;
        height: 36px;

        border-radius: 10px;
    }

    .product-quick-access__icon svg {
        width: 17px;
        height: 17px;
    }

    .product-quick-access__title {
        font-size: 12px;
    }

    .product-quick-access__text {
        font-size: 9px;
        line-height: 1.35;
    }

    .product-quick-access__arrow {
        font-size: 17px;
    }


    /*
    |--------------------------------------------------------------------------
    | Contenido
    |--------------------------------------------------------------------------
    */

    .product-content {
        padding: 40px 0 48px;
    }


    /*
    |--------------------------------------------------------------------------
    | Pestañas horizontales
    |--------------------------------------------------------------------------
    |
    | IMPORTANTE:
    | no vuelven a columna.
    |--------------------------------------------------------------------------
    */

    .product-tabs {
        top: var(--header-height);

        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 5px;

        margin: 0 -11px 19px;
        padding: 9px 11px 10px;
    }

    .product-tabs__button {
        flex: 0 0 auto;

        width: auto;
        min-height: 38px;
        padding: 8px 11px;

        font-size: 10px;
        text-align: center;
        white-space: nowrap;

        border-radius: 9px;
    }

    .product-tabs__button.is-active::after {
        right: 10px;
        bottom: -10px;
        left: 10px;

        width: auto;
    }


    /*
    |--------------------------------------------------------------------------
    | Descripción
    |--------------------------------------------------------------------------
    */

    .product-description {
        font-size: 13px;
        line-height: 1.7;
    }

    .product-description h2 {
        font-size: 21px;
    }

    .product-description h3 {
        font-size: 18px;
    }

    .product-description h4 {
        font-size: 16px;
    }

    .product-description h2,
    .product-description h3,
    .product-description h4 {
        margin-top: 21px;
        margin-bottom: 8px;
    }

    .product-description ul,
    .product-description ol {
        gap: 7px;

        margin-top: 13px;
        padding-left: 18px;
    }


    /*
    |--------------------------------------------------------------------------
    | Características técnicas
    |--------------------------------------------------------------------------
    */

    .product-specs {
        gap: 13px;
    }

    .product-spec-group {
        border-radius: 13px;
    }

    .product-spec-group__title {
        padding: 13px 14px;

        font-size: 14px;
    }

    .product-spec-item {
        gap: 4px;

        padding: 11px 14px;
    }

    .product-spec-item__name {
        font-size: 11px;
    }

    .product-spec-item__value {
        font-size: 12px;
        line-height: 1.45;
    }


    /*
    |--------------------------------------------------------------------------
    | Documentos
    |--------------------------------------------------------------------------
    */

    .product-documents {
        gap: 8px;
    }

    .product-document {
        gap: 10px;

        min-height: 66px;
        padding: 11px;

        border-radius: 12px;
    }

    .product-document__icon {
        width: 38px;
        height: 38px;

        border-radius: 10px;
    }

    .product-document__icon svg {
        width: 18px;
        height: 18px;
    }

    .product-document__title {
        font-size: 12px;
    }

    .product-document__meta {
        margin-top: 3px;

        font-size: 9px;
    }


    /*
    |--------------------------------------------------------------------------
    | Productos relacionados
    |--------------------------------------------------------------------------
    */

    .related-products {
        padding: 48px 0 58px;
    }

    .related-products__heading {
        gap: 14px;

        margin-bottom: 23px;
    }

    .related-products__title {
        font-size: 28px;
    }

    .related-products__heading .btn {
        width: 100%;
    }

    .related-products__grid {
        grid-auto-columns: minmax(245px, 86vw);
        gap: 11px;

        padding-bottom: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | Lightbox
    |--------------------------------------------------------------------------
    */

    .product-lightbox__content {
        width: calc(100vw - 18px);
        max-height: 92vh;
        padding: 12px;

        border-radius: 17px;
    }

    .product-lightbox__image {
        max-height: 86vh;
    }

    .product-lightbox__close {
        top: 9px;
        right: 9px;

        width: 38px;
        height: 38px;
    }
}

/*
|--------------------------------------------------------------------------
| Reduced motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    .product-gallery__image,
    .product-gallery__zoom,
    .product-gallery__thumb,
    .product-document,
    .product-tabs__button,
    .product-lightbox,
    .product-lightbox__close {
        transition: none;
    }

    .product-gallery__zoom:hover,
    .product-gallery__thumb:hover,
    .product-document:hover,
    .product-lightbox__close:hover {
        transform: none;
    }
}