/* ============================================================
   Softwaredev Solutions – Premium SaaS Design System
   Inspired by: Botinfy + Assistable.ai
   ============================================================
   Palette:
     Base       : #030014  (deep void)
     Surface    : #0a0a1a  (cards)
     Purple     : #6A329F / #7B3FBF (brand)
     Teal       : #3EB4A1 / #00F2C3 (CTA)
     Text       : #e2dff0 / #8b85a1
   ============================================================ */

/* ── Reset ─────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-void: #030014;
    --bg-surface: #0a0a1a;
    --bg-card: rgba(12, 10, 28, .65);
    --bg-card-hover: rgba(18, 14, 40, .8);
    --bg-glass: rgba(10, 10, 26, .6);

    --purple: #6A329F;
    --purple-bright: #8B4FCF;
    --purple-glow: rgba(106, 50, 159, .4);
    --purple-muted: #4a2578;

    --teal: #3EB4A1;
    --teal-bright: #00F2C3;
    --teal-glow: rgba(0, 242, 195, .35);
    --teal-dark: #2a9486;

    --white: #ffffff;
    --text: #e2dff0;
    --text-secondary: #8b85a1;
    --text-muted: #5a5475;
    --border: rgba(255, 255, 255, .06);
    --border-hover: rgba(255, 255, 255, .12);

    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --transition: .35s var(--ease);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-void);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* ── Grid Background ──────────────────────── */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
}


/* ── Ambient Orbs ─────────────────────────── */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transition: transform .5s ease-out;
}

.ambient-orb--purple {
    width: 600px;
    height: 600px;
    background: var(--purple);
    opacity: .12;
    top: -10%;
    right: -8%;
}

.ambient-orb--teal {
    width: 500px;
    height: 500px;
    background: var(--teal-bright);
    opacity: .06;
    bottom: 10%;
    left: -10%;
}


/* ── Container ────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}


/* ── Buttons ──────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: .92rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    padding: 14px 34px;
    transition: var(--transition);
    position: relative;
    letter-spacing: .2px;
    text-align: center;
}

.btn--primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--bg-void);
    font-weight: 700;
}

.btn--glow {
    box-shadow: 0 0 20px var(--teal-glow), 0 4px 15px rgba(0, 0, 0, .3);
}

.btn--glow:hover {
    box-shadow: 0 0 50px var(--teal-glow), 0 0 100px rgba(0, 242, 195, .15), 0 8px 30px rgba(0, 0, 0, .4);
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
}

.btn--glow:active {
    transform: translateY(0) scale(1);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn--outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(62, 180, 161, .06);
}

.btn--lg {
    font-size: 1.05rem;
    padding: 18px 44px;
}

.btn--sm {
    font-size: .82rem;
    padding: 10px 22px;
}

.btn--block {
    width: 100%;
}


/* ── Text Gradient ────────────────────────── */
.text-gradient,
.hero-title-gradient {
    background: linear-gradient(135deg, var(--teal-bright), var(--teal), var(--purple-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ── Scroll Reveal ────────────────────────── */
.plan-card,
.servicio-card,
.section-header,
.cta-band-inner,
.trust-bar {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.plan-card.revealed,
.servicio-card.revealed,
.section-header.revealed,
.cta-band-inner.revealed,
.trust-bar.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 40px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    letter-spacing: .3px;
}

.main-nav a:hover {
    color: var(--white);
}

.main-nav .nav-cta {
    background: var(--bg-glass);
    border: 1px solid var(--border-hover);
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    color: var(--teal);
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.main-nav .nav-cta:hover {
    border-color: var(--teal);
    background: rgba(62, 180, 161, .08);
    box-shadow: 0 0 20px var(--teal-glow);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-hover);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    margin-bottom: 28px;
    letter-spacing: .3px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--teal-bright);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--teal-glow);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--teal-glow);
    }

    50% {
        opacity: .5;
        box-shadow: 0 0 16px var(--teal-glow);
    }
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 22px;
    letter-spacing: -.5px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 520px;
}

.hero-subtitle strong {
    color: var(--teal);
}

/* Feature Pills */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
}

.pill svg {
    color: var(--teal);
    flex-shrink: 0;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Avatar */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1px solid rgba(106, 50, 159, .2);
    animation: ringRotate 20s linear infinite;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-bright);
    box-shadow: 0 0 12px var(--teal-glow);
}

.avatar-ring--outer {
    width: 440px;
    height: 440px;
    border-color: rgba(62, 180, 161, .1);
    animation-direction: reverse;
    animation-duration: 30s;
}

.avatar-ring--outer::before {
    background: var(--purple-bright);
    box-shadow: 0 0 12px var(--purple-glow);
}

@keyframes ringRotate {
    to {
        transform: rotate(360deg);
    }
}

.hero-avatar-img {
    max-height: 420px;
    width: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 60px rgba(106, 50, 159, .25));
    animation: avatarFloat 6s ease-in-out infinite;
}

@keyframes avatarFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}


/* ═══════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════ */
.trust-bar {
    padding: 50px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-label {
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-logos span {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: .5;
    transition: var(--transition);
    letter-spacing: 1px;
}

.trust-logos span:hover {
    opacity: 1;
    color: var(--text-secondary);
}


/* ═══════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--teal);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(62, 180, 161, .2);
    background: rgba(62, 180, 161, .06);
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -.3px;
}

.section-lead {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}


/* ═══════════════════════════════════════════
   PLANES (PRICING)
   ═══════════════════════════════════════════ */
.planes {
    padding: 120px 0;
    position: relative;
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.plan-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

/* Featured card */
.plan-card--featured {
    border-color: var(--teal);
    background: rgba(62, 180, 161, .04);
}

.plan-card--featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(160deg, var(--teal), var(--purple), transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.plan-card--featured:hover {
    box-shadow: 0 0 50px rgba(62, 180, 161, .1), 0 20px 60px rgba(0, 0, 0, .3);
}

.plan-popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: .7rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--bg-void);
    letter-spacing: .3px;
}

.plan-header {
    margin-bottom: 20px;
}

.plan-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.plan-subtitle {
    font-size: .82rem;
    color: var(--text-muted);
    min-height: 36px;
}

.plan-price-block {
    margin-bottom: 20px;
}

.plan-price {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -2px;
}

.plan-card--featured .plan-price {
    color: var(--teal-bright);
}

.plan-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 22px;
}

.plan-features {
    flex: 1;
    margin-bottom: 28px;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .85rem;
    color: var(--text-secondary);
    padding: 9px 0;
}

.check-svg {
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 1px;
}


/* ═══════════════════════════════════════════
   SERVICIOS (MÁS ALLÁ DE LA IA) - DARK ASYMMETRIC
   ═══════════════════════════════════════════ */
.servicios-dark {
    padding: 120px 0;
    position: relative;
}

/* Grilla Asimétrica */
.servicios-grid-asym {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.servicio-card-dark {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    /* Subtle neon shadow for striking effect */
    box-shadow: 0 4px 20px rgba(106, 50, 159, 0.15);
}

.servicio-card-dark:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    /* Stronger neon shadow on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(106, 50, 159, 0.4);
}

.servicio-card-glow {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--purple);
    opacity: 0;
    filter: blur(80px);
    transition: opacity .6s var(--ease);
    pointer-events: none;
}

.servicio-card-dark:hover .servicio-card-glow {
    opacity: 0.15;
}

.srv-full {
    grid-column: 1 / -1;
    /* Ocupa toda la fila */
}

/* Contenido de Tarjetas */
.srv-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: var(--radius);
    background: rgba(106, 50, 159, 0.12);
    border: 1px solid rgba(106, 50, 159, 0.15);
    margin-bottom: 24px;
    transition: var(--transition);
}

.servicio-card-dark:hover .srv-icon-wrap {
    background: rgba(62, 180, 161, 0.1);
    border-color: rgba(62, 180, 161, 0.2);
}

.srv-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.servicio-card-dark h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.srv-intro {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.srv-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
}

.srv-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.srv-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--teal);
    font-weight: bold;
}

.srv-list li strong {
    color: var(--white);
}

/* Columnas para el full width card */
.srv-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.srv-col strong {
    display: block;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 8px;
}

.srv-col p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 900px) {

    .servicios-grid-asym,
    .srv-cols {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════ */
.cta-band {
    padding: 80px 0;
}

.cta-band-inner {
    text-align: center;
    padding: 70px 40px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.cta-band-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-band-inner h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
}

.cta-band-inner p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    position: relative;
}

.cta-band-inner .btn {
    position: relative;
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    padding: 100px 0 0;
    position: relative;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-logo {
    width: 440px;
    /* Doubled to make it look significantly larger */
    height: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    align-self: flex-start;
    flex-shrink: 0;
}

.footer-tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}

.footer-tagline strong {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(62, 180, 161, .06);
    box-shadow: 0 0 16px var(--teal-glow);
    transform: translateY(-2px);
}

/* Contact Form */
.footer-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    backdrop-filter: blur(12px);
}

.footer-form-wrap h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: .88rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(62, 180, 161, .1);
    background: rgba(62, 180, 161, .02);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235a5475' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: var(--bg-surface);
    color: var(--text);
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: .88rem;
    margin-bottom: 16px;
}

.alert--success {
    background: rgba(62, 180, 161, .08);
    border: 1px solid rgba(62, 180, 161, .2);
    color: var(--teal);
}

.alert--error {
    background: rgba(220, 60, 60, .08);
    border: 1px solid rgba(220, 60, 60, .2);
    color: #F87171;
}

/* Footer bottom */
.footer-bottom {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: .78rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: .78rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-secondary);
}


/* ═══════════════════════════════════════════
   NIXIE WIDGET
   ═══════════════════════════════════════════ */
.nixie-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
}

.nixie-widget-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--teal);
    background: var(--bg-surface);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 0 30px var(--teal-glow), 0 4px 20px rgba(0, 0, 0, .4);
}

.nixie-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px var(--teal-glow), 0 8px 30px rgba(0, 0, 0, .5);
}

.nixie-widget-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nixie-pulse {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22C55E;
    border-radius: 50%;
    border: 3px solid var(--bg-surface);
    animation: nPulse 2s ease-in-out infinite;
}

@keyframes nPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

/* Nixie Popup */
.nixie-popup {
    position: absolute;
    bottom: 78px;
    right: 0;
    width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    overflow: hidden;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.96);
    transition: var(--transition);
}

.nixie-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nixie-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(106, 50, 159, .3), rgba(10, 10, 26, .8));
    border-bottom: 1px solid var(--border);
}

.nixie-mini-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-hover);
}

.nixie-popup-header strong {
    color: var(--white);
    font-size: .88rem;
}

.nixie-status {
    display: block;
    font-size: .68rem;
    color: #22C55E;
}

.nixie-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
    transition: var(--transition);
}

.nixie-close:hover {
    color: var(--white);
}

.nixie-popup-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.nixie-popup-body strong {
    color: var(--teal);
}

/* ── Chat Messages ── */
.chat-messages {
    flex: 1;
    min-height: 0;
    /* ← Critical: allows flex child to scroll */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Thin custom scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .25);
}

.chat-message {
    display: flex;
    max-width: 88%;
    animation: chatFadeIn .3s ease;
}

@keyframes chatFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message--bot {
    align-self: flex-start;
}

.chat-message--user {
    align-self: flex-end;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: .84rem;
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.chat-message--bot .chat-bubble {
    background: rgba(255, 255, 255, .06);
    color: var(--text-secondary);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, .06);
}

/* Clickable links inside bot messages */
.chat-bubble a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
    transition: var(--transition);
}

.chat-bubble a:hover {
    color: #5ce0c8;
    text-decoration-color: rgba(62, 180, 161, .5);
}

.chat-message--user .chat-bubble {
    background: linear-gradient(135deg, var(--teal), hsl(174, 55%, 32%));
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble--error {
    background: rgba(220, 60, 60, .12) !important;
    border: 1px solid rgba(220, 60, 60, .25) !important;
    color: #F87171 !important;
    font-size: .8rem;
}

/* ── Typing Indicator (animated dots) ── */
.typing-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px !important;
}

.typing-bubble .dot {
    width: 7px;
    height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.typing-bubble .dot:nth-child(2) {
    animation-delay: .2s;
}

.typing-bubble .dot:nth-child(3) {
    animation-delay: .4s;
}

@keyframes dotBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: .4;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* ── Chat Input Form (Modern Style) ── */
.chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(10, 10, 26, .4), rgba(10, 10, 26, .7));
}

.chat-input {
    flex: 1;
    padding: 11px 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    color: var(--text);
    font-family: var(--font);
    font-size: .85rem;
    outline: none;
    transition: all .25s ease;
    backdrop-filter: blur(6px);
}

.chat-input::placeholder {
    color: var(--text-muted);
    font-size: .82rem;
}

.chat-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(62, 180, 161, .12), 0 0 20px rgba(62, 180, 161, .06);
    background: rgba(62, 180, 161, .04);
}

.chat-input:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), hsl(174, 55%, 32%));
    color: #fff;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 2px 10px rgba(62, 180, 161, .2);
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--teal-glow);
}

.chat-send-btn:active {
    transform: scale(.92);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   PÁGINAS INTERNAS (QUIÉNES SOMOS)
   ═══════════════════════════════════════════ */
.internal-hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.internal-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.internal-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 20px 0;
    letter-spacing: -0.02em;
}

.internal-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.nosotros-content {
    padding: 0 0 100px;
    position: relative;
    z-index: 2;
}

.nosotros-container {
    max-width: 900px;
    margin: 0 auto;
}

.nosotros-block {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.nosotros-block.revealed {
    opacity: 1;
    transform: translateY(0);
}

.nosotros-block h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.nosotros-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.nosotros-text p {
    margin-bottom: 20px;
}

.nosotros-text strong {
    color: var(--text);
}

.country-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.country-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--text);
    background: var(--bg-card);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.flag {
    font-size: 1.5rem;
}

.nosotros-block--nixie {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.nixie-showcase {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.nixie-showcase-avatar {
    flex-shrink: 0;
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nixie-showcase-avatar img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 2px solid var(--purple);
}

.nixie-showcase-content h2 {
    margin-bottom: 20px;
}

.nosotros-promise {
    margin-top: 100px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.nosotros-promise.revealed {
    opacity: 1;
    transform: translateY(0);
}

.promise-glass {
    background: rgba(10, 10, 26, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    position: relative;
    box-shadow: 0 0 40px rgba(62, 180, 161, 0.05);
}

.promise-glass h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.promise-glass p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Update for active nav state */
.main-nav a.active-nav {
    color: var(--teal);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-pills {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-avatar-img {
        max-height: 300px;
    }

    .avatar-ring {
        width: 280px;
        height: 280px;
    }

    .avatar-ring--outer {
        width: 340px;
        height: 340px;
    }

    .planes-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .nixie-showcase {
        flex-direction: column;
        text-align: center;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--bg-surface);
        padding: 80px 28px 28px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: -10px 0 40px rgba(0, 0, 0, .5);
        border-left: 1px solid var(--border);
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav a {
        font-size: 1rem;
    }

    .hero {
        padding: 110px 0 50px;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .internal-hero-title {
        font-size: 2.2rem;
    }

    .hero-badge {
        font-size: .7rem;
    }

    .hero-avatar-img {
        max-height: 220px;
    }

    .avatar-ring {
        width: 220px;
        height: 220px;
    }

    .avatar-ring--outer {
        width: 270px;
        height: 270px;
    }

    .planes,
    .servicios {
        padding: 80px 0;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-form-wrap {
        padding: 24px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .nixie-popup {
        width: calc(100vw - 32px);
        right: -14px;
        max-width: 340px;
    }

    .nixie-popup-body {
        height: 320px;
    }

    .cta-band-inner {
        padding: 40px 24px;
    }

    .trust-logos {
        gap: 24px;
    }
}