/* ============================================================================
   CUSTOMIZATION MODAL STYLES
   Estilos para el modal de personalización de productos
   ============================================================================ */

/* Modal Dark Theme */
#customizationModal .modal-content {
    background: #1a1a1a !important;
    border: 1px solid #333;
}

#customizationModal .modal-header,
#customizationModal .modal-footer {
    border-color: #333 !important;
}

#customizationModal .step-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Animación de despliegue para pasos */
.customization-step {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Steps */
.customization-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 20px;
    position: relative;
}

.customization-progress::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #444;
    z-index: 0;
}

.customization-steps {
    position: relative;
}

.customization-steps .d-flex::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #444;
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.step.completed {
    opacity: 1;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid #3a3a3a;
}

.step.completed .step-number {
    background: #3a3a3a;
    color: #FC791A;
    border-color: #FC791A;
}

.step.active .step-number {
    background: linear-gradient(135deg, #FC791A 0%, #FFA500 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(252, 121, 26, 0.5);
    border-color: #FC791A;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid #3a3a3a;
}

.step.completed .step-circle {
    background: #3a3a3a;
    color: #FC791A;
    border-color: #FC791A;
}

.step.active .step-circle {
    background: linear-gradient(135deg, #FC791A 0%, #FFA500 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(252, 121, 26, 0.5);
    border-color: #FC791A;
}

.step-label {
    font-size: 12px;
    color: #666;
}

.step.active .step-label {
    color: #ffffff;
    font-weight: 600;
}

.step.completed .step-label {
    color: #aaa;
}

/* Typography Options */
.typography-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 20px;
}

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

@media (max-width: 480px) {
    .typography-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.typography-reference {
    text-align: center;
}

.typography-reference img {
    max-width: 100%;
    height: auto;
    border: 2px solid #333;
}

.typography-numbers {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 20px;
}

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

@media (max-width: 480px) {
    .typography-numbers {
        grid-template-columns: repeat(3, 1fr);
    }
}

.typography-option {
    background: #252525;
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.typography-option:hover {
    border-color: #FC791A;
    transform: translateY(-3px);
    background: rgba(252, 121, 26, 0.1);
    box-shadow: 0 2px 8px rgba(252, 121, 26, 0.2);
}

.typography-option.selected {
    border-color: #FC791A;
    background: rgba(252, 121, 26, 0.2);
    box-shadow: 0 0 20px rgba(252, 121, 26, 0.4);
}

.typo-number {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.typography-option.selected .typo-number {
    color: #FC791A;
}

.typo-preview {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* Color Options */
.color-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.color-option {
    background: #252525;
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-option:hover {
    border-color: #FC791A;
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(252, 121, 26, 0.2);
}

.color-option.selected {
    border-color: #FC791A;
    background: rgba(252, 121, 26, 0.15);
    box-shadow: 0 0 20px rgba(252, 121, 26, 0.4);
}

.color-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.color-option.selected .color-preview {
    border-color: #FC791A;
}

.color-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* Name Input */
#customName {
    font-size: 24px;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    background: #252525;
    border: 2px solid #3a3a3a;
    color: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
}

#customName:focus {
    background: #2a2a2a;
    border-color: #FC791A;
    box-shadow: 0 0 15px rgba(252, 121, 26, 0.2);
    color: #ffffff;
    outline: none;
}

#customName::placeholder {
    color: #666;
}

.name-input-container .form-label {
    color: #ffffff;
    font-weight: 500;
}

.name-input-container .form-text {
    color: #ccc;
}


#customName::placeholder {
    color: #666;
}

/* Position Options */
.position-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.position-reference {
    text-align: center;
}

.position-reference img {
    max-width: 100%;
    height: auto;
    border: 2px solid #3a3a3a;
}

.position-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .position-choices {
        grid-template-columns: 1fr;
    }
}

.position-option {
    background: #252525;
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.position-option:hover {
    border-color: #FC791A;
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(252, 121, 26, 0.2);
}

.position-option.selected {
    border-color: #FC791A;
    background: rgba(252, 121, 26, 0.15);
    box-shadow: 0 0 20px rgba(252, 121, 26, 0.4);
}

.position-name-label {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

.position-option.selected .position-name-label {
    color: #FC791A;
}

.belt-outline {
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, #c41e3a 0%, #8b0000 100%);
    border-radius: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 2px 10px rgba(0,0,0,0.5),
        0 5px 20px rgba(0,0,0,0.3);
}

.belt-outline::before {
    content: 'MARESTRONG FITNESS';
    position: absolute;
    top: 10px;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    font-weight: bold;
    letter-spacing: 1px;
}

.centro-preview .text-position {
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.abajo-preview .text-position {
    position: absolute;
    bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.position-label {
    font-size: 16px;
    font-weight: 600;
    color: #f5f5f5;
    margin-top: 10px;
}

.position-name {
    font-size: 16px;
    font-weight: 600;
    color: #f5f5f5;
    margin-top: 10px;
}

.position-preview i {
    font-size: 36px;
    color: #FC791A;
}

/* Modal Customizations */
#customizationModal .modal-content {
    background: #1a1a1a !important;
    border: 1px solid #3a3a3a;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
}

#customizationModal .modal-header {
    border-bottom: 1px solid #3a3a3a;
}

#customizationModal .modal-header .modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #f5f5f5;
}

#customizationModal .modal-footer {
    background: #1a1a1a;
    border-top: 1px solid #3a3a3a;
}

/* Buttons */
#nextStepBtn, #addToCartBtn {
    background: linear-gradient(135deg, #FC791A 0%, #FFA500 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

#nextStepBtn:hover, #addToCartBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(252, 121, 26, 0.5);
}

#prevStepBtn {
    background: transparent;
    border: 2px solid #5a5a5a;
    padding: 12px 30px;
    font-weight: 600;
    color: #f5f5f5;
    transition: all 0.3s ease;
}

#prevStepBtn:hover {
    background: #2a2a2a;
    border-color: #FC791A;
    color: #FC791A;
}

/* Final Preview */
.final-preview {
    background: #252525;
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.final-preview h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
}

.preview-box {
    display: grid;
    gap: 12px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.preview-item strong {
    color: #ccc;
    font-weight: 500;
}

.preview-item span {
    color: #FC791A;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .customization-steps .d-flex::before {
        display: none;
    }
    
    .step {
        margin-bottom: 15px;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .typography-option {
        padding: 15px 5px;
    }
    
    .typo-preview {
        font-size: 14px;
    }
    
    .belt-outline {
        height: 100px;
    }
    
    .centro-preview .text-position,
    .abajo-preview .text-position {
        font-size: 14px;
    }
}
