/* ============================================================
   Orizon LegalTech — Landing
   Hoja de estilos principal
   ============================================================ */

:root {
    --color-primary: #1A1A2E;
    --color-accent: #3B82F6;
    --color-accent-2: #6366F1;
    --color-bg: #FFFFFF;
    --color-bg-subtle: #F8FAFC;
    --color-text: #0F172A;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --font: 'Inter', sans-serif;
    --transition: all 0.2s ease;
    --hero-gradient: linear-gradient(135deg, #1A1A2E 0%, #1E3A5F 50%, #1A1A2E 100%);
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

.eyebrow {
    display: inline-block;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--color-accent); margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800; letter-spacing: -0.02em;
    line-height: 1.15; color: var(--color-text);
}
.section-subtitle {
    font-size: 18px; color: var(--color-text-muted);
    max-width: 620px; margin: 16px auto 0;
}
.section-head { text-align: center; margin-bottom: 56px; }

.logo{
    width: 240px;
}

/* Logo del navbar: el normal en el tope; al hacer scroll (navbar sticky/blanco)
   se muestra la variante 'logo-scroll' para que no quede invisible. */
.brand .logo { transition: opacity 0.2s ease; }
.brand .logo-sticky { display: none; }
.navbar.scrolled .brand .logo-top { display: none; }
.navbar.scrolled .brand .logo-sticky { display: block; }

.logoFooter{
    width: 140px;
    display: block;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font); font-size: 15px; font-weight: 600;
    padding: 13px 24px; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer;
    transition: var(--transition); white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35); }
.btn-primary:hover { background: #2563EB; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(59, 130, 246, 0.45); }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.22); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---------- Navbar ---------- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: var(--transition); background: transparent; }
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: #fff; transition: var(--transition); }
.navbar.scrolled .brand { color: var(--color-text); }
.brand-mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    display: grid; place-items: center; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-accent { color: var(--color-accent); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-menu a { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.82); transition: var(--transition); }
.nav-menu a:hover { color: #fff; }
.navbar.scrolled .nav-menu a { color: var(--color-text-muted); }
.navbar.scrolled .nav-menu a:hover { color: var(--color-accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.82); }
.navbar.scrolled .nav-login { color: var(--color-text); }
.nav-login:hover { color: var(--color-accent); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; border-radius: 2px; background: #fff; transition: var(--transition); }
.navbar.scrolled .hamburger span { background: var(--color-text); }

/* ---------- Hero ---------- */
.hero { background: var(--hero-gradient); color: #fff; padding: 150px 0 100px; position: relative; overflow: hidden; }
.hero-bg-image {
    position: absolute; inset: 0;
    background-image: url("../assets/img/Banner.jpeg");
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
}
.hero-bg-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 80%);
    pointer-events: none;
}
.hero::before {
    content: ""; position: absolute; top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 70%);
    filter: blur(20px); pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; bottom: -30%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
    pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: #93C5FD; padding: 7px 15px;
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 999px; margin-bottom: 24px;
}

.gestTittle{
    font-size: 30px !important;
}

.hero-eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74,222,128,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); } 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(120deg, #60A5FA, #818CF8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 19px; color: rgba(255, 255, 255, 0.78); max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-checks { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-checks span { font-size: 14px; color: rgba(255,255,255,0.72); display: flex; align-items: center; gap: 7px; }
.hero-checks .ck { color: #4ADE80; display: inline-flex; }
.hero-checks .ck svg { width: 16px; height: 16px; }

/* ---------- Hero mockup ---------- */
.hero-visual { position: relative; }
.hero-mockup {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mock-dots { display: flex; gap: 7px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-dots i:nth-child(1) { background: #FF5F57; }
.mock-dots i:nth-child(2) { background: #FEBC2E; }
.mock-dots i:nth-child(3) { background: #28C840; }
.mock-url { flex: 1; font-size: 12px; color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.07); padding: 5px 12px; border-radius: 6px; text-align: center; }
.mock-shell { display: flex; background: rgba(248, 250, 252, 0.97); }
.mock-rail { width: 46px; background: #141428; padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; flex-shrink: 0; }
.mock-rail .r-logo { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2)); }
.mock-rail .r-dot { width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,0.12); }
.mock-rail .r-dot.active { background: rgba(59,130,246,0.5); }
.mock-body { padding: 18px; flex: 1; min-width: 0; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.mock-kpi { background: #fff; border: 1px solid var(--color-border); border-radius: 10px; padding: 12px; }
.mock-kpi .k-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); font-weight: 600; }
.mock-kpi .k-num { font-size: 22px; font-weight: 800; color: var(--color-text); line-height: 1.3; }
.mock-kpi .k-bar { height: 3px; border-radius: 3px; margin-top: 6px; }
.mock-kpi.a .k-bar { background: #3B82F6; }
.mock-kpi.b .k-bar { background: #22C55E; }
.mock-kpi.c .k-bar { background: #F59E0B; }
.mock-tabletop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mock-tabletop span { font-size: 13px; font-weight: 700; color: var(--color-text); }
.mock-xlsx { font-size: 10px; font-weight: 600; color: #15803d; background: rgba(34,197,94,0.14); padding: 3px 9px; border-radius: 6px; }
.mock-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border); }
.mock-table th, .mock-table td { text-align: left; padding: 8px 10px; font-size: 11.5px; border-bottom: 1px solid #EEF2F6; }
.mock-table th { background: #F9FAFB; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; font-size: 9.5px; letter-spacing: 0.04em; }
.mock-table td { color: #334155; }
.mock-table tr:last-child td { border-bottom: none; }
.mock-tag { font-size: 9.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: rgba(59,130,246,0.12); color: #1d4ed8; }

.mock-toast {
    position: absolute; right: -18px; bottom: 40px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.28);
    padding: 12px 15px; display: flex; align-items: center; gap: 11px;
    width: 232px; border: 1px solid var(--color-border);
    animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mock-toast .t-ico { width: 34px; height: 34px; border-radius: 9px; background: rgba(59,130,246,0.12); color: var(--color-accent); display: grid; place-items: center; flex-shrink: 0; }
.mock-toast .t-ico svg { width: 18px; height: 18px; }
.mock-toast .t-title { font-size: 12.5px; font-weight: 700; color: var(--color-text); }
.mock-toast .t-sub { font-size: 11px; color: var(--color-text-muted); }

/* ---------- Stats ---------- */
.stats { background: rgba(255, 255, 255, 0.04); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.hero-stats { margin-top: 88px; position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 36px 0; }
.stat .num { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(120deg, #60A5FA, #818CF8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { font-size: 14px; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ---------- Problem / Solution ---------- */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ps-card { border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--color-border); }
.ps-card.bad { background: #FEF2F2; border-color: #FECACA; }
.ps-card.good { background: linear-gradient(160deg, #F0FDF4, #F8FAFC); border-color: #BBF7D0; }
.ps-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 22px; display: flex; align-items: center; gap: 11px; }
.ps-chip { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.ps-chip svg { width: 17px; height: 17px; }
.ps-card.bad .ps-chip { background: #FEE2E2; color: #DC2626; }
.ps-card.good .ps-chip { background: #DCFCE7; color: #16A34A; }
.ps-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.ps-list li { display: flex; gap: 12px; font-size: 15.5px; color: #334155; align-items: flex-start; }
.ps-ico { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.ps-ico svg { width: 13px; height: 13px; }
.ps-card.bad .ps-ico { background: #FEE2E2; color: #DC2626; }
.ps-card.good .ps-ico { background: #DCFCE7; color: #16A34A; }

/* ---------- Features ---------- */
.features { background: var(--color-bg-subtle); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; transition: var(--transition); }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #BFDBFE; }
.feat-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(99,102,241,0.12)); margin-bottom: 20px; color: var(--color-accent); }
.feat-ico svg { width: 27px; height: 27px; }
.feat-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.feat-card p { font-size: 15px; color: var(--color-text-muted); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.step { text-align: center; padding: 0 12px; position: relative; }
.step-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; font-size: 22px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2)); box-shadow: 0 8px 20px rgba(59,130,246,0.35); position: relative; z-index: 2; }
.steps::before { content: ""; position: absolute; top: 28px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2)); opacity: 0.25; z-index: 1; }
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--color-text-muted); }

/* ---------- Pricing ---------- */
.pricing { background: var(--color-bg-subtle); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 34px 30px; display: flex; flex-direction: column; transition: var(--transition); }
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card.featured { border: 2px solid var(--color-accent); box-shadow: 0 16px 44px rgba(59,130,246,0.18); position: relative; transform: scale(1.03); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--color-accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 5px 16px; border-radius: 999px; }
.price-name { font-size: 17px; font-weight: 700; }
.price-launch-tag { display: inline-flex; align-items: center; gap: 4px; width: fit-content; margin-top: 10px; padding: 4px 11px; border-radius: 999px; background: #FFF7ED; color: #C2410C; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; }
.price-amount { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 2px; }
.price-old { display: block; font-size: 16px; font-weight: 600; letter-spacing: normal; color: var(--color-text-muted); text-decoration: line-through; margin-bottom: 2px; }
.price-amount small { font-size: 15px; font-weight: 500; color: var(--color-text-muted); }
.price-note { font-size: 14px; color: var(--color-text-muted); margin-bottom: 24px; min-height: 21px; }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-feats li { font-size: 14.5px; color: #334155; display: flex; gap: 10px; align-items: flex-start; }
.price-feats li svg { width: 16px; height: 16px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.price-card .btn { width: 100%; justify-content: center; }

/* ---------- Testimonials ---------- */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.test-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; }
.test-stars { color: #FBBF24; font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.test-quote { font-size: 15.5px; color: #334155; flex: 1; }
.test-author { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--color-border); display: flex; align-items: center; gap: 12px; }
.test-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2)); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.test-author .who { font-size: 14px; font-weight: 600; color: var(--color-text); }
.test-author .where { font-size: 13px; color: var(--color-text-muted); }

/* ---------- CTA final ---------- */
.cta-final { background: var(--hero-gradient); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 400px; background: radial-gradient(ellipse, rgba(99,102,241,0.22), transparent 70%); pointer-events: none; }
.cta-final .inner { position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.cta-final p { font-size: 18px; color: rgba(255,255,255,0.78); max-width: 600px; margin: 18px auto 32px; }
.cta-final .hero-checks { justify-content: center; margin-top: 24px; }
.cta-fine { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { background: #0F172A; color: #fff; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; display: block; margin: 0 0 0px; line-height: 0; }
.footer-tag { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { font-size: 14.5px; color: rgba(255,255,255,0.72); transition: var(--transition); }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13.5px; color: rgba(255,255,255,0.5); text-align: center; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-eyebrow .pulse, .mock-toast { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--color-border); padding: 18px 24px 24px; z-index: 999; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; font-weight: 500; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 16px; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--hero-gradient); color: #fff; padding: 24px; }
.notfound .code { font-size: clamp(64px, 14vw, 140px); font-weight: 800; letter-spacing: -0.04em; background: linear-gradient(120deg, #60A5FA, #818CF8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.notfound h1 { font-size: clamp(22px, 4vw, 32px); font-weight: 700; margin: 8px 0 12px; }
.notfound p { color: rgba(255,255,255,0.72); margin-bottom: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 560px; }
    .feat-grid, .price-grid, .test-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .price-card.featured { transform: none; }
}
@media (max-width: 767px) {
    section { padding: 64px 0; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero { padding: 120px 0 72px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ps-grid, .feat-grid, .steps, .price-grid, .test-grid { grid-template-columns: 1fr; }
    .steps::before { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .mock-toast { right: 8px; }
    .hero-cta .btn { width: 100%; justify-content: center; }
}
/* ============================================================
   Botón "volver arriba" y WhatsApp flotante (estilo Joinchat)
   ============================================================ */

/* ----- Volver arriba (abajo-izquierda, para no chocar con WhatsApp) ----- */
.scroll-top {
    position: fixed;
    left: 24px;
    bottom: 26px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1200;
}
.scroll-top svg { width: 20px; height: 20px; }
.scroll-top:hover { background: #24243f; transform: translateY(-2px); }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ----- WhatsApp flotante ----- */
.wa-widget { position: fixed; right: 24px; bottom: 24px; z-index: 1200; }
.wa-float {
    position: relative;
    width: 60px; height: 60px;
    border: none; border-radius: 50%;
    background: #25D366; color: #fff;
    display: grid; place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float svg { width: 34px; height: 34px; position: relative; z-index: 1; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55); }
.wa-pulse {
    position: absolute; inset: 0; border-radius: 50%;
    background: #25D366; z-index: 0;
    animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.55; }
    70% { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* ----- Popup tipo chat ----- */
.wa-popup {
    position: absolute;
    right: 0; bottom: 78px;
    width: 300px; max-width: calc(100vw - 48px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    opacity: 0; visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.wa-widget.open .wa-popup { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.wa-popup-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: #075E54; color: #fff; }
.wa-popup-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.16); display: grid; place-items: center; flex-shrink: 0; }
.wa-popup-avatar svg { width: 24px; height: 24px; }
.wa-popup-id { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.wa-popup-title { font-size: 14.5px; font-weight: 700; }
.wa-popup-status { font-size: 12px; color: #a7f3d0; }
.wa-popup-close { background: none; border: none; color: #fff; opacity: 0.85; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.wa-popup-close:hover { opacity: 1; }
.wa-popup-body {
    padding: 20px 16px;
    background: #E5DDD5;
    background-image: radial-gradient(rgba(0,0,0,0.035) 1px, transparent 1px);
    background-size: 18px 18px;
}
.wa-bubble {
    background: #fff; border-radius: 0 12px 12px 12px;
    padding: 11px 13px; font-size: 13.5px; color: #303030;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12); max-width: 92%;
}
.wa-popup-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px; background: #25D366; color: #fff;
    font-size: 14.5px; font-weight: 600;
}
.wa-popup-cta svg { width: 20px; height: 20px; }
.wa-popup-cta:hover { background: #1FB855; }

@media (max-width: 767px) {
    .wa-widget { right: 16px; bottom: 20px; }
    .wa-float { width: 54px; height: 54px; }
    .wa-float svg { width: 30px; height: 30px; }
    .scroll-top { width: 42px; height: 42px; left: 16px; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-pulse { animation: none; }
}

/* ============================================================
   Sección "Nuestra convicción" (humana, con foto real)
   ============================================================ */
.human { background-color: #FAFAF8; }
.human-grid { display: grid; grid-template-columns: 45% 1fr; gap: 56px; align-items: center; }

/* Columna de imagen */
.human-visual { position: relative; }
.human-image-wrapper { position: relative; aspect-ratio: 4 / 5; }
.human-image-wrapper::before {
    content: ''; position: absolute;
    top: 20px; left: -20px;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    border-radius: 20px; z-index: 0;
}
.human-photo {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    border-radius: 20px; object-fit: cover; display: block;
}
.image-placeholder {
    display: none; /* lo muestra el JS si la foto no existe */
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    border-radius: 20px;
    flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    text-align: center; padding: 24px;
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(99,102,241,0.14));
}
.image-placeholder svg { width: 46px; height: 46px; color: var(--color-accent); opacity: 0.75; }
.image-placeholder span { font-size: 14px; font-weight: 600; color: var(--color-text-muted); }

/* Tarjeta flotante sobre la foto */
.human-float-card {
    position: absolute; right: -14px; bottom: 30px; z-index: 2;
    display: flex; align-items: center; gap: 9px;
    background: #fff; border: 1px solid var(--color-border);
    border-radius: 12px; padding: 11px 14px;
    box-shadow: var(--shadow-md); max-width: 232px;
}
.human-float-card .hfc-icon { width: 19px; height: 19px; flex-shrink: 0; color: var(--color-accent); }
.human-float-card .hfc-icon svg { width: 100%; height: 100%; }
.human-float-card .hfc-text { font-size: 13px; font-weight: 600; color: var(--color-text); line-height: 1.3; }

/* Columna de contenido */
.human-content { position: relative; }
.human-quote-mark {
    position: absolute; top: -46px; left: -10px; z-index: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 120px; line-height: 1; font-weight: 700;
    color: rgba(15, 23, 42, 0.05); pointer-events: none;
}
.human-eyebrow {
    position: relative; z-index: 1;
    display: inline-block;
    font-size: 12.5px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 12px; border-radius: 999px;
    margin-bottom: 20px;
}
.human-headline {
    position: relative; z-index: 1;
    font-size: clamp(28px, 3.4vw, 36px);
    font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
    color: var(--color-text); margin-bottom: 20px;
}
.human-text {
    position: relative; z-index: 1;
    font-size: 16.5px; color: var(--color-text-muted);
    line-height: 1.7; max-width: 520px; margin-bottom: 22px;
}
.human-sign {
    position: relative; z-index: 1;
    font-size: 14px; font-style: italic; color: var(--color-text-muted);
}

@media (max-width: 1023px) {
    .human-grid { grid-template-columns: 40% 1fr; gap: 40px; }
}
@media (max-width: 767px) {
    .human-grid { grid-template-columns: 1fr; gap: 40px; }
    .human-image-wrapper { aspect-ratio: 1 / 1; }
    .human-image-wrapper::before { top: 12px; left: -12px; }
    .human-float-card { right: 10px; bottom: 16px; }
    .human-quote-mark { top: -30px; font-size: 92px; }
}

/* ============================================================
   Páginas legales (Términos, Privacidad, Habeas Data)
   ============================================================ */
.legal-main { padding: 112px 0 72px; background: var(--color-bg); }
.legal-container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.legal-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--color-accent); font-weight: 600; font-size: 14px;
    margin-bottom: 26px;
}
.legal-back:hover { text-decoration: underline; }
.legal-doc h1 {
    font-size: clamp(28px, 4vw, 38px); font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.2; color: var(--color-text);
    margin-bottom: 8px;
}
.legal-updated { font-size: 14px; color: var(--color-text-muted); margin-bottom: 8px; }
.legal-doc h2 {
    font-size: 20px; font-weight: 700; color: var(--color-text);
    margin: 36px 0 12px;
}
.legal-doc p { font-size: 16px; line-height: 1.75; color: #334155; margin-bottom: 14px; }
.legal-doc ul { margin: 0 0 16px 20px; padding: 0; }
.legal-doc li { font-size: 16px; line-height: 1.7; color: #334155; margin-bottom: 8px; }
.legal-doc a { color: var(--color-accent); word-break: break-word; }
.legal-doc a:hover { text-decoration: underline; }
.legal-doc strong { color: var(--color-text); }

/* Aviso de borrador pendiente de revisión legal */
.legal-disclaimer {
    display: flex; gap: 12px;
    background: #FFF7ED; border: 1px solid #FED7AA; border-left: 4px solid #F59E0B;
    border-radius: 12px; padding: 16px 18px; margin: 22px 0 34px;
    font-size: 14.5px; line-height: 1.6; color: #7C2D12;
}
.legal-disclaimer svg { width: 22px; height: 22px; flex-shrink: 0; color: #D97706; margin-top: 1px; }

/* Campos por completar antes de publicar (resaltados) */
.todo {
    background: #FEF08A; color: #713F12;
    padding: 1px 6px; border-radius: 4px;
    font-weight: 600; font-style: normal;
    box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Navbar sólido en páginas legales (no hay hero oscuro detrás) */
.legal-page .navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border);
}
.legal-page .navbar .brand { color: var(--color-text); }
.legal-page .navbar .nav-menu a { color: var(--color-text-muted); }
.legal-page .navbar .nav-menu a:hover { color: var(--color-accent); }
.legal-page .navbar .nav-login { color: var(--color-text); }
.legal-page .navbar .hamburger span { background: var(--color-text); }

@media (max-width: 767px) {
    .legal-main { padding: 96px 0 56px; }
}
