/* Cargo Seguro Design System - Premium Logistics & Tech Aesthetics */
:root {
    --primary: #0a192f;
    --primary-light: #112240;
    --accent: #00e6da;
    --accent-glow: rgba(0, 230, 218, 0.3);
    --text-main: #ccd6f6;
    --text-dim: #8892b0;
    --white: #ffffff;
    --bg-dark: #020c1b;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-fast: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-slow: 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Libre Baskerville', serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    /* Reducido de 700 para que las letras no se sientan tan gruesas/amontonadas */
    line-height: 1.3;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 3rem;
}

p {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 800px;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.hero-content p {
    margin: 0 auto 2.5rem;
}

/* Utilities */
.container {
    max-width: 1400px;
    /* Aumentado para mayor amplitud de navegación */
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-primary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-glow);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-3px);
}

.btn-filled {
    background: var(--accent);
    color: var(--primary);
}

.btn-filled:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Glassmorphism */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition-fast);
}

.glass-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Grid System */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

/* Dynamic Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 1.5rem 0;
}

header.scrolled {
    background: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(15px);
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav {
    display: flex;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    flex-wrap: nowrap !important;
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-cargo {
    color: #007cad;
}

.nav-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3.5rem;
    /* Aumentado para mayor elegancia */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.btn {
    padding: 0.65rem 1.6rem;
    border-radius: 4px;
    display: inline-block;
    transition: var(--transition-fast);
}

.nav-links a.btn::after {
    display: none;
}

/* Hero Slider Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.35), rgba(2, 12, 27, 0.7));
    z-index: 1;
}

/* Ken Burns Effect */
.slide.active .slide-bg {
    animation: zoomEffect 10s forwards;
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.slide-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease-in;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease-out 0.5s;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 40px;
    height: 4px;
    background: var(--glass-border);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.dot.active {
    background: var(--accent-glow);
}

.dot::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: none;
}

.dot.active::before {
    animation: progress 6s linear forwards;
}

@keyframes progress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
    color: var(--accent);
    font-style: italic;
}

/* Pricing Section Refinement */
#coberturas {
    position: relative;
    background-image: url('cargo-coverage-bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-dark);
}

#coberturas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 25, 47, 0.4), var(--bg-dark));
    z-index: 1;
}

#coberturas .container {
    position: relative;
    z-index: 2;
}

.pricing-table-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-table th {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr {
    transition: var(--transition-fast);
}

.pricing-table tr:hover {
    background: rgba(100, 255, 218, 0.03);
}

.pricing-table td:nth-child(2),
.pricing-table td:nth-child(3) {
    text-align: center;
}

/* Stats Section Refinement */
.stats-section {
    position: relative;
    background-color: var(--bg-dark);
    padding: 60px 0;
}

.stats-section::before {
    display: none;
}

.benefits-section {
    position: relative;
    background-image: url('seguro-de-carga-04.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(2, 12, 27, 0.9), rgba(2, 12, 27, 0.7), rgba(2, 12, 27, 0.9));
    z-index: 1;
}

.benefits-section .container {
    position: relative;
    z-index: 2;
}

.benefits-section h2 {
    color: var(--accent);
}

.stats-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(transparent, rgba(100, 255, 218, 0.2), transparent);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--text-main);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stats-container {
        padding: 3rem 1.5rem;
    }
}

/* Form Row Grid */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

/* Form */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--primary-light);
    border: 1px solid var(--glass-border);
    color: var(--white);
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    background: var(--primary);
}

/* Contact Section Customization */
#contacto {
    background-color: #162a47;
}

/* Footer - Distributed & Elegant */
footer {
    padding: 80px 0 40px;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-item h4 {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-contact-list li a {
    transition: var(--transition-fast);
}

.footer-contact-list li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact-list li {
        justify-content: center;
    }
}

/* Partners Section */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    width: 100%;
    max-width: 150px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border-radius: 8px;
    padding: 10px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) invert(1) brightness(200%);
    mix-blend-mode: screen;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.partner-logo:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.partner-logo:hover img {
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
}

.partner-logo span {
    transition: var(--transition-fast);
}

.partner-logo:hover span {
    color: var(--accent) !important;
    transform: scale(1.1);
}

/* Security Utility - Honeypot */
.vsh {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

.partner-logo:hover {
    transform: translateY(-5px);
}

/* Process Section */
.process-grid {
    margin-top: 2rem;
}

.process-item {
    position: relative;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.process-item:hover {
    background: var(--glass);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.process-number {
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.2;
    font-style: italic;
}

/* Tech Section Refinement */
.tech-feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.tech-icon {
    font-size: 1.5rem;
    background: var(--primary-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.tech-mockup {
    position: relative;
    padding: 0.5rem;
    background: #000;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mockup-header {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: #111;
    border-bottom: 1px solid #222;
    margin-bottom: 4px;
}

.mockup-header span:not(:last-child) {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
}

.mockup-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.overlay-stat {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    padding: 4px 10px;
    border-left: 3px solid var(--accent);
    font-size: 0.7rem;
    color: var(--accent);
    font-family: monospace;
    letter-spacing: 1px;
}

/* Pricing Interactive Update */
.pricing-table tr {
    position: relative;
    z-index: 1;
}

.pricing-table tr:hover {
    background: rgba(100, 255, 218, 0.05) !important;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.pricing-table td {
    transition: var(--transition-fast);
}

.pricing-table tr:hover td {
    color: var(--white);
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 2rem;
    }

    .pricing-table-container {
        padding: 0.5rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
}

/* Pulse Animation using before pseudo-element */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.7;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.45);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* --- Floating Chatbot Widget (n8n integration) --- */
#n8n-chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999999;
    font-family: var(--font-main);
}

/* --- Tooltip --- */
#chat-tooltip {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: var(--primary-light);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--accent);
    pointer-events: none;
}

#chat-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 25px;
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    transform: rotate(45deg);
    border-right: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
}

.show-attention #chat-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* --- Chat Trigger Button --- */
#chat-trigger {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: all 0.3s ease;
}

#chat-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px var(--accent-glow);
}

#chat-trigger svg {
    width: 30px;
    height: 30px;
}

#chat-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4757; /* Notification red */
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
}

/* --- Pulse Ring --- */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    z-index: -1;
    animation: chat-pulse 2s infinite;
    display: none;
}

.show-attention .pulse-ring, 
.show-attention #chat-badge {
    display: block;
}

@keyframes chat-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* --- Chat Window --- */
#chat-window {
    width: 370px;
    max-width: 88vw;
    height: 520px;
    max-height: 70vh;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 85px;
    right: 0;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.n8n-chat-open #chat-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    border-color: var(--accent);
}

/* --- Chat Header --- */
.chat-header {
    background: var(--primary-light);
    color: var(--white);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.chat-header .header-info {
    display: flex;
    flex-direction: column;
}

.chat-header .header-info strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.status-online {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.status-online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #00e6da; /* Cyan */
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 10px var(--accent);
}

/* --- Messages Container --- */
#chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(2, 12, 27, 0.6);
}

.message {
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    max-width: 80%;
    line-height: 1.5;
}

.bot {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.user {
    background: var(--accent);
    align-self: flex-end;
    color: var(--primary);
    font-weight: 600;
}

/* --- Typing Indicator --- */
.typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    width: fit-content;
    align-self: flex-start;
}

.typing span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Chat Input Area --- */
.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
    background: var(--primary-light);
}

#user-input {
    flex: 1;
    border: 1px solid var(--glass-border);
    background: var(--primary);
    color: var(--white);
    border-radius: 25px;
    padding: 10px 18px;
    outline: none;
    font-size: 14px;
    transition: all 0.3s;
}

#user-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

#send-btn {
    background: var(--accent) !important;
    border: none;
    color: var(--primary) !important;
    cursor: pointer;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

#send-btn svg {
    width: 18px;
    height: 18px;
    margin-left: -2px; /* Visual center adjustment */
}

#send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--accent-glow);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--white);
}