/* ============================================================
   home.css — SOLO para index.html (la portada).
   Las 16 landings tematicas usan style.css + lp.css; esta hoja
   no se comparte con nadie mas. Rediseño 21-ago-2026: tema claro
   estilo "Finwise" (fondo blanco, acento verde escaso, mockups
   de producto reales) tras feedback de que la anterior "se
   notaba hecha con IA" (dark + morado + glassmorphism).
   ============================================================ */

:root {
    --bg: #ffffff;
    --fg: #171717;
    --fg-accent: #454545;
    --fg-soft: #646c7a;
    --primary: #25D366;          /* verde de marca: SOLO botones CTA */
    --primary-accent: #1fc05c;   /* hover del verde */
    --primary-ink: #08110b;      /* texto sobre el verde */
    --secondary: #0f7b6c;        /* teal WhatsApp oscurecido: numeros, checks, enlaces */
    --surface: #F2F5F3;          /* gris frio con tinte verde: hero, footer, boton suave */
    --border: #e5e7eb;
    --dark-panel: #0a0f1a;       /* unico bloque oscuro: panel CTA (guiño al portal) */
    --amber: #b45309;
}

html { scroll-behavior: smooth; }

body {
    font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 1.125rem;         /* 18px base: look editorial */
    line-height: 1.6;
    color: var(--fg);
    background: var(--bg);
    overflow-x: hidden; /* los gutters g-5 de Bootstrap desbordan 4px el contenedor de 20px */
}

code {
    color: var(--fg);
    background: var(--surface);
    padding: 0.1em 0.4em;
    border-radius: 6px;
    font-size: 0.85em;
}
.price-card code { background: #eef1ef; }

h1, h2, h3, h4, h5, h6 { font-family: "Manrope", "Segoe UI", system-ui, sans-serif; color: var(--fg); }

a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--secondary); text-decoration: underline; }

.container-rb { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

section { scroll-margin-top: 90px; }
.section { padding: 48px 0; }
@media (min-width: 992px) { .section { padding: 88px 0; } }

/* ---------- Tipografia de secciones ---------- */

.h-hero {
    font-size: clamp(2.4rem, 6.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.h-hero span { color: var(--secondary); }

.h-section {
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: "Manrope", sans-serif;
}

.sub { color: var(--fg-accent); max-width: 640px; }

/* ---------- Botones (siempre pill, hover solo de color) ---------- */

.btn-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border-radius: 999px;
    padding: 0.78rem 1.9rem;
    font-weight: 600; font-size: 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.btn-pill:hover { text-decoration: none; }

.btn-primary-rb { background: var(--primary); color: var(--primary-ink); }
.btn-primary-rb:hover { background: var(--primary-accent); color: var(--primary-ink); }

.btn-ghost-rb { background: #fff; border-color: var(--border); color: var(--fg); }
.btn-ghost-rb:hover { background: var(--surface); color: var(--fg); }

.btn-soft-rb { background: var(--surface); color: var(--fg); }
.btn-soft-rb:hover { background: #e6ebe8; color: var(--fg); }

.btn-dark-rb { background: var(--fg); color: #fff; }
.btn-dark-rb:hover { background: #000; color: #fff; }

.btn-outline-light-rb { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline-light-rb:hover { background: rgba(255,255,255,0.08); color: #fff; }

.btn-sm-pill { padding: 0.5rem 1.3rem; font-size: 0.92rem; }

/* ---------- Navbar: fija blanca en movil, absoluta transparente en desktop ---------- */

.navbar-rb {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
    background: #fff;
    box-shadow: 0 1px 10px rgba(0,0,0,0.06);
    padding: 0.7rem 0;
}
.navbar-rb .navbar-brand {
    font-family: "Manrope", sans-serif; font-weight: 700; font-size: 1.25rem;
    color: var(--fg); display: inline-flex; align-items: center; gap: 0.5rem;
}
.navbar-rb .navbar-brand i { color: var(--primary); font-size: 1.5rem; }
.navbar-rb .nav-link { color: var(--fg); font-weight: 500; }
.navbar-rb .nav-link:hover { color: var(--fg-accent); }
.navbar-rb .navbar-toggler { border-color: var(--border); }

@media (min-width: 992px) {
    .navbar-rb {
        position: absolute;
        background: transparent;
        box-shadow: none;
        padding: 1.6rem 0;
    }
}

/* ---------- Hero: superficie gris con rejilla 1px enmascarada ---------- */

.hero {
    position: relative;
    background: var(--surface);
    padding: 120px 0 70px;
    overflow: hidden;
}
@media (min-width: 992px) { .hero { padding: 175px 0 90px; } }

.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(128,128,128,0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(128,128,128,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 42%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 55% 55% at 50% 42%, #000 55%, transparent 100%);
    pointer-events: none;
}
.hero .container-rb { position: relative; z-index: 1; }

.hero-note { font-size: 0.95rem; color: var(--fg-soft); }
.hero-note strong { color: var(--fg-accent); }

/* ---------- Mockup de telefono (el producto se enseña, no se describe) ---------- */

.phone {
    width: 340px; max-width: 100%;
    margin: 0 auto;
    background: #10151d;
    border-radius: 46px;
    padding: 12px;
    box-shadow: 0 24px 48px -28px rgba(15,23,42,0.22), 0 0 0 1px rgba(15,23,42,0.05);
}
.phone-screen {
    border-radius: 35px; overflow: hidden;
    background: #ECE5DD;
    display: flex; flex-direction: column;
}

.wa-header { background: #075E54; color: #fff; padding: 0.85rem 0.9rem 0.7rem; display: flex; align-items: center; gap: 0.6rem; }
.wa-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; font-family: "Manrope", sans-serif;
}
.wa-avatar.alt { background: #8696a0; }
.wa-title { font-size: 0.88rem; font-weight: 600; line-height: 1.2; }
.wa-sub { font-size: 0.7rem; opacity: 0.8; }

.wa-chat { flex: 1; padding: 0.9rem 0.7rem 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; }

.wa-bubble {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 0.5rem 0.65rem 0.95rem;
    max-width: 90%;
    font-size: 0.8rem; line-height: 1.45; color: #111b21;
    box-shadow: 0 1px 1px rgba(0,0,0,0.09);
    align-self: flex-start;
}
.wa-bubble.out { background: #D9FDD3; align-self: flex-end; }
.wa-bubble p { margin: 0 0 0.3rem; }
.wa-bubble p:last-child { margin-bottom: 0; }
.wa-bubble ul { margin: 0.15rem 0 0.35rem; padding-left: 1.05rem; }
.wa-bubble li { margin-bottom: 0.15rem; }
.wa-sender { font-size: 0.7rem; font-weight: 700; color: #128C7E; margin-bottom: 0.2rem; }
.wa-time { position: absolute; right: 0.6rem; bottom: 0.32rem; font-size: 0.62rem; color: #8a939b; }
.wa-day {
    align-self: center; background: #fff; color: #54656f;
    font-size: 0.66rem; padding: 0.2rem 0.7rem; border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}

.wa-voice { display: flex; align-items: center; gap: 0.55rem; min-width: 218px; padding: 0.3rem 0.1rem 0.35rem; }
.wa-play {
    width: 32px; height: 32px; border-radius: 50%; flex: none;
    background: #128C7E; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.wa-wave { display: flex; align-items: center; gap: 2px; flex: 1; height: 22px; }
.wa-wave span { display: block; width: 3px; border-radius: 2px; background: #9db8b3; }
.wa-voice-dur { font-size: 0.66rem; color: #8a939b; }

/* ---------- Como funciona (3 pasos) ---------- */

.step-num {
    font-family: "Manrope", sans-serif; font-weight: 800;
    font-size: 2rem; color: var(--secondary); line-height: 1;
}
.step h5 { font-size: 1.1rem; font-weight: 600; margin: 0.6rem 0 0.35rem; }
.step p { color: var(--fg-accent); font-size: 1rem; margin: 0; }

/* ---------- Features en zigzag ---------- */

.feature-row { margin-bottom: 72px; }
.feature-row:last-child { margin-bottom: 0; }
@media (min-width: 992px) { .feature-row { margin-bottom: 96px; } }

.feature-row h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.2; }

.bullet { display: flex; gap: 0.9rem; margin-top: 1.5rem; }
.bullet i { font-size: 1.5rem; color: var(--fg); line-height: 1.3; flex: none; }
.bullet h6 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.2rem; }
.bullet p { color: var(--fg-accent); font-size: 1rem; margin: 0; }
.bullet .plan-tag { color: var(--fg-soft); font-size: 0.85rem; }

/* ---------- Pricing ---------- */

.price-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 100%;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.price-card.featured { box-shadow: 0 22px 45px -20px rgba(17,24,39,0.22); }

.price-head { padding: 1.5rem 1.5rem 1.3rem; border-bottom: 1px solid var(--border); }
.price-name { font-family: "Manrope", sans-serif; font-weight: 600; font-size: 1.35rem; margin-bottom: 0.1rem; }
.price-for { color: var(--fg-soft); font-size: 0.95rem; margin-bottom: 0.8rem; }
.price-value { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 2.7rem; line-height: 1.1; margin-bottom: 1.1rem; }
.price-card.featured .price-value { color: var(--secondary); }
.price-value span { font-size: 1.05rem; font-weight: 400; color: #4b5563; }

.price-body { padding: 1.4rem 1.5rem 1.7rem; flex: 1; }
.price-cap { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.price-plus { color: var(--fg-soft); font-size: 0.95rem; margin: 0.25rem 0 0; }
.price-list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.price-list li { display: flex; gap: 0.6rem; color: var(--fg-accent); font-size: 1rem; line-height: 1.45; }
.price-list i { color: var(--secondary); font-size: 1.1rem; line-height: 1.4; flex: none; }

.byok-note { color: var(--fg-soft); font-size: 0.95rem; }

/* ---------- Aviso (honesto y sobrio, sin alarma visual) ---------- */

.notice-box {
    /* bloque con lineas, no tarjeta: el mismo lenguaje que el FAQ */
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.2rem 0.2rem 1.9rem;
}
.notice-box .eyebrow { color: var(--amber); }
.notice-box h3 { font-size: 1.45rem; font-weight: 700; }
.notice-box p, .notice-box li { color: var(--fg-accent); font-size: 1rem; }
.notice-box ul { padding-left: 1.2rem; margin: 0.6rem 0 0.8rem; }

/* ---------- FAQ asimetrico con lineas divisorias ---------- */

.faq-mail {
    font-family: "Manrope", sans-serif; font-weight: 600;
    font-size: clamp(1.25rem, 2.6vw, 1.9rem);
    color: var(--secondary); word-break: break-all;
}
.faq-mail:hover { text-decoration: underline; }

.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-of-type { border-bottom: 1px solid var(--border); }
.faq-item summary {
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.35rem 0.2rem;
    font-family: "Manrope", sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; flex: none;
    color: var(--secondary); font-size: 1.5rem; font-weight: 600; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { color: var(--fg-accent); font-size: 1rem; padding: 0 0.2rem 1.35rem; margin: 0; max-width: 62ch; }

/* ---------- CTA final: unico bloque oscuro, panel redondeado con rejilla ---------- */

.cta-panel {
    position: relative;
    background: var(--dark-panel);
    border-radius: 24px;
    overflow: hidden;
    padding: 3.5rem 1.5rem;
}
@media (min-width: 992px) { .cta-panel { padding: 5rem 3rem; } }
.cta-panel::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, #131c2e 1px, transparent 1px),
        linear-gradient(to bottom, #131c2e 1px, transparent 1px);
    background-size: 96px 64px;
}
.cta-panel::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle 520px at 50% 130%, rgba(37,211,102,0.16), transparent);
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.9rem); }
.cta-inner p { color: rgba(255,255,255,0.75); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-chip-note { font-size: 0.92rem; color: rgba(255,255,255,0.55); }

/* ---------- Footer claro ---------- */

.footer-rb { background: var(--surface); padding: 48px 0 28px; }
.footer-rb h6 {
    font-family: "Manrope", sans-serif; font-weight: 700; font-size: 0.85rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg);
    margin-bottom: 0.9rem;
}
.footer-rb ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-rb a { color: var(--fg-accent); font-size: 0.98rem; }
.footer-rb a:hover { color: var(--fg); }
.footer-brand { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--fg); display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-brand i { color: var(--primary); font-size: 1.4rem; }
.footer-legal { color: var(--fg-soft); font-size: 0.88rem; max-width: 340px; }
.footer-bottom { border-top: 1px solid #dde3df; margin-top: 2.2rem; padding-top: 1.3rem; color: var(--fg-soft); font-size: 0.88rem; }

/* ---------- Entrada por scroll (sobria, solo a nivel de bloque) ---------- */

html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Banner de cookies (claro) ---------- */

.cookie-rb {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
    background: #fff; border-top: 1px solid var(--border);
    padding: 0.9rem 1rem; color: var(--fg-accent); font-size: 0.85rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.cookie-rb .cookie-inner { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; justify-content: center; }
.cookie-rb button {
    background: var(--fg); color: #fff;
    border: none; border-radius: 999px; padding: 0.6rem 1.4rem; font-weight: 600; cursor: pointer;
}
