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

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #E6F0FF;
    --accent: #8B5CF6;
    --accent-light: rgba(139, 92, 246, 0.15);
    --secondary: #64748B;
    --dark: #0F172A;
    --dark-card: #1E293B;
    --light: #D4E9FF; /* Stronger premium light blue for section contrast */
    --white: #FFFFFF;
    --success: #10B981;
    --error: #EF4444;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== PRELOADER / INTRO ANIMATION ===================== */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s;
}
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    animation: loaderReveal 0.8s ease-out forwards;
}

@keyframes loaderReveal {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.loader-logo {
    max-height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-md);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 10px rgba(0, 102, 255, 0.3)); }
    50%      { filter: brightness(1.2) drop-shadow(0 0 25px rgba(0, 102, 255, 0.6)); }
}

.loader-bar-track {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    margin: 0 auto;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    animation: loadBar 1.8s ease-in-out forwards;
}

@keyframes loadBar {
    0%   { width: 0%; }
    60%  { width: 70%; }
    100% { width: 100%; }
}

.loader-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 1rem;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main);
    background-color: #E0F0FF; /* Increased blue intensity for modern background */
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
body.chatbot-open { overflow: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; margin-bottom: var(--space-sm); }
h3 { font-size: 1.5rem; margin-bottom: var(--space-xs); }

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

.subtitle { font-size: 1.25rem; color: var(--secondary); max-width: 700px; margin-bottom: var(--space-lg); }

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 2rem; font-weight: 600; font-size: 1rem;
    border-radius: var(--radius-full); transition: var(--transition);
    cursor: pointer; border: none; gap: 0.5rem; font-family: var(--font-main);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(0, 102, 255, 0.39);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
}
.btn-secondary { background-color: var(--primary-light); color: var(--primary); }
.btn-secondary:hover { background-color: #D1E5FF; transform: translateY(-2px); }

/* ===================== HEADER ===================== */
.header {
    position: fixed;
    top: 20px; /* Floating */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px; /* Pill shape */
    padding: 0.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.header .container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; border-radius: var(--radius-sm); overflow: hidden; }
.logo-svg { height: 50px; width: auto; display: block; }

.nav { display: flex; gap: 2rem; align-items: center; }
.nav-link {
    font-size: 0.875rem; font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.01em;
    position: relative;
}
.nav-link:hover { color: var(--white); }
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--accent);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.cta-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600; font-size: 0.8125rem;
}
.cta-header:hover { box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); }

@media (max-width: 768px) {
    .nav-link { display: none; }
    .cta-header { display: inline-block; }
}

/* ===================== HERO ===================== */
.hero {
    padding: var(--space-xl) 0;
    margin-top: 100px; /* Adjusted for floating header */
    background: radial-gradient(circle at top right, rgba(0, 102, 255, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.05), transparent 40%);
    text-align: center;
    position: relative; overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 900px; margin: 0 auto; }
.hero-title { margin-bottom: var(--space-md); }
.hero-subtitle { margin: 0 auto var(--space-lg); }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.cta-note { font-size: 0.875rem; color: var(--secondary); }

/* ===================== SECTIONS ===================== */
section { padding: var(--space-xl) 0; }
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.badge {
    display: inline-block; padding: 0.25rem 0.75rem;
    background: var(--primary-light); color: var(--primary);
    border-radius: var(--radius-full); font-size: 0.75rem;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: var(--space-sm);
}

/* ===================== CARDS & GRIDS ===================== */
.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(2, 1fr); }

/* Make odd last item span 2 columns if needed for 2x2 layout */
.grid-5 .card:last-child:nth-child(odd) {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
}

.card {
    background: var(--white); padding: var(--space-lg);
    border-radius: var(--radius-lg); border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition); height: 100%;
}
.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* ===================== SECTIONS SPECIFIC ===================== */
.autoridad { background-color: var(--light); }
.autoridad-item { text-align: center; }
.autoridad-icon { font-size: 2.5rem; margin-bottom: var(--space-sm); display: block; }

.problem-card { background: #FFF5F5; border-color: #FED7D7; }
.problem-card h3 { color: #C53030; }

/* Visualizacion */
.visualizacion { background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%); color: var(--white); }
.visualizacion h2 { color: var(--white); }
.escenario {
    display: flex; align-items: center; gap: var(--space-md);
    padding: var(--space-md); background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md); border-left: 4px solid var(--accent);
    margin-bottom: var(--space-sm); transition: var(--transition);
}
.escenario:hover { background: rgba(255, 255, 255, 0.08); transform: translateX(10px); }
.escenario-icon { font-size: 2rem; }
.escenario-text { font-size: 1.125rem; }

/* Solucion */
.solution-number { font-size: 0.875rem; font-weight: 800; color: var(--accent); margin-bottom: var(--space-xs); display: block; }
.features-list { margin-top: var(--space-md); }
.feature { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--secondary); margin-bottom: 0.25rem; }

/* Beneficios */
.benefit-item { text-align: center; }
.benefit-icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }

/* Stats */
.stats-section { display: flex; justify-content: center; gap: var(--space-lg); margin-top: var(--space-xl); flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat p { color: var(--secondary); font-weight: 500; }

/* Proceso */
.sistema-trabajo { background-color: var(--light); }
.proceso-card { text-align: center; position: relative; }
.proceso-number {
    width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white); border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: 800; font-size: 1.25rem;
    margin: 0 auto var(--space-sm); box-shadow: 0 4px 10px rgba(0, 102, 255, 0.2);
}

/* ===================== CONTACT / DEMO (Dark Split Layout) ===================== */
.demo {
    background: linear-gradient(135deg, var(--dark) 0%, #0B1120 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.demo::before {
    content: '';
    position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.demo-content {
    max-width: 100%;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.contact-info {
    padding: var(--space-lg) 0;
}

.contact-info h2 { color: var(--white); margin-bottom: var(--space-md); }
.contact-info-subtitle { color: rgba(255,255,255,0.6); margin-bottom: var(--space-lg); }

.contact-detail {
    display: flex; align-items: center; gap: var(--space-md);
    margin-bottom: var(--space-md);
}
.contact-detail-icon {
    width: 48px; height: 48px;
    background: var(--accent-light); color: var(--accent);
    border-radius: var(--radius-md); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}
.contact-detail-text h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.125rem; }
.contact-detail-text p { color: rgba(255,255,255,0.6); font-size: 0.875rem; }

.why-us {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
}
.why-us h4 { color: var(--white); margin-bottom: var(--space-sm); }
.why-us ul li {
    color: rgba(255,255,255,0.7);
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.9375rem;
}
.why-us ul li::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    width: 6px; height: 6px; background: var(--accent);
    border-radius: 50%; transform: translateY(-50%);
}

/* Contact Form (Dark Theme) */
.demo-form {
    background: var(--dark-card);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,0.06);
}

.form-group { margin-bottom: var(--space-md); }
.form-group label {
    display: block; font-size: 0.875rem; font-weight: 600;
    margin-bottom: 0.5rem; color: var(--white);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--white);
    font-family: var(--font-main); font-size: 1rem;
    transition: var(--transition);
}
.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    background: rgba(255,255,255,0.06);
}
.form-group select option { background: var(--dark-card); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }

.btn-full { width: 100%; margin-top: var(--space-sm); }
.btn-full:disabled {
    opacity: 0.72;
    cursor: wait;
}
.form-status {
    min-height: 1.4rem;
    margin-top: 0.85rem;
    font-size: 0.8125rem;
    text-align: center;
    color: rgba(255,255,255,0.62);
}
.form-status.is-success {
    color: #86efac;
}
.form-status.is-error {
    color: #fca5a5;
}
.form-note { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-align: center; margin-top: var(--space-sm); }

@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; }
}

/* ===================== TESTIMONIALS ===================== */
.reseñas { background-color: var(--light); }
.reseñas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.reseña-card {
    background: var(--white); padding: var(--space-lg);
    border-radius: var(--radius-lg); border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}
.reseña-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.reseña-stars { color: #FBBF24; font-size: 1.25rem; margin-bottom: var(--space-sm); }
.reseña-text { font-size: 1rem; color: var(--dark); line-height: 1.6; margin-bottom: var(--space-md); }
.reseña-author strong { display: block; font-size: 1rem; }
.reseña-author span { font-size: 0.8125rem; color: var(--secondary); }

/* ===================== FOOTER ===================== */
.footer { padding: var(--space-xl) 0 var(--space-lg); background-color: var(--dark); color: var(--white); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-lg); }
.footer-section h4 { color: var(--white); margin-bottom: var(--space-md); }
.footer-section p { color: #94A3B8; }
.footer-section a { display: block; color: #94A3B8; margin-bottom: 0.5rem; }
.footer-section a:hover { color: var(--accent); }
.footer-bottom { padding-top: var(--space-lg); border-top: 1px solid rgba(255, 255, 255, 0.06); text-align: center; color: #64748B; font-size: 0.875rem; }

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* ===================== CHATBOT FLOATING WIDGET ===================== */
.chatbot-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.chatbot-panel {
    width: min(380px, calc(100vw - 2rem));
    height: min(620px, calc(100vh - 7rem));
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.chatbot-widget.is-open .chatbot-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chatbot-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.9rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.22), rgba(139, 92, 246, 0.22));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-panel-copy h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0;
}

.chatbot-panel-label {
    display: inline-block;
    margin-bottom: 0.2rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chatbot-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chatbot-external-link,
.chatbot-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font: inherit;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.chatbot-external-link {
    padding: 0 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.chatbot-close {
    padding: 0;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.chatbot-external-link:hover,
.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.chatbot-frame-shell {
    flex: 1;
    min-height: 0;
    background: var(--white);
}

.chatbot-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: var(--white);
}

.chatbot-toggle {
    border: none;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(0, 102, 255, 0.3);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.25s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.chatbot-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(0, 102, 255, 0.38);
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
}

.chatbot-widget.is-open .chatbot-toggle {
    transform: scale(0.96);
}

.chatbot-toggle-text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: var(--white);
}

.chatbot-toggle-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    position: relative;
    flex-shrink: 0;
}

.chatbot-toggle-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    animation: chatbotPulse 2.2s ease-out infinite;
}

.chatbot-toggle-icon svg {
    width: 28px;
    height: 28px;
}

@keyframes chatbotPulse {
    0% {
        opacity: 0.9;
        transform: scale(0.9);
    }
    70% {
        opacity: 0;
        transform: scale(1.25);
    }
    100% {
        opacity: 0;
        transform: scale(1.25);
    }
}

/* ===================== ANIMATIONS ===================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Stagger animation for children */
.reveal.active > .card:nth-child(1),
.reveal.active > .escenario:nth-child(1),
.reveal.active > .benefit-item:nth-child(1),
.reveal.active > .reseña-card:nth-child(1) { transition-delay: 0.1s; }
.reveal.active > .card:nth-child(2),
.reveal.active > .escenario:nth-child(2),
.reveal.active > .benefit-item:nth-child(2),
.reveal.active > .reseña-card:nth-child(2) { transition-delay: 0.2s; }
.reveal.active > .card:nth-child(3),
.reveal.active > .escenario:nth-child(3),
.reveal.active > .benefit-item:nth-child(3),
.reveal.active > .reseña-card:nth-child(3) { transition-delay: 0.3s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 1s ease-out forwards; }

@media (max-width: 768px) {
    .header { width: 95%; top: 10px; padding: 0.5rem 1rem; }
    .logo-svg { height: 35px; }
    .nav { display: none; }
    .grid-2, .grid-3, .grid-4, .grid-5, .reseñas-grid { grid-template-columns: 1fr; }
    .grid-5 .card:last-child:nth-child(odd) {
        grid-column: span 1;
        max-width: 100%;
    }
    .chatbot-widget {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        left: 16px;
        align-items: stretch;
    }
    .chatbot-panel {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: calc(88px + env(safe-area-inset-bottom));
        width: 100vw;
        height: auto;
        border-radius: 0;
        transform: translateY(100%);
        transform-origin: bottom center;
    }
    .chatbot-panel-header {
        padding: calc(0.9rem + env(safe-area-inset-top)) 0.9rem 0.9rem;
    }
    .chatbot-toggle {
        align-self: flex-end;
        gap: 0.65rem;
        padding-left: 0.85rem;
        max-width: calc(100vw - 32px);
    }
    .chatbot-toggle-text {
        font-size: 0.88rem;
        white-space: normal;
        text-align: left;
    }
    .chatbot-toggle-icon {
        width: 52px;
        height: 52px;
    }
    .chatbot-widget.is-open .chatbot-toggle {
        opacity: 0;
        transform: translateY(12px);
        pointer-events: none;
    }
}
