/* ============================================================
   PRODUCTO & ALQUILER — Unified Stylesheet
   Sonido Norte © 2026
   Used by: producto.php, alquiler/ landing, product components
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
    --sn-accent: #000;
    --sn-price: #cc222a;
    --sn-soft: #fbfbfb;
    --sn-border: rgba(0, 0, 0, 0.06);
    --sn-success: #16a34a;
    --sn-glass: rgba(255, 255, 255, 0.8);
}

/* --- PRODUCT PAGE LAYOUT --- */
.product-card-wrap {
    background: #fff;
    border-radius: 40px;
    border: 1px solid var(--sn-border);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.03);
    margin-top: 40px;
}

@media (max-width: 991px) {
    .product-card-wrap { border-radius: 20px; }
}

/* --- STOCK BADGE --- */
.sn-badge-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #16a34a;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* --- CONFIG LABEL (shared by all configurators) --- */
.config-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
    margin-bottom: 12px;
}

/* --- SMART OPTION BUTTONS (stage height, etc.) --- */
.smart-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 12px 8px;
    background: #f8fafc;
    border: 2px solid #eee;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .15s;
    color: #333;
}
.smart-opt small {
    font-size: 0.6rem;
    font-weight: 600;
    color: #999;
}
.smart-opt:hover { border-color: #ccc; background: #f1f5f9; }
.smart-opt.active {
    border-color: #000;
    background: #000;
    color: #fff;
}
.smart-opt.active small { color: rgba(255,255,255,.6); }

/* --- TRUSS OPTION BUTTONS --- */
.truss-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 24px;
    background: #f8fafc;
    border: 2px solid #eee;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all .15s;
    color: #333;
}
.truss-opt small {
    font-size: 0.6rem;
    font-weight: 600;
    color: #999;
}
.truss-opt:hover { border-color: #ccc; }
.truss-opt.active {
    border-color: #000;
    background: #000;
    color: #fff;
}
.truss-opt.active small { color: rgba(255,255,255,.6); }

/* --- QTY BADGE (truss segments) --- */
.qty-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #eee;
    border-radius: 14px;
}
.sn-input-qty {
    width: 52px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 6px;
    font-weight: 800;
    font-size: 0.85rem;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}
.sn-input-qty::-webkit-outer-spin-button,
.sn-input-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sn-input-qty:focus { outline: none; border-color: #000; }

/* --- EXTRA CHECKBOXES (carpet, skirt, stairs) --- */
.extra-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    font-size: 0.85rem;
    font-weight: 600;
}
.extra-check:hover { border-color: #ccc; }
.extra-check.active {
    border-color: #000;
    background: #f8fafc;
}

/* --- BREAKDOWN CARD (desglose tarima) --- */
.breakdown-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

/* --- ACCORDION (product description/specs) --- */
.sn-accordion { margin-top: 20px; }
.sn-accordion-item { border-bottom: 1px solid var(--sn-border); }
.sn-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    user-select: none;
}
.sn-accordion-header h3 {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.1em;
}
.sn-accordion-icon {
    transition: transform .25s;
    font-size: 0.8rem;
    color: #999;
}
.sn-accordion-icon.rotate { transform: rotate(180deg); }
.sn-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s;
    padding: 0;
}
.sn-accordion-content.active {
    max-height: 600px;
    padding-bottom: 20px;
}

/* --- PRODUCT GALLERY THUMBNAILS --- */
.product-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.product-thumb {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    border: 2px solid #eee;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}
.product-thumb:hover { transform: translateY(-2px); border-color: #ccc; }
.product-thumb.active { border-color: #000; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* --- STICKY MOBILE CTA --- */
.sticky-cta-mobile {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 20px;
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}
@media (max-width: 991px) {
    .sticky-cta-mobile { display: flex; }
}

/* --- RELATED PRODUCTS --- */
.related-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: left;
}
.hover-up { transition: transform .2s, box-shadow .2s; }
.hover-up:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.06); }

/* --- COLOR BUTTON (stage carpet) --- */
.btn-color {
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    border: none;
    padding: 0;
}
.btn-color.active {
    box-shadow: 0 0 0 2px #000 !important;
    transform: scale(1.15);
}

/* --- DIMENSION CONTROLS (stage) --- */
.dimension-control {
    background: #f8fafc;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    flex: 1;
}
.dim-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: #000;
    display: block;
    margin: 8px 0;
}
.btn-dim {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #000;
    color: #fff;
    font-weight: 900;
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform .1s;
}
.btn-dim:hover { transform: scale(1.1); }
.btn-dim:active { transform: scale(0.95); }

/* --- STAGE PREVIEW (3D grid) --- */
#stagePreview {
    background: #f1f5f9;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    min-height: 400px;
    perspective: 2000px;
    position: relative;
    overflow: hidden;
}
.stage-grid {
    display: grid;
    gap: 4px;
    transform: rotateX(45deg) rotateZ(-15deg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 4px;
}
.v-piece {
    background: #222;
    border: 1px solid #444;
    border-radius: 3px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.1);
    font-size: 0.6rem;
    font-weight: 900;
}
.v-piece-2x1 { grid-column: span 2; grid-row: span 1; background: #1a1a1a; }
.v-piece-1x2 { grid-column: span 1; grid-row: span 2; background: #1a1a1a; }
.v-piece-1x1 { grid-column: span 1; grid-row: span 1; background: #2a2a2a; }

/* --- RENTAL STATUS BAR --- */
.rental-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    margin-bottom: 20px;
}
.rental-dates-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0369a1;
}
.rental-dates-info i { font-size: 1rem; }
.rental-day-pill {
    background: #000;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* --- PRODUCT TITLE & BRAND --- */
.product-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 6px;
    line-height: 1.1;
    color: #000;
}
.product-brand {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #94a3b8;
    margin-bottom: 10px;
}

/* --- CONFIGURABLE AREA --- */
.config-area {
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 35px;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 24px;
}

/* --- RESPONSIVE: MOBILE --- */
@media (max-width: 991px) {
    .product-title { font-size: 1.8rem; }
    .rental-status-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
    .rental-dates-info { font-size: 0.65rem; }
    .col-lg-6[style*="padding:60px"] { padding: 30px !important; }
}
@media (max-width: 576px) {
    .product-title { font-size: 1.5rem; }
    .product-thumbnails { gap: 6px; }
    .product-thumb { width: 50px; height: 50px; border-radius: 8px; }
}
