/* =============================================
   POPUP — IronBlock (Corporativo Translúcido)
   ============================================= */

   @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ========================
   OVERLAY
   ======================== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 1rem;
}
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================
   CONTENEDOR PRINCIPAL (VIDRIO ESMERILADO — estilo .model-card)
   ======================== */
.popup-content {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    width: 100%;
    max-width: 1100px;
    max-height: 92vh;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 30px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.98);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.popup-overlay.active .popup-content {
    transform: scale(1);
    opacity: 1;
}

/* ========================
   CABECERA
   ======================== */
.popup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-wrap: wrap;
}
.popup-header h2 {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 0.2px;
    text-transform: none;
}
.popup-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
    padding: 0.2rem;
    flex-shrink: 0;
    order: -1;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-close:hover {
    color: var(--primary);
    background: rgba(255, 193, 7, 0.1);
}

/* ========================
   INDICADOR DE PASOS
   ======================== */
.popup-steps {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.75rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.popup-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.popup-step-dot.active  { opacity: 1; }
.popup-step-dot.done    { opacity: 0.7; }

.dot-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.65rem;
    color: #bbb;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.popup-step-dot.active .dot-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}
.popup-step-dot.done .dot-num {
    background: rgba(255, 193, 7, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}
.dot-label {
    font-size: 0.6rem;
    color: #999;
    white-space: nowrap;
    font-weight: 500;
}
.popup-step-dot.active .dot-label { color: var(--primary); font-weight: 600; }

.step-line {
    width: 18px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

/* ========================
   CUERPO (TRANSPARENTE)
   ======================== */
.popup-body {
    padding: 1.75rem;
    color: #e0e0e0;
    overflow-y: auto;
    flex: 1;
    scroll-behavior: smooth;
    background: transparent; /* hereda el vidrio del contenedor */
}
.popup-body::-webkit-scrollbar { width: 6px; }
.popup-body::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
.popup-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 6px; }
.popup-body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* ========================
   PASO 1 – GRID DE LÍNEAS
   ======================== */
.step-1 .model-gallery { display: none; }

.lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.line-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}
.line-card:nth-child(1) { animation-delay: 0.06s; }
.line-card:nth-child(2) { animation-delay: 0.12s; }
.line-card:nth-child(3) { animation-delay: 0.18s; }
.line-card:nth-child(4) { animation-delay: 0.24s; }

.line-card:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.line-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.2rem;
}
.line-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 193, 7, 0.12);
    color: var(--primary);
    border: 1px solid rgba(255, 193, 7, 0.2);
}
.badge-custom { background: rgba(255, 193, 7, 0.12); border-color: rgba(255, 193, 7, 0.2); }
.tier-select .line-badge {
    background: rgba(200, 200, 200, 0.1);
    color: #ccc;
    border-color: rgba(200, 200, 200, 0.2);
}
.line-icon { font-size: 1.4rem; color: var(--primary); opacity: 0.9; }
.line-card h3 {
    font-size: 1.5rem;
    margin: 0;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: #fff;
}
.tier-select h3 { color: #ddd; }
.tier-custom h3 { color: var(--primary); }

.line-desc { color: #aaa; font-size: 0.85rem; line-height: 1.5; margin: 0; }

.line-specs,
.custom-specs-preview {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.line-specs li,
.custom-specs-preview li {
    color: #bbb;
    font-size: 0.82rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    line-height: 1.4;
}
.line-specs li i,
.custom-specs-preview li i {
    color: var(--primary);
    font-size: 0.75rem;
    width: 16px;
    flex-shrink: 0;
}

/* Botón de selección de línea (siempre legible) */
.select-line,
.btn-custom {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.8rem;
    margin-top: auto;
    border-radius: 6px;
    background: var(--primary);
    border: none;
    color: #000;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.select-line:hover,
.btn-custom:hover {
    background: #e0a800;
    color: #000;
    transform: translateY(-1px);
}

/* ========================
   GALERÍA DE IMÁGENES
   ======================== */
.model-gallery {
    margin-bottom: 1.5rem;
}
.main-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.main-image-container:hover {
    border-color: var(--primary);
}
.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.main-image-container:hover .main-image {
    transform: scale(1.02);
}
.expand-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #ccc;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.main-image-container:hover .expand-icon {
    opacity: 1;
    color: var(--primary);
}
.gallery-overlay-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--primary);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.main-image-container:hover .gallery-overlay-label {
    opacity: 1;
}
.gallery-tier-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.thumbnail-strip {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}
.thumbnail {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    filter: brightness(0.9);
    transition: opacity 0.2s, border-color 0.2s;
}
.thumbnail:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.3);
}
.thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
    filter: brightness(1);
}

/* ========================
   PASO 2 – DETALLES
   ======================== */
.step2-tier-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.step2-tier-header i {
    font-size: 2rem;
    color: var(--primary);
}
.step2-tier-header h3 {
    margin: 0 0 0.1rem;
    font-size: 1.3rem;
    color: #fff;
    font-weight: 600;
}
.step2-tier-header p {
    margin: 0;
    color: #aaa;
    font-size: 0.9rem;
}
.tier-badge-large {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 193, 7, 0.12);
    color: var(--primary);
    border: 1px solid rgba(255, 193, 7, 0.2);
    flex-shrink: 0;
}

.specs-by-category {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.spec-category-title {
    color: var(--primary);
    margin: 0 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.82rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.spec-category-title i {
    font-size: 0.85rem;
}

.spec-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.5rem;
}
.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s, background 0.2s;
}
.spec-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}
.spec-item--no {
    opacity: 0.5;
}
.spec-item-icon {
    margin-top: 0.1rem;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 0.8rem;
}
.spec-item--no .spec-item-icon {
    color: #666;
}
.spec-item-label {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.3;
}
.spec-item-value {
    font-size: 0.88rem;
    color: #ddd;
    font-weight: 500;
    line-height: 1.3;
}

/* ========================
   PERSONALIZAR
   ======================== */
.custom-intro {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.custom-intro-icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}
.custom-intro h3 {
    margin: 0 0 0.1rem;
    font-size: 1.2rem;
    color: #fff;
}
.custom-intro p {
    margin: 0;
    color: #aaa;
    font-size: 0.9rem;
}

.fixed-specs-bar {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1rem 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.fixed-specs-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-basis: 100%;
    margin-bottom: 0.5rem;
}
.fixed-specs-title i { color: var(--primary); font-size: 0.85rem; }
.fixed-spec-item {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.3rem 0.8rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.fixed-spec-item i { color: var(--primary); font-size: 0.75rem; }
.fixed-spec-item strong { color: #fff; font-weight: 500; }

.custom-picker-rows {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.custom-spec-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s, background 0.2s;
}
.custom-spec-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}
.custom-spec-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: #ddd;
    line-height: 1.3;
}
.custom-spec-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.spec-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s, background 0.2s;
    min-width: 80px;
    text-align: center;
}
.spec-option-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 193, 7, 0.1);
}
.spec-option-btn.selected {
    border-color: var(--primary);
    background: rgba(255, 193, 7, 0.18);
    color: #fff;
}
.spec-option-btn.opt-negative {
    opacity: 0.6;
    border-style: dashed;
}
.spec-option-btn.opt-negative.selected {
    opacity: 0.8;
    border-style: solid;
    border-color: #666;
    background: rgba(255, 255, 255, 0.06);
}

.opt-tier {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    line-height: 1.2;
    margin-bottom: 0.1rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
}
.spec-option-btn.selected .opt-tier {
    background: var(--primary);
    color: #000;
}
.opt-value {
    font-size: 0.78rem;
    color: #aaa;
    max-width: 140px;
    word-break: break-word;
    font-weight: 500;
}
.spec-option-btn.selected .opt-value { color: #fff; }

/* ========================
   PASO 3 – FORMULARIO Y RESUMEN
   ======================== */
.step3-intro {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.quote-summary {
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.quote-summary h4 {
    margin: 0 0 0.5rem;
    color: var(--primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}
.quote-summary p { margin: 0; color: #aaa; font-size: 0.9rem; }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.8rem;
}
.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #ccc;
    padding: 0.25rem 0;
}
.summary-item i { font-size: 0.75rem; color: var(--primary); }
.summary-item.neg i { color: #666; }
.summary-item span { color: #888; }
.summary-item strong { color: #fff; margin-left: auto; text-align: right; font-weight: 500; }

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-group--full { grid-column: 1 / -1; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    color: #bbb;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
}
.req { color: #e74c3c; }

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.8rem 0.9rem;
    color: #ddd;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 193, 7, 0.06);
}
.form-group input.input-error,
.form-group textarea.input-error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #666; }

/* Botón WhatsApp (siempre legible) */
.btn-whatsapp {
    background: #25D366;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}
.btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-1px);
}

/* ========================
   NAVEGACIÓN ENTRE PASOS – BOTONES SIEMPRE LEGIBLES
   ======================== */
.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.step-navigation .btn {
    flex: 1;
    max-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
/* Botón "Volver" (secundario) – siempre visible */
.step-navigation .btn-outline {
    background: transparent;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.step-navigation .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    border-color: var(--primary);
}
/* Botón principal (solicitar / enviar) – fondo sólido siempre */
.step-navigation .btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
}
.step-navigation .btn-primary:hover {
    background: #e0a800;
    color: #000;
}

/* ========================
   LIGHTBOX
   ======================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-image {
    max-width: 92%;
    max-height: 88vh;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2.2rem;
    color: #aaa;
    cursor: pointer;
    z-index: 3100;
    line-height: 1;
    transition: color 0.2s;
}
.lightbox-close:hover { color: var(--primary); }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: #ccc;
    border: none;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 3100;
    border-radius: 4px;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(0,0,0,0.9); color: var(--primary); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: #aaa;
    background: rgba(0,0,0,0.7);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 3100;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 900px) {
    .lines-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .popup-overlay { padding: 0; align-items: flex-end; }
    .popup-content {
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
    .popup-header { padding: 1rem 1.2rem; }
    .popup-header h2 { font-size: 1.1rem; }
    .popup-steps { display: none; }
    .popup-body { padding: 1.2rem; }

    .lines-grid { grid-template-columns: 1fr; }
    .line-card { padding: 1.2rem; }

    .custom-spec-row { grid-template-columns: 1fr; gap: 0.5rem; }
    .spec-option-btn { min-width: 70px; padding: 0.4rem 0.6rem; }

    .contact-form-grid { grid-template-columns: 1fr; }
    .form-group--full { grid-column: 1; }

    .step-navigation { flex-direction: column; }
    .step-navigation .btn { max-width: 100%; }

    .lightbox-prev,
    .lightbox-next { width: 36px; height: 36px; font-size: 1.2rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-image { max-width: 96%; }

    .spec-items-grid { grid-template-columns: 1fr; }
    .step2-tier-header { flex-wrap: wrap; }
    .tier-badge-large { margin-left: 0; }

    .thumbnail { width: 48px; height: 36px; }
    .summary-grid { grid-template-columns: 1fr; }
    .fixed-specs-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .popup-header h2 { font-size: 1rem; }
    .custom-intro { flex-direction: column; text-align: center; }
}

/* Type selector para el personalizador */
.type-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}
.type-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.type-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    background: rgba(255, 193, 7, 0.08);
}
.type-card i {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}
.type-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.type-card p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.btn-select-type {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-select-type:hover {
    background: #e0a800;
}