/* ═══════════════════════════════════════════════════════
   ENCARGA Landing — Tech-Forward Design
   Colores: Navy #0A1628, Blue #1976D2, Dark Blue #0D47A1,
            Green #2E7D32 / #4CAF50, accents
   ═══════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────── */
:root {
    --navy: #0A1628;
    --navy-light: #0F2035;
    --blue: #1976D2;
    --blue-dark: #0D47A1;
    --blue-light: #E3F2FD;
    --blue-glow: rgba(25, 118, 210, .35);
    --green: #2E7D32;
    --green-accent: #4CAF50;
    --green-light: #E8F5E9;
    --green-glow: rgba(76, 175, 80, .35);
    --cyan: #0288D1;
    --orange: #F57C00;
    --red: #D32F2F;
    --purple: #7B1FA2;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-700: #334155;
    --dark: #0F172A;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .12);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .18);
    --shadow-glow-blue: 0 0 30px rgba(25, 118, 210, .25);
    --shadow-glow-green: 0 0 30px rgba(76, 175, 80, .25);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: .35s cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── Partículas globales ───────────────────────────── */
#particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--blue);
    opacity: .12;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: .12;
    }

    90% {
        opacity: .12;
    }

    100% {
        transform: translateY(-100vh) translateX(40px);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
    padding: .75rem 0;
    transition: var(--transition);
    background: transparent;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}

.brand-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
    letter-spacing: .5px;
}

.navbar-brand img {
    height: 32px !important;
    width: auto !important;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, .75);
    font-weight: 500;
    font-size: .9rem;
    padding: .5rem .75rem;
    transition: var(--transition);
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--white);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--green-accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .3);
    color: var(--white);
    padding: .4rem .6rem;
}

.btn-cta-glow {
    background: linear-gradient(135deg, var(--green-accent) 0%, var(--green) 100%);
    color: var(--white);
    border: none;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, .35);
    transition: var(--transition);
}

.btn-cta-glow:hover {
    background: linear-gradient(135deg, #66BB6A 0%, var(--green-accent) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(76, 175, 80, .5);
}

.btn-outline-light {
    border-radius: 50px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 50%, #0A2A3C 100%);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 40px;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(25, 118, 210, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 118, 210, .07) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    top: -10%;
    right: -5%;
    background: radial-gradient(circle, rgba(25, 118, 210, .2) 0%, transparent 70%);
    animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    bottom: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(76, 175, 80, .15) 0%, transparent 70%);
    animation: glowPulse 8s ease-in-out infinite 2s;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.hero-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(76, 175, 80, .15);
    border: 1px solid rgba(76, 175, 80, .3);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--green-accent);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-accent);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.6);
    }
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue) 0%, var(--green-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .65);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}

.hero-ctas .btn-lg {
    padding: .75rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
}

.trust-item i {
    color: var(--green-accent);
    font-size: .75rem;
}

/* Hero Visual */
.hero-visual {
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    padding: 10px;
}

.hero-device {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, .5), 0 0 40px rgba(25, 118, 210, .15);
    transform: perspective(1200px) rotateY(-4deg) rotateX(3deg);
    transition: transform .6s ease;
    animation: deviceFloat 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, .08);
}

.hero-device:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

@keyframes deviceFloat {

    0%,
    100% {
        transform: perspective(1200px) rotateY(-6deg) rotateX(4deg) translateY(0);
    }

    50% {
        transform: perspective(1200px) rotateY(-6deg) rotateX(4deg) translateY(-12px);
    }
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 25, 45, .75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 10px 14px;
    z-index: 3;
    color: var(--white);
    animation: cardFloat 4s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}

.floating-card small {
    display: block;
    font-size: .7rem;
    opacity: .7;
}

.floating-card strong {
    font-size: .95rem;
    font-weight: 700;
}

.fc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.fc-green {
    background: rgba(76, 175, 80, .25);
    color: var(--green-accent);
}

.fc-blue {
    background: rgba(25, 118, 210, .25);
    color: #64B5F6;
}

.fc-purple {
    background: rgba(123, 31, 162, .25);
    color: #CE93D8;
}

.fc-1 {
    top: 5%;
    left: -5%;
    animation-delay: 0s;
}

.fc-2 {
    top: 40%;
    right: -8%;
    animation-delay: 1.3s;
}

.fc-3 {
    bottom: 8%;
    left: -8%;
    animation-delay: 2.6s;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* AI Robot Hero (small corner) */
.ai-robot-hero {
    position: absolute;
    bottom: -5px;
    right: -10px;
    width: 65px;
    z-index: 4;
    animation: robotBob 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 20px rgba(25, 118, 210, .3));
}

@keyframes robotBob {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

/* ═══════════════════════════════════════════════════════
   ROBOT SVG STYLES
   ═══════════════════════════════════════════════════════ */
.robot-head {
    fill: var(--blue);
}

.robot-neck {
    fill: var(--blue-dark);
}

.robot-body {
    fill: var(--blue);
}

.robot-arm {
    fill: var(--blue-dark);
}

.robot-hand {
    fill: var(--blue-dark);
}

.robot-leg {
    fill: var(--blue-dark);
}

.robot-foot {
    fill: var(--navy);
}

.robot-ear {
    fill: var(--blue-dark);
}

.robot-eye {
    fill: var(--blue-dark);
    animation: robotBlink 4s ease-in-out infinite;
}

@keyframes robotBlink {

    0%,
    42%,
    46%,
    100% {
        ry: inherit;
    }

    44% {
        ry: .5;
    }
}

.antenna-tip {
    fill: var(--green-accent);
    animation: antennaPulse 2s ease-in-out infinite;
}

.antenna-pulse {
    fill: none;
    stroke: var(--green-accent);
    stroke-width: 1.5;
    opacity: 0;
    animation: antennaRing 2s ease-out infinite;
}

@keyframes antennaPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(76, 175, 80, .5));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(76, 175, 80, .9));
    }
}

@keyframes antennaRing {
    0% {
        r: 6;
        opacity: .6;
    }

    100% {
        r: 24;
        opacity: 0;
    }
}

.robot-core {
    fill: var(--green-accent);
    animation: corePulse 2s ease-in-out infinite;
}

@keyframes corePulse {

    0%,
    100% {
        opacity: .7;
        filter: drop-shadow(0 0 6px rgba(76, 175, 80, .3));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 16px rgba(76, 175, 80, .8));
    }
}

/* ═══════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════ */
.stats-bar {
    background: var(--white);
    padding: 50px 0;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 16px 0;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-suffix {
    font-size: 1.2rem;
    color: var(--blue);
}

.stat-label {
    font-size: .85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   SECCIONES GENERALES
   ═══════════════════════════════════════════════════════ */
.section-block {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-dark {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-badge.badge-light {
    background: rgba(255, 255, 255, .1);
    color: var(--green-accent);
    border: 1px solid rgba(255, 255, 255, .1);
}

.section-badge.badge-green {
    background: rgba(76, 175, 80, .15);
    color: var(--green-accent);
    border: 1px solid rgba(76, 175, 80, .2);
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-dark .section-title {
    color: var(--white);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 600px;
    margin-bottom: 0;
}

.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════
   QUÉ ES — Device Showcase
   ═══════════════════════════════════════════════════════ */
.device-showcase {
    position: relative;
    padding: 20px;
}

.showcase-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform .5s ease;
}

.showcase-img:hover {
    transform: scale(1.02);
}

.showcase-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(25, 118, 210, .12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 5s ease-in-out infinite;
}

/* Feature List Modern */
.feature-list-modern {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 2rem;
}

.flm-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.flm-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    transition: transform var(--transition);
}

.flm-item:hover .flm-icon {
    transform: scale(1.1) rotate(5deg);
}

.bg-blue {
    background: var(--blue-light);
    color: var(--blue);
}

.bg-green {
    background: var(--green-light);
    color: var(--green);
}

.bg-cyan {
    background: #E1F5FE;
    color: var(--cyan);
}

.flm-item h5 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.flm-item p {
    font-size: .9rem;
    color: var(--gray-500);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   FUNCIONES — Cards
   ═══════════════════════════════════════════════════════ */
.func-card {
    position: relative;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 32px 28px;
    height: 100%;
    transition: var(--transition);
    overflow: hidden;
}

.func-card:hover {
    transform: translateY(-8px);
    border-color: rgba(25, 118, 210, .3);
    background: rgba(255, 255, 255, .1);
}

.func-card h4 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 10px;
}

.func-card p {
    font-size: .9rem;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 0;
    line-height: 1.6;
}

.func-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(25, 118, 210, .2);
    color: #64B5F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.func-card:hover .func-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-blue);
}

.func-icon.icon-green {
    background: rgba(76, 175, 80, .2);
    color: #81C784;
}

.func-icon.icon-cyan {
    background: rgba(2, 136, 209, .2);
    color: #4FC3F7;
}

.func-icon.icon-orange {
    background: rgba(245, 124, 0, .2);
    color: #FFB74D;
}

.func-icon.icon-red {
    background: rgba(211, 47, 47, .2);
    color: #E57373;
}

.func-icon.icon-purple {
    background: rgba(123, 31, 162, .2);
    color: #CE93D8;
}

.func-card:hover .icon-green {
    box-shadow: var(--shadow-glow-green);
}

.func-card:hover .icon-cyan {
    box-shadow: 0 0 30px rgba(2, 136, 209, .25);
}

.func-card:hover .icon-orange {
    box-shadow: 0 0 30px rgba(245, 124, 0, .25);
}

.func-card:hover .icon-red {
    box-shadow: 0 0 30px rgba(211, 47, 47, .25);
}

.func-card:hover .icon-purple {
    box-shadow: 0 0 30px rgba(123, 31, 162, .25);
}

/* Glow effect behind card on hover */
.func-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: var(--blue);
    filter: blur(30px);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: 50%;
}

.func-card:hover .func-glow {
    opacity: .25;
}

.func-glow.glow-green {
    background: var(--green-accent);
}

.func-glow.glow-cyan {
    background: var(--cyan);
}

.func-glow.glow-orange {
    background: var(--orange);
}

.func-glow.glow-red {
    background: var(--red);
}

.func-glow.glow-purple {
    background: var(--purple);
}

/* ═══════════════════════════════════════════════════════
   SECCIÓN IA
   ═══════════════════════════════════════════════════════ */
.section-ia {
    background: linear-gradient(160deg, #051020 0%, var(--navy) 40%, #0A2A3C 100%);
    overflow: hidden;
}

.ia-neural-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .3;
}

#neuralCanvas {
    width: 100%;
    height: 100%;
}

.robot-showcase {
    position: relative;
    display: inline-block;
}

.robot-large {
    width: 220px;
    filter: drop-shadow(0 20px 40px rgba(25, 118, 210, .3));
    animation: robotFloatLarge 5s ease-in-out infinite;
}

@keyframes robotFloatLarge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

.robot-shadow {
    width: 120px;
    height: 16px;
    background: radial-gradient(ellipse, rgba(25, 118, 210, .25) 0%, transparent 70%);
    border-radius: 50%;
    margin: 10px auto 0;
    animation: shadowPulse 5s ease-in-out infinite;
}

@keyframes shadowPulse {

    0%,
    100% {
        transform: scaleX(1);
        opacity: .6;
    }

    50% {
        transform: scaleX(.7);
        opacity: .3;
    }
}

.ia-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 2rem;
}

.ia-feat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ia-feat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(76, 175, 80, .15);
    border: 1px solid rgba(76, 175, 80, .25);
    color: var(--green-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.ia-feat:hover .ia-feat-icon {
    background: rgba(76, 175, 80, .25);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-green);
}

.ia-feat h5 {
    font-weight: 700;
    font-size: .95rem;
    color: var(--white);
    margin-bottom: 2px;
}

.ia-feat p {
    font-size: .88rem;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   BENEFICIOS
   ═══════════════════════════════════════════════════════ */
.benefit-card-modern {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: var(--transition);
    height: 100%;
}

.benefit-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.bcm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    transition: var(--transition);
}

.benefit-card-modern:hover .bcm-icon {
    transform: scale(1.15);
}

.bcm-icon.bg-blue {
    background: var(--blue-light);
    color: var(--blue);
}

.bcm-icon.bg-green {
    background: var(--green-light);
    color: var(--green);
}

.bcm-icon.bg-cyan {
    background: #E1F5FE;
    color: var(--cyan);
}

.bcm-icon.bg-orange {
    background: #FFF3E0;
    color: var(--orange);
}

.bcm-stat {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue) 0%, var(--green-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.benefit-card-modern h5 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.benefit-card-modern p {
    font-size: .88rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   PRECIOS
   ═══════════════════════════════════════════════════════ */

/* Toggle */
.pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 1.5rem;
}

.pt-label {
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: var(--transition);
}

.pt-label.pt-active {
    color: var(--white);
}

.pt-save {
    display: inline-block;
    background: rgba(76, 175, 80, .25);
    color: var(--green-accent);
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 4px;
}

.pt-switch {
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, .15);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.pt-switch.active {
    background: var(--green-accent);
}

.pt-knob {
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.pt-switch.active .pt-knob {
    left: 25px;
}

/* Price Cards */
.price-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    height: 100%;
    position: relative;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: rgba(25, 118, 210, .3);
    background: rgba(255, 255, 255, .1);
}

.price-featured {
    border-color: var(--blue);
    background: rgba(25, 118, 210, .12);
    transform: scale(1.04);
    box-shadow: var(--shadow-glow-blue);
}

.price-featured:hover {
    transform: scale(1.06) translateY(-8px);
}

.pc-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--blue) 0%, var(--green-accent) 100%);
    color: var(--white);
    padding: 6px 22px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .5px;
    box-shadow: 0 4px 16px rgba(25, 118, 210, .3);
}

.pc-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.pc-header h4 {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.pc-header p {
    font-size: .85rem;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 0;
}

.pc-price {
    margin: 12px 0;
}

.pc-amount {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
    transition: var(--transition);
}

.pc-period {
    font-size: .9rem;
    color: rgba(255, 255, 255, .45);
}

.pc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.pc-features li {
    padding: 10px 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, .7);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-features li:last-child {
    border-bottom: none;
}

.pc-features li i.fa-check {
    color: var(--green-accent);
    font-size: .8rem;
}

.pc-features li i.fa-xmark {
    color: rgba(255, 255, 255, .25);
    font-size: .8rem;
}

.pc-features li.disabled {
    color: rgba(255, 255, 255, .3);
}

.price-card .btn {
    border-radius: 50px;
    padding: .65rem 0;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════════════════════════ */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--green) 100%);
    overflow: hidden;
    z-index: 2;
}

.cta-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: ctaDrift 30s linear infinite;
}

@keyframes ctaDrift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 400px 400px;
    }
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 2rem;
}

.btn-cta-final {
    border-radius: 50px;
    font-weight: 700;
    padding: .9rem 2.5rem;
    font-size: 1.05rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
    transition: var(--transition);
}

.btn-cta-final:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer-modern {
    background: var(--navy);
    padding: 60px 0 30px;
    color: rgba(255, 255, 255, .6);
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.footer-brand img {
    height: 30px !important;
    width: auto !important;
}

.footer-brand span {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--white);
}

.footer-desc {
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: var(--transition);
    font-size: .9rem;
}

.footer-socials a:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-modern h6 {
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-modern ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-modern ul li {
    margin-bottom: 10px;
}

.footer-modern ul a {
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    font-size: .88rem;
    transition: var(--transition);
}

.footer-modern ul a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.footer-bottom p {
    font-size: .82rem;
    margin: 0;
    color: rgba(255, 255, 255, .4);
}

/* ═══════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transition: opacity .7s ease, transform .7s ease;
}

[data-reveal="up"] {
    transform: translateY(40px);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* ─── Tablet landscape / small desktop (≤ 1199px) ──── */
@media (max-width: 1199px) {
    .fc-1 {
        left: -2%;
    }

    .fc-2 {
        right: -4%;
    }

    .fc-3 {
        left: -3%;
    }

    .robot-large {
        width: 190px;
    }
}

/* ─── Tablet portrait (≤ 991px) ────────────────────── */
@media (max-width: 991px) {
    .hero-section {
        min-height: 100vh;
        padding: 90px 0 40px;
    }

    .hero-content {
        text-align: center;
        align-items: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-device {
        transform: none;
        animation: none;
    }

    .hero-device:hover {
        transform: none;
    }

    .floating-card {
        padding: 8px 10px;
        font-size: .85rem;
    }

    .fc-1 {
        top: 2%;
        left: -2%;
    }

    .fc-2 {
        top: 35%;
        right: -3%;
    }

    .fc-3 {
        bottom: 5%;
        left: -2%;
    }

    .fc-icon {
        width: 30px;
        height: 30px;
        font-size: .8rem;
    }

    .floating-card strong {
        font-size: .85rem;
    }

    .ai-robot-hero {
        width: 50px;
        bottom: -5px;
        right: -5px;
    }

    .section-block {
        padding: 70px 0;
    }

    .robot-large {
        width: 160px;
    }

    .price-featured {
        transform: scale(1);
    }

    .price-featured:hover {
        transform: translateY(-8px);
    }

    /* Navbar mobile menu */
    .navbar-collapse {
        background: rgba(10, 22, 40, .96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 1rem 1.25rem;
        margin-top: .75rem;
        border: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
    }

    .navbar-nav {
        gap: 0 !important;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, .05);
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar .nav-link {
        padding: .75rem .5rem;
        font-size: .95rem;
    }

    .navbar-nav .ms-lg-3 {
        margin-left: 0 !important;
        margin-top: .5rem;
    }

    .navbar-nav .ms-2 {
        margin-left: 0 !important;
        margin-top: .25rem;
        margin-bottom: .25rem;
    }

    .navbar-nav .btn {
        width: 100%;
        text-align: center;
        padding: .6rem 1rem;
    }

    /* IA section */
    .ia-neural-bg {
        opacity: .15;
    }

    .ia-features {
        gap: 18px;
    }

    .ia-feat-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    /* Footer */
    .footer-modern {
        padding: 50px 0 24px;
    }
}

/* ─── Phone landscape / small tablet (≤ 767px) ─────── */
@media (max-width: 767px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 80px 0 30px;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: .78rem;
        padding: 6px 16px;
        gap: 8px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .hero-ctas .btn-lg {
        padding: .7rem 1.5rem;
        font-size: .95rem;
    }

    .hero-trust {
        flex-direction: column;
        gap: 6px;
    }

    .floating-card {
        display: none;
    }

    .ai-robot-hero {
        display: none;
    }

    .hero-image-wrapper {
        max-width: 100%;
        padding: 0;
    }

    .hero-glow-1 {
        width: 280px;
        height: 280px;
    }

    .hero-glow-2 {
        width: 220px;
        height: 220px;
    }

    /* Stats */
    .stats-bar {
        padding: 30px 0;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: .78rem;
    }

    .stat-item {
        padding: 10px 0;
    }

    /* Sections */
    .section-block {
        padding: 55px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-desc {
        font-size: .95rem;
    }

    .section-badge {
        font-size: .72rem;
        padding: 5px 14px;
    }

    /* Qué es */
    .device-showcase {
        padding: 10px;
        margin-bottom: 1rem;
    }

    .flm-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .flm-item h5 {
        font-size: .95rem;
    }

    .flm-item p {
        font-size: .85rem;
    }

    /* Funciones */
    .func-card {
        padding: 24px 20px;
    }

    .func-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .func-card h4 {
        font-size: 1rem;
    }

    .func-card p {
        font-size: .85rem;
    }

    /* IA */
    .robot-showcase {
        margin-bottom: 2rem;
    }

    .robot-large {
        width: 140px;
    }

    .ia-feat h5 {
        font-size: .9rem;
    }

    .ia-feat p {
        font-size: .82rem;
    }

    /* Beneficios */
    .benefit-card-modern {
        padding: 28px 18px;
    }

    .bcm-icon {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }

    .bcm-stat {
        font-size: 1.6rem;
    }

    .benefit-card-modern h5 {
        font-size: .92rem;
    }

    .benefit-card-modern p {
        font-size: .82rem;
    }

    /* Precios */
    .price-card {
        padding: 30px 24px;
    }

    .pc-amount {
        font-size: 2.2rem;
    }

    .pc-header h4 {
        font-size: 1.1rem;
    }

    .pc-features li {
        font-size: .85rem;
        padding: 8px 0;
    }

    .pricing-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* CTA */
    .cta-section {
        padding: 70px 0;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-desc {
        font-size: .95rem;
    }

    .btn-cta-final {
        padding: .75rem 1.8rem;
        font-size: .95rem;
    }

    /* Footer */
    .footer-modern {
        padding: 40px 0 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .footer-socials {
        justify-content: center;
        margin-bottom: .5rem;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-desc {
        text-align: center;
    }

    .footer-modern h6 {
        margin-top: .5rem;
    }
}

/* ─── Phone portrait (≤ 575px) ─────────────────────── */
@media (max-width: 575px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 70px 0 24px;
    }

    .hero-title {
        font-size: 1.55rem;
    }

    .hero-subtitle {
        font-size: .92rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        font-size: .72rem;
        padding: 5px 12px;
        margin-bottom: 1rem;
    }

    .hero-ctas {
        gap: 10px;
        margin-bottom: 1.5rem;
    }

    .hero-ctas .btn-lg {
        padding: .65rem 1.2rem;
        font-size: .88rem;
    }

    .trust-item {
        font-size: .8rem;
    }

    /* Stats */
    .stat-number {
        font-size: 1.35rem;
    }

    .stat-suffix {
        font-size: .9rem;
    }

    .stat-label {
        font-size: .72rem;
    }

    .stats-bar {
        padding: 20px 0;
    }

    /* Sections */
    .section-block {
        padding: 45px 0;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .section-desc {
        font-size: .88rem;
    }

    /* Qué es */
    .feature-list-modern {
        gap: 18px;
        margin-top: 1.5rem;
    }

    .flm-icon {
        width: 40px;
        height: 40px;
        font-size: .9rem;
        border-radius: 10px;
    }

    .flm-item {
        gap: 12px;
    }

    /* Funciones */
    .func-card {
        padding: 20px 16px;
    }

    .func-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    /* IA */
    .robot-large {
        width: 120px;
    }

    .robot-shadow {
        width: 80px;
    }

    .ia-features {
        gap: 16px;
        margin-top: 1.5rem;
    }

    .ia-feat {
        gap: 12px;
    }

    .ia-feat-icon {
        width: 38px;
        height: 38px;
        font-size: .9rem;
        border-radius: 10px;
    }

    /* Beneficios */
    .benefit-card-modern {
        padding: 24px 14px;
    }

    .bcm-icon {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .bcm-stat {
        font-size: 1.4rem;
    }

    /* Precios */
    .price-card {
        padding: 24px 18px;
    }

    .pc-amount {
        font-size: 2rem;
    }

    .pc-features li {
        font-size: .82rem;
        padding: 7px 0;
    }

    .pc-badge {
        font-size: .7rem;
        padding: 4px 16px;
        top: -12px;
    }

    /* CTA */
    .cta-section {
        padding: 55px 0;
    }

    .cta-title {
        font-size: 1.35rem;
    }

    .cta-desc {
        font-size: .88rem;
        margin-bottom: 1.5rem;
    }

    .btn-cta-final {
        width: 100%;
        padding: .7rem 1.5rem;
        font-size: .9rem;
    }
}

/* ─── Extra small (≤ 399px) ────────────────────────── */
@media (max-width: 399px) {
    .hero-title {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: .85rem;
    }

    .brand-text {
        font-size: 1.05rem;
    }

    .navbar-brand img {
        height: 26px !important;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.15rem;
    }

    .stat-label {
        font-size: .68rem;
    }

    .pc-amount {
        font-size: 1.8rem;
    }

    .benefit-card-modern {
        padding: 20px 12px;
    }

    .bcm-stat {
        font-size: 1.2rem;
    }
}

/* ─── Touch-friendly: min 44px tap targets ─────────── */
@media (pointer: coarse) {
    .navbar .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-socials a {
        width: 44px;
        height: 44px;
    }

    .pc-features li {
        min-height: 44px;
    }

    .pt-switch {
        width: 52px;
        height: 30px;
    }

    .pt-knob {
        width: 24px;
        height: 24px;
    }

    .pt-switch.active .pt-knob {
        left: 25px;
    }
}

/* ─── Landscape orientation on phones ──────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 70px 0 30px;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: .75rem;
    }

    .hero-subtitle {
        margin-bottom: 1rem;
    }

    .hero-ctas {
        margin-bottom: 1rem;
    }

    .section-block {
        padding: 40px 0;
    }

    .cta-section {
        padding: 40px 0;
    }
}

/* ─── Prevent horizontal overflow globally on mobile ── */
@media (max-width: 991px) {
    .container {
        overflow-x: hidden;
    }

    .hero-glow {
        display: none;
    }
}

/* ════════════════════════════════════════════════════
   SOCIAL PROOF TOAST
   ════════════════════════════════════════════════════ */
.sp-toast {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 18px;
    padding: 1.1rem 1.5rem 1.1rem 1.1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08);
    max-width: 420px;
    min-width: 320px;
    opacity: 0;
    transform: translateX(-110%) scale(.9);
    transition: opacity .45s cubic-bezier(.22, 1, .36, 1), transform .45s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    border-left: 4px solid #3b82f6;
}

.sp-toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

/* Avatar circular */
.sp-toast-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

.sp-toast-avatar.plan-profesional {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border-left-color: #3b82f6;
}

.sp-toast-avatar.plan-empresarial {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}

.sp-toast-avatar.plan-gratis {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: #fff;
}

/* Borde izquierdo según plan */
.sp-toast:has(.plan-profesional) {
    border-left-color: #6366f1;
}

.sp-toast:has(.plan-empresarial) {
    border-left-color: #f59e0b;
}

.sp-toast:has(.plan-gratis) {
    border-left-color: #10b981;
}

/* Contenido */
.sp-toast-content {
    flex: 1;
    min-width: 0;
}

/* Badge "Nuevo contrato" */
.sp-toast-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 50px;
    margin-bottom: 4px;
}

.badge-plan-profesional {
    background: #ede9fe;
    color: #6366f1;
}

.badge-plan-empresarial {
    background: #fef3c7;
    color: #d97706;
}

.badge-plan-gratis {
    background: #d1fae5;
    color: #059669;
}

.sp-toast-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-toast-text {
    font-size: 0.82rem;
    color: #334155;
    margin: 0 0 2px;
    font-weight: 500;
}

.sp-toast-meta {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0;
}

/* Botón cerrar */
.sp-toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 3px 5px;
    line-height: 1;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .2s, background .2s, color .2s;
}

.sp-toast:hover .sp-toast-close {
    opacity: 1;
}

.sp-toast-close:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Pulso de entrada */
@keyframes spPulse {
    0% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, .18), 0 0 0 0 rgba(99, 102, 241, .35);
    }

    60% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, .18), 0 0 0 14px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, .18), 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.sp-toast.show {
    animation: spPulse 1s ease-out .45s 1;
}

@media (max-width: 640px) {
    .sp-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        min-width: 0;
        transform: translateY(110%) scale(.9);
    }

    .sp-toast.show {
        transform: translateY(0) scale(1);
    }
}