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

:root {
    --primary: #25D366;          /* WhatsApp green */
    --primary-dark: #128C7E;
    --primary-darker: #075E54;
    --primary-light: #dcf8c6;
    --accent: #34B7F1;
    --dark: #0a1628;
    --text: #1a2942;
    --text-muted: #5a6c84;
    --text-light: #8a96ac;
    --bg: #ffffff;
    --bg-soft: #f7f9fc;
    --wa-bg: #ECE5DD;
    --wa-pattern: #d9d2c9;
    --border: #e5eaf2;
    --border-soft: #f0f3f8;
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.04);
    --shadow-md: 0 8px 32px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.12);
    --shadow-xl: 0 30px 80px rgba(18, 140, 126, 0.18);
    --gradient: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --gradient-dark: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: 820px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

code, .inline-code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    background: var(--bg-soft);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.92em;
    font-weight: 600;
    border: 1px solid var(--border-soft);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    text-decoration: none;
    line-height: 1;
}
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.logo-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Wordmark: "fiscA" (navy) + "b" + bot oficial como "o" + "t" (verde) */
.logo-text {
    display: inline-flex;
    align-items: baseline;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
    white-space: nowrap;
}
.logo-text .part-fisc { color: #0a1628; }
.logo-text .part-bot {
    color: #25d366;
    display: inline-flex;
    align-items: baseline;
}
.logo-text .robot-o {
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    vertical-align: baseline;
    position: relative;
    top: 0.12em;
    margin: 0 -0.08em;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center 90%;
}
.logo:hover .robot-o {
    transform: rotate(-8deg) translateY(-2px);
}

/* Animación de los puntitos de "está escribiendo" en la burbuja */
@keyframes logo-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
    30%           { transform: translateY(-3px); opacity: 1; }
}
.logo-icon .tdot {
    transform-box: fill-box;
    transform-origin: center;
    animation: logo-typing-bounce 1.4s infinite ease-in-out;
}
.logo-icon .tdot.d1 { animation-delay: 0s; }
.logo-icon .tdot.d2 { animation-delay: 0.18s; }
.logo-icon .tdot.d3 { animation-delay: 0.36s; }

/* En el footer (fondo oscuro), "fiscA" se vuelve blanco */
.footer .logo-text .part-fisc { color: white; }

/* Compatibilidad con el viejo .logo-accent por si queda alguna referencia */
.logo-accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    gap: 36px;
}
.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary-dark); }
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.hamburger span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.wa-icon { font-size: 16px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14.5px;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}
.btn-secondary {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}
.btn-large {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: var(--radius);
}

/* Botón WhatsApp con número debajo del texto principal */
.wa-action {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
}
.wa-action .wa-icon { font-size: 22px; }
.wa-action .wa-label {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}
.wa-action .wa-label small {
    font-size: 11.5px;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 0.3px;
    margin-top: 2px;
}
.hero-actions-hint {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 480px;
}
.hero-actions-hint code {
    background: var(--bg-soft);
    color: var(--primary-dark);
    padding: 1px 7px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

/* ===== CTA buttons grandes (Demo + Pro) ===== */
.cta-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    max-width: 720px;
    margin: 28px auto 18px;
}
.cta-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    text-align: left;
    border: 2px solid transparent;
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}
.cta-btn-demo {
    background: white;
    color: var(--primary-darker);
    border-color: rgba(255, 255, 255, 0.4);
}
.cta-btn-demo:hover { border-color: white; }
.cta-btn-pro {
    background: linear-gradient(135deg, #fff8d0, #fbd877);
    color: #5a4500;
    border-color: rgba(255, 215, 100, 0.6);
}
.cta-btn-pro:hover { border-color: #b8861f; }
.cta-btn-icon {
    font-size: 34px;
    line-height: 1;
    flex-shrink: 0;
}
.cta-btn-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}
.cta-btn-content strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.cta-btn-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.75;
    letter-spacing: 0.5px;
}
.cta-btn-content small {
    font-size: 11.5px;
    opacity: 0.7;
    font-weight: 500;
    margin-top: 2px;
}
.cta-btn-content small code {
    background: rgba(0,0,0,0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

/* Mini-badge "próximamente" dentro de un botón */
.badge-soon {
    display: inline-block;
    background: linear-gradient(135deg, #ffe699, #fbd877);
    color: #5a4500;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 4px;
    line-height: 1.5;
    vertical-align: middle;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}
.blob-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #25D366 0%, transparent 70%);
    top: -100px; right: -100px;
}
.blob-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #34B7F1 0%, transparent 70%);
    bottom: -200px; left: -150px;
    opacity: 0.3;
}
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(18, 140, 126, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 140, 126, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border);
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0.05); }
}

.hero-title {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 22px;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 28px;
    line-height: 1.65;
}
.hero-subtitle strong {
    color: var(--text);
    font-weight: 600;
}

/* Command demo in hero */
.command-demo {
    margin-bottom: 36px;
}
.command-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.command-box {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--dark);
    color: white;
    padding: 16px 22px;
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}
.prompt-arrow {
    color: var(--primary);
    font-weight: 700;
}
.command-box code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 18px;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
}
.cmd-law { color: var(--primary); }
.cmd-num { color: var(--accent); }
.cmd-hint {
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-weight: 400;
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 14px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== PHONE MOCKUP ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}
.phone-mockup {
    width: 320px;
    background: var(--wa-bg);
    border-radius: 38px;
    border: 10px solid #0a1628;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(217, 210, 201, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(217, 210, 201, 0.3) 0%, transparent 50%);
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 22px;
    background: #0a1628;
    border-radius: 0 0 14px 14px;
    z-index: 10;
}
.wa-header {
    background: var(--primary-darker);
    color: white;
    padding: 32px 16px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.wa-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.avatar-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.wa-info { display: flex; flex-direction: column; }
.wa-info strong { font-size: 15px; font-weight: 600; }
.wa-info span {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
.wa-body {
    padding: 16px 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 380px;
}
.wa-msg {
    padding: 8px 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
    max-width: 85%;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    word-break: break-word;
    font-family: 'Inter', sans-serif;
}
.wa-out {
    background: var(--primary-light);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}
.wa-in {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.wa-time {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 10px;
    color: rgba(0,0,0,0.45);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}
.section-alt {
    background: var(--bg-soft);
}
.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-dark);
    margin-bottom: 14px;
}
.section-head h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-head p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== STEPS ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.step {
    padding: 36px 32px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}
.step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.step-number {
    font-size: 44px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 18px;
    letter-spacing: -2px;
}
.step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.step p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* ===== LAWS GRID ===== */
.laws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.law-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.law-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.law-acronym {
    display: inline-block;
    align-self: flex-start;
    background: var(--gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}
.law-card h3 {
    font-size: 17.5px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.35;
    color: var(--text);
}
.law-example {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
/* Ejemplo "CPEUM 31" estilizado como el botón verde de la card.
   Antes era fondo oscuro con texto verde; ahora es verde sólido con texto blanco. */
.law-example code {
    background: var(--gradient);
    color: white;
    border: none;
    font-size: 14.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 7px;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}
.laws-note {
    text-align: center;
    margin-top: 40px;
    font-size: 15px;
    color: var(--text-muted);
}

/* ===== DEMO CHAT ===== */
.demo-wrapper {
    max-width: 460px;             /* más angosto: era 640px */
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}
/* Burbujas decorativas a los lados del demo chat para que no se vea solitario */
.demo-wrapper::before,
.demo-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: floatSoft 8s ease-in-out infinite;
}
.demo-wrapper::before {
    width: 200px;
    height: 200px;
    top: -40px;
    left: -150px;
}
.demo-wrapper::after {
    width: 240px;
    height: 240px;
    bottom: -40px;
    right: -180px;
    animation-delay: -3s;
}
@keyframes floatSoft {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50%      { transform: translateY(-15px) scale(1.05); opacity: 1; }
}
.demo-chat {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    position: relative;
    z-index: 1;
}
.demo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--primary-darker);
    color: white;
}
.demo-header .chat-info strong { font-size: 15px; }
.demo-header .chat-info span {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 5px;
}
.chat-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.chat-info { display: flex; flex-direction: column; }
.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #6dffaa;
    display: inline-block;
}
.demo-body {
    padding: 24px;
    height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--wa-bg);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(217, 210, 201, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(217, 210, 201, 0.3) 0%, transparent 50%);
}
.demo-body::-webkit-scrollbar { width: 6px; }
.demo-body::-webkit-scrollbar-track { background: transparent; }
.demo-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
}
.msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 85%;
    animation: slideIn 0.35s ease-out;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    word-break: break-word;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.msg-user {
    background: var(--primary-light);
    color: var(--text);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.msg-bot {
    background: white;
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.msg-bot strong { color: var(--primary-darker); }
.msg-bot code {
    font-size: 0.9em;
}
.msg.typing {
    display: flex;
    gap: 4px;
    padding: 14px 16px;
    width: fit-content;
    background: white;
}
.msg.typing .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--text-light);
    animation: typing 1.4s infinite;
}
.msg.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.msg.typing .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}
.suggestions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: white;
    border-top: 1px solid var(--border-soft);
}
.chip {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--primary-dark);
    transition: var(--transition);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}
.chip:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.demo-input {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    background: #f0f3f8;
}
.demo-input input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    background: white;
    border-radius: 100px;
    font-size: 14.5px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    outline: none;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.demo-input input:focus {
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}
.demo-input button {
    width: 44px; height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.demo-input button:hover {
    background: var(--primary-dark);
    transform: scale(1.06);
}
.demo-disclaimer {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 18px;
    font-style: italic;
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 22px 26px;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--border); }
.faq-item[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-dark);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item p {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== CTA ===== */
.cta-section {
    padding: 80px 0;
}
.cta-card {
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    padding: 72px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(37, 211, 102, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 183, 241, 0.15) 0%, transparent 50%);
}
.cta-card > * { position: relative; }
.cta-card h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
    line-height: 1.2;
}
.cta-card p {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 32px;
}
.cta-card .btn-primary {
    background: white;
    color: var(--primary-darker);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cta-card .btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.cta-small {
    font-size: 13px !important;
    opacity: 0.7 !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.65);
    padding: 48px 0 36px;
}
.footer .logo { color: white; justify-content: center; margin-bottom: 16px; }
.footer-bottom {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.footer-text {
    font-size: 13.5px;
    max-width: 540px;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
}
.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .hero-container { grid-template-columns: 1fr; gap: 50px; }
    .hero-visual { order: -1; }
    .phone-mockup { width: 280px; }
}
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .hero { padding: 110px 0 70px; }
    .section { padding: 70px 0; }
    .command-box { padding: 14px 18px; }
    .command-box code { font-size: 16px; }
    .cmd-hint { display: none; }
    .cta-card { padding: 50px 24px; }
}

/* ============================================================
   SECCIÓN PAGAR — activación de plan Pro vía Mercado Pago
   ============================================================ */
.pago-section {
    background: var(--bg-soft);
}
.pago-steps {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pago-step {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    padding: 28px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    transition: var(--transition);
}
.pago-step.pago-highlight {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.pago-step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}
.pago-step-content { flex: 1; min-width: 0; }
.pago-step-content h3 {
    font-size: 17.5px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}
.pago-step-content > p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 14px;
}
.pago-hint {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- Input del WhatsApp con prefijo +52 --- */
.pago-input-wrap {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: white;
    max-width: 320px;
    width: 100%;
    transition: var(--transition);
}
.pago-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}
.pago-input-wrap.has-valid,
.pago-input-wrap:has(input.valid) {
    border-color: var(--primary);
}
.pago-input-prefix {
    background: var(--bg-soft);
    padding: 12px 14px;
    font-weight: 700;
    color: var(--text-muted);
    border-right: 1.5px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
}
.pago-input-wrap input[type="tel"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 14px;
    font-size: 16px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    outline: none;
    color: var(--text);
    min-width: 0;
}
.pago-input-wrap input[type="tel"]::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.pago-feedback {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    min-height: 18px;
}
.pago-feedback.success { color: var(--primary-dark); }
.pago-feedback.error   { color: #c0392b; }

/* --- Botón Mercado Pago --- */
.btn-mp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    background: linear-gradient(180deg, #00b1ea, #009ee3);
    color: white;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(0, 158, 227, 0.25);
}
.btn-mp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 158, 227, 0.35);
    background: linear-gradient(180deg, #00bdf7, #00a8ed);
}

/* --- Botón enviar comprobante (heredado de .btn .btn-primary, agregamos el disabled) --- */
.pago-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

/* --- Mini guía visual de cómo adjuntar el comprobante en WhatsApp --- */
.pago-mini-guide {
    margin-top: 18px;
    padding: 14px 18px 14px 16px;
    background: var(--bg-soft);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}
.pago-mini-guide-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.pago-mini-guide-list {
    margin: 0;
    padding-left: 22px;
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.6;
}
.pago-mini-guide-list li {
    margin-bottom: 3px;
}
.pago-mini-guide-list li::marker {
    color: var(--primary-dark);
    font-weight: 700;
}
.pago-mini-guide-list strong {
    color: var(--text);
}

/* --- Strip de confianza al pie de la sección Pagar --- */
.pago-security {
    max-width: 920px;
    margin: 36px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.pago-security-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    transition: var(--transition);
}
.pago-security-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}
.pago-security-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.pago-security-item strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 4px;
}
.pago-security-item small {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
}
.pago-security-item em {
    color: var(--primary-dark);
    font-style: normal;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .pago-step {
        padding: 22px;
        gap: 14px;
        flex-direction: column;
        align-items: stretch;
    }
    .pago-step-number {
        align-self: flex-start;
    }
}
