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

:root {
    --primary: #2563eb;
    --secondary: #22c55e;
    --dark: #0a0e1a;
    --darker: #050816;
    --light: #e5e7eb;
    --accent: #60a5fa;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Cursor personalizado */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.is-hovering .cursor {
    transform: scale(0.7);
}

.is-hovering .cursor-follower {
    transform: scale(1.4);
    border-color: rgba(96, 165, 250, 0.7);
}

/* Navegación */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 5%;
    backdrop-filter: blur(20px);
    background: rgba(10, 14, 26, 0.7);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 14, 26, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideInLeft 0.8s ease;
}

.logo span {
    animation: spin 3s linear infinite;
    display: inline-block;
}

.logo-sub {
    font-size: 0.75rem;
    color: rgba(148,163,184,0.9);
    text-transform: uppercase;
    letter-spacing: .18em;
}

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    animation: fadeInUp 0.8s ease both;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.nav-links li:nth-child(1) a { animation-delay: 0.1s; }
.nav-links li:nth-child(2) a { animation-delay: 0.2s; }
.nav-links li:nth-child(3) a { animation-delay: 0.3s; }
.nav-links li:nth-child(4) a { animation-delay: 0.4s; }
.nav-links li:nth-child(5) a { animation-delay: 0.5s; }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

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

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

.cta-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease, glow 2s ease-in-out infinite;
}

.hero-badge-small {
    margin-bottom: 1rem;
}

.hero-badge span:first-child {
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero p {
    font-size: 1.15rem;
    max-width: 780px;
    margin: 0 auto 2rem;
    color: rgba(229, 231, 235, 0.8);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Botones */
.btn-primary {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5);
    animation: pulse 0.5s ease-in-out;
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

.full-width {
    width: 100%;
}

/* Métricas */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: scaleIn 0.8s ease 0.8s both;
}

.metric {
    text-align: center;
    transition: transform 0.3s;
}

.metric:hover {
    transform: translateY(-10px) scale(1.1);
}

.metric-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

.metric-label {
    color: rgba(229, 231, 235, 0.7);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

/* Secciones genéricas */
.features {
    padding: 8rem 5%;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.left-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: rgba(229, 231, 235, 0.7);
    font-size: 1.05rem;
}

.left-subtitle {
    text-align: left;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 20px;
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s ease both;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
    border-color: var(--accent);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
    animation: rotateIn 0.8s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(360deg);
    animation: pulse 1s ease-in-out infinite;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: rgba(229, 231, 235, 0.7);
    line-height: 1.8;
}

/* Servicios */
.services {
    padding: 8rem 5%;
    background: linear-gradient(180deg, var(--darker) 0%, rgba(37, 99, 235, 0.03) 50%, var(--darker) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    padding: 3rem;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease both;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px) rotateZ(1deg);
    border-color: var(--accent);
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.2);
}

.service-list {
    margin-top: 1.5rem;
    color: rgba(229, 231, 235, 0.7);
}

/* SGI */
.sgi-section {
    padding: 8rem 5%;
    position: relative;
}

.sgi-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sgi-visual {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(34, 197, 94, 0.1));
    border-radius: 30px;
    border: 2px solid rgba(96, 165, 250, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sgi-modules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 2rem;
}

.sgi-module {
    padding: 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
}

.sgi-module:nth-child(1) { animation-delay: 0s; }
.sgi-module:nth-child(2) { animation-delay: 0.5s; }
.sgi-module:nth-child(3) { animation-delay: 1s; }
.sgi-module:nth-child(4) { animation-delay: 1.5s; }
.sgi-module:nth-child(5) { animation-delay: 2s; }
.sgi-module:nth-child(6) { animation-delay: 2.5s; }

.sgi-module:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.sgi-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.sgi-list {
    color: rgba(229, 231, 235, 0.8);
    margin-bottom: 2rem;
    line-height: 2;
}

/* Contacto */
.contact {
    padding: 8rem 5%;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    animation: scaleIn 0.8s ease;
}

.form-group {
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.6s ease both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    transform: scale(1.02);
}

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

/* Footer */
footer {
    padding: 3rem 5%;
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    text-align: center;
    color: rgba(229, 231, 235, 0.6);
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-brand-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-copy {
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* =======================
   Bot asistente v2
   ======================= */

.bot-assistant {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 80px;
    height: 80px;
    z-index: 2000;
    cursor: pointer;
}

/* Cara del bot */
.bot-face {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 0%, #22c55e, #0f172a);
    border-radius: 24px;
    border: 2px solid rgba(96,165,250,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15,23,42,0.9);
    transition: transform 0.2s ease;
}

.bot-face.bot-flip {
    transform: scaleX(-1);
}

.bot-eyes {
    display: flex;
    gap: 10px;
}

.bot-eye {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #020617;
    border: 2px solid rgba(148,163,184,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bot-pupil {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    transition: transform 0.1s linear;
    box-shadow: 0 0 8px rgba(96,165,250,0.9);
}

.bot-mouth {
    width: 32px;
    height: 6px;
    border-radius: 999px;
    background: rgba(56,189,248,0.9);
    margin-top: 6px;
    box-shadow: 0 0 10px rgba(56,189,248,0.8);
}

/* Bandera blanca final */
.bot-flag {
    position: absolute;
    bottom: 4px;
    right: 6px;
    width: 0;
    height: 18px;
    border-left: 2px solid rgba(148,163,184,0.8);
    display: none;
    align-items: flex-start;
    justify-content: center;
}

.bot-flag-cloth {
    width: 14px;
    height: 10px;
    background: #e5e7eb;
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(148,163,184,0.6);
    transform-origin: left center;
    animation: flagWave 1s ease-in-out infinite;
}

.bot-flag-visible {
    display: flex;
}

/* Mensaje encima del bot */
.bot-message {
    position: fixed;
    bottom: 110px;
    max-width: 260px;
    padding: 0.8rem 1rem;
    background: rgba(15,23,42,0.96);
    border-radius: 14px;
    border: 1px solid rgba(96,165,250,0.7);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e5e7eb;
    box-shadow: 0 14px 30px rgba(15,23,42,0.9);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1999;
}

.bot-message.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.bot-message::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(15,23,42,0.96);
    border-right: 1px solid rgba(96,165,250,0.7);
    border-bottom: 1px solid rgba(96,165,250,0.7);
}

/* Menú de opciones */
.bot-menu {
    position: fixed;
    bottom: 135px;
    max-width: 220px;
    background: rgba(15,23,42,0.98);
    border-radius: 14px;
    border: 1px solid rgba(96,165,250,0.7);
    padding: 0.75rem 0.9rem;
    font-size: 0.82rem;
    color: #e5e7eb;
    box-shadow: 0 14px 34px rgba(15,23,42,0.95);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1999;
}

.bot-menu.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.bot-menu-title {
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.bot-menu-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.bot-menu-buttons button {
    flex: 1 1 45%;
    border: none;
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    cursor: pointer;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    border: 1px solid rgba(96,165,250,0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.bot-menu-buttons button:hover {
    background: rgba(37,99,235,0.9);
    box-shadow: 0 4px 14px rgba(37,99,235,0.5);
    transform: translateY(-1px);
}

/* Burbuja WhatsApp */
.bot-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 110px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s ease;
    z-index: 1900;
    text-decoration: none;
}

.bot-whatsapp.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.bot-whatsapp.launch {
    animation: whatsappLaunch 0.7s ease-out forwards;
}

.bot-whatsapp-inner {
    background: #16a34a;
    color: white;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 12px 25px rgba(22,163,74,0.6);
    font-size: 0.85rem;
}

.bot-whatsapp-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-whatsapp-text span {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Efectos de acciones – explosión, fuego, agua y lanzamiento */

/* Estado “rearmando” después de explosión */
.bot-face.bot-rebuild {
    animation: botRebuild 0.5s ease-out;
}

/* Explosión: pulso rápido del robot */
.bot-face.effect-explode {
    animation: botExplodePulse 0.45s ease-out;
}

/* Fragmentos que salen volando y vuelven (cuadritos) */
.bot-fragment {
    position: fixed;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #22c55e, #2563eb);
    border-radius: 3px;
    pointer-events: none;
    z-index: 1998;
    opacity: 0;
    animation: fragmentFly 0.75s ease-out forwards;
}

/* Humo de la explosión */
.bot-explosion-smoke {
    position: fixed;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(248,250,252,0.9) 0, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1997;
    opacity: 0.8;
    animation: smokeRise 0.9s ease-out forwards;
}

/* Robot “caliente” (fuego) */
.bot-face.bot-hot {
    background: radial-gradient(circle at 20% 0, #f97316, #0b1120);
    box-shadow: 0 0 18px rgba(248,113,113,0.9);
}

/* Llamas bajo el robot */
.bot-fire {
    position: absolute;
    bottom: -6px;
    left: 8px;
    right: 8px;
    height: 22px;
    display: flex;
    justify-content: center;
    gap: 4px;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(248,113,22,0.9));
}

.bot-flame {
    width: 10px;
    height: 18px;
    border-radius: 50% 50% 40% 40%;
    background: radial-gradient(circle at 50% 80%, #fee2e2 0, #f97316 40%, #b91c1c 80%);
    transform-origin: bottom center;
    animation: flameDance 0.7s ease-in-out infinite;
}

/* Robot “mojado” */
.bot-face.bot-wet {
    background: radial-gradient(circle at 20% 0, #38bdf8, #020617);
    box-shadow: 0 0 18px rgba(56,189,248,0.9);
}

/* Nube que llueve sobre el bot */
.bot-water-cloud {
    position: fixed;
    width: 70px;
    height: 32px;
    border-radius: 999px;
    background: #0f172a;
    box-shadow:
      0 0 0 1px rgba(148,163,184,0.6),
      0 0 18px rgba(148,163,184,0.7);
    z-index: 1999;
    pointer-events: none;
    overflow: visible;
    animation: cloudAppear 0.9s ease-out forwards;
}

.bot-water-cloud::before,
.bot-water-cloud::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: inherit;
}

.bot-water-cloud::before {
    width: 26px;
    height: 26px;
    left: 4px;
    top: -8px;
}

.bot-water-cloud::after {
    width: 22px;
    height: 22px;
    right: 4px;
    top: -6px;
}

/* Gotas de lluvia */
.bot-water-rain-drop {
    position: fixed;
    width: 5px;
    height: 14px;
    background: radial-gradient(circle at 30% 0, #e0f2fe 0, #38bdf8 60%, #0ea5e9 100%);
    border-radius: 50% 50% 50% 50%;
    pointer-events: none;
    z-index: 1998;
    opacity: 0;
    animation: rainFall 0.9s ease-out forwards;
}

/* Lanzar: salto más largo */
.bot-assistant.effect-throw {
    animation: botThrowEffect 1s ease-out;
}

/* ----- Keyframes específicos ----- */

@keyframes botExplodePulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* los fragmentos usan --tx / --ty desde JS para ir más lejos */
@keyframes fragmentFly {
    0%   { transform: translate(0,0) scale(1);   opacity: 1; }
    45%  { transform: translate(var(--tx), var(--ty)) scale(1); opacity: 1; }
    100% { transform: translate(0,0) scale(0.2); opacity: 0; }
}

@keyframes smokeRise {
    0%   { transform: translate(-10px,10px) scale(0.5); opacity: 0.8; }
    60%  { transform: translate(-10px,-10px) scale(1.1); opacity: 0.6; }
    100% { transform: translate(-10px,-25px) scale(1.4); opacity: 0; }
}

@keyframes botRebuild {
    0%   { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

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

@keyframes cloudAppear {
    0%   { transform: translateY(-20px) scale(0.7); opacity: 0; }
    40%  { transform: translateY(0) scale(1);       opacity: 1; }
    100% { transform: translateY(0) scale(1);       opacity: 1; }
}

@keyframes rainFall {
    0%   { opacity: 0; transform: translate(0,-15px); }
    20%  { opacity: 1; }
    80%  { transform: translate(0,45px); }
    100% { opacity: 0; transform: translate(0,55px); }
}

/* salto más alto/largo */
@keyframes botThrowEffect {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-360px); }
    65%  { transform: translateY(-80px); }
    100% { transform: translateY(0); }
}


/* Animaciones base */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

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

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }
    50%      { box-shadow: 0 0 40px rgba(37, 99, 235, 0.6); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-20px); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes flagWave {
    0%,100% { transform: rotate(0deg); }
    25%     { transform: rotate(6deg); }
    50%     { transform: rotate(-4deg); }
    75%     { transform: rotate(3deg); }
}

@keyframes fadeOutTrail {
    to { opacity: 0; transform: scale(0) translateY(20px); }
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* Animación de WhatsApp */
@keyframes whatsappLaunch {
    0%   { transform: translate(40px,40px) scale(0); opacity: 0; }
    60%  { transform: translate(-10px,-10px) scale(1.1); opacity: 1; }
    100% { transform: translate(0,0) scale(1); opacity: 1; }
}

/* Reveal genérico */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .sgi-container {
        grid-template-columns: 1fr;
    }

    .metrics {
        grid-template-columns: 1fr;
    }

    .contact-container {
        padding: 2rem;
    }

    .bot-message,
    .bot-menu {
        display: none;
    }

    .bot-assistant {
        left: auto;
        right: 16px;
        bottom: 16px;
    }

    .bot-whatsapp {
        right: 16px;
        bottom: 100px;
    }
}
