/* ============================================
   COTIZADOR INTELIGENTE - NEXORA
   Diseño moderno con glassmorphism y animaciones fluidas
   ============================================ */

:root {
    /* Colores Rvolucion: naranja-fuego (marca) + cyan (tech) */
    --primary: #ff5722;
    --primary-dark: #e64a19;
    --primary-light: #ff7a18;
    --secondary: #2ce8f5;
    --accent: #c6f24e;
    --fire: #ff5722;
    --fire-bright: #ff7a18;
    --cyan: #2ce8f5;
    
    /* Backgrounds */
    --bg-dark: #06080d;
    --bg-darker: #04060a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 87, 34, 0.4);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(255, 87, 34, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --header-height: 80px;
    --sidebar-width: 320px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1a0b2e 50%, var(--bg-dark) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   HEADER
   ============================================ */

.cotizador-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(6, 8, 13, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.header-content {
    max-width: 100%;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    
    padding: 0.75rem 1.5rem;
    
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    
    transition: all var(--transition-normal);
}

.back-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateX(-4px);
}

.back-link svg {
    stroke: currentColor;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 30px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-badge {
    padding: 0.35rem 0.875rem;
    background: rgba(255, 87, 34, 0.15);
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.btn-help {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    
    padding: 0.75rem 1.5rem;
    
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    
    cursor: pointer;
    
    box-shadow: var(--shadow-md);
    
    transition: all var(--transition-normal);
}

.btn-help:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-help svg {
    stroke: white;
}

/* Barra de progreso */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.progress-fill {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition-slow);
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */

.cotizador-container {
    margin-top: var(--header-height);
    display: flex;
    min-height: calc(100vh - var(--header-height));
    position: relative;
    z-index: 2;
}

/* ============================================
   SIDEBAR
   ============================================ */

.cotizador-sidebar {
    width: var(--sidebar-width);
    background: rgba(6, 8, 13, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 87, 34, 0.3) transparent;
}

.cotizador-sidebar::-webkit-scrollbar {
    width: 6px;
}

.cotizador-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.cotizador-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 87, 34, 0.3);
    border-radius: 3px;
}

.cotizador-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 87, 34, 0.5);
}

.sidebar-content {
    padding: 2rem 1.5rem;
}

.sidebar-intro {
    margin-bottom: 2rem;
}

.sidebar-intro h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.sidebar-intro p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   NAVEGACIÓN SIDEBAR
   ============================================ */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.nav-item {
    position: relative;
    
    display: flex;
    align-items: center;
    gap: 1rem;
    
    width: 100%;
    padding: 1rem 1.25rem;
    
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    
    color: var(--text-secondary);
    font-family: inherit;
    text-align: left;
    
    cursor: pointer;
    
    transition: all var(--transition-normal);
}

.nav-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(255, 87, 34, 0.1);
    border-color: var(--primary);
    color: var(--text-primary);
}

.nav-item.completed .nav-status svg {
    opacity: 1;
    stroke: #10b981;
}

.nav-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: rgba(255, 87, 34, 0.1);
    border-radius: 10px;
    
    transition: all var(--transition-normal);
}

.nav-item.active .nav-icon {
    background: rgba(255, 87, 34, 0.2);
}

.nav-icon svg {
    stroke: var(--primary);
}

.nav-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: inherit;
}

.nav-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-status {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.nav-status svg {
    opacity: 0;
    transition: opacity var(--transition-normal);
}

/* ============================================
   RESUMEN SIDEBAR
   ============================================ */

.sidebar-summary {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-summary h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    
    padding: 0.75rem;
    
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    
    font-size: 0.85rem;
    
    animation: slideInLeft 0.3s ease;
}

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

.summary-item svg {
    flex-shrink: 0;
    stroke: var(--primary);
}

.summary-item-text {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.4;
}
/* ============================================
   CANVAS PRINCIPAL
   ============================================ */

.cotizador-canvas {
    flex: 1;
    padding: 3rem;
    position: relative;
}

/* ============================================
   STEPS CONTENT
   ============================================ */

.step-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.step-content.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 3rem;
    text-align: center;
}

.step-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    
    background: linear-gradient(135deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   OPTIONS GRID
   ============================================ */

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* ============================================
   OPTION CARD
   ============================================ */

.option-card {
    position: relative;
    
    padding: 2rem;
    
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border: 2px solid var(--border-color);
    border-radius: 20px;
    
    cursor: pointer;
    
    transition: all var(--transition-normal);
    
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    
    transform: scaleX(0);
    transform-origin: left;
    
    transition: transform var(--transition-normal);
}

.option-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(255, 87, 34, 0.15);
}

.option-card:hover::before {
    transform: scaleX(1);
}

.option-card.selected {
    background: rgba(255, 87, 34, 0.08);
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(255, 87, 34, 0.2);
}

.option-card.selected::before {
    transform: scaleX(1);
}

/* Badges */
.option-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.option-badge {
    padding: 0.35rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.option-badge.recommended {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.option-badge.hot {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.option-badge.premium {
    background: rgba(44, 232, 245, 0.15);
    border: 1px solid rgba(44, 232, 245, 0.3);
    color: #2ce8f5;
}

.option-badge.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Header del card */
.option-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.option-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: rgba(255, 87, 34, 0.1);
    border-radius: 14px;
    
    transition: all var(--transition-normal);
}

.option-card:hover .option-icon {
    background: rgba(255, 87, 34, 0.2);
    transform: scale(1.05) rotate(5deg);
}

.option-icon svg {
    stroke: var(--primary);
}

.option-info {
    flex: 1;
}

.option-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.option-tagline {
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.option-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Incluye lista */
.option-includes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.option-includes li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.option-includes li svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    stroke: #10b981;
}

/* Footer del card */
.option-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.option-price-range {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.info-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 32px;
    height: 32px;
    
    background: rgba(255, 87, 34, 0.1);
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 50%;
    
    color: var(--primary);
    
    cursor: pointer;
    
    transition: all var(--transition-fast);
}

.info-trigger:hover {
    background: rgba(255, 87, 34, 0.2);
    transform: scale(1.1);
}

.info-trigger svg {
    stroke: currentColor;
}

/* Checkmark para seleccionados */
.option-checkmark {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    
    width: 28px;
    height: 28px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: var(--primary);
    border-radius: 50%;
    
    opacity: 0;
    transform: scale(0);
    
    transition: all var(--transition-normal);
}

.option-card.selected .option-checkmark {
    opacity: 1;
    transform: scale(1);
}

.option-checkmark svg {
    stroke: white;
}

/* ============================================
   STEP FOOTER
   ============================================ */

.step-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    
    padding: 1rem 2rem;
    
    border: none;
    border-radius: 12px;
    
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    
    cursor: pointer;
    
    transition: all var(--transition-normal);
}

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

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

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

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

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

.btn-primary svg,
.btn-secondary svg {
    stroke: currentColor;
}

/* ============================================
   FORMULARIO DE CONTACTO (Step 5)
   ============================================ */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: '*';
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    
    transition: all var(--transition-normal);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 87, 34, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

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

/* ============================================
   PANTALLA DE AGRADECIMIENTO
   ============================================ */

.thank-you-screen {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-icon svg {
    stroke: #10b981;
    width: 48px;
    height: 48px;
}

.thank-you-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.thank-you-message {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.thank-you-email {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    
    padding: 1rem 1.75rem;
    
    background: rgba(255, 87, 34, 0.1);
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 12px;
    
    color: var(--primary-light);
    font-weight: 600;
}

.thank-you-email svg {
    stroke: currentColor;
}
/* ============================================
   CHAT IA - BUBBLE FLOTANTE
   ============================================ */

.ai-chat-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    
    width: 60px;
    height: 60px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    
    cursor: pointer;
    
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    
    z-index: 99;
    
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow-lg), var(--shadow-glow);
    }
    50% {
        box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 87, 34, 0.5);
    }
}

.ai-chat-bubble:hover {
    transform: scale(1.1);
}

.ai-chat-bubble svg {
    stroke: white;
}

/* ============================================
   PANEL DE CHAT IA
   ============================================ */

.ai-chat-panel {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    
    width: 400px;
    height: 600px;
    
    background: rgba(6, 8, 13, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    
    border: 1px solid var(--border-color);
    border-radius: 20px;
    
    box-shadow: var(--shadow-lg);
    
    display: none;
    flex-direction: column;
    
    z-index: 100;
    
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    
    transition: all var(--transition-normal);
}

.ai-chat-panel.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    padding: 1.5rem;
    
    border-bottom: 1px solid var(--border-color);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-title svg {
    stroke: var(--primary);
}

.chat-close {
    width: 32px;
    height: 32px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    
    color: var(--text-secondary);
    
    cursor: pointer;
    
    transition: all var(--transition-fast);
}

.chat-close:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.chat-close svg {
    stroke: currentColor;
}

/* Mensajes del chat */
.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 87, 34, 0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 87, 34, 0.3);
    border-radius: 3px;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    
    animation: messageSlideIn 0.3s ease;
}

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

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: rgba(255, 87, 34, 0.15);
    border-radius: 50%;
}

.chat-message.user .message-avatar {
    background: rgba(44, 232, 245, 0.15);
}

.message-avatar svg {
    stroke: var(--primary);
}

.chat-message.user .message-avatar svg {
    stroke: var(--secondary);
}

.message-content {
    flex: 1;
    
    padding: 1rem;
    
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.chat-message.user .message-content {
    background: rgba(255, 87, 34, 0.1);
    border-color: rgba(255, 87, 34, 0.3);
}

/* Input del chat */
.chat-input-wrapper {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    
    padding: 0.875rem 1.25rem;
    
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    
    transition: all var(--transition-normal);
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 87, 34, 0.05);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    
    cursor: pointer;
    
    transition: all var(--transition-normal);
}

.chat-send:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.chat-send svg {
    stroke: white;
}

/* ============================================
   TOOLTIP IA
   ============================================ */

.ai-tooltip {
    position: fixed;
    
    max-width: 400px;
    
    background: rgba(6, 8, 13, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    
    border: 1px solid var(--border-color);
    border-radius: 16px;
    
    box-shadow: var(--shadow-lg);
    
    padding: 1.5rem;
    
    z-index: 1000;
    
    display: none;
    opacity: 0;
    transform: scale(0.95);
    
    transition: all var(--transition-normal);
}

.ai-tooltip.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.tooltip-loading {
    display: flex;
    align-items: center;
    gap: 1rem;
    
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tooltip-loading .spinner {
    width: 20px;
    height: 20px;
    
    border: 2px solid rgba(255, 87, 34, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    
    animation: spin 0.8s linear infinite;
}

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

.tooltip-content {
    display: none;
    
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tooltip-content.loaded {
    display: block;
}

.tooltip-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    
    width: 28px;
    height: 28px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    
    cursor: pointer;
    
    transition: all var(--transition-fast);
}

.tooltip-close:hover {
    background: var(--bg-card-hover);
    transform: scale(1.1);
}

.tooltip-close svg {
    stroke: var(--text-secondary);
}

/* ============================================
   DECORACIÓN DE FONDO
   ============================================ */

.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    overflow: hidden;
    pointer-events: none;
    
    z-index: 1;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-image: 
        linear-gradient(rgba(255, 87, 34, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 87, 34, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    
    opacity: 0.5;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    
    animation: floatGlow 15s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -300px;
    right: 10%;
}

.bg-glow-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--secondary), transparent);
    bottom: -350px;
    left: 5%;
    animation-delay: -7.5s;
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-50px) scale(1.1);
    }
}

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

@media (max-width: 1200px) {
    .cotizador-sidebar {
        width: 280px;
    }
    
    .cotizador-canvas {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 0;
    }
    
    .cotizador-sidebar {
        position: fixed;
        left: -320px;
        width: 320px;
        z-index: 101;
        
        transition: left var(--transition-slow);
    }
    
    .cotizador-sidebar.mobile-active {
        left: 0;
    }
    
    .cotizador-canvas {
        width: 100%;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 1.5rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-badge {
        font-size: 0.7rem;
    }
    
    .btn-help span {
        display: none;
    }
    
    .cotizador-canvas {
        padding: 1.5rem;
    }
    
    .step-header h1 {
        font-size: 2rem;
    }
    
    .step-header p {
        font-size: 1rem;
    }
    
    .ai-chat-panel {
        width: calc(100vw - 2rem);
        height: calc(100vh - 140px);
        right: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .step-footer {
        flex-direction: column-reverse;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    
    width: 24px;
    height: 24px;
    
    border: 3px solid rgba(255, 87, 34, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    
    animation: spin 0.8s linear infinite;
    
    transform: translate(-50%, -50%);
}







/* ============================================
   MODAL DE COTIZACIÓN RÁPIDA
   Agregar al final de cotizador.css
   ============================================ */

/* Overlay del modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 8, 13, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Contenedor del modal */
.modal-container {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(11, 14, 22, 0.95), rgba(20, 5, 40, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* Botón cerrar */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-close svg {
    color: rgba(255, 255, 255, 0.7);
}

/* Header del modal */
.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon svg {
    color: white;
}

.modal-header h2 {
    font-size: 28px;
    color: white;
    margin: 0 0 12px 0;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin: 0;
}

/* Razón de la recomendación */
.modal-razon {
    background: rgba(255, 87, 34, 0.1);
    border-left: 3px solid var(--primary);
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.modal-razon strong {
    display: block;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.modal-razon p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

/* Items seleccionados */
.modal-items {
    margin-bottom: 24px;
}

.modal-items h3 {
    font-size: 18px;
    color: white;
    margin: 0 0 16px 0;
}

.modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 8px;
}

.modal-item:last-child {
    margin-bottom: 0;
}

.item-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 87, 34, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-info {
    flex: 1;
}

.item-info strong {
    display: block;
    color: white;
    font-size: 14px;
    margin-bottom: 2px;
}

.item-info span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* Total */
.modal-total {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(44, 232, 245, 0.2));
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 32px;
}

.modal-total span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
}

.modal-total strong {
    display: block;
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-total small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* Formulario */
.modal-form h3 {
    font-size: 18px;
    color: white;
    margin: 0 0 8px 0;
}

.modal-form > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0 0 24px 0;
}

.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 8px;
}

.modal-form label svg {
    color: var(--primary-light);
}

.modal-form input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.modal-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.modal-form .btn-lg {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 8px;
}

/* Mensaje de éxito */
.modal-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--success), #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPulse 1.5s ease-in-out infinite;
}

.success-icon svg {
    color: white;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.modal-success h2 {
    font-size: 32px;
    color: white;
    margin: 0 0 16px 0;
}

.modal-success p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0 0 24px 0;
}

.modal-success ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 32px;
    padding: 0;
    list-style: none;
}

.modal-success li {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

/* Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 640px) {
    .modal-container {
        padding: 24px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-total strong {
        font-size: 28px;
    }
}
/* ============================================
   RVOLUCION — Tipografía display en títulos
   ============================================ */
.step-header h1,
.sidebar-intro h2,
.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}
