/* ============================================================
   VARIABLES
============================================================ */

.armonia-product-page {
    --armonia-primary: #4e869f;
    --armonia-primary-dark: #315f73;
    --armonia-primary-soft: #edf4f6;

    --armonia-text: #202629;
    --armonia-text-soft: #617078;
    --armonia-border: #d9e2e6;
    --armonia-border-soft: #e8eef0;
    --armonia-white: #ffffff;

    --armonia-success: #2d9466;
    --armonia-success-soft: #eaf7f1;

    --armonia-danger: #bc3f3f;

    --armonia-radius: 14px;
    --armonia-radius-small: 9px;

    --armonia-shadow:
        0 3px 14px rgba(28, 52, 63, .06);

    width: 100%;

    color: var(--armonia-text);

    background: transparent;

    font-family:
        var(--font-family-base, "Carlito", Arial, sans-serif);
}

/* ============================================================
   TIPOGRAFÍA CORPORATIVA
============================================================ */

.armonia-product-page h1,
.armonia-product-page h2,
.armonia-product-page h3,
.armonia-product-page h4,
.armonia-product-page h5,
.armonia-product-page h6,
.armonia-product-title,
.armonia-section-title,
.armonia-related-heading h2,
.armonia-seo-content h2,
.armonia-guarantee__title,
.armonia-delivery__title,
.armonia-question-box__title {
    font-family:
        var(--font-family-base, "Carlito", Arial, sans-serif) !important;
}

/* ============================================================
   RESET INTERNO
============================================================ */
.armonia-product-short-description {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 20px;
    font-family: "Carlito", sans-serif;
    font-size: 15px;
    line-height: 1.35;
    color: #333;
}

.armonia-product-short-description svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    flex: 0 0 22px;
    margin-top: 1px;
}

.armonia-product-short-description__content {
    flex: 1;
    min-width: 0;
}

.armonia-product-short-description__content > span {
    font-weight: 600;
    color: #315f73;
}

.armonia-product-short-description p {
    display: inline;
    margin: 0;
}

.armonia-product-short-description p + p {
    margin-left: 4px;
}

@media (max-width: 767px) {
    .armonia-product-short-description {
        font-size: 14px;
        gap: 7px;
    }

    .armonia-product-short-description svg {
        width: 20px;
        height: 20px;
        min-width: 20px;
        flex-basis: 20px;
    }
}

.armonia-product-page *,
.armonia-product-page *::before,
.armonia-product-page *::after {
    box-sizing: border-box;
}

.armonia-product-page img {
    max-width: 100%;
    display: block;
}

.armonia-product-page button,
.armonia-product-page input,
.armonia-product-page select,
.armonia-product-page textarea {
    font-family: inherit;
}

.armonia-product-page a {
    color: var(--armonia-primary);
    text-decoration: none;
}

.armonia-product-page a:hover {
    color: var(--armonia-primary-dark);
}

/* ============================================================
   CONTENEDOR
============================================================ */

.armonia-product-shell {
    width: 100%;
    margin: 0 auto;
}

/* ============================================================
   LAYOUT GLOBAL
============================================================ */

.armonia-product-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        410px;

    gap: 22px;

    align-items: start;

    width: 100%;
}

/* ============================================================
   COLUMNA IZQUIERDA
============================================================ */

.armonia-product-left {
    min-width: 0;
}

/* ============================================================
   COLUMNA DERECHA
============================================================ */

.armonia-product-right {
    min-width: 0;

    position: relative;

    align-self: stretch;
}

/* ============================================================
   GALERÍA
============================================================ */

.armonia-product-gallery {
    display: grid;

    grid-template-columns:
        100px
        minmax(0, 1fr);

    gap: 12px;

    min-width: 0;
}

/* ============================================================
   MINIATURAS
============================================================ */

.armonia-gallery-thumbs {
    display: flex;
    flex-direction: column;

    gap: 10px;

    max-height: 665px;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
}

.armonia-gallery-thumb {
    position: relative;

    width: 88px;
    height: 88px;

    flex: 0 0 88px;

    padding: 0;

    background: #fff;

    border: 2px solid transparent;
    border-radius: 12px;

    overflow: hidden;

    cursor: pointer;

    transition:
        border-color .2s ease,
        transform .2s ease,
        opacity .2s ease;
}

.armonia-gallery-thumb:hover {
    transform: translateY(-1px);
}

.armonia-gallery-thumb.is-active {
    border-color: var(--armonia-primary);
}

.armonia-gallery-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* ============================================================
   IMAGEN PRINCIPAL
============================================================ */

.armonia-gallery-stage {
    position: relative;
    background: #fff;
    border: 1px solid var(--armonia-border);
    border-radius: var(--armonia-radius);
    overflow: hidden;
}

.armonia-gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: opacity .2s ease;
}

/* ============================================================
   CONTADOR
============================================================ */

.armonia-gallery-counter {
    position: absolute;

    left: 16px;
    bottom: 16px;

    display: inline-flex;
    align-items: center;

    min-height: 30px;

    padding: 4px 11px;

    background: rgba(26, 31, 34, .82);

    color: #fff;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;

    z-index: 5;
}

/* ============================================================
   BOTONES GALERÍA
============================================================ */

.armonia-gallery-nav {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(28, 31, 33, .88);

    color: #fff;

    border: 0;
    border-radius: 10px;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;

    z-index: 5;
}

.armonia-gallery-nav:hover {
    background: var(--armonia-primary-dark);
}

.armonia-gallery-nav--prev {
    left: 14px;
}

.armonia-gallery-nav--next {
    right: 14px;
}

.armonia-gallery-nav svg {
    width: 20px;
    height: 20px;
}

/* ============================================================
   PANEL COMPRA STICKY
============================================================ */

.armonia-buy-card {
    position: sticky;

    top: 110px;

    z-index: 25;

    width: 100%;

    background: var(--armonia-white);

    border: 1px solid var(--armonia-border);
    border-radius: var(--armonia-radius);

    padding: 18px;
    margin-bottom: 20px;
    box-shadow: var(--armonia-shadow);
}

/* ============================================================
   ETIQUETA ENVÍO
============================================================ */

.armonia-shipping-label {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 15px;

    padding: 9px 11px;

    background: var(--armonia-success-soft);

    color: #276c50;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.armonia-shipping-label svg {
    width: 18px;
    height: 18px;

    flex: 0 0 auto;
}

/* ============================================================
   REFERENCIA
============================================================ */

.armonia-product-reference {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;

    margin-bottom: 8px;

    color: var(--armonia-text-soft);

    font-size: 13px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .02em;
}

.armonia-product-reference__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.armonia-product-reference strong {
    color: var(--armonia-text);
    font-weight: 700;
}

/* ============================================================
   TÍTULO
============================================================ */

.armonia-product-title {
    margin: 0px;
    color: var(--armonia-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

/* ============================================================
   PRECIO
============================================================ */

.armonia-price-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 6px;
}

.armonia-product-price {
    color: var(--armonia-text);

    font-size: 34px;
    font-weight: 800;

    line-height: 1;
}

/* ============================================================
   COMPARTIR
============================================================ */

.armonia-social-actions {
    display: flex;

    align-items: center;

    gap: 6px;
}

.armonia-icon-button {
    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    background: transparent;

    border: 0;
    border-radius: 8px;

    color: var(--armonia-text);

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.armonia-icon-button:hover {
    background: var(--armonia-primary-soft);

    color: var(--armonia-primary-dark);
}

.armonia-icon-button svg {
    width: 21px;
    height: 21px;
}

/* ============================================================
   IVA
============================================================ */

.armonia-tax-text {
    margin-bottom: 18px;

    color: #899398;

    font-size: 13px;
}

/* ============================================================
   GARANTÍA
============================================================ */

.armonia-guarantee {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;

    padding: 12px 0;
}

.armonia-guarantee__icon {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--armonia-primary-soft);

    color: var(--armonia-primary-dark);

    border: 1px solid #c9dce4;
    border-radius: 10px;
}

.armonia-guarantee__icon svg {
    width: 21px;
    height: 21px;
}

.armonia-guarantee__title {
    margin: 0 0 2px;

    font-size: 15px;
    font-weight: 700;
}

.armonia-guarantee__subtitle {
    margin: 0;

    color: var(--armonia-text-soft);

    font-size: 13px;
}

/* ============================================================
   ACCIONES
============================================================ */

.armonia-product-actions {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

/* ============================================================
   BOTONES
============================================================ */

.armonia-button {
    width: 100%;

    min-height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 10px 18px;

    border-radius: 10px;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.armonia-button:hover {
    transform: translateY(-1px);
}

.armonia-button svg {
    width: 20px;
    height: 20px;
}

.armonia-button--primary {
    background: var(--armonia-primary);

    color: #fff !important;

    border: 1px solid var(--armonia-primary);
}

.armonia-button--primary:hover {
    background: var(--armonia-primary-dark);

    border-color: var(--armonia-primary-dark);

    color: #fff !important;
}

.armonia-button--secondary {
    background: #fff;

    color: var(--armonia-primary-dark) !important;

    border: 1px solid var(--armonia-primary);
}

.armonia-button--secondary:hover {
    background: var(--armonia-primary-soft);

    color: var(--armonia-primary-dark) !important;
}

/* ============================================================
   WHATSAPP
============================================================ */

.armonia-button--whatsapp {
    background: #fff;

    color: var(--armonia-primary-dark) !important;

    border: 1px solid var(--armonia-primary);
}

.armonia-button--whatsapp:hover {
    background: var(--armonia-primary-soft);

    border-color: var(--armonia-primary-dark);

    color: var(--armonia-primary-dark) !important;
}

/* ============================================================
   DISPONIBILIDAD
============================================================ */

.armonia-stock {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 14px;

    font-size: 14px;
    font-weight: 600;
}

.armonia-stock__dot {
    width: 9px;
    height: 9px;

    flex: 0 0 9px;

    border-radius: 50%;

    background: var(--armonia-success);
}

.armonia-stock--out .armonia-stock__dot {
    background: var(--armonia-danger);
}

/* ============================================================
   ENVÍO
============================================================ */

.armonia-delivery {
    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid var(--armonia-border-soft);
}

.armonia-delivery__title {
    margin: 0 0 5px;

    font-size: 16px;
    font-weight: 700;
}

.armonia-delivery__text {
    margin: 0 0 15px;

    color: var(--armonia-text-soft);

    font-size: 14px;
}

/* ============================================================
   BENEFICIOS
============================================================ */

.armonia-benefits {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 8px;
}

.armonia-benefit {
    min-height: 105px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 10px 7px;

    text-align: center;

    border: 1px solid var(--armonia-border);

    border-radius: 10px;

    background: #fff;
}

.armonia-benefit svg {
    width: 22px;
    height: 22px;

    margin-bottom: 8px;

    color: var(--armonia-primary);
}

.armonia-benefit span {
    font-size: 12px;
    font-weight: 700;

    line-height: 1.15;
}

/* ============================================================
   CONTENIDO INFERIOR COLUMNA IZQUIERDA
============================================================ */

.armonia-product-details {
    margin-top: 22px;
}

/* ============================================================
   SECCIONES
============================================================ */

.armonia-section {
    margin-bottom: 20px;

    background: #fff;

    border: 1px solid var(--armonia-border);
    border-radius: var(--armonia-radius);

    box-shadow: var(--armonia-shadow);

    overflow: hidden;
}

.armonia-section-header {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 18px 20px;

    background: #fff;

    border: 0;

    color: var(--armonia-text);

    cursor: pointer;

    text-align: left;
}

.armonia-section-header__left {
    display: flex;

    align-items: center;

    gap: 10px;
}

.armonia-section-header svg {
    width: 21px;
    height: 21px;

    color: var(--armonia-primary-dark);
}

.armonia-section-title {
    margin: 0;

    font-size: 19px;
    font-weight: 700;
}

/* ============================================================
   ACORDEÓN ICONO
============================================================ */

.armonia-section-toggle {
    width: 20px;
    height: 20px;

    position: relative;

    flex: 0 0 20px;
}

.armonia-section-toggle::before,
.armonia-section-toggle::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    background: var(--armonia-text);

    transform: translate(-50%, -50%);

    transition: transform .2s ease;
}
.armonia-description__title {
    margin: 0 0 12px;
    color: var(--armonia-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}
.armonia-section-toggle::before {
    width: 12px;
    height: 1px;
}

.armonia-section-toggle::after {
    width: 1px;
    height: 12px;
}

.armonia-section.is-open
.armonia-section-toggle::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

/* ============================================================
   ACORDEÓN
============================================================ */

.armonia-section-body {
    display: none;
}

.armonia-section.is-open
.armonia-section-body {
    display: block;
}

/* ============================================================
   TABLA CARACTERÍSTICAS
============================================================ */

.armonia-spec-table {
    width: 100%;

    border-collapse: collapse;
}

.armonia-spec-table tr {
    border-top: 1px solid var(--armonia-border-soft);
}

.armonia-spec-table tr:nth-child(even) {
    background: #f7fafb;
}

.armonia-spec-table td {
    width: 50%;

    padding: 11px 20px;

    vertical-align: middle;

    font-size: 14px;
}

.armonia-spec-table td:first-child {
    color: var(--armonia-text-soft);
}

.armonia-spec-table td:last-child {
    color: var(--armonia-text);

    font-weight: 600;
}

.armonia-spec-value--link {
    color: var(--armonia-primary) !important;
}

/* ============================================================
   DESCRIPCIÓN
============================================================ */

.armonia-description {
    padding: 20px;

    color: var(--armonia-text-soft);

    font-size: 15px;

    line-height: 1.7;
}

.armonia-description p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   VEHÍCULO PROCEDENCIA
============================================================ */

.armonia-vehicle-origin {
    width: 100%;
    padding: 0 20px 20px;
}

/* ============================================================
   CONTACTO
============================================================ */

.armonia-question-box {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;

    padding: 17px 20px;

    background: #fff;

    border: 1px solid var(--armonia-border);
    border-radius: var(--armonia-radius);

    box-shadow: var(--armonia-shadow);
}

.armonia-question-box__content {
    min-width: 0;
}

.armonia-question-box__title {
    margin: 0 0 3px;

    font-size: 17px;
    font-weight: 700;
}

.armonia-question-box__text {
    margin: 0;

    color: var(--armonia-text-soft);

    font-size: 14px;
}

.armonia-question-box .armonia-button {
    width: auto;

    flex: 0 0 auto;
}

/* ============================================================
   RELACIONADOS
============================================================ */

.armonia-related-section {
    padding: 38px 0;

    background: transparent;
}

.armonia-related-heading {
    margin-bottom: 18px;
}

.armonia-related-heading h2 {
    margin: 0 0 5px;

    font-size: 26px;
    font-weight: 700;
}

.armonia-related-heading p {
    margin: 0;

    color: var(--armonia-text-soft);

    font-size: 14px;
}

.armonia-related-products {

    overflow: hidden;
}

.armonia-related-empty {
  

    color: var(--armonia-text-soft);

    text-align: center;
}

/* ============================================================
   SEO
============================================================ */

.armonia-seo-section {
    padding: 20px 0 60px;

    background: transparent;
}

.armonia-seo-content {
    max-width: 100%;
}

.armonia-seo-content h2 {
    margin: 0 0 18px;

    font-size: 26px;
    font-weight: 700;

    line-height: 1.25;
}

.armonia-seo-content p {
    margin: 0 0 14px;

    color: #45545b;

    font-size: 16px;

    line-height: 1.7;
}

/* ============================================================
   LIGHTBOX
============================================================ */

.armonia-lightbox {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(13, 21, 25, .92);
}

.armonia-lightbox.is-open {
    display: flex;
}

.armonia-lightbox__image {
    max-width: calc(100vw - 100px);
    max-height: calc(100vh - 80px);

    object-fit: contain;
}

.armonia-lightbox__close {
    position: absolute;

    right: 25px;
    top: 25px;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    background: #fff;

    color: #222;

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    font-size: 28px;

    line-height: 1;
}

/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1180px) {

    .armonia-product-layout {
        grid-template-columns:
            minmax(0, 1fr)
            360px;
    }
    .armonia-gallery-thumbs {
        max-height: 570px;
    }

}

/* ============================================================
   TABLET / MOBILE
============================================================ */

@media (max-width: 991px) {

    .armonia-product-shell {
        width: min(
            calc(100% - 28px),
            900px
        );
    }

    .armonia-product-layout {
        grid-template-columns: 1fr;
    }

    /*
     * ORDEN MOBILE / TABLET
     * 1. Galería
     * 2. Panel de compra
     * 3. Información inferior del producto
     *
     * display: contents permite que los hijos de la columna izquierda
     * participen directamente en el grid principal solo en móvil.
     */
    .armonia-product-left {
        display: contents;
    }

    .armonia-product-gallery {
        order: 1;
    }

    .armonia-product-right {
        order: 2;
        margin-top: 22px;
    }

    .armonia-product-details {
        order: 3;
        margin-top: 22px;
    }

    .armonia-buy-card {
        position: static;
    }

}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 767px) {

    .armonia-product-shell {
        width: 100%;
    }

    .armonia-product-gallery {
        display: flex;

        flex-direction: column-reverse;
    }

    .armonia-gallery-thumbs {
        width: 100%;

        max-height: none;

        flex-direction: row;

        overflow-x: auto;
        overflow-y: hidden;
    }

    .armonia-gallery-thumb {
        width: 72px;
        height: 72px;

        flex: 0 0 72px;
    }

    

    .armonia-buy-card {
        padding: 16px;
    }

    .armonia-product-title {
        font-size: 22px;
    }

    .armonia-product-price {
        font-size: 30px;
    }

    .armonia-benefits {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .armonia-spec-table td {
        padding: 10px 13px;
    }

    .armonia-question-box {
        flex-direction: column;

        align-items: stretch;
    }

    .armonia-question-box .armonia-button {
        width: 100%;
    }

}

/* ============================================================
   MOBILE PEQUEÑO
============================================================ */

@media (max-width: 480px) {

    .armonia-benefits {
        grid-template-columns: 1fr;
    }

    .armonia-benefit {
        min-height: auto;

        flex-direction: row;

        justify-content: flex-start;

        gap: 12px;

        text-align: left;
    }

    .armonia-benefit svg {
        margin-bottom: 0;
    }

    .armonia-spec-table td {
        display: block;

        width: 100%;
    }

    .armonia-spec-table td:first-child {
        padding-bottom: 2px;

        font-size: 12px;
        font-weight: 700;

        text-transform: uppercase;
    }

    .armonia-spec-table td:last-child {
        padding-top: 2px;
    }

}