/* Cotizador de Servicios Pro - WordPress Plugin Styles */

/* Reset y base */
body {
    background-color: #000000;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.cotizador-dark-theme {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: #000000;
}

.cotizador-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #000000;
}

.cotizador-card {
    background: #000000;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #333333;
}

.cotizador-header {
    text-align: center;
    margin-bottom: 32px;
}

.cotizador-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    height: 40px;
}

.cotizador-back-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid #667eea;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.cotizador-back-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cotizador-back-btn svg {
    width: 22px;
    height: 22px;
}

.language-selector {
    background: #000000;
    border: 1px solid #333333;
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-selector:hover {
    border-color: #667eea;
    background: #111111;
}

.cotizador-progress-container {
    text-align: center;
    margin: 20px 0;
}

.cotizador-progress {
    background: #000000;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #333333;
}

.cotizador-progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 10px;
}

.cotizador-step-indicator {
    color: #a0aec0;
    font-size: 14px;
    font-weight: 500;
}

/* Pasos del Formulario */
.cotizador-step {
    display: none !important;
    animation: fadeIn 0.4s ease-in;
}

.cotizador-step.active {
    display: block !important;
}

.cotizador-step h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: #f7fafc;
    text-align: center;
    font-weight: 600;
}

.cotizador-step p {
    color: #a0aec0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* Opciones */
.cotizador-options {
    margin-bottom: 32px;
}

.cotizador-option {
    position: relative;
    display: block;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: #000000;
    border: 2px solid #4a5568;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.cotizador-option:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.cotizador-option input[type="radio"],
.cotizador-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cotizador-option input:checked + span,
.cotizador-option:has(input:checked) {
    border: 2px solid transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cotizador-option span {
    display: block;
    font-weight: 500;
    font-size: 16px;
}

/* Campos de Formulario */
.cotizador-form-group {
    margin-bottom: 24px;
}

.cotizador-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 14px;
}

.cotizador-form-group input[type="text"],
.cotizador-form-group input[type="email"],
.cotizador-form-group input[type="tel"],
.cotizador-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #000000;
    border: 2px solid #4a5568;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.cotizador-form-group input:focus,
.cotizador-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cotizador-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox de privacidad */
.cotizador-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px 0;
}

.cotizador-checkbox input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.cotizador-checkbox span {
    font-size: 14px;
    line-height: 1.4;
    color: #d1d5db;
}

.cotizador-checkbox a {
    color: #667eea;
    text-decoration: underline;
}

/* Navegación */
.cotizador-navigation {
    text-align: center;
    margin-top: 32px;
}

.cotizador-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
}

.cotizador-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.cotizador-btn:active {
    transform: translateY(0);
}

.cotizador-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Resultado */
.cotizador-result-content {
    text-align: center;
    padding: 32px 0;
}

.cotizador-result-content h3 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 24px;
}

#result-details {
    background: #000000;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    text-align: left;
}

.cotizador-result-actions {
    margin-top: 32px;
}

/* Estados de error */
.cotizador-error {
    color: #f56565;
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

.cotizador-form-group.error input,
.cotizador-form-group.error textarea {
    border-color: #f56565;
    background: rgba(245, 101, 101, 0.05);
}

.cotizador-form-group.error label {
    color: #f56565;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading state */
.cotizador-loading {
    opacity: 0.6;
    pointer-events: none;
}

.cotizador-loading .cotizador-btn {
    background: #4a5568;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cotizador-card {
        padding: 24px;
        margin: 0 12px;
    }
    
    .cotizador-step h3 {
        font-size: 18px;
    }
    
    .cotizador-option {
        padding: 14px 16px;
    }
    
    .cotizador-option span {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .cotizador-container {
        padding: 12px;
    }
    
    .cotizador-card {
        margin: 0 6px;
    }
    
    .cotizador-step h3 {
        font-size: 16px;
    }
    
    .cotizador-option {
        padding: 12px 14px;
    }
    
    .cotizador-option span {
        font-size: 15px;
    }
}