/* ========================================
   WALTSDESIGN.STUDIO - PROFESSIONAL MINIMALIST
   Paleta: Platinum + Deep Slate + Glassmorphism Premium
   Corregido: Animación visible, placeholder chat, grid agentes
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Paleta Profesional Base */
    --deep-slate: #0f1419;
    --midnight: #1a1f2e;
    --charcoal: #2a2f3d;
    --slate: #3d4356;
    
    /* Acentos Premium */
    --platinum: #e8e9ed;
    --silver: #c5c7cf;
    --steel: #8b8d98;
    --accent-primary: #6b7ce0;
    --accent-warm: #b084cc;
    --accent-cool: #5eb3d4;
    
    /* Efectos Sutiles */
    --glow-soft: 0 0 20px rgba(107, 124, 224, 0.15);
    --glow-warm: 0 0 20px rgba(176, 132, 204, 0.12);
    
    /* Glassmorphism Premium */
    --glass-bg: rgba(42, 47, 61, 0.4);
    --glass-border: rgba(232, 233, 237, 0.08);
    --glass-blur: blur(24px);
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font-primary);
    
    /* Espaciado */
    --space-1: 0.2rem;
    --space-2: 0.3rem;
    --space-3: 0.5rem;
    --space-4: .8rem;
    --space-5: 1rem;
    --space-6: 1.6rem;
    --space-8: 2.6|rem;
    --space-10: 3.6rem;
    --space-12: 4.6rem;
    --space-16: 5.6rem;
    
    /* Transiciones */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    --promo-height: 44px;
}

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

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

body {
    font-family: var(--font-primary);
    color: var(--silver);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--deep-slate);
    padding-top: var(--promo-height);
}

body.chat-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(107, 124, 224, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 124, 224, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--platinum);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 1;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-warm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   HEADER PROMOCIONAL
   ======================================== */
.promo-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--promo-height);
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(107, 124, 224, 0.1);
}

.promo-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    max-width: 1400px;
    margin: 0 auto;
}

.promo-marquee {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.promo-content {
    display: flex;
    gap: var(--space-16);
    animation: marqueeScroll 40s linear infinite;
    white-space: nowrap;
}

.promo-text {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.language-toggle {
    display: flex;
    align-items: center;
    background: rgba(107, 124, 224, 0.08);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(107, 124, 224, 0.15);
}

.lang-btn {
    padding: 0.375rem 1rem;
    background: transparent;
    border: none;
    color: var(--steel);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-fast);
    text-transform: uppercase;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
    color: #ffffff;
    box-shadow: var(--glow-soft);
}

.lang-btn:hover:not(.active) {
    color: var(--accent-primary);
    background: rgba(107, 124, 224, 0.1);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-10) 0;
    overflow: hidden;
}

.neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1 !important;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(15, 20, 25, 0.5) 0%,
        rgba(15, 20, 25, 0.75) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-10);
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Avatar Profesional */
.avatar-wrapper {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    position: relative;
}

.avatar-rings {
    position: absolute;
    inset: -24px;
    pointer-events: none;
}

.ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid transparent;
    animation: ringRotate 20s linear infinite;
}

.ring-1 {
    border-color: rgba(107, 124, 224, 0.25);
    animation-duration: 15s;
}

.ring-2 {
    border-color: rgba(176, 132, 204, 0.2);
    animation-duration: 20s;
    animation-direction: reverse;
}

.ring-3 {
    border-color: rgba(94, 179, 212, 0.15);
    animation-duration: 25s;
}

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

.avatar-frame {
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, 
        rgba(107, 124, 224, 0.3), 
        rgba(176, 132, 204, 0.3)
    );
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.avatar-frame::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: rgba(15, 20, 25, 0.6);
    backdrop-filter: blur(10px);
    z-index: 0;
}

.avatar-photo {
    width: 100%;
    height: auto;
    border-radius: 50%;
    display: block;
    border: 3px solid var(--deep-slate);
    position: relative;
    z-index: 1;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.avatar-badge {
    position: absolute;
    bottom: var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-2) var(--space-5);
    border-radius: 20px;
    border: 1px solid rgba(107, 124, 224, 0.3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    z-index: 100;
}

.badge-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--platinum);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(107, 124, 224, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(107, 124, 224, 0); }
}

/* Hero Content */
.hero-content-col {
    width: 100%;
}

.hero-content-box {
    max-width: 650px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(107, 124, 224, 0.08);
    border: 1px solid rgba(107, 124, 224, 0.2);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: var(--space-5);
}

.tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    line-height: 1.1;
    color: var(--platinum);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--space-5);
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--steel);
    margin-bottom: var(--space-6);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--steel);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(107, 124, 224, 0.3), transparent);
}

.hero-cta-group {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    white-space: nowrap;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(107, 124, 224, 0.25);
}

.cta-button.primary:hover {
    box-shadow: 0 8px 30px rgba(107, 124, 224, 0.35);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: rgba(107, 124, 224, 0.1);
    color: var(--platinum);
    border: 1px solid rgba(107, 124, 224, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(107, 124, 224, 0.15);
    border-color: var(--accent-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0.5;
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========================================
   SECCIONES
   ======================================== */
.services-section,
.agents-section,
.flyers-section,
.contact-section {
    padding: var(--space-12) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: var(--space-4);
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--steel);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-6);
}

.service-card {
    padding: var(--space-6);
    border-radius: 20px;
    transition: var(--transition-base);
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(107, 124, 224, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card.featured {
    background: linear-gradient(135deg, rgba(107, 124, 224, 0.08), rgba(176, 132, 204, 0.05));
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
}

.service-icon.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
    color: #ffffff;
    box-shadow: var(--glow-soft);
}

.service-icon.secondary {
    background: rgba(176, 132, 204, 0.15);
    color: var(--accent-warm);
}

.service-icon.tertiary {
    background: rgba(94, 179, 212, 0.15);
    color: var(--accent-cool);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
    font-weight: 600;
}

.card-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--steel);
    margin-bottom: var(--space-5);
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(107, 124, 224, 0.08);
    border: 1px solid rgba(107, 124, 224, 0.15);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--silver);
    font-weight: 500;
}

/* ========================================
   AGENT CARDS - GRID (NO SLIDER)
   ======================================== */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.agent-card {
    padding: var(--space-6);
    border-radius: 20px;
    transition: var(--transition-base);
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.agent-card:hover {
    transform: translateY(-4px);
    border-color: rgba(107, 124, 224, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.agent-avatar-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-4);
    position: relative;
}

.agent-avatar-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
    position: relative;
}

.agent-avatar-frame::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--midnight);
    z-index: 0;
}

.agent-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--midnight);
    position: relative;
    z-index: 1;
}

.agent-name {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    color: var(--platinum);
}

.agent-role {
    font-size: 0.875rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.agent-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--steel);
    margin-bottom: var(--space-5);
}

.agent-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: left;
    margin-bottom: var(--space-5);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: 0.9375rem;
    color: var(--steel);
}

.feature-item i {
    color: var(--accent-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.agent-cta {
    padding: var(--space-3) var(--space-5);
    background: rgba(107, 124, 224, 0.1);
    border: 1px solid rgba(107, 124, 224, 0.3);
    border-radius: 10px;
    color: var(--platinum);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    width: 100%;
    margin-top: auto;
}

.agent-cta:hover {
    background: rgba(107, 124, 224, 0.15);
    border-color: var(--accent-primary);
}

/* ========================================
   FLYERS SECTION - REDISEÑADO DESDE CERO
   ======================================== */
.flyers-section {
    background: linear-gradient(180deg, transparent 0%, rgba(107, 124, 224, 0.02) 50%, transparent 100%);
    overflow: hidden;
}

.flyers-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.flyers-viewport {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) 0;
}

.flyers-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.flyers-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.flyer-item {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--space-4);
}

.flyer-card {
    width: 100%;
    max-width: 340px;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-base);
    margin: 0 auto;
}

.flyer-card:hover {
    transform: translateY(-4px);
    border-color: rgba(107, 124, 224, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.flyer-image {
    width: 100%;
    aspect-ratio: 2/3;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
}

.flyer-title {
    font-size: 1.125rem;
    font-weight: 600;
    padding: var(--space-4);
    text-align: center;
    background: var(--glass-bg);
    color: var(--platinum);
    border-radius: 0 0 12px 12px;
}

.flyers-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(107, 124, 224, 0.15);
    border: 1px solid rgba(107, 124, 224, 0.4);
    color: var(--platinum);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    flex-shrink: 0;
}

.flyers-nav:hover {
    background: rgba(107, 124, 224, 0.25);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(107, 124, 224, 0.3);
}

.flyers-nav-prev {
    left: var(--space-2);
}

.flyers-nav-next {
    right: var(--space-2);
}

.flyers-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
}

.flyer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(107, 124, 224, 0.3);
    cursor: pointer;
    transition: var(--transition-fast);
}

.flyer-dot.active {
    background: var(--accent-primary);
    width: 24px;
    border-radius: 4px;
}

.flyers-cta {
    text-align: center;
    margin-top: var(--space-8);
}

.flyers-cta-text {
    font-size: 1.125rem;
    color: var(--steel);
    margin-bottom: var(--space-5);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    padding: var(--space-6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: var(--transition-base);
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(107, 124, 224, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-card.calendly .contact-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
    color: #ffffff;
}

.contact-card.facebook .contact-icon {
    background: rgba(24, 119, 242, 0.15);
    color: #1877f2;
}

.contact-content {
    flex: 1;
}

.contact-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.contact-desc {
    font-size: 0.9375rem;
    color: var(--steel);
}

.contact-arrow {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: var(--space-10) 0 var(--space-6);
    border-top: 1px solid rgba(107, 124, 224, 0.1);
    margin-top: var(--space-12);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-6);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.footer-brand p {
    color: var(--steel);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-links a {
    color: var(--steel);
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(107, 124, 224, 0.1);
    color: var(--steel);
    font-size: 0.9375rem;
}

.footer-bottom i {
    color: var(--accent-warm);
}

/* ========================================
   CHAT WIDGET
   ======================================== */
.chat-teaser-bubble {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: var(--space-3) var(--space-4);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    max-width: 250px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.chat-teaser-bubble.hidden {
    opacity: 0;
    transform: translateY(10px);
}

.chat-teaser-text {
    font-size: 0.9375rem;
    color: var(--silver);
    margin: 0;
    line-height: 1.4;
}

.chat-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(107, 124, 224, 0.4);
    position: relative;
}

.chat-fab:hover {
    box-shadow: 0 12px 32px rgba(107, 124, 224, 0.5);
    transform: scale(1.05);
}

.chat-fab-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chat-fab-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-fab-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-fab-icon {
    font-size: 1.5rem;
    color: #ffffff;
}

.chat-fab-close-icon {
    display: none;
    font-size: 1.25rem;
    color: #ffffff;
}

#chatWidget.open .chat-fab-avatar {
    display: none;
}

#chatWidget.open .chat-fab-close-icon {
    display: flex;
}

#chatWidget.open .chat-teaser-bubble {
    opacity: 0;
    pointer-events: none;
}

.chat-panel {
    width: 380px;
    height: 600px;
    max-height: 80vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#chatWidget.open .chat-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-header {
    padding: var(--space-4);
    border-bottom: 1px solid rgba(107, 124, 224, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chat-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.chat-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-header-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
    color: #ffffff;
    font-size: 1.25rem;
}

.chat-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 2px solid var(--midnight);
    box-shadow: 0 0 10px rgba(107, 124, 224, 0.5);
}

.chat-header-name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--platinum);
    margin: 0;
}

.chat-header-status {
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin: 0;
}

.chat-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(107, 124, 224, 0.1);
    border: 1px solid rgba(107, 124, 224, 0.2);
    color: var(--platinum);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close-btn:hover {
    background: rgba(107, 124, 224, 0.15);
    border-color: var(--accent-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    background: rgba(10, 12, 16, 0.5);
}

.chat-msg {
    display: flex;
    gap: var(--space-2);
    animation: messageSlideIn 0.3s ease;
}

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

.chat-bubble {
    padding: var(--space-3) var(--space-4);
    border-radius: 12px;
    max-width: 75%;
    line-height: 1.5;
    font-size: 0.9375rem;
    word-wrap: break-word;
}

.bot-bubble {
    background: rgba(107, 124, 224, 0.12);
    border: 1px solid rgba(107, 124, 224, 0.2);
    color: var(--silver);
    border-radius: 12px 12px 12px 4px;
}

.user-bubble {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
    color: #ffffff;
    margin-left: auto;
    border-radius: 12px 12px 4px 12px;
}

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

.chat-quick-replies {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.quick-reply-btn {
    padding: var(--space-4) var(--space-5);
    background: linear-gradient(135deg, rgba(107, 124, 224, 0.12), rgba(176, 132, 204, 0.08));
    border: 1px solid rgba(107, 124, 224, 0.3);
    border-radius: 12px;
    color: var(--platinum);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: left;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.quick-reply-btn i {
    font-size: 1.125rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.quick-reply-btn:hover {
    background: linear-gradient(135deg, rgba(107, 124, 224, 0.2), rgba(176, 132, 204, 0.15));
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(107, 124, 224, 0.2);
    transform: translateY(-2px);
}

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

.chat-input-area {
    padding: var(--space-3) var(--space-4);
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(107, 124, 224, 0.1);
    flex-shrink: 0;
}

.chat-input-row {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: rgba(107, 124, 224, 0.08);
    border: 1px solid rgba(107, 124, 224, 0.2);
    border-radius: 20px;
    color: var(--platinum);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-base);
}

.chat-input:focus {
    border-color: var(--accent-primary);
    background: rgba(107, 124, 224, 0.12);
}

.chat-input::placeholder {
    color: var(--silver);
    opacity: 0.7;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(107, 124, 224, 0.3);
}

.chat-send-btn:hover {
    box-shadow: 0 6px 16px rgba(107, 124, 224, 0.4);
    transform: scale(1.05);
}

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

.chat-powered-by {
    font-size: 0.6875rem;
    color: var(--steel);
    text-align: center;
    margin-top: var(--space-2);
}

.chat-powered-by strong {
    color: var(--accent-primary);
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--midnight);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-warm));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

::selection {
    background: rgba(107, 124, 224, 0.3);
    color: #ffffff;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 968px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .avatar-wrapper {
        max-width: 220px;
    }

    .hero-content-box {
        max-width: 100%;
    }

    .hero-tag,
    .hero-stats,
    .hero-cta-group {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }

    .services-grid,
    .agents-grid {
        grid-template-columns: 1fr;
    }
    
    .flyers-slider-container {
        padding: 0 50px;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL
   ======================================== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle .gradient-text {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .contact-hub {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-6);
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .chat-panel {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    #chatWidget.open .chat-panel {
        transform: translateY(0) scale(1) !important;
    }
    
    .flyer-card {
        max-width: 280px;
    }
}

@media (max-width: 375px) {
    .avatar-wrapper {
        max-width: 180px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}
