/* ========================
   Variables & Root
   ======================== */
:root {
    --primary: #12b8e6;
    --primary-hover: #0ca3cc;
    --secondary: #0f769f;
    --secondary-hover: #0d6082;
    --accent: #00d4ff;
    --bg-light: #f4f9fb;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    --shadow-sm: 0 2px 4px rgba(15, 118, 159, 0.05);
    --shadow-md: 0 4px 16px rgba(15, 118, 159, 0.12);
    --shadow-lg: 0 10px 30px rgba(15, 118, 159, 0.18);
    --shadow-glow: 0 0 25px rgba(18, 184, 230, 0.45);

    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.3s ease;
    --transition-slow: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    /* SIN animation aqui — transform en body rompe position:fixed de hijos */
}

/* La animacion de entrada va en el wrapper interno, no en body */
.page-wrapper {
    animation: pageFadeIn 0.7s ease forwards;
}

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

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

ul { list-style: none; }

/* ========================
   Typography
   ======================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary);
    transition: color 0.3s ease;
}

h1 { font-size: 3.2rem; letter-spacing: -0.5px; }
h1 span { color: var(--primary); }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

/* Gradient text on hover for headings */
h2:hover, h3:hover, h4:hover {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 2s linear infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ========================
   Layout
   ======================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5.5rem 0; }
.bg-light { background-color: var(--bg-light); }

.section-dark {
    background: linear-gradient(135deg, var(--secondary) 0%, #0a5070 100%);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(18, 184, 230, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.section-dark h2, .section-dark p { color: var(--bg-white); }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* ========================
   Buttons
   ======================== */
.btn {
    display: inline-block;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(18, 184, 230, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: rgba(18, 184, 230, 0.10);
    color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(18, 184, 230, 0.2);
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
}

.btn-block { display: block; width: 100%; }

/* ========================
   Navbar
   ======================== */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.navbar-logo:hover { transform: scale(1.05); }

.nav-links {
    display: flex;
    gap: 2rem;
}

/* Nav link hover: animated underline sweep */
.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========================
   Hero Section
   ======================== */
.hero {
    padding: 10rem 0 7rem 0;
    background: radial-gradient(ellipse at 20% 30%, rgba(18, 184, 230, 0.12) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 70%, rgba(15, 118, 159, 0.10) 0%, transparent 55%),
                var(--bg-white);
    position: relative;
    overflow: hidden;
}

/* Aurora animated background */
.hero::before {
    content: '';
    position: absolute;
    inset: -100px;
    background: conic-gradient(
        from 180deg at 50% 50%,
        hsl(195deg 80% 60% / 0.08) 0deg,
        hsl(210deg 80% 50% / 0.06) 60deg,
        hsl(180deg 70% 55% / 0.05) 120deg,
        hsl(195deg 90% 65% / 0.07) 180deg,
        hsl(215deg 75% 55% / 0.05) 240deg,
        hsl(195deg 80% 60% / 0.08) 360deg
    );
    animation: auroraRotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

.hero-shapes {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Particles canvas */
#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.floating-diamond {
    position: absolute;
    background-color: rgba(18, 184, 230, 0.07);
    border: 1px solid rgba(18, 184, 230, 0.18);
    transform: rotate(45deg);
    animation: float-diamond 12s infinite linear;
    border-radius: 4px;
}

.floating-diamond:nth-child(2) { top: 15%; left: 8%; width: 120px; height: 120px; animation-duration: 25s; }
.floating-diamond:nth-child(3) { top: 75%; left: 12%; width: 60px; height: 60px; background-color: rgba(15, 118, 159, 0.07); animation-duration: 18s; animation-direction: reverse; }
.floating-diamond:nth-child(4) { top: 20%; right: 10%; width: 90px; height: 90px; animation-duration: 20s; }
.floating-diamond:nth-child(5) { top: 60%; right: 5%; width: 150px; height: 150px; background-color: rgba(15, 118, 159, 0.05); border-color: rgba(15, 118, 159, 0.15); animation-duration: 28s; }

@keyframes float-diamond {
    0%   { transform: translateY(0) rotate(45deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-130px) rotate(225deg); opacity: 0; }
}


.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start; /* don't stretch text to match image height */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ========================
   Hero Carousel — Adaptable
   ======================== */
.hero-image {
    min-width: 0; /* prevents grid overflow */
}

.hero-carousel {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.5);
    background: linear-gradient(135deg, rgba(18,184,230,0.08), rgba(15,118,159,0.12));
    border: 1px solid rgba(18,184,230,0.2);
    /* Adaptive: grows with image content */
    width: 100%;
}

/* Track: flex row, no fixed height — height comes from slides */
.carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
    width: 100%;
}

/* Each slide — fixed height so images and video are always consistent */
.carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 360px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Imagen: se muestra completa sin recorte; fondo suave de marca en el espacio restante */
.slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: inherit;
    background: linear-gradient(135deg, #eaf7fb 0%, #d6f0f7 100%);
}

/* Video: llena el frame completamente (cover) para verse cinematográfico */
.slide-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    background: #000;
}

/* Placeholder when no image file is found */
.slide-empty {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f0fafd 0%, #e0f4f8 100%);
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 220px;
    padding: 2rem;
    text-align: center;
}

.slide-empty-icon {
    font-size: 2.5rem;
    opacity: 0.45;
    display: block;
    margin-bottom: 0.25rem;
}

/* Caption overlay at bottom of slide */
.slide-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0.5rem 1rem;
    background: linear-gradient(to top, rgba(10,50,80,0.7) 0%, transparent 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    pointer-events: none;
}

/* Only show caption if slide has an image (not empty placeholder) */
.carousel-slide:has(.slide-empty[style*="display:flex"]) .slide-caption,
.carousel-slide:has(.slide-empty[style*="display: flex"]) .slide-caption {
    display: none;
}

/* Navigation arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(18,184,230,0.25);
    border-radius: 50%;
    color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
}

.hero-carousel:hover .carousel-arrow {
    opacity: 1;
    pointer-events: auto;
}

.carousel-prev { left:  10px; }
.carousel-next { right: 10px; }

.carousel-arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(18,184,230,0.35);
    transform: translateY(-50%) scale(1.08);
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 10;
    pointer-events: none;
}

.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.carousel-dot.active {
    background: white;
    width: 22px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}


/* ========================
   Grid System
   ======================== */
.grid { display: grid; gap: 2rem; }
.cards-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.solutions-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.advantages-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ========================
   Cards (Servicios)
   ======================== */
.card {
    background-color: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Shine/glimmer sweep on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.65) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.card:hover::before {
    left: 150%;
}

.card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card-icon { transform: scale(1.15) rotate(-5deg); }

/* ========================
   Solution Items
   ======================== */
.solution-item {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.solution-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 0 0 rgba(18, 184, 230, 0);
    transition: box-shadow 0.4s ease;
    pointer-events: none;
}

.solution-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: var(--shadow-md), 0 0 0 2px rgba(18,184,230,0.2);
    border-left-color: var(--accent);
}

.solution-item:hover::after {
    box-shadow: inset 0 0 20px rgba(18, 184, 230, 0.06);
}

/* ========================
   Ventajas
   ======================== */
.advantage {
    position: relative;
    background: var(--bg-white);
    padding: 2rem 2rem 2rem 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    overflow: hidden;
}

.advantage:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(18,184,230,0.35);
    transform: translateY(-4px);
}

.adv-number {
    position: absolute;
    left: 1rem;
    top: 0.8rem;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(18, 184, 230, 0.1);
    line-height: 1;
    transition: color 0.4s ease;
    font-family: 'Outfit', sans-serif;
}

.advantage:hover .adv-number { color: rgba(18, 184, 230, 0.22); }
.advantage h4, .advantage p { position: relative; z-index: 1; }
.advantage p { margin-bottom: 0; }

/* ========================
   Nosotros
   ======================== */
.nosotros-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* ========================
   Contact
   ======================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-block h4 {
    margin-bottom: 0.2rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.4s ease;
}

.contact-form:hover { box-shadow: var(--shadow-lg); }

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(18, 184, 230, 0.12);
}

/* ========================
   Footer
   ======================== */
.footer {
    background: linear-gradient(135deg, #0a0f1e 0%, #0f172a 100%);
    color: white;
    padding: 4rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(18,184,230,0.5), transparent);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 { color: white; }
.footer-brand strong { color: var(--primary); }

.footer-logo {
    height: 85px;
    width: auto;
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
}

.footer-logo:hover { filter: drop-shadow(0 0 10px rgba(18,184,230,0.8)); transform: scale(1.07); }

.footer-links h4 { color: white; margin-bottom: 1.5rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.8rem; }

.footer-links a {
    color: #94a3b8;
    position: relative;
    padding-left: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.9rem;
}

/* ========================
   Form Feedback States
   ======================== */
.form-feedback {
    margin-top: 1rem;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    animation: feedbackFadeIn 0.4s ease;
}

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

.form-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Botón deshabilitado mientras envía */
#form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ========================
   Chatbot Widget
   ======================== */
.chatbot-wrapper {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Outfit', 'Inter', sans-serif;
    z-index: 9999;
}

.chatbot-toggle-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.12) rotate(10deg);
    box-shadow: var(--shadow-glow);
}

.chatbot-window {
    position: absolute;
    bottom: calc(100% + 1rem); right: 0;
    width: 360px;
    height: 510px;
    background-color: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(18,184,230,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
    z-index: 10;
}

.chatbot-window.hidden {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    pointer-events: none;
}

/* Glassmorphism chatbot header */
.chatbot-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #0a7aad 100%);
    color: white;
    padding: 1rem 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.chatbot-header::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}

.chatbot-header::after {
    content: '';
    position: absolute;
    bottom: -20px; left: -20px;
    width: 70px; height: 70px;
    background: rgba(18,184,230,0.15);
    border-radius: 50%;
    pointer-events: none;
}

.chatbot-header h4 {
    color: white;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    position: relative; z-index: 1;
}

.status-online {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.92;
    position: relative; z-index: 1;
}

.status-online::before {
    content: '';
    display: block;
    width: 8px; height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.close-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    border-radius: 50%;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
    position: relative; z-index: 1;
    backdrop-filter: blur(4px);
}

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

.chatbot-messages {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, var(--bg-light) 100%);
}

.chatbot-messages::-webkit-scrollbar { width: 6px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.message {
    max-width: 87%;
    display: flex;
    animation: messageSlide 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

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

.message.bot  { align-self: flex-start; }
.message.user { align-self: flex-end; }

.message-content {
    padding: 0.8rem 1.1rem;
    border-radius: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.message.bot .message-content {
    background-color: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 0.2rem;
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-bottom-right-radius: 0.2rem;
}

.options-msg ul {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-suggestion {
    background: linear-gradient(135deg, #eff9ff 0%, #e0f5fd 100%);
    color: var(--secondary);
    padding: 0.55rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid rgba(18,184,230,0.25);
    transition: all 0.25s ease;
    text-align: left;
    font-weight: 500;
}

.chat-suggestion:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: transparent;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(18,184,230,0.3);
}

.chatbot-input {
    padding: 1rem;
    background-color: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chatbot-input input {
    flex: 1;
    padding: 0.75rem 1.1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 2rem;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.chatbot-input input:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(18,184,230,0.12);
}

.chatbot-input button {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
    flex-shrink: 0;
}

.chatbot-input button:hover {
    transform: scale(1.12) rotate(-10deg);
    box-shadow: 0 4px 14px rgba(18,184,230,0.4);
}

.chatbot-typing {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    padding-left: 0.5rem;
    animation: typingPulse 1.2s ease-in-out infinite;
}

@keyframes typingPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* WhatsApp notification message */
.whatsapp-notification {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white !important;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    animation: messageSlide 0.4s ease forwards;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 900px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        padding: 1.5rem 0;
        box-shadow: var(--shadow-md);
        text-align: center;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active li { padding: 0.5rem 0; }
    .mobile-menu-btn { display: flex; }

    h1 { font-size: 2.3rem; }
    .section { padding: 4rem 0; }

    .chatbot-window {
        width: calc(100vw - 3rem);
        right: -0.5rem;
        bottom: 75px;
        height: 420px;
    }
}

/* ========================
   Scroll Reveal Animations
   ======================== */
.reveal {
    opacity: 0;
    transform: translateY(35px) scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1),
                transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Stagger delays for grid children */
.cards-grid .reveal:nth-child(1) { transition-delay: 0s; }
.cards-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.cards-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.solutions-grid .reveal:nth-child(1) { transition-delay: 0s; }
.solutions-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.solutions-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.solutions-grid .reveal:nth-child(4) { transition-delay: 0.36s; }

.advantages-grid .reveal:nth-child(1) { transition-delay: 0s; }
.advantages-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.advantages-grid .reveal:nth-child(3) { transition-delay: 0.30s; }

/* ========================
   Chatbot Pulse Animation
   ======================== */
.pulse-animation {
    animation: pulseGlow 2.2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%   { box-shadow: 0 0 0 0 rgba(18, 184, 230, 0.5), var(--shadow-lg); }
    60%  { box-shadow: 0 0 0 18px rgba(18, 184, 230, 0), var(--shadow-lg); }
    100% { box-shadow: 0 0 0 0 rgba(18, 184, 230, 0), var(--shadow-lg); }
}

/* ========================
   Scroll Progress Bar
   ======================== */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    z-index: 10001;
    border-radius: 0 2px 2px 0;
    transition: width 0.08s linear;
    animation: progressShimmer 2.5s linear infinite;
    pointer-events: none;
}

@keyframes progressShimmer {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* ========================
   Back to Top Button
   ======================== */
#back-to-top {
    position: fixed;
    bottom: 7.5rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(16px) scale(0.8);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    pointer-events: none;
    z-index: 9998;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-4px) scale(1.12);
    box-shadow: var(--shadow-glow);
}

/* ========================
   Chatbot — Typing Dots
   ======================== */
.chatbot-typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 1.2rem;
    border-bottom-left-radius: 0.2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.chatbot-typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.35;
    animation: typingBounce 1.3s ease-in-out infinite;
}

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

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0);   opacity: 0.35; }
    30%            { transform: translateY(-6px); opacity: 1;    }
}

/* ========================
   Chatbot — Notification Badge
   ======================== */
.chatbot-toggle-btn { position: relative; }

#chatbot-badge {
    position: absolute;
    top: -4px; right: -4px;
    width: 20px; height: 20px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: badgePop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    z-index: 10;
}

@keyframes badgePop {
    from { opacity: 0; transform: scale(0) rotate(-20deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ========================
   Chatbot — Quick Reply Buttons
   ======================== */
.chat-quickreply {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    list-style: none;
    padding: 0;
}
