/* Cotizador Plugin Styles */
#cotizador-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Barra de progreso */
.cotizador-progress {
    background: linear-gradient(135deg, #15385a 0%, #225281 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    color: white;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #bfbfbf, #ffffff);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 32.67%; /* Precio mínimo 49k de 150k máximo */
        background-color: #313131 !important;
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
}

/* Pasos */
.cotizador-step {
    transition: all 0.3s ease;
}

.cotizador-step.hidden {
    display: none;
}

.step-header {
    text-align: center;
    margin-bottom: 5px;
}

.step-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.step-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

.step-content {
    margin-bottom: 30px;
}

.section {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #15385a;
}

.section h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-note {
    color: #6c757d;
    font-size: 14px;
    margin-top: 10px;
    font-style: italic;
}

/* Control de usuarios */
.users-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.btn-control {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #15385a 0%, #225281 100%);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-control:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.users-display {
    text-align: center;
    padding: 3px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

.users-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.users-text {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

/* Módulos */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.module-btn {
    position: relative;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    overflow: hidden;
}

.module-btn:hover {
    border-color: #15385a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.module-btn.active {
    border-color: #15385a;
    background: linear-gradient(135deg, #15385a 0%, #225281 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.module-btn i:first-child {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.module-btn span {
    display: block;
    margin-bottom: 5px;
}

.module-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.module-btn.active .module-icon {
    transform: rotate(45deg);
}

/* Toggle de plan */
.payment-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 6px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #15385a 0%, #225281 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.toggle-btn i {
    margin-right: 8px;
}

.plan-details {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Resumen */
.summary {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 16px;
}

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

.summary-item.total {
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid #15385a;
}

/* Botones */
.step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #15385a 0%, #225281 100%);
    color: white;
    flex: 1;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

#whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

#whatsapp-btn:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    #cotizador-container {
        padding: 15px;
        margin: 10px;
    }
    
    .step-header h2 {
        font-size: 24px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .users-control {
        gap: 15px;
    }
    
    .users-display {
        min-width: 100px;
        padding: 15px;
    }
    
    .users-number {
        font-size: 28px;
    }
    
    .step-footer {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .payment-toggle {
        max-width: 100%;
    }
    
    .price-display {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 20px 15px;
    }
    
    .module-btn {
        padding: 15px;
    }
    
    .summary-item {
        font-size: 14px;
    }
    
    .summary-item.total {
        font-size: 16px;
    }
}