/* ========================================
   WVT Quote Portal - Modern Design
   ======================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
}

/* Header Moderno */
.container-fluid .bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

/* Progress Steps - Moderno */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 30px 0;
    padding: 0 20px;
}

.progress-steps::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: var(--gray-200);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 150px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--gray-400);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.step.completed .step-number {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.step.completed .step-number::after {
    content: "✓";
}

.step-title {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
    line-height: 1.3;
}

.step.active .step-title {
    color: var(--primary);
}

.step.completed .step-title {
    color: var(--secondary);
}

/* Alert Styles */
.alert {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

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

.alert i {
    font-size: 20px;
    margin-top: 2px;
}

.alert-info {
    background: #dbeafe;
    border-color: var(--info);
    color: #075985;
}

.alert-info i {
    color: var(--info);
}

.alert-warning {
    background: #fef3c7;
    border-color: var(--warning);
    color: #92400e;
}

.alert-warning i {
    color: var(--warning);
}

.alert-success {
    background: #d1fae5;
    border-color: var(--secondary);
    color: #065f46;
}

.alert-success i {
    color: var(--secondary);
}

/* Card Styles */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-body {
    padding: 40px;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:disabled {
    background: var(--gray-50);
    cursor: not-allowed;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg fill=none viewBox=0 0 20 20%3E%3Cpath stroke=%236b7280 stroke-linecap=round stroke-linejoin=round stroke-width=1.5 d=M6 8l4 4 4-4/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

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

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--gray-500);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 12px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-check-input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    cursor: pointer;
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-300);
}

.btn-success {
    background: var(--secondary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 30px;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--gray-50);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.table tr:hover {
    background: var(--gray-50);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-info {
    background: #dbeafe;
    color: #075985;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-primary {
    background: #dbeafe;
    color: var(--primary-dark);
}

/* Footer */
.bg-dark {
    background: var(--gray-900) !important;
    color: white;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 24px;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step {
        max-width: 100px;
    }
    
    .step-title {
        font-size: 11px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Input con icono */
.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.input-group .form-control {
    padding-left: 44px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Pricing Display */
.pricing-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.pricing-amount {
    font-size: 48px;
    font-weight: 700;
    margin: 20px 0;
}

.pricing-period {
    font-size: 18px;
    opacity: 0.9;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: var(--gray-900);
    color: white;
    font-size: 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 8px;
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Logo en Header */
.container-fluid .bg-primary img[alt="WVT Logo"] {
    transition: transform 0.3s ease;
}

.container-fluid .bg-primary img[alt="WVT Logo"]:hover {
    transform: scale(1.05);
}

/* Mejoras al header */
.container-fluid .bg-primary h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.container-fluid .bg-primary .small {
    opacity: 0.9;
    font-size: 0.875rem;
}

/* Responsive Logo */
@media (max-width: 768px) {
    .container-fluid .bg-primary img[alt="WVT Logo"] {
        height: 40px !important;
        margin-bottom: 10px;
    }
    
    .container-fluid .bg-primary h1 {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .container-fluid .bg-primary .text-right {
        text-align: center !important;
        margin-top: 10px;
    }
}

/* Form Row (2 columns) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Required field indicator */
.required::after {
    content: " *";
    color: var(--danger);
}

/* Step content */
.step-content {
    padding: 0 20px;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.step-description {
    color: var(--gray-600);
    margin-bottom: 30px;
}




@media (max-width: 768px) {




@media (max-width: 768px) {







/* Responsive */
@media (max-width: 768px) {

/* Botones flotantes de navegación */





@media (max-width: 768px) {

/* Botones flotantes de navegación */
.btn-logout,
.btn-restart {
    position: fixed;
    top: 20px;
    z-index: 9999;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-logout {
    right: 160px;
    background: #6b7280;
    color: white;
}

.btn-logout:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.btn-restart {
    right: 20px;
    background: #dc2626;
    color: white;
}

.btn-restart:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .btn-logout,
    .btn-restart {
        padding: 8px 12px;
        font-size: 11px;
        top: 10px;
    }
    
    .btn-logout {
        right: 130px;
    }
    
    .btn-restart {
        right: 10px;
    }
}
