/* ============================================================
   BARRACA CARMELA — Product Detail Page (producto.css)
   ============================================================ */

/* ─────────────────────────────────────────
   FONTS
   ───────────────────────────────────────── */
@font-face {
    font-family: roboto;
    src: url('/fonts/Roboto-Light.eot');
    src: url('/fonts/Roboto-Light.eot?#iefix') format('embedded-opentype'),
         url('/fonts/Roboto-Light.ttf') format('truetype');
}
@font-face {
    font-family: Boldy;
    src: url('/fonts/bold.eot');
    src: url('/fonts/bold.eot?#iefix') format('embedded-opentype'),
         url('/fonts/bold.ttf') format('truetype');
}
@font-face {
    font-family: OratorSTD;
    src: url('/fonts/OratorStd.otf') format('opentype');
}

/* ─────────────────────────────────────────
   PAGE WRAPPER
   ───────────────────────────────────────── */
.pdp {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 80px;
    font-family: var(--font-ui, roboto, sans-serif);
    color: var(--c-text, #334155);
    box-sizing: border-box;
}

/* ─────────────────────────────────────────
   BREADCRUMB
   ───────────────────────────────────────── */
.pdp__breadcrumb,
.vista_producto .producto_ubicacion {
    font-family: OratorSTD, sans-serif;
    font-size: 12px;
    color: #64748b;
    display: block;
    margin-bottom: 20px;
}
.pdp__breadcrumb a,
.vista_produto .producto_ubicacion a {
    color: #64748b;
    text-decoration: none;
}
.pdp__breadcrumb a:hover,
.vista_produto .producto_ubicacion a:hover {
    color: var(--c-orange, #e8530e);
}

/* ─────────────────────────────────────────
   HERO: 2-COLUMN GRID
   ───────────────────────────────────────── */
.pdp__hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 56px;
}

/* ─────────────────────────────────────────
   GALLERY
   ───────────────────────────────────────── */
.pdp__gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;   /* prevent grid item from growing beyond its 1fr column */
}

/* Thumbnail strip */
.pdp__thumbstrip,
.contenedor_thumbs {
    position: relative;
    width: 100%;
    float: none;
    height: auto;
    overflow: hidden; /* clip thumb overflow so it can't widen the page */
}
.contenedor_thumbs > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.contenedor_thumbs > ul::-webkit-scrollbar { display: none; }

.contenedor_thumbs ul li {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s;
}
.contenedor_thumbs ul li.thumb_activo,
.contenedor_thumbs ul li:hover {
    border-color: var(--c-orange, #e8530e);
    padding: 0;
}
.contenedor_thumbs ul li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Scroll arrows (left/right for horizontal strip) */
.btn_scroll_imagenes {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 28px;
    height: 40px;
    background-color: rgba(255,255,255,0.9);
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
}
.contenedor_thumbs:hover .btn_scroll_imagenes { display: block; }
.btn_scroll_imagenes.btn_superior { left: 0; }
.btn_scroll_imagenes.btn_inferior { right: 0; }

/* Main image stage */
.pdp__gallery-stage {
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1 / 1;
    position: relative;
}
.frame_imagen {
    width: 100%;
    height: 100%;
    float: none;
    position: relative;
    margin: 0;
    padding: 0;
    max-width: none;
    max-height: none;
}
.frame_imagen > a {
    display: block;
    width: 100%;
    height: 100%;
}
.frame_imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    display: block;
}
.frame_imagen img:hover { cursor: zoom-in; }

/* ─────────────────────────────────────────
   INFO PANEL (sticky)
   ───────────────────────────────────────── */
.pdp__info {
    position: sticky;
    top: 120px; /* 76px header + 36px topline + 8px buffer */
}

/* Availability badge */
.pdp__availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.pdp__availability::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.pdp__availability--available   { background: #dcfce7; color: #15803d; }
.pdp__availability--unavailable { background: #fee2e2; color: #dc2626; }
.pdp__availability--confirm     { background: #fef9c3; color: #ca8a04; }
.pdp__availability--order       { background: #dbeafe; color: #1d4ed8; }

/* Title */
.pdp__title {
    font-family: var(--font-display, Boldy, 'Arial Black', sans-serif);
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--c-dark, #0f172a);
    margin: 0 0 12px;
    line-height: 1.25;
    font-weight: normal;
}

/* Meta row: SKU + stars + review count */
.pdp__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.pdp__sku,
.codigo_producto_titulo {
    font-family: var(--font-ui, roboto, sans-serif);
    font-size: 13px;
    color: var(--c-muted, #64748b);
    font-weight: 400;
}
.pdp__review-link {
    font-size: 13px;
    color: var(--c-orange, #e8530e);
    text-decoration: none;
    transition: opacity 0.15s;
}
.pdp__review-link:hover { opacity: 0.75; }

/* Short description */
.pdp__desc,
p.descripcion_producto {
    font-size: 15px;
    color: var(--c-text, #334155);
    line-height: 1.65;
    margin: 0 0 20px;
}

/* ─── PRICE BLOCK ─── */
.pdp__price-block,
div.contenedor_comprar {
    display: block;
    margin-bottom: 20px;
}
div.contenedor_comprar span {
    vertical-align: baseline;
    line-height: normal;
}

/* Variant pills */
.pdp__variants,
div.variantes {
    margin-bottom: 16px;
}
.variantes > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.variantes > ul > li {
    border: 2px solid var(--c-border, #e2e8f0);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    position: relative;
    background: #fff;
    background-image: none;
    display: inline-block;
    vertical-align: top;
    transition: border-color 0.15s;
}
.variantes > ul > li:hover {
    border-color: var(--c-navy, #1e3a5f);
    opacity: 1;
    cursor: pointer;
}
.nombre_attr {
    font-size: 11px;
    color: var(--c-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 2px;
}
.valor_variante {
    font-family: var(--font-ui, roboto, sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--c-dark, #0f172a);
    min-height: auto;
    display: block;
}
.variante_selector {
    display: none;
    background-color: #fff;
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    left: 0;
    top: calc(100% + 4px);
    position: absolute;
    z-index: 30;
    min-width: 100%;
    padding: 0;
}
.variantes > ul > li:hover .variante_selector { display: block; }
.variante_selector > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    list-style: none;
    margin: 0;
}
.variante_selector > ul > li {
    display: block;
}
.variante_selector .valor_variante {
    padding: 6px 12px;
    border: 2px solid var(--c-border, #e2e8f0);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    font-weight: 600;
    transition: border-color 0.15s;
    padding-right: 12px;
}
.variante_selector .valor_variante:hover {
    border-color: var(--c-orange, #e8530e);
}

/* Discount banner */
.pdp__discount-banner,
.contenedor_precio_antiguo {
    background: #fff8f5;
    border: 1px solid #fde8dc;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pdp__discount-banner > span,
.contenedor_precio_antiguo > span {
    vertical-align: middle !important;
}
.pdp__discount-pct,
span.descuento_precio {
    background: var(--c-orange, #e8530e);
    color: #fff;
    border-radius: 100px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: inline-block;
    background-image: none;
}
.pdp__price-was,
span.precio_base {
    text-decoration: line-through;
    color: var(--c-muted, #64748b);
    font-size: 16px;
    font-family: var(--font-ui, roboto, sans-serif);
    font-weight: 400;
}
.pdp__price-expires,
span.texto_fecha_limite {
    font-size: 12px;
    color: var(--c-muted, #64748b);
    padding-left: 0;
}

/* Price row */
.pdp__price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}
.pdp__price,
span.detalles_articulo_precio {
    font-family: var(--font-display, Boldy, sans-serif);
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: normal;
    color: var(--c-dark, #0f172a);
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.detalles_articulo_precio.detalles_articulo_precio_viejo {
    color: #dc2626;
    text-decoration: line-through;
    font-size: 18px;
}
.pdp__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Add to cart */
.add2cart { display: inline-block; }
.add2cart > input {
    width: 52px;
    height: 44px;
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 6px;
    font-size: 18px;
    text-align: center;
    color: var(--c-text, #334155);
    padding: 0;
    margin: 0;
    background: #fff;
}
.pdp__btn-cart,
.boton_agregar_carrito {
    background: var(--c-orange, #e8530e);
    color: #fff;
    border: none;
    height: 44px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font-ui, roboto, sans-serif);
    letter-spacing: 0.02em;
    margin: 0;
    white-space: nowrap;
}
.boton_agregar_carrito:hover,
.pdp__btn-cart:hover { background: var(--c-orange-h, #c44409); }
.boton_agregar_carrito:disabled,
.pdp__btn-cart:disabled { opacity: 0.55; cursor: not-allowed; }

/* Cash discount note */
.pdp__cash-note,
div.descuentos_especiales {
    background-image: url('/imgnew/icono-descuentos.jpg');
    background-repeat: no-repeat;
    background-position: 0 50%;
    padding-left: 57px;
    margin-top: 10px;
    border-top: 1px dashed var(--c-border, #e2e8f0);
    font-size: 13px;
    box-sizing: border-box;
    color: #776500;
    max-width: 380px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

/* Price on request */
.pdp__price-on-request,
.precio_a_convenir_container {
    margin-top: 10px;
    padding: 16px;
    background: #fff8f5;
    border-radius: 8px;
    border: 1px solid #fde8dc;
}
.precio_a_convenir_titulo {
    background: var(--c-orange, #e8530e);
    color: #fff;
    font-family: var(--font-display, Boldy, sans-serif);
    font-size: 15px;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 4px;
    display: inline-block;
}
.precio_a_convenir_container > p {
    font-size: 14px;
    margin-top: 10px;
    padding: 0;
    color: var(--c-text, #334155);
}

/* Price range */
.rango_precios {
    color: var(--c-muted, #64748b);
    display: block;
    font-family: var(--font-display, Boldy, sans-serif);
    padding: 6px 0 0;
}

/* Service gratuito */
.pdp__service-badge,
.service_de_por_vida {
    background: var(--c-dark, #0f172a);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
    border: none;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.pdp__service-badge::before {
    content: '★';
    font-size: 28px;
    color: var(--c-orange, #e8530e);
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}
.service_heading {
    font-size: 18px;
    color: #fff;
    margin: 0 0 4px;
    font-family: var(--font-display, Boldy, sans-serif);
    font-weight: normal;
    padding: 0;
}
.service_heading span {
    color: var(--c-orange, #e8530e);
}
.service_desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    font-family: var(--font-ui, roboto, sans-serif);
    padding: 0;
    line-height: 1.6;
}
.service_desc a { color: #cbd5e1; }

/* Payment methods */
.pdp__payments {
    border-top: 1px solid var(--c-border, #e2e8f0);
    padding-top: 16px;
    margin-top: 16px;
}
.pdp__payment-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 10px 14px;
    color: #0369a1;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.pdp__payment-notice::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230369a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Contact shortcuts */
.pdp__contact-shortcuts {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.pdp__btn-consult {
    border: 2px solid var(--c-navy, #1e3a5f);
    color: var(--c-navy, #1e3a5f);
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    display: inline-block;
    font-family: var(--font-ui, roboto, sans-serif);
}
.pdp__btn-consult:hover { background: var(--c-navy, #1e3a5f); color: #fff; }

.pdp__btn-whatsapp {
    background: #25d366;
    color: #fff;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background 0.15s;
    font-family: var(--font-ui, roboto, sans-serif);
}
.pdp__btn-whatsapp::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('/imgnew/whatsapp.png') center / contain no-repeat;
    flex-shrink: 0;
}
.pdp__btn-whatsapp:hover { background: #1ebe5d; }

/* ─────────────────────────────────────────
   MOBILE STICKY CTA BAR
   ───────────────────────────────────────── */
.pdp__mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-top: 2px solid var(--c-orange, #e8530e);
    padding: 10px 16px;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
}
.pdp__mobile-price {
    flex: 1;
    font-size: 22px;
    font-weight: 700;
    color: var(--c-dark, #0f172a);
    font-family: var(--font-display, Boldy, sans-serif);
}
.pdp__mobile-btn {
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   CONTENT SECTIONS (NO TABS)
   ───────────────────────────────────────── */
.pdp__details-layout {
    margin-top: 20px;
    border-top: 3px solid var(--c-orange, #e8530e);
    padding-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.pdp__section-card {
    background: #fff;
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.pdp__section-card--full {
    grid-column: 1 / -1;
}
.pdp__section-card .pdp__section-heading {
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .pdp__details-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .pdp__section-card {
        padding: 18px;
    }
}
/* ─────────────────────────────────────────
   SPECS LIST
   ───────────────────────────────────────── */
.pdp__specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.pdp__specs-list > li {
    padding: 10px 14px;
    border-bottom: 1px dashed var(--c-border, #e2e8f0);
    font-size: 15px;
    color: var(--c-text, #334155);
    display: flex;
    gap: 8px;
    line-height: 1.5;
}
.pdp__specs-list > li > span {
    color: var(--c-muted, #64748b);
    flex: 0 0 auto;
    min-width: 130px;
    font-size: 13px;
    padding-top: 1px;
}

/* ─────────────────────────────────────────
   LONG DESCRIPTION
   ───────────────────────────────────────── */
.pdp__long-desc,
.contenedor_descripcion_adicional {
    line-height: 1.7;
    color: var(--c-text, #334155);
    font-size: 15px;
}
.contenedor_descripcion_adicional > img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
    float: none;
    object-fit: contain;
}
.pdp__desc-image-link {
    display: inline-block;
    max-width: 100%;
}
.pdp__desc-image-link > img {
    cursor: zoom-in;
}
.contenedor_descripcion_adicional > h2 {
    width: auto;
    display: table;
    clear: both;
    font-family: var(--font-display, Boldy, sans-serif);
    font-size: 18px;
    color: var(--c-dark, #0f172a);
}
.contenedor_descripcion_adicional a {
    color: var(--c-orange, #e8530e);
}
.contenedor_descripcion_adicional > iframe {
    display: block;
    margin: 10px;
}
.videoWrapper {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
}
.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.contenedor_descripcion_adicional ul {
    list-style-image: url('/imgnew/arrow2.png');
}
.contenedor_descripcion_adicional ul.ordered_ul {
    counter-reset: custom-counter;
    list-style: none;
    padding: 0;
}
.contenedor_descripcion_adicional ul.ordered_ul li::before {
    content: counter(custom-counter);
    counter-increment: custom-counter;
    font-family: var(--font-display, Boldy, sans-serif);
    font-size: 20px;
    margin-top: 20px;
    display: inline-block;
    background-color: var(--c-orange, #e8530e);
    width: 30px;
    color: #fff;
    text-align: center;
}

/* ─────────────────────────────────────────
   REVIEW SUMMARY + STAR BARS
   ───────────────────────────────────────── */
.pdp__review-summary {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    background: var(--c-surface, #f8fafc);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
    border: 1px solid var(--c-border, #e2e8f0);
}
.pdp__review-avg {
    text-align: center;
    min-width: 110px;
    flex-shrink: 0;
}
.pdp__review-avg-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--c-dark, #0f172a);
    display: block;
    line-height: 1;
    font-family: var(--font-display, Boldy, sans-serif);
}
.pdp__stars-label {
    display: block;
    font-size: 13px;
    color: var(--c-muted, #64748b);
    margin-top: 4px;
}
.pdp__review-count-label {
    display: block;
    font-size: 12px;
    color: var(--c-muted, #64748b);
    margin-top: 6px;
}
.pdp__review-bars { flex: 1; }
.pdp__bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.pdp__bar-label {
    width: 36px;
    font-size: 13px;
    color: var(--c-muted, #64748b);
    text-align: right;
    flex-shrink: 0;
    font-weight: 600;
}
.pdp__bar-track {
    flex: 1;
    height: 10px;
    background: var(--c-border, #e2e8f0);
    border-radius: 5px;
    overflow: hidden;
}
.pdp__bar-fill {
    height: 100%;
    background: var(--c-orange, #e8530e);
    border-radius: 5px;
    transition: width 0.5s ease 0.15s;
}
.pdp__bar-pct {
    width: 36px;
    font-size: 12px;
    color: var(--c-muted, #64748b);
    flex-shrink: 0;
}

/* Rating stars sprite */
.rating_producto {
    display: inline-block;
    height: 20px;
    background-image: url('/images/star.jpg');
    background-repeat: no-repeat;
    background-size: auto 100%;
    vertical-align: middle;
}
.rating_producto.rating-1 { width: 31px; }
.rating_producto.rating-2 { width: 61px; }
.rating_producto.rating-3 { width: 92px; }
.rating_producto.rating-4 { width: 123px; }
.rating_producto.rating-5 { width: 154px; }

/* ─────────────────────────────────────────
   REVIEW CARDS
   ───────────────────────────────────────── */
.comentarios_clientes_container { margin-top: 8px; }

.pdp__review-card,
.comentario_cliente {
    border-left: 3px solid var(--c-orange, #e8530e);
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--c-surface, #f8fafc);
    border-radius: 0 8px 8px 0;
}
.pdp__review-title,
.review_title {
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    color: var(--c-dark, #0f172a);
    font-family: var(--font-display, Boldy, sans-serif);
    font-style: normal;
}
.pdp__review-author,
.review_author {
    font-size: 11px;
    color: var(--c-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: block;
    margin-bottom: 8px;
}
.pdp__review-text,
.review_cliente_texto {
    font-size: 15px;
    color: var(--c-text, #334155);
    margin: 8px 0 0;
    line-height: 1.65;
    padding: 0;
}

/* ─────────────────────────────────────────
   WARRANTY + SHIPPING PANELS
   ───────────────────────────────────────── */
.pdp__warranty-text,
.pdp__shipping-info {
    font-size: 15px;
    color: var(--c-text, #334155);
    line-height: 1.7;
}
.pdp__warranty-text a,
.pdp__shipping-info a {
    color: var(--c-orange, #e8530e);
}

/* ─────────────────────────────────────────
   Q&A PANEL
   ───────────────────────────────────────── */
.contenedor-preguntas-clientes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contenedor-preguntas-clientes ul li {
    border-top: 1px solid var(--c-border, #e2e8f0);
    position: relative;
    padding: 20px 0;
}
.respuesta_a_pregunta,
.pregunta_realizada {
    font-size: 14px;
    padding-left: 40px;
    background-position: 0 50%;
    min-height: 36px;
    background-repeat: no-repeat;
    display: block;
    line-height: 1.6;
}
.pregunta_realizada {
    background-image: url('/images/q.jpg');
    color: var(--c-dark, #0f172a);
    margin-bottom: 10px;
    font-weight: 600;
}
.respuesta_a_pregunta {
    background-image: url('/images/a.jpg');
    color: var(--c-text, #334155);
}
.antiguedad_de_pregunta {
    float: right;
    font-size: 11px;
    color: var(--c-muted, #64748b);
    font-weight: 600;
    position: static;
    margin: 0 0 6px 0;
    background: none;
    width: auto;
    text-align: right;
    left: auto;
    margin-left: 0;
    display: block;
}

/* ─────────────────────────────────────────
   SECTION HEADINGS
   ───────────────────────────────────────── */
.pdp__section-heading {
    font-family: var(--font-display, Boldy, sans-serif);
    font-size: 22px;
    color: var(--c-dark, #0f172a);
    border-left: 4px solid var(--c-orange, #e8530e);
    padding-left: 14px;
    margin: 0 0 24px;
    font-weight: normal;
    line-height: 1.3;
}

/* ─────────────────────────────────────────
   ACCESSORIES
   ───────────────────────────────────────── */
.pdp__accessories {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--c-border, #e2e8f0);
}
.pdp__accessories-grid,
.detalle_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    overflow: visible;
    margin-bottom: 10px;
}
.pdp__accessory-card,
div.accesorio_container {
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 10px;
    padding: 16px;
    background: #fff;
    overflow: hidden;
}
.accesorio_container h3 {
    margin: 0 0 10px;
    text-align: center;
    padding: 0;
}
.accesorio_container h3 a {
    font-family: var(--font-ui, roboto, sans-serif);
    color: var(--c-navy, #1e3a5f);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.accesorio_container h3 a:hover { color: var(--c-orange, #e8530e); }

/* Override detalle_elemento inside accessories */
.pdp__accessory-card .detalle_elemento,
div.accesorio_container div.detalle_elemento {
    display: block;
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
    border: none;
    padding: 0;
}
.pdp__accessory-desc,
div.accesorio_descripcion {
    margin-top: 10px;
    font-size: 14px;
    color: var(--c-text, #334155);
    line-height: 1.5;
}
.pdp__accessory-desc > p { margin: 0; }
.pdp__included-badge,
span.mensaje_accesorio_incluido {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    margin-top: 8px;
    background-image: none;
    height: auto;
}

/* ─────────────────────────────────────────
   CONTACT FORM
   ───────────────────────────────────────── */
.pdp__contact {
    margin-top: 48px;
    padding: 28px 32px;
    background: var(--c-surface, #f8fafc);
    border-radius: 12px;
    border: 1px solid var(--c-border, #e2e8f0);
}
.formulario_contacto_producto,
.pdp__contact-form {
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}
/* textarea must be direct child of .formulario_contacto_producto */
.formulario_contacto_produto > textarea,
.formulario_contacto_produto textarea,
.formulario_contacto_producto > textarea,
.formulario_contacto_producto textarea {
    border: none;
    font-size: 15px;
    font-family: var(--font-ui, roboto, sans-serif);
    resize: vertical;
    min-height: 90px;
    outline: none;
    color: var(--c-text, #334155);
    width: 100%;
}
.pdp__contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.pdp__contact-fields input,
.formulario_contacto_producto input[type=text],
.formulario_contacto_producto input[type=email] {
    padding: 10px 14px;
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-ui, roboto, sans-serif);
    color: var(--c-text, #334155);
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}
.pdp__contact-fields input:focus,
.formulario_contacto_producto input:focus {
    border-color: var(--c-orange, #e8530e);
    outline: none;
}
.pdp__contact-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.pdp__btn-send {
    background: var(--c-navy, #1e3a5f);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--font-ui, roboto, sans-serif);
}
.pdp__btn-send:hover { background: var(--c-dark, #0f172a); }
.pdp__btn-whatsapp--form {
    background: #25d366;
    color: #fff;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background 0.15s;
    font-family: var(--font-ui, roboto, sans-serif);
}
.pdp__btn-whatsapp--form::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('/imgnew/whatsapp.png') center / contain no-repeat;
    flex-shrink: 0;
}
.pdp__btn-whatsapp--form:hover { background: #1ebe5d; }

/* ─────────────────────────────────────────
   PRODUCT LIST / GRID (used by imprimir())
   ───────────────────────────────────────── */
.detalle_elemento {
    background-color: #fff;
    display: inline-block;
    vertical-align: top;
    margin: 0;
    position: relative;
    width: 215px;
    padding: 10px 0;
    border-width: 1px 1px 0 0;
    border-color: var(--c-border, #e2e8f0);
    border-style: solid;
    height: 270px;
}
.detalle_elemento .nombre_producto {
    color: #535353;
    display: block;
    font-family: roboto, sans-serif;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}
.detalle_elemento .precio_producto {
    color: #393939;
    float: right;
    font-family: var(--font-display, Boldy, sans-serif);
    font-size: 14px;
    line-height: 30px;
    padding-right: 10px;
}
.detalle_elemento .codigo_producto {
    bottom: 3px;
    color: #909090;
    float: left;
    font-family: var(--font-display, Boldy, sans-serif);
    font-size: 13px;
    line-height: 30px;
    padding-left: 10px;
    text-transform: uppercase;
}
.detalle_elemento.elemento_cuadros .rating_producto {
    position: absolute;
    bottom: 10px;
    left: 8px;
    height: 12px;
    background-size: contain;
}
.precio_del_articulo {
    position: absolute;
    right: 0;
    top: 0;
    background-color: #61c2ff;
    color: #fff;
    font-size: 17px;
    border-radius: 0 0 0 20px;
    padding: 10px;
    font-family: roboto, sans-serif;
    letter-spacing: 1px;
    font-weight: bold;
}
.precio_producto .precio_a_convenir {
    color: #529ABB;
    font-size: 15px;
    font-weight: normal;
}

/* ─────────────────────────────────────────
   MISC / LEGACY COMPAT
   ───────────────────────────────────────── */
.cb { clear: both; height: 20px; }

p.highlight_paragraph {
    background-color: #fff9aa;
    padding: 10px;
}

.imageContainer { text-align: center; }
.imageContainer img { display: block; }
.imageContainer div {
    position: relative;
    display: inline-block;
    float: left;
}
.imageContainer span {
    color: #fff;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,.5);
}

/* ─────────────────────────────────────────
   SHIPPING WIDGET
   ───────────────────────────────────────── */
.pdp-ship-dest-link {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
    font-family: inherit;
    color: var(--c-orange, #e8530e);
    text-decoration: none;
    cursor: pointer;
}
.pdp-ship-dest-link:hover { text-decoration: underline; }

.pdp-ship-location {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--c-text, #334155);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pdp-ship-change {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-family: inherit;
    color: var(--c-orange, #e8530e);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.pdp-ship-change:hover { text-decoration: underline; }

.pdp-ship-spinner {
    font-size: 14px;
    color: var(--c-muted, #64748b);
    display: inline-block;
}
.pdp-ship-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--c-border, #e2e8f0);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
}
.pdp-ship-card:hover { border-color: var(--c-orange, #e8530e); }
.pdp-ship-card.selected {
    border-color: var(--c-orange, #e8530e);
    background: #fff8f5;
}
.pdp-ship-card input[type=radio] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--c-orange, #e8530e);
}
.pdp-ship-card-info { flex: 1; }
.pdp-ship-card-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--c-text, #334155);
}
.pdp-ship-card-sub {
    display: block;
    font-size: 12px;
    color: var(--c-muted, #64748b);
    margin-top: 2px;
}
.pdp-ship-card-cost {
    font-weight: 700;
    color: var(--c-orange, #e8530e);
    white-space: nowrap;
    font-size: 15px;
}
.pdp-ship-note {
    font-size: 14px;
    color: var(--c-muted, #64748b);
    margin: 0;
}

/* ─────────────────────────────────────────
   REGION PICKER MODAL
   ───────────────────────────────────────── */
.pdp-region-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp-region-modal[hidden] { display: none; }

.pdp-region-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.pdp-region-modal__box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}
.pdp-region-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--c-muted, #64748b);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.pdp-region-modal__close:hover { color: var(--c-dark, #0f172a); }

.pdp-region-modal__title {
    font-family: var(--font-display, Boldy, sans-serif);
    font-size: 18px;
    color: var(--c-dark, #0f172a);
    margin: 0 0 20px;
    font-weight: normal;
}
.pdp-region-modal__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}
.pdp-region-modal__group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.pdp-region-modal__group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-ui, roboto, sans-serif);
    color: var(--c-text, #334155);
    background: #fff;
    box-sizing: border-box;
}
.pdp-region-modal__group select:focus {
    border-color: var(--c-orange, #e8530e);
    outline: none;
}
.pdp-region-modal__confirm {
    width: 100%;
    background: var(--c-orange, #e8530e);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-ui, roboto, sans-serif);
    cursor: pointer;
    transition: background 0.15s;
}
.pdp-region-modal__confirm:hover:not(:disabled) { background: #c94200; }
.pdp-region-modal__confirm:disabled {
    background: var(--c-border, #e2e8f0);
    color: var(--c-muted, #64748b);
    cursor: not-allowed;
}

/* ─────────────────────────────────────────
   RESPONSIVE — TABLET (≤900px)
   ───────────────────────────────────────── */
@media only screen and (max-width: 900px) {
    .pdp {
        padding: 16px 16px 72px;
        width: 100%;
        box-sizing: border-box;
    }
    .pdp__hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .pdp__gallery-stage {
        max-height: 420px;
    }
    .pdp__info {
        position: static;
    }
    .pdp__specs-list {
        grid-template-columns: 1fr;
    }
    .pdp__review-summary {
        flex-direction: column;
        gap: 20px;
    }
    .pdp__review-avg { text-align: left; }
    .pdp__contact-fields {
        grid-template-columns: 1fr;
    }
    .contenedor_thumbs {
        display: block !important; /* override mobile.css hide rule */
    }
    .pdp__accessories-grid,
    .detalle_container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE (≤600px)
   ───────────────────────────────────────── */
@media only screen and (max-width: 600px) {
    .pdp {
        padding: 12px 12px 88px;
    }
    .pdp__mobile-cta.pdp__mobile-cta--visible {
        display: flex;
    }
    .pdp__title {
        font-size: clamp(18px, 5vw, 24px);
    }
    .pdp__price-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .pdp__contact-shortcuts {
        flex-direction: column;
    }
    .pdp__btn-consult,
    .pdp__btn-whatsapp {
        text-align: center;
        justify-content: center;
        width: 100%;
    }
    .pdp__review-avg-number {
        font-size: 40px;
    }
    .pdp__contact-actions {
        flex-direction: column;
    }
    .pdp__btn-send,
    .pdp__btn-whatsapp--form {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .pdp__review-summary {
        padding: 16px;
    }
    .pdp__contact {
        padding: 20px 16px;
    }
    .pdp__price,
    span.detalles_articulo_precio {
        font-size: clamp(22px, 7vw, 30px);
    }
    .pdp__actions {
        flex-wrap: wrap;
    }
    .boton_agregar_carrito {
        flex: 1;
    }
    .frame_imagen {
        min-width: 100%;
    }
    .pdp__gallery-stage {
        max-height: 70vw;
    }
    .pdp-region-modal__box {
        margin: 0 16px;
        padding: 24px 16px 20px;
    }
}
