/* ESTILOS CALCULADORA CAMPER (WIZARD) */
#camper-wizard {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    position: relative;
    padding-bottom: 20px;
}

/* Progreso */
.cw-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.cw-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s;
}
.cw-dot.active {
    background: #3b82f6;
    transform: scale(1.2);
}
.cw-step-text {
    position: absolute;
    top: 18px;
    left: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

/* Contenedor de Vistas */
.cw-view {
    display: none;
    padding: 40px;
    animation: fadeIn 0.4s ease forwards;
}
.cw-view.active {
    display: block;
}

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

/* Tipografía Básica */
.cw-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
    color: #0f172a;
}
.cw-subtitle {
    font-size: 1rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Grid de Botones / Opciones */
.cw-grid-2, .cw-grid-3, .cw-grid-4 {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}
.cw-grid-2 { grid-template-columns: 1fr 1fr; }
.cw-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cw-grid-4 { grid-template-columns: repeat(2, 1fr); }

@media(min-width: 768px) {
    .cw-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Tarjeta de Opción (Botón grande) */
.cw-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.cw-option:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    transform: translateY(-2px);
}
.cw-option.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}
.cw-option i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 12px;
}
.cw-option-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #1e293b;
}
.cw-option-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}
.cw-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #10b981;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Inputs / Selects */
.cw-form-group {
    margin-bottom: 20px;
}
.cw-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.95rem;
}
.cw-select, .cw-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #1e293b;
    font-family: inherit;
    transition: all 0.2s;
    background: #fff;
}
.cw-select:focus, .cw-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.cw-select:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
    color: #94a3b8;
}

/* Bloques Informativos */
.cw-alert {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}
.cw-alert-folding {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    border: 1px solid #bfdbfe;
    border-left-width: 5px;
    border-left-color: #2563eb;
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 25px;
    font-size: 0.92rem;
    color: #1e3a8a;
    line-height: 1.55;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.cw-alert-folding .cw-alert-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d4ed8;
}
.cw-alert-folding .cw-alert-highlight {
    font-weight: 700;
    color: #1e40af;
    background: #dbeafe;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Botones de Acción Globales */
.cw-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.cw-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cw-btn-primary {
    background: #2563eb;
    color: #fff;
}
.cw-btn-primary:hover {
    background: #1d4ed8;
}
.cw-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}
.cw-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}
.cw-btn-secondary:hover {
    background: #e2e8f0;
}
.cw-btn-outline {
    background: transparent;
    border: 2px solid #cbd5e1;
    color: #475569;
}
.cw-btn-outline:hover {
    border-color: #94a3b8;
    color: #1e293b;
}
.cw-btn-alt {
    background: #10b981;
    color: white;
}
.cw-btn-alt:hover {
    background: #059669;
}

/* Enlaces secundarios (Personalizar) */
.cw-link-block {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}
.cw-link-block p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* Pantalla Final (Resultado) */
.cw-result-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 16px;
    padding: 30px;
    color: #fff;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.cw-result-header {
    text-align: center;
    margin-bottom: 20px;
}
.cw-result-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    color: #38bdf8;
}
.cw-result-header p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.cw-result-image {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.cw-result-layout {
    display: flex;
    gap: 30px;
    align-items: stretch;
}
.cw-result-left {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cw-result-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cw-result-body {
    display: flex;
    gap: 30px;
}

.cw-result-layout {
    display: flex;
    gap: 30px;
    align-items: stretch;
}
.cw-result-left {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cw-result-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cw-result-image {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    #camper-wizard {
        margin: 15px auto !important;
        border-radius: 12px !important;
        padding-bottom: 10px !important;
    }
    .cw-view {
        padding: 20px 16px !important;
    }
    .cw-title {
        font-size: 1.35rem !important;
        line-height: 1.2 !important;
    }
    .cw-subtitle {
        font-size: 0.88rem !important;
        margin-bottom: 20px !important;
    }
    .cw-grid-2, .cw-grid-3, .cw-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }
    .cw-option {
        padding: 14px !important;
        min-height: auto !important;
    }
    .cw-option i {
        font-size: 1.5rem !important;
        margin-bottom: 8px !important;
    }
    .cw-option-title {
        font-size: 0.95rem !important;
    }
    .cw-option-desc {
        font-size: 0.78rem !important;
    }
    .cw-actions {
        margin-top: 25px !important;
        padding-top: 15px !important;
        flex-direction: column-reverse !important;
        gap: 10px !important;
    }
    .cw-actions button, .cw-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
    }
    .cw-result-layout {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .cw-result-left {
        flex: auto !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    .cw-result-image {
        max-width: 100% !important;
        height: 180px !important;
        margin: 0 auto !important;
    }
    .cw-price-val {
        font-size: 2rem !important;
    }
}

/* Gráfico de Capas */
.cw-layers {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cw-layer {
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    color: #fff;
    position: relative;
}
.cw-layer-funda { background: #64748b; border: 2px dashed #94a3b8; }
.cw-layer-visco { background: #3b82f6; }
.cw-layer-fibra { background: #0ea5e9; }
.cw-layer-hr { background: #10b981; }

.cw-specs {
    flex: 1;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
}
.cw-specs p {
    margin: 0 0 10px 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}
.cw-specs p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.cw-specs strong { color: #f8fafc; }

.cw-price-box {
    text-align: center;
    margin-top: 20px;
}
.cw-price-val {
    font-size: 2.5rem;
    font-weight: 900;
    color: #10b981;
    margin-bottom: 15px;
}

/* Ajustes Extra */
.hidden { display: none !important; }
