:root {
    --primary: #7331EB;
    --primary-light: #8B5CF6;
    --accent: #E8DE25;
    --accent-hover: #d4cb1e;
    --secondary: #634993;
    --muted: #A6A482;
    --muted-dark: #6B6A5D;
    --dark: #383245;
    --darker: #1a1525;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-600: #868e96;
    --gray-800: #343a40;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.landing-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--white);
    background: var(--darker);
    line-height: 1.6;
    overflow-x: hidden;
    display: block;
    height: auto;
}

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 6px 0;
    transition: var(--transition);
    background: rgba(26, 21, 37, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.scrolled {
    background: rgba(26, 21, 37, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 4px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}

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

.nav-login {
    border: 1px solid rgba(255,255,255,0.18) !important;
    color: rgba(255,255,255,0.85) !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: border-color var(--transition), color var(--transition), background var(--transition) !important;
}

.nav-login:hover {
    border-color: rgba(255,255,255,0.4) !important;
    color: var(--white) !important;
    background: rgba(255,255,255,0.06);
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
    background: var(--primary-light) !important;
    transform: translateY(-1px);
}

/* ========== USER MENU ========== */
.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 100px;
    padding: 4px 10px 4px 4px;
    cursor: pointer;
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-user-trigger:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.28);
    color: var(--white);
}

.nav-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.nav-user-label {
    font-size: 13px;
    font-weight: 500;
}

.nav-user-chevron {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: transform 0.22s ease;
    color: rgba(255,255,255,0.5);
}

#nav-user-item.open .nav-user-chevron {
    transform: rotate(180deg);
}

.nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
    overflow: hidden;
    z-index: 200;
    animation: dropdownIn 0.18s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

#nav-user-item.open .nav-user-dropdown {
    display: block;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.nav-dropdown-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-dropdown-item:hover {
    background: rgba(255,255,255,0.07);
    color: var(--white);
}

.nav-dropdown-item--danger:hover {
    background: rgba(248,113,113,0.08);
    color: #f87171;
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 4px 0;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    background: var(--dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(115, 49, 235, 0.2) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(99, 73, 147, 0.15) 0%, transparent 55%);
    z-index: 0;
}

.hero > canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent), #f0e84a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    font-family: 'Comfortaa', sans-serif;
}

.hero .subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.7);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-lg {
    background: var(--accent);
    color: var(--dark);
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.btn-primary-lg:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 222, 37, 0.3);
}

.btn-primary-lg:active {
    transform: translateY(0);
}

.btn-secondary-lg {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.btn-secondary-lg:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* ========== SECTIONS COMMON ========== */
.section {
    padding: 100px 24px;
    position: relative;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Comfortaa', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    line-height: 1.7;
}

.section--light {
    background: var(--darker);
}

.section--dark {
    background: var(--dark);
}

/* ========== PROBLEMA ========== */
.section-problema .section-inner--center {
    text-align: center;
}

.section-problema .section-label--problema {
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-problema .section-title--problema {
    font-size: clamp(28px, 3.6vw, 52px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
    line-height: 1.15;
}

.title-highlight-green {
    color: #10B981;
}

/* Carrusel full-width: rompe el max-width del section-inner */
.problem-scroll-wrap {
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 0 24px;
}

.problem-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    width: max-content;
    padding: 0 24px;
    animation: problemScroll 30s linear infinite;
}

/* Pausa al hover (desktop) o al tap (móvil) */
.problem-track.is-paused,
.problem-track:hover {
    animation-play-state: paused;
}

/* Respeta prefers-reduced-motion pero mantiene layout horizontal */
@media (prefers-reduced-motion: reduce) {
    .problem-track {
        animation-duration: 60s;
    }
}

@keyframes problemScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.problem-card {
    flex: 0 0 320px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.problem-card:hover {
    background: rgba(115, 49, 235, 0.12);
    border-color: rgba(115, 49, 235, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(115, 49, 235, 0.15);
}

.problem-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(115, 49, 235, 0.25), rgba(99, 73, 147, 0.2));
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.35s ease, background 0.35s ease;
}

.problem-card:hover .problem-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(115, 49, 235, 0.35), rgba(99, 73, 147, 0.3));
}

.problem-icon-svg {
    font-size: 28px;
    line-height: 1;
}

.problem-card-body {
    flex: 1;
    min-width: 0;
}

.problem-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.problem-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
}

/* ========== SOLUCION (FLOW) ========== */
/* ========== WORKFLOW DIAGRAM (Sección Solución) ========== */
.workflow-diagram {
    position: relative;
    margin-top: 52px;
    width: 100%;
}

.wf-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.wf-line {
    fill: none;
    stroke: rgba(115, 49, 235, 0.45);
    stroke-width: 1.5;
    stroke-dasharray: 6 5;
    animation: wfFlowDash 2.5s linear infinite;
}

@keyframes wfFlowDash {
    to { stroke-dashoffset: -44; }
}

.wf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.wf-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wf-col--hub,
.wf-col--output {
    align-items: stretch;
    justify-content: center;
    align-self: center;
    width: 100%;
}

.wf-node {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: default;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.wf-node:hover {
    background: rgba(115, 49, 235, 0.12);
    border-color: rgba(115, 49, 235, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(115, 49, 235, 0.18);
}

.wf-node--hub {
    background: rgba(115, 49, 235, 0.1);
    border-color: rgba(115, 49, 235, 0.35);
    padding: 18px 20px;
}

.wf-node--hub:hover {
    background: rgba(115, 49, 235, 0.2);
    border-color: rgba(115, 49, 235, 0.65);
    box-shadow: 0 10px 32px rgba(115, 49, 235, 0.28);
}

.wf-node--output {
    background: rgba(16, 185, 129, 0.07);
    border-color: rgba(16, 185, 129, 0.22);
    padding: 18px 20px;
}

.wf-node--output:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.18);
}

.wf-node-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.wf-node:hover .wf-node-icon {
    background: rgba(115, 49, 235, 0.15);
    border-color: rgba(115, 49, 235, 0.2);
}

.wf-node--output:hover .wf-node-icon {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
}

.wf-node-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wf-node-type {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.32);
    font-weight: 600;
}

.wf-node-name {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
}

/* Mobile: flujo vertical con SVG */
@media (max-width: 768px) {
    .wf-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .wf-col {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }
    .wf-col--hub,
    .wf-col--output {
        justify-content: center;
    }
    .wf-node {
        flex: 1;
        min-width: 0;
        max-width: 160px;
        padding: 10px 12px;
        gap: 8px;
    }
    .wf-node--hub,
    .wf-node--output {
        max-width: 200px;
        padding: 14px 16px;
    }
    .wf-node-type {
        display: none;
    }
    .wf-node-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        flex-shrink: 0;
    }
    .wf-node-name {
        white-space: normal;
        font-size: 12px;
    }
}

/* ========== RESULTADOS ========== */
/* ========== RESULTADOS ========== */
.section-label--center,
.section-title--center {
    text-align: center;
}

.section-resultados {
    position: relative;
    overflow: hidden;
}

/* Blobs decorativos para que el blur glassmorphism sea visible */
.section-resultados::before,
.section-resultados::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.section-resultados::before {
    width: 500px;
    height: 500px;
    background: rgba(115, 49, 235, 0.12);
    top: -100px;
    left: -150px;
}

.section-resultados::after {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.09);
    bottom: -80px;
    right: -100px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.result-item {
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Capa de color revelada en hover */
.result-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(115, 49, 235, 0.18), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: inherit;
}

.result-item:hover,
.result-item.tapped {
    transform: translateY(-5px);
    border-color: rgba(115, 49, 235, 0.4);
    box-shadow: 0 16px 40px rgba(115, 49, 235, 0.2);
}

.result-item:hover::before,
.result-item.tapped::before {
    opacity: 1;
}

/* Contenido principal (icon + texto) */
.result-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
}

.result-item:hover .result-main,
.result-item.tapped .result-main {
    transform: translateY(-10px);
}

.result-check {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(115, 49, 235, 0.1);
    border: 1px solid rgba(115, 49, 235, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(160, 120, 255, 0.85);
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.result-check svg {
    width: 24px;
    height: 24px;
}

.result-item:hover .result-check,
.result-item.tapped .result-check {
    transform: scale(1.1);
    background: rgba(115, 49, 235, 0.22);
    color: rgba(190, 160, 255, 1);
}

.result-text {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* Texto revelado en hover */
.result-reveal {
    position: absolute;
    bottom: 22px;
    left: 20px;
    right: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    z-index: 1;
}

.result-item:hover .result-reveal,
.result-item.tapped .result-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: 2 columnas */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .result-check {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .result-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .result-item {
        padding: 20px 16px;
    }
}

/* ========== SERVICIOS ========== */
/* ========== SERVICIOS CAROUSEL ========== */
.section-servicios {
    position: relative;
    overflow: hidden;
}

/* Blobs decorativos para que el glassmorphism sea visible */
.section-servicios::before,
.section-servicios::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}

.section-servicios::before {
    width: 450px;
    height: 450px;
    background: rgba(115, 49, 235, 0.14);
    top: -80px;
    right: -100px;
}

.section-servicios::after {
    width: 350px;
    height: 350px;
    background: rgba(16, 185, 129, 0.08);
    bottom: -60px;
    left: -80px;
}

.services-carousel {
    position: relative;
    margin-top: 48px;
    padding: 0 68px;
}

.carousel-track-wrap {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.service-card {
    flex: 0 0 calc((100% - 48px) / 3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #10B981);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(115, 49, 235, 0.35);
    box-shadow: 0 16px 40px rgba(115, 49, 235, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(115, 49, 235, 0.15);
    border: 1px solid rgba(115, 49, 235, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.service-detail {
    margin-bottom: 12px;
}

.service-detail-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #10B981;
    font-weight: 700;
    margin-bottom: 4px;
}

.service-detail p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.55;
}

/* Botones flotantes del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    padding: 0;
}

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

.carousel-btn:hover {
    background: rgba(115, 49, 235, 0.28);
    border-color: rgba(115, 49, 235, 0.5);
    color: #fff;
}

.carousel-btn.is-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dots indicadores */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.is-active {
    background: #7331EB;
    transform: scale(1.3);
}

/* Mobile: 1 card visible */
@media (max-width: 768px) {
    .services-carousel {
        padding: 0 56px;
    }
    .service-card {
        flex: 0 0 100%;
    }
    .carousel-btn--prev { left: 6px; }
    .carousel-btn--next { right: 6px; }
}

/* ========== CASOS DE USO ========== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.case-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.case-card:hover {
    border-color: rgba(115, 49, 235, 0.25);
    transform: translateY(-3px);
}

.case-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

/* ========== PROCESO ========== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.process-step {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.process-step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

/* ========== CONVERSION CTA ========== */
.conversion {
    text-align: center;
    padding: 100px 24px;
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
    position: relative;
}

.conversion::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(115, 49, 235, 0.12) 0%, transparent 60%);
}

.conversion-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.conversion h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.conversion .subtext {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
}

.conversion .microcopy {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    margin-top: 16px;
}

.conversion-form {
    max-width: 480px;
    margin: 48px auto 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: left;
}

.conversion-form h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.7);
}

.form-field input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--white);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}

.form-field input::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-field input:focus {
    border-color: var(--primary);
}

.form-submit {
    width: 100%;
    margin-top: 8px;
    background: var(--accent);
    color: var(--dark);
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.form-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232, 222, 37, 0.25);
}

.form-success {
    display: none;
    text-align: center;
    padding: 24px;
    color: #4ade80;
    font-weight: 600;
}

/* ========== FOOTER ========== */
.site-footer {
    padding: 48px 24px;
    background: var(--darker);
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.site-footer .footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 160px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity var(--transition);
}

.footer-logo-img:hover {
    opacity: 1;
}

.site-footer p {
    font-size: 14px;
    color: rgba(255,255,255,0.35);
}

/* ========== CHAT WIDGET ========== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    color: var(--white);
    font-size: 26px;
}

.chat-toggle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 35px rgba(115, 49, 235, 0.4);
}

.chat-toggle-btn .close-icon {
    display: none;
}

.chat-widget.open .chat-toggle-btn .chat-icon {
    display: none;
}

.chat-widget.open .chat-toggle-btn .close-icon {
    display: block;
}

/* Chatbot iframe — fully isolated from landing page */
.chatbot-iframe {
    display: none;
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    height: 560px;
    max-height: calc(100vh - 120px);
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    background: white;
    animation: chatSlideUp 0.3s ease-out;
}

.chat-widget.open .chatbot-iframe {
    display: block;
}

@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== ANIMATIONS ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 21, 37, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }

    .nav-links.open {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    /* User menu en mobile: integrado en el panel hamburguesa */
    #nav-user-item {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-user-trigger {
        background: none;
        border: none;
        padding: 0;
        font-size: 14px;
        border-radius: 0;
    }

    .nav-user-trigger:hover {
        background: none;
        border: none;
    }

    .nav-user-dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 10px;
        margin-top: 10px;
        background: rgba(255,255,255,0.03);
        animation: none;
        width: 100%;
    }

    #nav-user-item.open .nav-user-dropdown {
        display: block;
    }

    .logo-img {
        height: 60px;
    }

    .footer-logo-img {
        height: 120px;
    }

    .hero {
        padding: 90px 20px 40px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .section {
        padding: 64px 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-lg,
    .btn-secondary-lg {
        width: 100%;
        justify-content: center;
    }


    .chatbot-iframe {
        width: calc(100vw - 32px);
        height: calc(100vh - 120px);
        right: -8px;
        bottom: 68px;
        border-radius: 12px;
    }

    .conversion-form {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .problem-card {
        flex: 0 0 min(320px, 85vw);
    }
    .section-problema .section-title--problema {
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .cases-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }
    .problem-card {
        flex: 0 0 min(280px, 88vw);
        padding: 24px;
    }
    .problem-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    .problem-icon-svg {
        font-size: 24px;
    }

    .chat-widget {
        bottom: 16px;
        right: 16px;
    }

    .chat-toggle-btn {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .chatbot-iframe {
        width: calc(100vw - 16px);
        right: -8px;
        bottom: 62px;
        height: calc(100vh - 100px);
    }
}