/**
 * LUX Seguros - Formulario de Cotizacion
 * Diseno moderno, limpio y responsive
 */

/* ========================================
   VARIABLES CSS
======================================== */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2e91c9;
    --accent-light: #86b3d9;
    --accent-dark: #2e8cb8;;
    
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --success: #10b981;
    --danger: #ef4444;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 50%, var(--gray-100) 100%);
    min-height: 100vh;
    color: var(--gray-700);
    line-height: 1.6;
}

/* ========================================
   NAVBAR PREMIUM
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.navbar>.container {
    justify-content: center !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; 
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
    transition: transform var(--transition-normal);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    color: var(--gray-500);
    letter-spacing: -0.5px;
}

.logo-text span {
    font-weight: 800;
    color: var(--primary);
}

/* Nav Center */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--primary-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(201, 162, 39, 0.2);
}

.btn-primary-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}

a {
    text-decoration: none;
}

/* ========================================
   FORM WRAPPER
======================================== */
.form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 70px 20px 60px;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--gray-200);
}

.form-card h2 {
    font-weight: 800;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.step-subtitle {
    color: var(--gray-500);
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.6;
}


/* ========================================
   PROGRESS BAR
======================================== */
.step-counter {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
    font-weight: 500;
}

.step-counter span {
    color: var(--accent);
    font-weight: 700;
}

.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 40px;
}

.progress-segment {
    flex: 1;
    height: 6px;
    border-radius: 99px;
    background: var(--gray-200);
    transition: background 0.4s ease;
}

.progress-segment.active,
.progress-segment.done {
    background: var(--accent);
}

/* ========================================
   FORM FIELDS
======================================== */
.form-label-custom {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.form-label-custom .required {
    color: var(--accent);
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-800);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.form-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.error-msg {
    color: var(--danger);
    font-size: 13px;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.error-msg.show {
    display: block;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
    cursor: pointer;
}

.field-group {
    margin-bottom: 24px;
}

.row-fields {
    display: flex;
    gap: 20px;
}

.row-fields > .field-group {
    flex: 1;
}

/* ========================================
   OPTION CARDS
======================================== */
.option-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.option-card {
    flex: 1;
    min-width: 120px;
    padding: 18px 16px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-fast);
    user-select: none;
}

.option-card:hover {
    border-color: var(--gray-300);
    background: var(--gray-100);
}

.option-card.selected {
    border-color: var(--accent);
    background: rgba(201, 162, 39, 0.08);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.option-card i {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.option-card.selected i {
    color: var(--accent);
}

.option-card .option-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.option-card.selected .option-label {
    color: var(--accent-dark);
}

.option-card input[type="radio"] {
    display: none;
}

/* ========================================
   BUTTONS
======================================== */
.btn-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 16px;
}

.btn-prev {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 99px;
    border: 2px solid var(--gray-300);
    background: transparent;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.btn-prev:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.btn-next {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 99px;
    border: none;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: auto;
    font-family: inherit;
}

.btn-next:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================================
   FORM STEPS
======================================== */
.form-step {
    display: none;
    animation: fadeIn 0.35s ease;
}

.form-step.active {
    display: block;
}

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

/* ========================================
   SECTION DIVIDER
======================================== */
.section-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 8px 0 28px;
}

/* ========================================
   CALENDAR
======================================== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 16px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.calendar-nav {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-200);
    background: transparent;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.calendar-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.day-name {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    padding: 8px 0;
    text-transform: uppercase;
}

.day-cell {
    text-align: center;
    padding: 10px 6px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.day-cell:hover:not(.disabled):not(.empty) {
    background: rgba(201, 162, 39, 0.1);
    border-color: rgba(201, 162, 39, 0.3);
}

.day-cell.selected {
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
}

.day-cell.disabled {
    color: var(--gray-300);
    cursor: not-allowed;
}

.day-cell.empty {
    cursor: default;
}

.day-cell.today {
    border-color: var(--accent);
}

/* ========================================
   TIME SLOTS
======================================== */
.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.time-slot {
    padding: 12px 10px;
    text-align: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--gray-50);
}

.time-slot:hover:not(.disabled) {
    border-color: var(--accent);
    background: rgba(201, 162, 39, 0.08);
}

.time-slot.selected {
    background: rgba(201, 162, 39, 0.15);
    border-color: var(--accent);
    color: var(--accent-dark);
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    background: var(--gray-100) !important;
    color: var(--gray-400) !important;
    border-color: var(--gray-200) !important;
}

/* ========================================
   CONFIRMATION SCREEN
======================================== */
.confirmation-screen {
    text-align: center;
    padding: 24px 0;
}

.confirmation-icon {
    width: 88px;
    height: 88px;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 3px solid rgba(201, 162, 39, 0.3);
}

.confirmation-icon i {
    font-size: 36px;
    color: var(--accent);
}

.confirmation-screen h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.confirmation-screen .conf-subtitle {
    color: var(--gray-500);
    font-size: 16px;
    margin-bottom: 32px;
}

/* Confirmation Summary */
.confirmation-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.conf-section {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
    background: var(--gray-50);
}

.conf-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.conf-section-title i {
    color: var(--accent);
}

.conf-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.conf-label {
    color: var(--gray-500);
}

.conf-value {
    font-weight: 600;
    color: var(--gray-800);
    text-align: right;
}

/* Summary Card */
.summary-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: left;
    margin-bottom: 28px;
}

.summary-card h5 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

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

.summary-row .label {
    color: var(--gray-500);
}

.summary-row .value {
    color: var(--gray-800);
    font-weight: 600;
}

/* ========================================
   CONTACT ACTIONS
======================================== */
.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 99px;
    border: none;
    background: #25d366;
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.btn-whatsapp:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-email {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 99px;
    border: 2px solid var(--gray-300);
    background: transparent;
    color: var(--gray-700);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.btn-email:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
    transform: translateY(-2px);
}

/* ========================================
   FOOTER
======================================== */
.form-footer {
    text-align: center;
    margin-top: 48px;
    padding-bottom: 40px;
    color: var(--gray-500);
    font-size: 13px;
}

/* ========================================
   RESPONSIVE
======================================== */

/* Tablet */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 100px 16px 40px;
    }
    
    .form-card {
        padding: 36px 28px;
    }
    
    .form-card h2 {
        font-size: 24px;
    }
    
    .row-fields {
        flex-direction: column;
        gap: 0;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .day-cell {
        padding: 8px 4px;
        font-size: 13px;
    }
    
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .navbar-brand {
        font-size: 18px;
    }
    
    .navbar-nav {
        display: none;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .form-wrapper {
        padding: 88px 12px 32px;
    }
    
    .form-card {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }

    .form-card h2 {
        font-size: 22px;
    }

    .option-cards {
        flex-direction: column;
    }

    .option-card {
        min-width: auto;
        padding: 14px;
    }
    
    .option-card i {
        font-size: 24px;
    }

    .time-slots {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .time-slot {
        padding: 10px 6px;
        font-size: 13px;
    }

    .contact-actions {
        flex-direction: column;
    }

    .btn-whatsapp,
    .btn-email {
        width: 100%;
        justify-content: center;
    }

    .btn-actions {
        flex-direction: column;
    }

    .btn-prev, .btn-next {
        width: 100%;
        justify-content: center;
    }

    .btn-next {
        margin-left: 0;
    }
    
    .form-input {
        font-size: 16px;
        padding: 16px;
    }
    
    .calendar-grid {
        gap: 3px;
    }
    
    .day-name {
        font-size: 10px;
    }
    
    .day-cell {
        padding: 8px 3px;
        font-size: 12px;
    }
    
    .summary-card {
        padding: 20px;
    }
    
    .confirmation-icon {
        width: 72px;
        height: 72px;
    }
    
    .confirmation-icon i {
        font-size: 28px;
    }
    
    .conf-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .conf-value {
        text-align: left;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .form-wrapper {
        padding: 80px 8px 24px;
    }
    
    .form-card {
        padding: 24px 16px;
    }
    
    .form-card h2 {
        font-size: 20px;
    }
    
    .step-subtitle {
        font-size: 14px;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-wrapper {
        margin-bottom: 32px;
    }
    
    .navbar {
        padding: 0 16px;
        height: 64px;
    }
    
    .logo {
        width: 36px;
        height: 36px;
    }
    
    .navbar-brand {
        font-size: 16px;
    }
}
/* ========================================
   MINI-FORM CONTEXTUAL (Paso 3 — vehículo)
   Agregar al final de formulario_cliente.css
   VERSIÓN CORREGIDA: valores de color explícitos
   para garantizar estilos aunque las variables
   CSS no estén disponibles en todos los contextos.
======================================== */
.mini-form-ctx {
    margin: 4px 0 24px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 22px 8px;
    background: #fafafa;
    animation: miniFormIn .2s ease;
}
@keyframes miniFormIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mini-form-header {
    font-size: 13px;
    font-weight: 700;
    color: #a07c18;          /* accent-dark hardcoded */
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mini-form-header i {
    font-size: 16px;
    color: #c9a227;          /* accent hardcoded */
}
.mini-q-group {
    margin-bottom: 18px;
}
.mini-q-group .form-label-custom {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 10px;
    display: block;
}
.mini-toggle-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mini-tog {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid #e5e7eb;
    border-radius: 99px;
    cursor: pointer;
    background: #ffffff;
    color: #4b5563;
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
    line-height: 1.4;
}
.mini-tog:hover {
    border-color: #d1d5db;
    color: #111827;
    background: #f3f4f6;
}
.mini-tog.selected {
    border-color: #c9a227;
    background: rgba(201, 162, 39, .12);
    color: #a07c18;
    font-weight: 600;
}
/* Separador visual entre optgroup en select de marcas */
select optgroup {
    font-weight: 700;
    color: #6b7280;
    font-size: 12px;
}
/* Responsive mini-form */
@media (max-width: 576px) {
    .mini-form-ctx {
        padding: 16px 14px 4px;
    }
    .mini-tog {
        padding: 6px 12px;
        font-size: 12px;
    }
}