@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ========================================
   CALCULADORA PUNTOKAT - CSS RESPONSIVE COMPLETO
   Versión adaptada al mockup: fucsia compacto
   ======================================== */

/* === ESTRUCTURA GENERAL === */
.calculadora-wrapper { 
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 40px 20px;
    background: #fff;
}

.calculadora-row {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
}

.calculadora-col-left {
    flex: 1 1 45%;
    min-width: 400px;
}

.calculadora-col-right {
    flex: 1 1 50%;
    min-width: 400px;
}

/* === GALERÍA - SIN SOMBRAS === */
.calculadora-gallery {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-main {
    position: relative;
    background: #fff;
}

.gallery-main img {
    width: 100%;
    height: 500px !important;
    object-fit: contain;
    display: block;
    background: #fff;
}

.gallery-thumbnails-wrapper {
    margin-top: 0;
    background: #fafafa;
    padding: 12px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0;
}

.gallery-thumbnails .thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.3s ease;
    background: #fff;
}

.gallery-thumbnails .thumb:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.gallery-thumbnails .thumb.active {
    opacity: 1;
    border-color: #415A77;
    border-width: 3px;
}

.gallery-thumbnails .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === COLORES === */
.calculadora-colores {
    margin-top: 30px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.calculadora-colores h3 {
    margin: 0 0 20px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.colores-swatches {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0;
    align-items: center;
}

.color-swatch {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    position: relative;
    background: #fff;
    border: 1px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


.color-swatch:hover {
    transform: scale(1.1);
    border-color: #999;
    z-index: 10;
}

.color-swatch.selected {
    width: 51px;
    height: 51px;
    border-color: #454545;
    border-width: 2px;
    transform: scale(1);
    z-index: 11;
}

.color-swatch.out-stock {
    opacity: 1;
    cursor: not-allowed;
}

.color-swatch.out-stock::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #d32f2f;
    transform: translateY(-50%) rotate(-45deg);
}

.color-swatch .swatch-inner {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* TOOLTIP */
.color-swatch::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 100%;
    transform: translateX(-50%) translateY(-5px);
    padding: 6px 12px;
    background: #333;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
    width: 180px;
    white-space: pre-line;
    text-align: center;
    line-height: 1.5;
}

.color-swatch:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.color-info,
div#color-info {
    margin-top: 0;
    padding-top: 16px;
    border-top: 0;
    font-size: 14px;
    font-weight: 400 !important;
    color: #333;
    line-height: 1.8;
}

#selected-color-name {
    font-weight: 400;
    color: #333;
    font-size: 14px;
}

#selected-color-stock {
    margin-left: 8px;
    font-weight: 400;
}

/* === COLUMNA DERECHA === */
.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin: 0 0 16px 0;
}

.product-sku {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    font-weight: 500;
}

.product-sku strong {
    color: #333;
    font-weight: 600;
}

.product-price-from {
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border: none;
}

.product-price-from.has-price {
    font-size: 18px;
    font-weight: 400;
}

.product-price-from span {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

span.woocommerce-Price-currencySymbol {
    font-size: 13px;
    font-weight: normal;
}

.product-price-from span.price-unity {
    font-weight: 400;
    font-size: 13px;
    color: #333;
}

.product-price-from small {
    font-size: 13px;
    color: #666;
    display: block;
    margin-top: 8px;
    line-height: 1.5;
}

/* === STOCK === */
.product-stock-info {
    margin: 24px 0;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.stock-current-color {
    margin-bottom: 12px;
}

.stock-indicator {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.stock-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}

#stock-text {
    color: #333;
}

.stock-full-link a {
    color: #415A77;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.stock-full-link a:hover {
    color: #415A77;
    text-decoration: underline;
}

/* === BOTÓN CALCULAR PRECIO === */
#btn-open-calculator {
    background: linear-gradient(135deg, #415A77 0%, #000000 100%);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 25px 0 15px;
}

#btn-open-calculator:hover {
    transform: translateY(-2px);
}

#btn-open-calculator:active {
    transform: scale(0.98);
}

/* === DESCRIPCIÓN === */
.product-short-description {
    margin: 24px 0;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

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

.btn-ver-mas {
    color: #415A77;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.btn-ver-mas:hover {
    color: #415A77;
    text-decoration: underline;
}

/* ============================================================
   TABS RESPONSIVE: Desktop tabs + Móvil acordeón
   ============================================================ */

/* === ESTRUCTURA BASE === */
.calculadora-tabs-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid #e0e0e0;
    width: 100%;
    grid-column: 1 / -1; /* Ocupa todo el ancho si está en grid */
}

.calculadora-tabs {
    max-width: 1400px;
    margin: 0 auto;
}

/* === DESKTOP: Tabs normales === */
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 0;
}

#tab-description h3,
#tab-info-adicional h3,
#tab-marcaje h3,
#tab-muestras h3,
#tab-envio h3 {
    font-size: 20px !important;
}

.tab-description-content {
    font-size: 14px !important;
}

.tab-btn {
    padding: 12px 22px;
    background: #2d4a6b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

.tab-btn:hover {
    background: #3a5e85;
}

.tab-btn.active {
    background: #415A77;
    color: #fff;
}

.tab-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    min-height: 300px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* ============================================================
   RESPONSIVE PARA MÓVIL
   ============================================================ */
@media (max-width: 768px) {
    /* === ESTRUCTURA GENERAL === */
    .calculadora-wrapper {
        padding: 20px 15px;
    }
    
    .calculadora-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .calculadora-col-left,
    .calculadora-col-right {
        flex: 1 1 auto;
        min-width: 100%;
        width: 100%;
    }
    
    /* === GALERÍA === */
    .gallery-main img {
        height: 300px !important;
    }
    
    .gallery-thumbnails .thumb {
        width: 60px;
        height: 60px;
    }
    
    /* === COLORES === */
    .calculadora-colores {
        padding: 20px;
    }
    
    .colores-swatches {
        gap: 12px;
        justify-content: center;
    }
    
    .color-swatch {
        width: 42px;
        height: 42px;
    }
    
    .color-swatch.selected {
        width: 56px;
        height: 56px;
    }
    
    /* === COLUMNA DERECHA === */
    .product-title {
        font-size: 22px;
    }
    
    .product-price-from {
        padding: 20px;
    }
    
    .product-price-from span {
        font-size: 28px;
    }
    
    .product-stock-info {
        padding: 18px;
    }
    
    #btn-open-calculator {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    /* ============================================================
       TABS → ACORDEONES EN MÓVIL
       ============================================================ */
    
    /* Ocultar botones de tabs */
    .tab-buttons {
        display: none !important;
    }
    
    /* Remover padding del contenedor */
    .tab-content {
        padding: 0;
        background: transparent;
        min-height: auto;
    }
    
    /* Convertir cada tab-pane en acordeón */
    .tab-pane {
        display: block !important; /* Todos visibles */
        margin-bottom: 15px;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        overflow: hidden;
        background: white;
    }
    /* Título del acordeón (H3) - Clickeable */
    .tab-pane h3 {
        margin: 0;
        padding: 18px 20px;
        background: #f8f9fa;
        font-size: 16px;
        font-weight: 700;
        color: #333;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease;
        user-select: none;
        position: relative;
    }
    
    /* Flecha indicadora */
    .tab-pane h3::after {
        content: '▼';
        font-size: 14px;
        color: #415A77;
        transition: transform 0.3s ease;
        flex-shrink: 0;
        margin-left: 10px;
    }
    
    /* Estado hover del título */
    .tab-pane h3:hover {
        background: #e9ecef;
    }
    
    /* Estado activo/expandido */
    .tab-pane.active h3 {
        background: #415A77;
        color: white;
    }
    
    .tab-pane.active h3::after {
        color: white;
        transform: rotate(180deg);
    }
    
    /* Contenido del acordeón - OCULTO POR DEFECTO */
    .tab-pane > *:not(h3) {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0 20px;
        transition: all 0.4s ease;
    }
    
    /* Contenido VISIBLE cuando está activo */
    .tab-pane.active > *:not(h3) {
        max-height: 10000px;
        opacity: 1;
        padding: 20px;
    }
    
    /* Ajustes específicos para contenido de tabs */
    .tab-pane .additional-info-grid,
    .tab-pane .info-block,
    .tab-pane .tab-description-content {
        transition: none; /* No transición en el contenido interno */
    }
    
    /* Ajustes de la sección de tabs */
    .calculadora-tabs-section {
        margin-top: 40px;
        padding-top: 30px;
    }
}

/* === RESPONSIVE TABLETS === */
@media (max-width: 992px) and (min-width: 769px) {
    .calculadora-col-left {
        min-width: 100%;
        flex: 1 1 100%;
    }
    
    .calculadora-col-right {
        min-width: 100%;
        flex: 1 1 100%;
    }
}

/* === UTILIDADES === */
.calculadora-gallery .thumb,
.calculadora-gallery .thumb img {
    cursor: pointer !important;
}

.color-swatch {
    cursor: pointer !important;
}

.color-swatch.out-stock {
    cursor: not-allowed !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   CALCULADORA — Estilos de pasos y formulario
   ============================================================ */

/* === PASOS === */
.calc-step-item {
    margin-bottom: 4px;
}

.calc-step-header {
    background: transparent;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.calc-step-header.open {
    border-bottom-color: #444;
}

.calc-step-num {
    width: 26px;
    height: 26px;
    background: transparent;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Icono pendiente visible por defecto, icono ok oculto */
.calc-step-num .step-icon-pending {
    display: block;
}
.calc-step-num .step-icon-done {
    display: none;
}

.calc-step-header.open .calc-step-num {
    background: transparent;
}

/* Cuando el paso esta completado: mostrar ok, ocultar pendiente */
.calc-step-item.completed .calc-step-num .step-icon-pending {
    display: none;
}
.calc-step-item.completed .calc-step-num .step-icon-done {
    display: block;
}

.calc-step-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #aaa;
    transition: color 0.2s;
}

.calc-step-header.open .calc-step-title {
    color: #333;
}

.calc-step-icon {
    margin-left: auto;
    font-size: 18px;
    font-weight: 700;
    color: #bbb;
    min-width: 22px;
    text-align: center;
    transition: color 0.2s;
}
.calc-step-header.open .calc-step-icon {
    color: #444;
}

.calc-step-item.completed .calc-step-header {
    border-bottom-color: #444;
}
.calc-step-item.completed .calc-step-num {
    background: transparent;
}
.calc-step-item.completed .calc-step-title {
    color: #333;
}
.calc-step-item.completed .calc-step-icon {
    color: #444;
}



.calc-step-content {
    padding: 16px 0 14px;
    background: transparent;
    border: none;
    max-height: none;
    overflow: visible;
    display: none;
}

.calc-step-content.open {
    display: block;
}

/* === OPCIONES DE IMPRESIÓN (Paso 1) === */
.print-choice-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    padding: 4px 0;
    align-items: flex-start;
}

.print-choice-radio {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.print-choice-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-custom {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #bbb;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    margin-top: 2px;
}

.print-choice-radio input:checked + .radio-custom {
    border-color: #415A77;
}

.print-choice-radio input:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #415A77;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
}

.print-choice-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.print-choice-content h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
}

.print-choice-content p {
    margin: 0;
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

/* === GRID DE COLORES (Paso 2) === */
.colors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
    padding: 0;
}

.color-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.color-checkbox-item:hover .color-name {
    color: #415A77;
}

.color-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.color-checkbox-custom {
    width: 16px;
    height: 16px;
    border: 1.5px solid #bbb;
    border-radius: 3px;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s ease;
}

.color-checkbox-item input:checked + .color-checkbox-custom {
    background: #415A77;
    border-color: #415A77;
}

.checkmark {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    line-height: 1;
}

.color-checkbox-item input:checked + .color-checkbox-custom .checkmark {
    opacity: 1;
}

.color-bullet {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.color-info {
    flex: 1;
    min-width: 0;
}

.color-name {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 1px;
    transition: color 0.15s ease;
}

.stock-detail {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .colors-grid {
        grid-template-columns: 1fr;
    }
}

/* === INPUTS DE CANTIDAD (Paso 3) === */
.quantity-grid {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 8px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
}

.quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
    background: #fff; 
    border: none;
    border-radius: 0; 
    font-size: 14px;
    width: 33%;
}

input.quantity-input-impresion {
    padding: 0 !important;
}

.quantity-row.has-size {
    margin-left: 0;
}

/* Fila sin talla: color + stock a la izquierda, input ancho a la derecha */
.quantity-row.no-talla {
    width: 100%;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.quantity-label-notalla {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quantity-label-notalla strong {
    font-size: 14px;
    color: #000;
}

.quantity-label-notalla .qty-stock {
    font-size: 12px;
    color: #555;
    font-weight: 400;
}

.quantity-input-wrapper-notalla {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.quantity-input-wrapper-notalla input {
    width: 110px !important;
    padding: 8px 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: right !important;
    border: 1.5px solid #ccc !important;
    border-radius: 4px !important;
    -moz-appearance: textfield !important;
}
.quantity-input-wrapper-notalla input::-webkit-outer-spin-button,
.quantity-input-wrapper-notalla input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-uds-label {
    font-size: 13px;
    color: #444;
    font-weight: 500;
}

.quantity-color-group {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 12px 0 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

.quantity-label {
    font-weight: 500;
    color: #444;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-stock {
    font-size: 11px;
    color: #000;
    font-weight: 400;
}

.quantity-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-input,
.quantity-input-impresion {
    width: 70px;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #000;
    transition: border-color 0.2s ease;
}

.quantity-input:focus,
.quantity-input-impresion:focus {
    outline: none;
    border-color: #000;
}

#quantity-inputs-container > p {
    color: #999;
    font-size: 13px;
    font-style: italic;
    margin: 10px 0;
}

/* Advertencias de stock insuficiente o sin stock */
.quantity-input.qty-no-stock,
.quantity-input.qty-over-stock {
    border-color: #e53935 !important;
    color: #e53935;
}

.qty-warn-icon {
    color: #e53935;
    font-weight: 700;
    font-size: 1.1em;
    cursor: help;
    position: relative;
    line-height: 1;
}

.qty-warn-icon::after {
    content: attr(data-tooltip);
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    padding: 6px 10px;
    border-radius: 5px;
    width: 210px;
    white-space: normal;
    line-height: 1.5;
    z-index: 200;
    pointer-events: none;
}

.qty-warn-icon:hover::after {
    display: block;
}

.qty-over-stock {
    border: 2px solid #e53935 !important;
}

/* === BOTONES === */
.calc-btn {
    background: #415A77;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 11px 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease;
    display: inline-block;
}

.calc-btn:not(:disabled):hover {
    background: #83C3DB;
}

.calc-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-step-wrapper,
.btn-calculate-wrapper {
    text-align: left;
    margin-top: 14px;
    padding: 12px 0 4px;
}

.btn-calculate-wrapper {
    border-top: 1px solid #f0f0f0;
}

#total-units-text,
#total-units-text-impresion {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
    font-weight: 500;
    width: 100%;
}

@media (max-width: 768px) {
    .colors-grid {
        flex-direction: column;
    }
    .print-choice-container {
        flex-direction: column;
    }
}

/* === LAYOUT DE LA PÁGINA === */

/*
 * POSICIONAMIENTO FIJO CON TRUCO DE TRANSFORM:
 * - position:fixed dentro de un ancestro con transform queda relativo a ese ancestro
 * - #divcalcu empieza en translateX(100%) → calc queda a 200% (oculto)
 * - Al abrir: #divcalcu → translateX(-100%) → calc queda a 0 (visible)
 * - Al volver: #divcalcu → translateX(0) → calc queda a 100% (oculto)
 */
#calculadora-fullscreen {
    position: relative;
    width: 100%;
    background: #fff;
    padding: 30px 20px;
    box-sizing: border-box;
}

.calc-page-header {
    margin-bottom: 24px;
}

.calc-page-header h2 {
    margin: 0;
    font-size: 32px;
    color: #415A77;
    font-weight: 700;
}

.calc-page-header p {
    margin: 10px 0 0;
    font-size: 15px;
    color: #555;
}

#calc-form-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 35px;
    margin: 30px 0;
    align-items: start; /* necesario para que sticky funcione en grid */
}

#calc-steps-left > h2 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 20px;
}

#calc-back-button-wrapper {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    margin-bottom: 20px;
}

#btn-back-to-product {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

#btn-back-to-product:hover {
    background: #000;
}

.stock-out {
    color: #d32f2f;
    font-weight: 700;
}

@media (max-width: 960px) {
    #calc-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   TABLA DE STOCK RESPONSIVE
   ============================================================ */

/* === CONTENEDOR PRINCIPAL === */
.stock-table-wrapper {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    font-family:'Montserrat';
}

/* === HEADER (solo desktop) === */
.stock-table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr;
    background: #f5f5f5;
    border-bottom: 1px solid #2e2e2e;
}

.stock-header-cell {
    padding: 16px 14px;
    font-weight: 700;
    font-size: 15px;
    color: #2e2e2e;
}

.stock-col-current,
.stock-col-future {
    text-align: center;
}

/* === BODY (filas) === */
.stock-table-body {
    background: white;
}

.stock-table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.stock-table-row:hover {
    background: #fafbfc;
}

.stock-table-row:last-child {
    border-bottom: none;
}

/* === CELDAS === */
.stock-cell {
    padding: 16px 14px;
    display: flex;
    align-items: center;
}

.stock-col-current {
    justify-content: center;
}

.stock-col-future {
    justify-content: center;
}

/* === CONTENIDO DE COLOR === */
.stock-color-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stock-color-bullet {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.stock-color-name {
    font-weight: 600;
    color: #222;
    font-size: 15px;
}

/* === STOCK ACTUAL === */
.stock-current-value {
    font-weight: 700;
    font-size: 15px;
}

.stock-current-value.has-stock {
    color: #000000;
}

.stock-current-value.no-stock {
    color: #c62828;
}

/* === ENTRADAS FUTURAS === */
.stock-future-value {
    font-size: 13px;
    color: #000000;
    line-height: 1.6;
    font-style: italic;
    font-weight: 500 !important;
}

/* === LABELS MÓVILES (ocultos en desktop) === */
.stock-mobile-label {
    display: none;
    font-weight: 600;
    color: #666;
    font-size: 13px;
    margin-bottom: 6px;
}

/* ============================================================
   RESPONSIVE MÓVIL
   ============================================================ */
@media (max-width: 768px) {
    /* Ocultar header en móvil */
    .stock-table-header {
        display: none;
    }
    
    /* Convertir cada fila en tarjeta */
    .stock-table-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        margin-bottom: 12px;
        background: white;
    }
    
    .stock-table-row:hover {
        background: white;
        border-color: #415A77;
    }
    
    .stock-table-body {
        padding: 10px;
        background: #f8f9fa;
    }
    
    /* Celdas como bloques */
    .stock-cell {
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        display: flex;
        justify-content: flex-start;
    }

    /* Mostrar labels en movil */
    .stock-mobile-label {
        display: block;
        width: 200px;
        text-align: left;
        margin-bottom: 0;
    }
    
    /* Color */
    .stock-color-content {
        width: 100%;
    }
    
    .stock-color-bullet {
        width: 28px;
        height: 28px;
    }
    
    .stock-color-name {
        font-size: 15px;
    }

    /* Stock actual */
    .stock-current-value {
        font-size: 15px;
        padding: 0 12px;
        border-radius: 0;
        width: 100%;
        text-align: right;
    }

    .stock-current-value.has-stock {
        background: #ffffff;
    }

    .stock-current-value.no-stock {
        background: #ffebee;
    }

    /* Entradas futuras */
    .stock-future-value {
        font-size: 13px;
        width: 100%;
        padding: 0 10px;
        background: #f8f9fa;
        border-radius: 8px;
        text-align: right;
    }
}

/* === TABLETS === */
@media (max-width: 992px) and (min-width: 769px) {
    .stock-table-row {
        grid-template-columns: 2fr 1fr 1.5fr;
    }
    
    .stock-header-cell,
    .stock-cell {
        padding: 14px 12px;
        font-size: 14px;
    }
    
    .stock-color-bullet {
        width: 20px;
        height: 20px;
    }
}
/* ============================================================
   TABLA DE STOCK CON TALLAS - RESPONSIVE
   ============================================================ */

/* === CONTENEDOR PRINCIPAL === */
.stock-sizes-wrapper {
    width: 100%;
    margin: 20px 0;
}

/* === MENSAJE VACÍO === */
.stock-sizes-empty {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

/* ============================================================
   VERSIÓN DESKTOP (tabla tradicional)
   ============================================================ */
.stock-sizes-desktop {
    display: block;
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stock-sizes-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

/* Header */
.stock-sizes-header-row {
    background: #2e2e2e;
    color: white;
}

.stock-sizes-header-color,
.stock-sizes-header-size {
    padding: 16px;
    font-weight: 700;
    border-right: 1px solid #415A77;
}

.stock-sizes-header-color {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 10;
    background: #2e2e2e;
}

.stock-sizes-header-size {
    text-align: center;
}

/* Filas */
.stock-sizes-row {
    border-bottom: 2px solid #f0f0f0;
}

.stock-sizes-row:hover {
    background: #fafbfc;
}

/* Celda de color */
.stock-sizes-cell-color {
    padding: 16px;
    background: #F4F6F8;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    left: 0;
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stock-sizes-color-bullet {
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.stock-sizes-color-name {
    font-size: 15px;
    color: #fff;
}

/* Celdas de tallas */
.stock-sizes-cell-size {
    padding: 14px;
    text-align: center;
    vertical-align: middle;
}

.stock-sizes-cell-size.has-stock {
    background: #e8f5e8;
}

.stock-sizes-cell-size.no-stock {
    background: #ffebee;
}

.stock-sizes-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stock-sizes-cell-size.has-stock .stock-sizes-value {
    color: #1b5e20;
}

.stock-sizes-cell-size.no-stock .stock-sizes-value {
    color: #c62828;
}

.stock-sizes-future {
    display: block;
    font-size: 11px;
    color: #2e2e2e;
    font-style: italic;
    line-height: 1.4;
    margin-top: 4px;
}

/* Ocultar versión móvil en desktop */
.stock-sizes-mobile {
    display: none;
}

/* ============================================================
   VERSIÓN MÓVIL (tarjetas)
   ============================================================ */
@media (max-width: 768px) {
    /* Ocultar tabla desktop */
    .stock-sizes-desktop {
        display: none;
    }
    
    /* Mostrar versión móvil */
    .stock-sizes-mobile {
        display: block;
        padding: 10px;
        background: #f8f9fa;
    }
    
    /* === TARJETA POR COLOR === */
    .stock-sizes-card {
        background: white;
        border-radius: 16px;
        margin-bottom: 20px;
        overflow: hidden;
    }
    
    /* Header de la tarjeta */
    .stock-sizes-card-header {
        background: #2e2e2e;
        color: white;
        padding: 18px 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 700;
        font-size: 17px;
    }
    
    .stock-sizes-card-header .stock-sizes-color-bullet {
        width: 28px;
        height: 28px;
    }
    
    /* Grid de tallas */
    .stock-sizes-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        padding: 16px;
    }
    
    /* Item individual (cada talla) */
    .stock-sizes-item {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 12px;
        text-align: center;
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .stock-sizes-item.has-stock {
        background: #e8f5e9;
        border-color: #c8e6c9;
    }
    
    .stock-sizes-item.no-stock {
        background: #ffebee;
        border-color: #ffcdd2;
        opacity: 0.7;
    }
    
    /* Talla */
    .stock-sizes-item-size {
        font-weight: 700;
        font-size: 16px;
        color: #2e2e2e;
        margin-bottom: 6px;
    }
    
    /* Valor de stock */
    .stock-sizes-item-value {
        font-size: 14px;
        font-weight: 600;
    }
    
    .stock-sizes-item.has-stock .stock-sizes-item-value {
        color: #1b5e20;
    }
    
    .stock-sizes-item.no-stock .stock-sizes-item-value {
        color: #c62828;
    }
    
    /* Entradas futuras */
    .stock-sizes-item-future {
        font-size: 10px;
        color: #666;
        font-style: italic;
        margin-top: 6px;
        line-height: 1.3;
    }
}

/* === TABLETS (pantallas medianas) === */
@media (max-width: 992px) and (min-width: 769px) {
    .stock-sizes-table {
        min-width: 600px;
        font-size: 13px;
    }
    
    .stock-sizes-header-color,
    .stock-sizes-header-size,
    .stock-sizes-cell-color,
    .stock-sizes-cell-size {
        padding: 12px 10px;
    }
    
    .stock-sizes-color-bullet {
        width: 22px;
        height: 22px;
    }
    
    .stock-sizes-value {
        font-size: 14px;
    }
    
    .stock-sizes-future {
        font-size: 10px;
    }
}

/* === MÓVILES PEQUEÑOS === */
@media (max-width: 480px) {
    .stock-sizes-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
        padding: 12px;
    }
    
    .stock-sizes-item {
        padding: 10px 8px;
    }
    
    .stock-sizes-item-size {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .stock-sizes-item-value {
        font-size: 12px;
    }
    
    .stock-sizes-item-future {
        font-size: 9px;
    }
    
    .stock-sizes-card-header {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .stock-sizes-card-header .stock-sizes-color-bullet {
        width: 24px;
        height: 24px;
    }
}

/* ============================================================
   ESTILOS PARA ELIMINAR CSS INLINE - AÑADIDOS
   ============================================================ */

/* === CONTENEDOR MASTER === */
#calculadora-master-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    overflow-x: clip;
    width: 100%;
}

#divfrontal {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

#divcalcu {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    transform: translateX(100%);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    height: 0;
    overflow: hidden;
}

/* === PRECIO === */
.product-price-from {
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border: none;
}

.product-price-from.has-price {
    font-size: 18px;
    font-weight: 400;
}

.product-price-from .price-amount {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.product-price-from .price-note {
    font-size: 13px;
    color: #666;
    display: block;
    font-weight: 400;
    margin-top: 8px;
    line-height: 1.5;
}

.product-price-from.no-price {
    color: #666;
}

/* === STOCK === */
.stock-bullet {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin-right: 8px;
}

.stock-full-link {
    margin-top: 12px;
}

.stock-full-link a {
    color: #2e2e2e;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.stock-full-link a:hover {
    color: #415A77;
}

/* === BOTÓN CALCULADORA === */
.btn-calculator-wrapper {
    margin: 35px 0 15px;
    text-align: center;
}

/* === VER MÁS === */
.btn-ver-mas {
    color: #2e2e2e !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-ver-mas:hover {
    color: #415A77 !important;
}

/* ============================================================
   PANEL DERECHO: PRESUPUESTO — Diseño minimalista corporativo
   ============================================================ */

#calc-summary-right {
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* --- Cabecera --- */
#calc-summary-header {
    padding: 20px 24px 16px;
    border-bottom: 2px solid #415A77;
}

#calc-summary-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Contenido --- */
#calc-summary-inner {
    padding: 20px 24px;
}

/* --- Pie: total + botón --- */
#calc-summary-footer {
    padding: 14px 24px 20px;
    border-top: 1px solid #eee;
}

/* --- Placeholder inicial --- */
.summary-placeholder {
    text-align: center;
    color: #bbb;
    font-style: italic;
    font-size: 14px;
    margin: 32px 0;
    line-height: 1.7;
}

/* --- Precio por defecto (orientativo, 100 uds.) --- */
#default-price-preview {
    text-align: center;
    padding: 20px 8px 12px;
}

.dp-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #aaa;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.dp-qty {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 12px;
}

.dp-price {
    font-size: 30px;
    font-weight: 700;
    color: #ccc;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.dp-unit {
    font-size: 11px;
    color: #d0d0d0;
}

/* --- Etiqueta de modo (Sin/Con impresión) --- */
.summary-mode-tag {
    display: block;
    color: #415A77;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    padding: 0;
    margin-bottom: 14px;
}
/* --- Lista de colores/cantidades seleccionados --- */
.summary-items {
    margin-bottom: 12px;
}

.summary-items h5 {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
}

.summary-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    color: #333;
}

.summary-item-row:last-child {
    border-bottom: none;
}

.srow-label {
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    padding-right: 10px;
}

.srow-value {
    color: #555;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 600;
}

/* --- Total de unidades --- */
.summary-unit-count {
    font-size: 12px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
    padding: 7px 10px;
    background: #eee;
    border-radius: 6px;
    text-align: right;
}

/* --- Secciones de desglose --- */
.desglose-section {
    margin-top: 18px;
    border-top: 1px solid #eeeeee;
    padding-top: 12px;
}

.desglose-section-title {
    font-size: 10px;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.desglose-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    font-size: 13px;
    color: #444;
    border-bottom: 1px solid #fafafa;
}

.desglose-row:last-child {
    border-bottom: none;
}

.desglose-row span:first-child {
    flex: 1;
    padding-right: 10px;
    line-height: 1.4;
}

.desglose-row span:last-child {
    font-weight: 600;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Detalle pequeño (cajas, recargo...) */
.transport-detail {
    display: block;
    font-size: 13px;
    color: #999;
    font-style: normal;
    margin-top: 1px;
}

/* Fila de subtotal (precio/unidad) */
.desglose-subtotal {
    border-top: 1px solid #e0e0e0 !important;
    margin-top: 4px;
    padding-top: 8px !important;
    padding-bottom: 2px !important;
}

.desglose-subtotal span:first-child {
    font-weight: 700;
    color: #1a1a1a;
}

.desglose-subtotal span:last-child {
    color: #415A77 !important;
    font-size: 14px;
}

/* Fila de precio total/unidad (con impresión, suma producto + marcaje) */
.desglose-unit-price-final {
    background: #F4F6F8;
    border-radius: 6px;
    padding: 9px 12px !important;
    margin: 12px 0 4px !important;
    border-bottom: none !important;
}

.desglose-unit-price-final span:first-child {
    font-weight: 700;
    color: #1a1a1a;
}

.desglose-unit-price-final span:last-child {
    color: #415A77 !important;
    font-size: 15px;
}

/* --- Área de marcaje en resumen (con impresión) --- */
.summary-marcaje-area {
    margin: 6px 0;
    padding: 8px 10px;
    background: #fafafa;
    border-left: 2px solid #415A77;
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    color: #555;
    line-height: 1.7;
}

.summary-marcaje-area-title {
    font-size: 10px;
    font-weight: 700;
    color: #415A77;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
}

/* --- Caja de precio total (en footer) --- */
#price-box {
    background: #415A77;
    border-radius: 8px;
    text-align: center;
    padding: 14px 16px;
    margin-bottom: 12px;
    color: #fff;
}

.price-box-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    margin-bottom: 3px;
}

#live-price {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 2px;
}

#price-box small {
    font-size: 11px;
    opacity: 0.8;
}

/* --- Botón añadir al carrito --- */
#add-to-cart-final {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

#add-to-cart-final:not(:disabled):hover {
    background: #415A77;
}

#add-to-cart-final:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    #calc-summary-right {
        position: static;
    }
}

/* === INFORMACIÓN ADICIONAL === */
.additional-info-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

/* Bloques de información */
.info-block {
    margin-bottom: 25px;
}

.info-block-title {
    margin: 0 0 15px 0;
    color: #2e2e2e;
    border-bottom: 1px solid #2e2e2e;
    padding-bottom: 8px;
    font-weight: 600;
    font-size: 18px;
}

.info-block-title-large {
    margin: 0 0 18px 0;
    color: #2e2e2e;
    border-bottom: 1px solid #2e2e2e;
    padding-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
}

/* === COLORES DISPONIBLES (info adicional) === */
.colors-display-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: row;
    justify-content: flex-start;
}

.color-display-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 80px;
}

.color-display-bullet {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.color-display-name {
    font-weight: 600;
    font-size: 15px;
    color: #222;
}

/* === TALLAS DISPONIBLES === */
.sizes-display {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

/* === ESPECIFICACIONES TÉCNICAS === */
.specs-grid {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    gap: 14px;
}

.spec-row {
    display: flex;
}

.spec-label {
    width: 30%;
    font-weight: 700;
    color: #333;
}

.spec-value {
    width: 70%;
    color: #555;
}

/* === CAJA MASTER === */
.master-box-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

/* === CARACTERÍSTICAS === */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    font-size: 15px;
    line-height: 1.6;
}

.features-list .feature-item {
    flex: 1;
}

/* === TABLA DE STOCK MODAL === */
#stock-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.stock-modal-content {
    background: white;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.stock-modal-header {
    background: #2e2e2e;
    color: white;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.stock-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.stock-modal-close:hover {
    transform: rotate(90deg);
}

.stock-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.stock-modal-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
}

.stock-modal-footer .btn-close-modal {
    background: #415A77;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.stock-modal-footer .btn-close-modal:hover {
    background: #83C3DB;
}

/* === TIPOS DE MARCAJE === */
.print-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.print-type-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.print-type-card:hover {
    border-color: #415A77;
    transform: translateY(-4px);
}

.print-type-name {
    font-weight: 700;
    font-size: 17px;
    color: #2e2e2e;
    margin-bottom: 10px;
}

.print-type-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* === MUESTRAS === */
.samples-content {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.samples-highlight {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.samples-highlight strong {
    color: #856404;
}

/* === ENVÍO === */
.shipping-content {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.shipping-info-box {
    background: #ffe0f0;
    border-left: 4px solid #415A77;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.shipping-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.shipping-time-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
}

.shipping-time-label {
    font-weight: 700;
    color: #2e2e2e;
    margin-bottom: 8px;
    font-size: 15px;
}

.shipping-time-value {
    color: #415A77;
    font-weight: 600;
    font-size: 18px;
}

/* === FUENTE: forzar Montserrat sobre overrides de Elementor/tema === */
.calculadora-wrapper,
.calculadora-wrapper *,
#calculadora-fullscreen,
#calculadora-fullscreen * {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* === RESPONSIVE ADICIONALES === */
@media (max-width: 768px) {
    .additional-info-grid {
        gap: 20px;
    }
    
    .colors-display-grid {
        gap: 15px;
    }
    
    .color-display-bullet {
        width: 26px;
        height: 26px;
    }
    
    .spec-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .spec-label,
    .spec-value {
        width: 100%;
    }
    
    .spec-label {
        font-size: 14px;
    }
    
    .print-types-grid {
        grid-template-columns: 1fr;
    }
    
    .shipping-times {
        grid-template-columns: 1fr;
    }
    
    .stock-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .stock-modal-header {
        padding: 20px;
    }
    
    .stock-modal-title {
        font-size: 20px;
    }
    
    .stock-modal-body {
        padding: 20px;
    }
}
/* ============================================================
   SECCIÓN TIPOS DE MARCAJE, MUESTRAS Y MODAL STOCK
   ============================================================ */

/* === MENSAJE "NO ADMITE PERSONALIZACIÓN" === */
.no-print-message {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 12px;
    color: #999;
    font-style: italic;
    font-size: 16px;
}

/* === GRID DE TECNICAS DE MARCAJE === */
.print-techniques-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* === TARJETA DE TECNICA === */
.print-technique-card {
    background: white;
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.print-technique-card:hover {
    border-color: #415A77;
    transform: translateY(-4px);
}

/* Imagen de tecnica */
.print-technique-image-wrapper {
    padding: 0;
    text-align: center;
    overflow: hidden;
}

.print-technique-image-wrapper img {
    height: 180px !important;
    object-fit: contain;
    padding: 10px;
}

.print-technique-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    max-width: none;
    border-radius: 0;
    display: block;
    padding: 10px;
}

.print-technique-no-image {
    width: 100%;
    height: 200px;
    background: #ddd;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #999;
    font-size: 12px;
}

/* Contenido de tecnica */
.print-technique-content {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 10px 20px;
}

h5.print-technique-title {
    font-size: 14px !important;
    text-align: center;
    margin: 0;
}

.print-technique-title {
    margin: 0 0 12px;
    font-size: 14px;
    color: #2e2e2e;
    font-weight: 700;
    text-align: center;
}

p.print-technique-zone {
    font-size: 12px;
    margin: 2px 0 0 0;
    line-height: 19px;
    margin-block-end: 0 !important;
}

.print-technique-zone {
    margin: 0 0 10px;
    color: #555;
    font-size: 12px;
}

.print-technique-zone strong {
    color: #2e2e2e;
}

/* Badges de tecnica */
.print-technique-badge {
    display: inline-block;
    background: #f2f3f5;
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 5px 0 0 0;
}

.print-technique-area {
    margin: 5px 0 0 0;
    padding: 4px 10px;
    background: #f2f3f5;
    border-radius: 12px;
    font-size: 12px;
    color: #000;
    font-weight: 500;
}

.print-technique-variable {
    margin-top: 12px;
    padding: 12px;
    background: #415A77;
    border-left: 4px solid #000;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
}

.print-technique-variable strong {
    font-weight: 700;
}

/* === MENSAJE DE CONTACTO === */
.print-contact-message {
    margin-top: 30px;
    padding: 10px;
    background: #eeeeee;
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    color: inherit;
    font-weight: 600;
    line-height: 1.6;
}

.print-contact-message strong {
    font-weight: 700;
}

/* === TAB MUESTRAS === */
.samples-info-text {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.samples-link {
    color: #2e2e2e;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.samples-link:hover {
    color: inherit;
}

.samples-button-wrapper {
    text-align: center;
    margin: 25px 0;
}

.samples-button {
    display: inline-block;
    background: #2e2e2e;
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #2e2e2e;
    transition: all 0.3s;
}

.samples-button-wrapper a.samples-button {
    color: #fff;
}

.samples-button-wrapper a.samples-button:hover {
    color: #fff;
    font-weight: bold;
}

.samples-button:hover {
    background: #2e2e2e;
    color: #fff;
    border-color: #2e2e2e;
    transform: translateY(-2px);
}

.samples-important-notice {
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    font-weight: 500;
    color: inherit;
    text-align: left;
    font-size: 14px;
}

/* === MODAL DE STOCK === */
#stock-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.stock-modal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.stock-modal-box {
    background: white;
    max-width: 1100px;
    width: 100%;
    max-height: 94vh;
    overflow: auto;
    border-radius: 18px;
    position: relative;
}

.stock-modal-header {
    padding: 15px 30px 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 18px 18px 0 0;
}

.stock-modal-header h3 {
    margin: 0;
    color: #222;
    font-size: 20px !important;
    font-weight: 600 !important;
}

#close-stock-modal {
    cursor: pointer;
    font-size: 38px;
    color: #c00;
    font-weight: 700;
    transition: all 0.2s;
    line-height: 1;
    background: transparent;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
}

#close-stock-modal:hover {
    color: #900;
    transform: rotate(90deg);
}

.stock-modal-body-padding {
    padding: 0 30px 30px 30px;
}

.stock-no-data {
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 16px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .print-techniques-grid {
        grid-template-columns: 1fr;
    }
    
    .print-technique-image {
        max-width: 120px;
    }
    
    .print-technique-no-image {
        width: 120px;
        height: 90px;
    }
    
    .print-technique-title {
        font-size: 16px;
    }
    
    .print-technique-zone {
        font-size: 14px;
    }
    
    .print-contact-message {
        font-size: 14px;
        padding: 16px;
    }
    
    .samples-button {
        font-size: 16px;
        padding: 14px 28px;
    }
    
    .samples-important-notice {
        font-size: 15px;
        padding: 16px;
    }
    
    .stock-modal-box {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .stock-modal-header {
        padding: 10px 18px;
        border-radius: 12px 12px 0 0;
        font-family: 'Montserrat';
    }

    .stock-modal-header h3 {
        font-size: 18px;
    }

    #close-stock-modal {
        font-size: 32px;
    }

    .stock-modal-body-padding {
        padding: 0;
    }

    .product-price-from span {
        font-size: 18px;
    }

    span.woocommerce-Price-currencySymbol {
        font-size: 13px !important;
        font-weight: normal;
    }

    #tab-description h3,
    #tab-info-adicional h3,
    #tab-marcaje h3,
    #tab-muestras h3,
    #tab-envio h3 {
        font-size: 14px !important;
        line-height: 16px;
    }

    .additional-info-grid {
        display: flex !important;
        flex-direction: column;
        gap: 25px !important;
        margin-top: 0;
    }

    .info-block {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .print-technique-content {
        padding: 16px;
    }
    
    .samples-button {
        width: 100%;
        font-size: 15px;
    }
}

/* ============================================================
   INFORMACIÓN ADICIONAL (TABS INFERIORES)
   ============================================================ */

.additional-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-block {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

.info-block h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.spec-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    flex: 1;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.spec-value {
    flex: 1;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.colors-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.color-display-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-display-bullet {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.color-display-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.calculadora-wrapper h1,
.calculadora-wrapper h2,
.calculadora-wrapper h3,
.calculadora-wrapper h4,
.calculadora-wrapper h5,
.calculadora-wrapper h6 {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

.notificacion {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    padding: 10px;
}

.notificacion small {
    text-align: center;
    line-height: 17px;
    margin-bottom: 7px;
}

#calculadora-master-container h4 {
    font-size: 15px;
}

/* ============================================================
   RESUMEN STICKY MOVIL - CALCULADORA
   ============================================================ */

/* Oculto en escritorio siempre */
@media (min-width: 769px) {
    #calc-mobile-sticky-summary {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #calc-mobile-sticky-summary {
        display: flex;
        flex-direction: column;
        gap: 8px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9998;
        background: #fff;
        box-shadow: 0 -2px 14px rgba(0,0,0,0.14);
        padding: 10px 16px 12px;
        transition: opacity 0.3s;
    }

    /* Estado placeholder: antes de calcular */
    #calc-mobile-sticky-summary.state-placeholder {
        opacity: 1;
        pointer-events: none;
    }

    /* Estado activo: despues de calcular */
    #calc-mobile-sticky-summary.state-ready {
        opacity: 1;
        pointer-events: auto;
    }

    .cms-row {
        display: flex;
        justify-content: space-between;
        gap: 6px;
    }

    .cms-col {
        flex: 1;
        text-align: center;
    }

    .cms-label {
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        color: #888;
        margin-bottom: 2px;
    }

    .cms-value {
        font-size: 14px;
        font-weight: 700;
        color: #222;
    }

    .cms-total {
        color: #415A77;
        font-size: 15px;
    }

    .cms-cta {
        display: block;
        text-align: center;
        background: #415A77;
        color: #fff !important;
        font-size: 13px;
        font-weight: 700;
        padding: 8px;
        border-radius: 8px;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .cms-cta:hover {
        background: #83C3DB;
        color: #fff !important;
    }

    /* Espacio para que el contenido de la calc no quede tapado */
    #calc-form {
        padding-bottom: 130px;
    }

    button.calc-btn,
    button.calc-btn-limpiar {
        padding: 10px !important;
    }

    button#btn-to-marcaje-config {
        font-size: 13px;
        padding: 10px 10px;
    }
}

/* ============================================================
   BOTON STICKY MOVIL - CALCULA TU PRECIO
   ============================================================ */

/* Oculto en desktop */
#mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    /* Espacio en la parte inferior para que el contenido no quede tapado por el sticky */
    .calculadora-tabs-section {
        padding-bottom: 80px;
    }

    #mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        padding: 12px 16px;
        background: #fff;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
    }

    #mobile-sticky-cta.hidden {
        display: none;
    }

    #btn-open-calculator-sticky {
        width: 100%;
        background: linear-gradient(135deg, #415A77 0%, #000000 100%);
        color: #fff;
        border: none;
        padding: 16px;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }

    #btn-open-calculator-sticky:active {
        transform: scale(0.98);
    }
}


