/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --bg-dark: #0c0e17;
    --bg-card: rgba(22, 25, 38, 0.65);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --accent: #0ea5e9;
    --teal: #00d4aa;
    --text-main: #f1f5f9;
    --text-muted: #8892a4;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.35);
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    --radius-card: 1.25rem;
    --radius-btn: 9999px;
    --shadow-card: 0 20px 48px rgba(0, 0, 0, 0.28);
    --shadow-btn: 0 4px 16px rgba(99, 102, 241, 0.38);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

.inline-icon {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 55%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text {
    color: #fbbf24;
}

.section-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-btn);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

/* ============================================================
   SCROLL REVEAL
   Añadido via JS — si JS falla, elementos permanecen visibles
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
}

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

/* ============================================================
   BACKGROUND
   ============================================================ */
.background-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(90px);
    border-radius: 50%;
    animation: float 22s infinite ease-in-out alternate;
}

.blob-1 {
    top: -15%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, transparent 65%);
}

.blob-2 {
    bottom: -15%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.22) 0%, transparent 65%);
    animation-delay: -7s;
    animation-duration: 28s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 65%);
    animation-delay: -14s;
    animation-duration: 32s;
}

.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 28px 28px;
}

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4%, 8%) scale(1.08); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.1rem 2rem;
    z-index: 200;
    transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
    background: rgba(12, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 2rem;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    color: var(--primary);
    width: 22px;
    height: 22px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.25s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

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

.nav-links a.active {
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ============================================================
   HAMBURGER
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.5rem 0.6rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.hamburger:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                width 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 18, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.mobile-link {
    display: block;
    padding: 0.6rem 1rem;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.25s ease,
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-links li:nth-child(1) .mobile-link { transition-delay: 0.08s; }
.mobile-menu.active .mobile-links li:nth-child(2) .mobile-link { transition-delay: 0.13s; }
.mobile-menu.active .mobile-links li:nth-child(3) .mobile-link { transition-delay: 0.18s; }
.mobile-menu.active .mobile-links li:nth-child(4) .mobile-link { transition-delay: 0.23s; }
.mobile-menu.active .mobile-links li:nth-child(5) .mobile-link { transition-delay: 0.28s; }

.mobile-link:hover {
    color: white;
}

.mobile-cta {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease 0.32s, transform 0.4s cubic-bezier(0.16,1,0.3,1) 0.32s;
}

.mobile-menu.active .mobile-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #a855f7 100%);
    color: white;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #9333ea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.48);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.full-width {
    width: 100%;
}

/* Focus visible — accesibilidad */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
.footer-link-btn:focus-visible,
.hamburger:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 9rem 2rem 5rem;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Hero CTA group */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

/* Trial badge */
.trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-btn);
    color: #34d399;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.trial-badge strong {
    font-weight: 700;
    color: #6ee7b7;
}

/* Social proof stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-top {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    line-height: 1;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--teal);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 44px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* ============================================================
   HERO VISUAL (Mockup)
   ============================================================ */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.card-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 68%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: blur(30px);
    pointer-events: none;
    animation: glow-breathe 4s ease-in-out infinite alternate;
}

@keyframes glow-breathe {
    from { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}

.mockup-card {
    width: 100%;
    max-width: 390px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.mockup-card:hover {
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(-8px);
}

.mockup-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.mockup-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mockup-title svg,
.mockup-title i {
    width: 14px;
    height: 14px;
}

.mockup-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background: #0d1120;
}

.message {
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    max-width: 92%;
    font-size: 0.875rem;
    position: relative;
}

.message-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
    font-size: 0.8rem;
}

.message-title svg,
.message-title i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.message.bot {
    background: #1a2235;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid #1e2d45;
    color: #cbd5e1;
}

.message.user {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.message.user svg,
.message.user i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Message entrance animations */
.msg-1 { animation: fadeUp 0.5s 0.3s ease both; }
.msg-2 { animation: fadeUp 0.5s 1.4s ease both; }
.msg-3 { animation: fadeUp 0.5s 2.6s ease both; }

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

.mockup-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.7rem;
}

.mockup-btn {
    background: #1e2d45;
    padding: 0.38rem 0.75rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.mockup-btn.highlight {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

.mockup-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #94a3b8;
}

.mockup-stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mockup-stat-row strong {
    font-family: var(--font-display);
    color: #f1f5f9;
    font-size: 0.9rem;
}

.text-warn { color: #fbbf24; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s ease, color 0.3s ease;
    animation: bounce-scroll 2.2s ease-in-out infinite;
}

.scroll-indicator:hover {
    opacity: 1;
    color: white;
}

.scroll-indicator svg,
.scroll-indicator i {
    width: 28px;
    height: 28px;
}

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

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-wrap: balance;
    line-height: 1.15;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-container {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    padding: 3rem 2rem 2rem;
    position: relative;
}

.step-number {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.05);
    line-height: 1;
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.step:hover .step-icon {
    transform: scale(1.08);
}

.step-icon svg,
.step-icon i {
    width: 26px;
    height: 26px;
}

.step-1 .step-icon {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
}
.step-2 .step-icon {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: var(--teal);
}
.step-3 .step-icon {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: var(--secondary);
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    text-wrap: balance;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 260px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.step-connector {
    flex-shrink: 0;
    color: rgba(99, 102, 241, 0.25);
    padding-top: 5.5rem;
    display: flex;
    align-items: flex-start;
}

.step-connector svg,
.step-connector i {
    width: 24px;
    height: 24px;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    background: rgba(28, 32, 50, 0.85);
    border-color: var(--border-hover);
}

.icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.icon-wrapper svg,
.icon-wrapper i {
    width: 22px;
    height: 22px;
}

/* Per-card icon color variety */
.features-grid .feature-card:nth-child(1) .icon-wrapper { background: rgba(99,102,241,0.12); color: #818cf8; }
.features-grid .feature-card:nth-child(2) .icon-wrapper { background: rgba(0,212,170,0.1);   color: var(--teal); }
.features-grid .feature-card:nth-child(3) .icon-wrapper { background: rgba(236,72,153,0.1);  color: var(--secondary); }
.features-grid .feature-card:nth-child(4) .icon-wrapper { background: rgba(14,165,233,0.1);  color: var(--accent); }
.features-grid .feature-card:nth-child(5) .icon-wrapper { background: rgba(245,158,11,0.1);  color: #f59e0b; }
.features-grid .feature-card:nth-child(6) .icon-wrapper { background: rgba(16,185,129,0.1);  color: #10b981; }

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-wrap: balance;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============================================================
   PLATFORMS (Marquee)
   ============================================================ */
.platforms-track-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    padding: 1rem 0;
}

.platforms-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.platforms-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    min-width: 130px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.platform-item:hover {
    transform: scale(1.06) translateY(-3px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}

.platform-item img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}

.invert-logo {
    filter: invert(1) brightness(2) drop-shadow(0 0 6px rgba(255,255,255,0.15)) !important;
}

.platform-item span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ============================================================
   REQUIREMENTS
   ============================================================ */
.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

.req-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    transition: border-color 0.3s ease;
}

.req-item:hover {
    border-color: var(--border-hover);
}

.req-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background: rgba(236, 72, 153, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.req-icon svg,
.req-icon i {
    width: 20px;
    height: 20px;
}

.req-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-wrap: balance;
}

.req-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============================================================
   CONDITIONS
   ============================================================ */
.conditions-container {
    padding: 2.5rem 3rem;
    max-width: 860px;
    margin: 0 auto;
}

.conditions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.conditions-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.cond-icon-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    margin-top: 0.1rem;
}

.cond-icon-wrap svg,
.cond-icon-wrap i {
    width: 18px;
    height: 18px;
}

.conditions-list strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.35rem;
}

.conditions-list p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.conditions-list code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    color: #f472b6;
    font-size: 0.88em;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2rem;
    align-items: start;
}

.price-card {
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.price-card:not(.popular):hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

/* Popular card */
.price-card.popular {
    background: linear-gradient(180deg, rgba(28, 31, 50, 0.92) 0%, rgba(18, 20, 36, 0.95) 100%);
    border-color: rgba(99, 102, 241, 0.45);
    animation: glow-pulse 3.5s ease-in-out infinite;
}

.price-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, #a855f7, transparent);
    border-radius: 0 0 4px 4px;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(99,102,241,0.4),
                    0 0 40px rgba(99,102,241,0.12),
                    0 20px 48px rgba(0,0,0,0.28);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(168,85,247,0.6),
                    0 0 60px rgba(168,85,247,0.2),
                    0 20px 48px rgba(0,0,0,0.28);
    }
}

.popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #a855f7);
    padding: 0.25rem 1.1rem;
    border-radius: var(--radius-btn);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    color: white;
}

.price-header {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.price-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-pen {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.price-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
}

.price-features i,
.price-features svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--teal);
}

.feature-excluded {
    opacity: 0.35;
}

.feature-excluded i,
.feature-excluded svg {
    color: var(--text-muted) !important;
}

.feature-highlight {
    color: #e0e7ff;
}

.feature-highlight i,
.feature-highlight svg {
    color: #818cf8 !important;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-note strong {
    color: white;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    width: 100%;
    max-width: 500px;
    background: #151826;
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.policy-modal-box {
    max-width: 680px;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.modal-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-warn-icon {
    color: #fbbf24;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.close-modal,
.close-policy {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    transition: background 0.25s, color 0.25s;
    flex-shrink: 0;
}

.close-modal:hover,
.close-policy:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

.close-modal svg,
.close-modal i,
.close-policy svg,
.close-policy i {
    width: 16px;
    height: 16px;
}

.modal-body {
    padding: 1.5rem 1.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-body p { margin-bottom: 0.75rem; }
.modal-body p:last-child { margin-bottom: 0; }

.modal-body h4 {
    font-family: var(--font-display);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.modal-body h4:first-child { margin-top: 0; }

.modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ============================================================
   FAB TELEGRAM
   ============================================================ */
.fab-wsp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.4rem;
    background: #229ED9;
    color: white;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 24px rgba(34, 158, 217, 0.45);
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.35s ease,
                box-shadow 0.3s ease,
                background 0.25s ease;
    border: none;
    cursor: pointer;
}

.fab-wsp.visible {
    transform: translateY(0);
    opacity: 1;
}

.fab-wsp:hover {
    background: #1a8fc4;
    box-shadow: 0 6px 32px rgba(34, 158, 217, 0.6);
    transform: translateY(-3px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2.5rem;
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.25);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.footer-tg-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #229ED9;
    text-decoration: none;
    transition: opacity 0.2s ease;
    width: fit-content;
}

.footer-tg-link:hover {
    opacity: 0.75;
}

.footer-nav-col strong,
.footer-contact-col strong {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.85rem;
}

.footer-nav-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav-col a {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav-col a:hover {
    color: var(--text-main);
}

.footer-contact-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-col p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-cta-btn {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-logo svg,
.footer-logo i {
    color: var(--primary);
    width: 22px;
    height: 22px;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

.footer-link-btn:hover {
    color: white;
}

.footer-tech {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-btn);
    font-size: 0.82rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.footer-tech strong {
    color: white;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.82rem;
    opacity: 0.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 900px) {
    .dual-flow {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .flow-divider {
        flex-direction: row;
        padding-top: 0;
        padding: 1.5rem 0;
    }

    .flow-divider-line {
        width: 80px;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--border-color), transparent);
    }

    .admin-demo-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .admin-mockup {
        max-width: 100%;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 7rem;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .trial-badge {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-visual {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .mockup-card {
        transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    }

    .mockup-card:hover {
        transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) translateY(-6px);
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .step-connector {
        padding-top: 0;
        padding-bottom: 0;
        transform: rotate(90deg);
        opacity: 0.4;
    }

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

    .conditions-container {
        padding: 2rem 1.75rem;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 4rem 1.25rem;
    }

    .hero {
        padding: 6.5rem 1.25rem 3rem;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number { font-size: 1.6rem; }
    .stat-plus   { font-size: 1.1rem; }

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

    .price-card.popular {
        transform: none;
    }

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

    .steps-container {
        max-width: 340px;
        margin: 0 auto;
    }

    .conditions-list li {
        flex-direction: column;
        gap: 0.75rem;
    }

    .fab-wsp .fab-label {
        display: none;
    }

    .fab-wsp {
        padding: 1rem;
        border-radius: 50%;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

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

@media (max-width: 480px) {
    .nav-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.82rem;
    }

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

    .hero-actions .btn-large {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   OTP DISPLAY (hero mockup)
   ============================================================ */
.success-title {
    color: #34d399 !important;
}

.otp-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.otp-code {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #6ee7b7;
    letter-spacing: 0.12em;
}

.otp-timer {
    font-size: 0.75rem;
    color: #34d399;
    opacity: 0.8;
}

.text-danger { color: #f87171; }

/* ============================================================
   DUAL FLOW — "¿Cómo funciona?" two columns
   ============================================================ */
.dual-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
}

.flow-column {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.flow-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    align-self: flex-start;
}

.flow-label svg, .flow-label i { width: 16px; height: 16px; }

.flow-label--admin {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.flow-label--client {
    background: rgba(0, 212, 170, 0.1);
    color: var(--teal);
    border: 1px solid rgba(0, 212, 170, 0.25);
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.flow-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.flow-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.client-num {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.3);
    color: var(--teal);
}

.flow-step-content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.flow-step-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.flow-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: 3.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.flow-divider-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

/* ============================================================
   EXTRA FEATURES CHIPS
   ============================================================ */
.extra-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.extra-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.extra-chip:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

.extra-chip svg, .extra-chip i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ============================================================
   ADMIN DEMO SECTION
   ============================================================ */
.admin-demo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.admin-actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-action {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    border: 1px solid transparent;
    cursor: default;
    transition: background 0.25s, border-color 0.25s;
}

.admin-action:hover {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.15);
}

.admin-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-action-icon svg, .admin-action-icon i { width: 18px; height: 18px; }

.admin-action strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.admin-action p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.admin-mockup {
    max-width: 380px;
    width: 100%;
    overflow: hidden;
}

/* Animaciones admin mockup */
.amsg-1 { animation: fadeUp 0.5s 0.3s ease both; }
.amsg-2 { animation: fadeUp 0.5s 1.5s ease both; }
.amsg-3 { animation: fadeUp 0.5s 2.8s ease both; }

/* ============================================================
   PLATFORM HIGHLIGHT (Netflix callout)
   ============================================================ */
.platform-highlight {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.75rem;
    margin-top: 2rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.platform-highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.platform-highlight-content strong {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.platform-highlight-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ============================================================
   PLATFORM OPTIONS GRID
   ============================================================ */
.platforms-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.platform-opt-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.platform-opt-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}

.featured-platform {
    grid-column: span 2;
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.06);
}

.platform-opt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.platform-opt-header img {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.platform-opt-name-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.platform-opt-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    white-space: nowrap;
}

.platform-opt-badge.secondary-badge {
    background: rgba(0, 212, 170, 0.15);
    color: var(--teal);
}

.platform-opt-badge.neutral-badge {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
}

.platform-opt-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.platform-opt-list li {
    font-size: 0.83rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.featured-platform .platform-opt-list li {
    color: rgba(241, 245, 249, 0.8);
}

.opt-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .featured-platform {
        grid-column: span 1;
    }
}

/* ============================================================
   ONBOARDING / ALTA DE USUARIOS
   ============================================================ */
.onboarding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .onboarding-grid {
        grid-template-columns: 1fr;
    }
}

.onboarding-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.onboarding-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.onboarding-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.onboarding-icon.reseller-icon {
    background: rgba(0, 212, 170, 0.12);
    border-color: rgba(0, 212, 170, 0.25);
    color: var(--teal);
}

.onboarding-card-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.onboarding-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.onboarding-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.onboarding-steps li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.onboarding-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.onboarding-step-num.reseller-num {
    background: var(--teal);
    color: #0c0e17;
}

.onboarding-step-content {
    flex: 1;
}

.onboarding-step-content strong {
    font-size: 0.92rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.onboarding-step-content p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.onboarding-step-content code {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.1em 0.35em;
    font-size: 0.82em;
    color: #a5b4fc;
}

/* ============================================================
   MANUAL DE USO
   ============================================================ */
.manual-roles {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.manual-role-group {
    padding: 2rem;
}

.manual-role-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.manual-role-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.manual-role-icon.client-role-icon {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.2);
    color: var(--accent);
}

.manual-role-icon.reseller-role-icon {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.2);
    color: var(--teal);
}

.manual-role-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.accordion-item:has(.accordion-trigger[aria-expanded="true"]) {
    border-color: var(--border-hover);
}

.accordion-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.9rem 1rem;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: background 0.2s ease;
}

.accordion-trigger:hover {
    background: rgba(255, 255, 255, 0.04);
}

.accordion-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1rem 1rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.accordion-content[hidden] {
    display: none;
}

.accordion-content p {
    margin: 0;
}

.accordion-content code {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.1em 0.35em;
    font-size: 0.85em;
    color: #a5b4fc;
}

/* Commands reference */
.commands-ref {
    padding: 1.75rem 2rem;
}

.commands-ref-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.commands-ref-title svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.commands-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.command-row {
    display: grid;
    grid-template-columns: 140px 100px 1fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.84rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.command-row:last-child {
    border-bottom: none;
}

.command-header {
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.command-row code {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border-radius: 5px;
    padding: 0.2em 0.5em;
    font-size: 0.82rem;
    white-space: nowrap;
}

.command-row > span:last-child {
    color: var(--text-muted);
    line-height: 1.5;
}

.cmd-role {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    white-space: nowrap;
    display: inline-block;
}

.all-role { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.client-cmd-role { background: rgba(14, 165, 233, 0.15); color: var(--accent); }
.admin-cmd-role { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.reseller-cmd-role { background: rgba(0, 212, 170, 0.12); color: var(--teal); }

@media (max-width: 600px) {
    .command-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .command-header {
        display: none;
    }
    .commands-ref {
        padding: 1.25rem;
    }
    .manual-role-group {
        padding: 1.25rem;
    }
}

/* ============================================================
   PLATFORM SOON + REQUIREMENTS EXTRAS
   ============================================================ */
.platform-item--soon {
    opacity: 0.6;
    position: relative;
    flex-direction: column;
    gap: 0.25rem;
}

.platform-name-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.platform-soon-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    background: rgba(255, 200, 50, 0.15);
    color: #fbbf24;
    letter-spacing: 0.03em;
}

.platform-opt-soon {
    opacity: 0.55;
    position: relative;
}

.soon-badge {
    background: rgba(255, 200, 50, 0.15) !important;
    color: #fbbf24 !important;
}

.opt-soon-item {
    color: var(--text-muted) !important;
    font-style: italic;
}

/* Requirements sub-notes */
.req-note {
    margin-top: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.2);
    font-size: 0.8rem;
    color: rgba(241, 245, 249, 0.75);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.5;
}

.req-note svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    color: #ec4899;
}

.req-subnotes {
    margin-top: 0.6rem;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.req-subnotes li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-left: 0.75rem;
    border-left: 2px solid var(--border-color);
    line-height: 1.5;
}

.req-subnotes li code {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.1em 0.35em;
    font-size: 0.85em;
    color: #a5b4fc;
}

/* ============================================================
   ACCESSIBILITY: prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .platforms-track {
        animation: none;
    }
}
