/* ==========================================================================
   losericks.com — sitio público
   Paleta y tipografía del moodboard: Azul Erick, Naranja Erick, Tinta · Outfit
   ========================================================================== */

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --le-blue: #2F6BFF;
    --le-blue-ink: #1E4FD6;
    --le-orange: #E8590C;
    --le-orange-ink: #C94A07;
    --le-ink: #10172A;
    --le-blue-50: #EAF1FF;
    --le-orange-50: #FFF1E8;
    --le-gray-50: #F4F5F8;
    --le-green: #12A150;

    --bg: #FFFFFF;
    --bg-alt: var(--le-gray-50);
    --surface: #FFFFFF;
    --surface-2: #F8F9FB;
    --text: var(--le-ink);
    --muted: #5A6478;
    --line: #E3E7EF;
    --accent: var(--le-orange);
    --accent-hover: var(--le-orange-ink);
    --primary: var(--le-blue);
    --tint-blue: var(--le-blue-50);
    --tint-orange: var(--le-orange-50);
    --skin-1: #2F6BFF;
    --skin-2: #E8590C;
    --hair: #10172A;
    --shadow-sm: 0 1px 2px rgb(16 23 42 / .06), 0 2px 8px rgb(16 23 42 / .04);
    --shadow-md: 0 10px 30px -12px rgb(16 23 42 / .18);
    --shadow-lg: 0 30px 60px -24px rgb(16 23 42 / .28);

    --radius: 20px;
    --radius-sm: 12px;
    --nav-h: 84px;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    --bs-body-font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-font-size: 1.125rem;
    --bs-body-line-height: 1.6;
    --bs-body-color: var(--text);
    --bs-body-bg: var(--bg);
    --bs-border-color: var(--line);
    --bs-link-color-rgb: 47, 107, 255;
    --bs-focus-ring-color: rgb(47 107 255 / .35);
}

[data-bs-theme="dark"] {
    --bg: #0B1120;
    --bg-alt: #0F1729;
    --surface: #141D33;
    --surface-2: #18223B;
    --text: #E8EDF7;
    --muted: #98A3BA;
    --line: #24304A;
    --accent: #FF7A2E;
    --accent-hover: #FF9152;
    --primary: #5B8CFF;
    --tint-blue: rgb(76 139 255 / .14);
    --tint-orange: rgb(255 122 46 / .14);
    --skin-1: #4C8BFF;
    --skin-2: #FF7A2E;
    --hair: #33405F;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-md: 0 14px 34px -14px rgb(0 0 0 / .6);
    --shadow-lg: 0 30px 60px -24px rgb(0 0 0 / .7);
    --bs-body-color: var(--text);
    --bs-body-bg: var(--bg);
    --bs-border-color: var(--line);
    --bs-link-color-rgb: 91, 140, 255;
    color-scheme: dark;
}

/* Secciones que siempre van en tinta (valores, footer), sin importar el tema */
[data-theme-fixed="dark"] {
    --bg: #10172A;
    --surface: #1A2340;
    --text: #F1F4FA;
    --muted: #A9B3C8;
    --line: #27324F;
    --hair: #33405F;
    --skin-1: #4C8BFF;
    --skin-2: #FF7A2E;
    color: var(--text);
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    background: var(--bg);
    color: var(--text);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    transition: background-color .35s ease, color .35s ease;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.02em; line-height: 1.12; color: var(--text); }
a { color: var(--primary); text-underline-offset: .2em; }
::selection { background: var(--le-orange); color: #fff; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 2000;
    background: var(--le-ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
    transition: top .2s;
}
.skip-link:focus { top: 16px; }

main:focus { outline: none; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(2rem, 4.2vw, 2.75rem); margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.125rem; max-width: 560px; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--tint-orange); }
.eyebrow-light { color: #FF9152; }

.link-accent { color: var(--accent); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease-out); }
.link-accent:hover { color: var(--accent); background-size: 100% 2px; }

/* ---------- Botones ---------- */

.btn { font-weight: 600; border-radius: 999px; padding: .7rem 1.4rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s, color .2s, border-color .2s; }
.btn-lg { padding: .9rem 1.75rem; font-size: 1.0625rem; }
.btn-sm { padding: .5rem 1.05rem; font-size: .9375rem; }
.btn-accent { background: var(--accent); color: #fff; border: 0; box-shadow: 0 8px 20px -8px rgb(232 89 12 / .6); }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--accent-hover); color: #fff; box-shadow: 0 12px 26px -8px rgb(232 89 12 / .7); }
.btn-accent:active { transform: translateY(1px) scale(.98); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); background: var(--surface); }
.btn .bi-arrow-right { transition: transform .25s var(--ease-out); }
.btn:hover .bi-arrow-right { transform: translateX(4px); }

.btn-icon {
    width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
    border: 1.5px solid var(--line); background: transparent; color: var(--text); font-size: 1.1rem;
    text-decoration: none; font-weight: 600; transition: border-color .2s, background-color .2s, transform .2s;
}
.btn-icon:hover { border-color: var(--text); color: var(--text); }
.btn-icon:active { transform: scale(.94); }
.lang-toggle { font-size: .8125rem; letter-spacing: .06em; }

.theme-toggle .icon-light { display: none; }
[data-bs-theme="dark"] .theme-toggle .icon-light { display: inline; }
[data-bs-theme="dark"] .theme-toggle .icon-dark { display: none; }
.theme-toggle i { transition: transform .5s var(--ease-spring); }
.theme-toggle:hover i { transform: rotate(-24deg); }

/* ---------- Personajes ---------- */

.faces .skin-1 { fill: var(--skin-1); transition: fill .35s; }
.faces .skin-2 { fill: var(--skin-2); transition: fill .35s; }
.faces .hair { fill: var(--hair); transition: fill .35s; }
.faces .face, .faces .look, .faces .eyes, .faces .mouth-2 { transform-box: fill-box; transform-origin: center; }
.faces .look { transition: transform .45s var(--ease-out); }
.faces .eyes { transition: transform .08s ease-in; }
.faces.is-blinking .eyes { transform: scaleY(.12); }
.faces .face-1 { transform-origin: 50% 90%; }
.faces .face-2 { transform-origin: 50% 90%; }

.faces.look-left .look-1, .faces.look-left .look-2 { transform: translate(-4px, 1px); }
.faces.look-right .look-1, .faces.look-right .look-2 { transform: translate(4px, 1px); }
.faces.look-down .look-1, .faces.look-down .look-2 { transform: translate(3px, 4px); }

.faces.is-celebrating .face-1 { animation: hop .6s var(--ease-spring) 2; }
.faces.is-celebrating .face-2 { animation: hop .6s var(--ease-spring) .12s 2; }
.faces.is-celebrating .mouth-2 { animation: grin .6s ease 2; }
.faces.is-confused .face-1 { animation: tilt-l 3s ease-in-out infinite; }
.faces.is-confused .face-2 { animation: tilt-r 3s ease-in-out infinite; }

@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) rotate(-4deg); } 70% { transform: translateY(2px); } }
@keyframes grin { 50% { transform: scale(1.12); } }
@keyframes tilt-l { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-7deg); } }
@keyframes tilt-r { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(6deg); } }

/* ---------- Navbar ---------- */

.site-header { position: fixed; inset: 0 0 auto; z-index: 1030; }
.site-nav {
    height: var(--nav-h); padding: 0;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: height .35s var(--ease-out), box-shadow .35s, border-color .35s, background-color .35s;
}
.is-scrolled .site-nav { height: 64px; box-shadow: var(--shadow-md); border-bottom-color: var(--line); }
.site-nav .container-xl { display: flex; align-items: center; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-faces { width: 46px; height: auto; transition: width .35s var(--ease-out); }
.is-scrolled .site-nav .brand-faces { width: 40px; }
.brand-word { font-size: 1.5rem; letter-spacing: -.035em; line-height: 1; }
.brand-word span { font-weight: 300; }
.brand-word strong { font-weight: 700; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }

.nav-links { gap: 4px; }
.nav-links .nav-link { color: var(--muted); font-weight: 500; font-size: 1rem; padding: .5rem .8rem !important; border-radius: 999px; position: relative; transition: color .2s; }
.nav-links .nav-link::after {
    content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px; border-radius: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav-links .nav-link:hover, .nav-links .nav-link.active { color: var(--text); }
.nav-links .nav-link.active::after, .nav-links .nav-link:hover::after { transform: scaleX(1); }
.nav-links .nav-link-muted { opacity: .85; }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 992px) { .nav-tools { margin-left: 0; } .navbar-collapse { flex-grow: 1; } }

.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1040; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.mobile-menu { background: var(--bg); color: var(--text); width: min(360px, 88vw) !important; }
.mobile-menu .offcanvas-header { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mobile-links { margin: 8px 0 24px; }
.mobile-links a { display: block; padding: 14px 4px; font-size: 1.375rem; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu.show .mobile-links li { animation: slide-in .45s var(--ease-out) both; }
.mobile-menu.show .mobile-links li:nth-child(2) { animation-delay: .04s; }
.mobile-menu.show .mobile-links li:nth-child(3) { animation-delay: .08s; }
.mobile-menu.show .mobile-links li:nth-child(4) { animation-delay: .12s; }
.mobile-menu.show .mobile-links li:nth-child(5) { animation-delay: .16s; }
.mobile-menu.show .mobile-links li:nth-child(6) { animation-delay: .2s; }
.mobile-actions { display: grid; gap: 10px; }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */

.hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 7vw, 96px)) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-backdrop { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-dot { position: absolute; border-radius: 50%; will-change: transform; }
.hero-dot-blue { width: 520px; height: 520px; right: -140px; top: 60px; background: var(--tint-blue); }
.hero-dot-orange { width: 200px; height: 200px; left: -70px; top: 58%; background: var(--tint-orange); }
.hero-grid {
    position: absolute; inset: -10% 0 0;
    background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 13%, transparent) 1px, transparent 0);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 60% 55% at 70% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 70% 40%, #000 30%, transparent 75%);
}

.hero-title { font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 24px; }
.hero-title .line { display: block; }
.line-accent { color: var(--primary); position: relative; display: inline-block !important; padding-bottom: .12em; }
.scribble { position: absolute; left: 0; right: 0; bottom: -.08em; width: 100%; height: .3em; overflow: visible; }
.scribble path { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; }
.is-ready .scribble path { animation: draw 1s .75s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 1rem; margin: 0; }
.hero-points li { display: inline-flex; align-items: center; gap: 10px; }
.hero-points .dash { width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }

.hero-visual { position: relative; max-width: 540px; margin: 0 auto; aspect-ratio: 1 / .92; perspective: 1000px; }
.hero-faces { position: absolute; width: 62%; left: 2%; top: 0; z-index: 1; filter: drop-shadow(0 18px 24px rgb(16 23 42 / .14)); }
.inbox {
    position: absolute; right: 0; bottom: 6%; width: 78%; z-index: 2;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.js .inbox { opacity: 0; transform: translateX(60px) rotate(2deg); }
.is-ready .inbox { opacity: 1; transform: rotate(-1.5deg); transition: opacity .6s var(--ease-out) .35s, transform .6s var(--ease-out) .35s; }
.inbox-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.inbox-head strong { color: var(--text); }
.inbox-dots { display: inline-flex; gap: 6px; }
.inbox-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.inbox-dots i:first-child { background: #FF5F57; }
.inbox-dots i:nth-child(2) { background: #FEBC2E; }
.inbox-dots i:nth-child(3) { background: #28C840; }
.inbox-list { margin: 0; padding: 6px; }
.inbox-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; font-size: .9375rem; }
.js .inbox-row { opacity: 0; transform: translateY(10px); }
.is-ready .inbox-row { opacity: 1; transform: none; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.is-ready .inbox-row:nth-child(1) { transition-delay: .75s; }
.is-ready .inbox-row:nth-child(2) { transition-delay: .9s; }
.is-ready .inbox-row:nth-child(3) { transition-delay: 1.15s; }
.inbox-row.is-unread { background: var(--tint-orange); }
.inbox-row.is-unread strong::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }
.inbox-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.inbox-text span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row time { font-size: .8125rem; color: var(--muted); align-self: flex-start; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9375rem; color: #fff; flex-shrink: 0; }
.avatar-blue { background: var(--le-blue); }
.avatar-orange { background: var(--le-orange); }
.avatar-ink { background: var(--le-ink); }
[data-bs-theme="dark"] .avatar-ink { background: #33405F; }

.hero-badge {
    position: absolute; left: 0; bottom: 0; z-index: 3;
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px 10px 12px;
    font-size: .875rem; font-weight: 600; box-shadow: var(--shadow-md);
}
.hero-badge i { color: var(--le-green); font-size: 1.15rem; }
.js .hero-badge { opacity: 0; transform: translateY(16px) scale(.94); }
.is-ready .hero-badge { opacity: 1; transform: none; transition: opacity .5s 1.4s, transform .6s var(--ease-spring) 1.4s; }

.envelope .env-body { fill: var(--accent); }
.envelope .env-flap { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.envelope-float { position: absolute; width: 64px; right: 6%; top: 8%; z-index: 3; transform: rotate(12deg); animation: float 3s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgb(232 89 12 / .35)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(12deg); } 50% { transform: translateY(-12px) rotate(6deg); } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; border: 2px solid var(--line); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 991.98px) { .scroll-cue { display: none; } }

/* ---------- Confianza (logos) ---------- */

.trust { padding: 40px 0 8px; }
.trust-title { font-size: .9375rem; font-weight: 500; color: var(--muted); text-align: center; letter-spacing: 0; margin-bottom: 28px; }
.logo-strip { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 28px 56px; margin: 0; }
.logo-track img { height: 40px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.logo-track a:hover img, .logo-track img:hover { filter: none; opacity: 1; }
[data-bs-theme="dark"] .logo-track img { filter: grayscale(1) invert(1) brightness(1.4); }
.is-marquee .logo-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: marquee 38s linear infinite; }
.is-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Servicios ---------- */

.services { background: var(--bg-alt); }
.card-feature {
    height: 100%; padding: 32px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s;
}
.card-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-feature h3 { font-size: 1.375rem; margin: 22px 0 10px; }
.card-feature p { color: var(--muted); margin: 0; font-size: 1rem; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; transition: transform .4s var(--ease-spring); }
.card-feature:hover .feature-icon { transform: rotate(-8deg) scale(1.06); }
.tone-blue { background: var(--tint-blue); color: var(--primary); }
.tone-orange { background: var(--tint-orange); color: var(--accent); }

/* ---------- Valores ---------- */

.values { background: var(--bg); overflow: hidden; }
.values .section-title { color: #fff; }
.values .section-lead { color: var(--muted); }
.values-faces { display: block; width: 150px; margin-bottom: 28px; }
.value-card {
    height: 100%; padding: 28px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .25s var(--ease-out), border-color .25s, background-color .25s;
}
.value-card:hover { transform: translateY(-4px); border-color: #FF7A2E; }
.value-num { font-size: .9375rem; font-weight: 700; color: #FF7A2E; font-variant-numeric: tabular-nums; }
.value-card h3 { font-size: 1.375rem; margin: 10px 0 8px; color: #fff; }
.value-card p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (min-width: 576px) { .values-grid > :nth-child(even) { transform: translateY(32px); } }

/* ---------- Cómo funciona ---------- */

.steps { position: relative; }
.steps-line { position: absolute; left: 16.66%; right: 16.66%; top: 28px; width: 66.66%; height: 10px; overflow: visible; }
.steps-track, .steps-draw { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.steps-track { stroke: var(--line); stroke-dasharray: 6 8; }
.steps-draw { stroke: var(--primary); stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); }
.steps-list { margin: 0; position: relative; }
.step { text-align: center; }
.step-num {
    width: 56px; height: 56px; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--primary); color: #fff; font-size: 1.375rem; font-weight: 700;
    box-shadow: 0 0 0 8px var(--bg); position: relative; margin-bottom: 22px;
    transition: transform .4s var(--ease-spring);
}
.step:hover .step-num { transform: scale(1.1); }
.step h3 { font-size: 1.375rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0 auto; max-width: 280px; font-size: 1rem; }
@media (max-width: 767.98px) {
    .steps-line { display: none; }
    .step { text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
    .step-num { grid-row: span 2; margin: 0; }
    .step p { margin: 0; }
}

/* ---------- Planes ---------- */

.plans { background: var(--bg-alt); }
.billing-toggle {
    position: relative; display: flex; width: max-content; margin: -16px auto 48px; padding: 5px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.billing-toggle button {
    position: relative; z-index: 1; border: 0; background: none; padding: .55rem 1.25rem; border-radius: 999px;
    font-weight: 600; font-size: 1rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: color .25s;
}
.billing-toggle button[aria-checked="true"] { color: #fff; }
.billing-thumb { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--le-ink); transition: transform .4s var(--ease-out), width .4s var(--ease-out); }
[data-bs-theme="dark"] .billing-thumb { background: var(--primary); }
.save-pill { font-size: .75rem; padding: .15rem .5rem; border-radius: 999px; background: var(--tint-orange); color: var(--accent); }

.plan-card {
    position: relative; height: 100%; display: flex; flex-direction: column;
    padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line);
    transition: transform .2s var(--ease-out), box-shadow .2s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.is-featured { border-color: var(--accent); box-shadow: 0 24px 48px -28px rgb(232 89 12 / .55); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-head h3 { font-size: 1.375rem; margin: 0; }
.plan-badge { font-size: .8125rem; font-weight: 600; color: var(--accent); background: var(--tint-orange); padding: .25rem .7rem; border-radius: 999px; }
.plan-summary { color: var(--muted); font-size: 1rem; margin: 10px 0 20px; min-height: 3.2em; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 0; perspective: 400px; }
.price { font-size: 3rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; display: inline-block; font-variant-numeric: tabular-nums; }
.price.is-flipping { animation: flip .5s var(--ease-out); }
@keyframes flip { 0% { transform: rotateX(0); } 45% { transform: rotateX(90deg); opacity: .2; } 55% { transform: rotateX(-90deg); opacity: .2; } 100% { transform: rotateX(0); } }
.per { color: var(--muted); font-size: 1rem; }
.plan-billed { font-size: .875rem; color: var(--muted); margin: 6px 0 18px; }
.plan-billed .billed-y { display: none; }
.is-yearly .plan-billed .billed-y { display: inline; }
.is-yearly .plan-billed .billed-m { display: none; }
.plan-quota { font-size: 1rem; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 18px; }
.plan-quota .sep { color: var(--muted); margin: 0 6px; }
.plan-features { margin: 0 0 28px; flex-grow: 1; font-size: 1rem; }
.plan-features li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.plan-features li::before {
    content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
    background: var(--tint-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232F6BFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plans-note { text-align: center; color: var(--muted); margin: 40px 0 0; font-size: 1rem; }

/* ---------- Nosotros ---------- */

.about-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.about-photo img { width: 100%; height: 116%; object-fit: cover; margin-top: -8%; will-change: transform; }
.js [data-reveal="clip"] { clip-path: inset(12% 12% 12% 12% round 28px); opacity: 1; transform: none; }
.js [data-reveal="clip"].is-visible { clip-path: inset(0 0 0 0 round 28px); transition: clip-path 1.1s var(--ease-out); }
.about-quote { font-size: 1.375rem; font-weight: 600; color: var(--text); border-left: 3px solid var(--accent); padding-left: 18px; margin: 24px 0 32px; }
.team-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.team-card strong { display: block; font-size: 1.0625rem; }
.team-card span:not(.team-avatar) { color: var(--muted); font-size: .9375rem; }
.team-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }

/* ---------- Testimonios ---------- */

.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { margin: 0; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.testimonial .bi-quote { font-size: 2rem; color: var(--accent); line-height: 1; }
.testimonial blockquote { font-size: 1.0625rem; margin: 10px 0 20px; flex-grow: 1; }
.testimonial figcaption { color: var(--muted); font-size: .9375rem; }
.testimonial figcaption strong { color: var(--text); }
@media (max-width: 991.98px) {
    .testimonial-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 -12px; padding: 4px 12px 12px; scrollbar-width: none; }
    .testimonial-track::-webkit-scrollbar { display: none; }
    .testimonial { flex: 0 0 86%; scroll-snap-align: center; }
}

/* ---------- Preguntas ---------- */

.faq { background: var(--bg-alt); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { margin: 0; font-size: inherit; }
.faq-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 24px 0; border: 0; background: none; text-align: left; color: var(--text);
    font-size: 1.1875rem; font-weight: 600; letter-spacing: -.01em;
}
.faq-btn:hover { color: var(--primary); }
.faq-icon { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); flex-shrink: 0; transition: transform .2s ease, background-color .2s, border-color .2s; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; }
.faq-icon::after { transform: rotate(90deg); }
.faq-btn:not(.collapsed) .faq-icon { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-a { color: var(--muted); padding: 0 56px 24px 0; margin: 0; font-size: 1.0625rem; }

/* ---------- Contacto ---------- */

.contact-channels { margin: 32px 0; display: grid; gap: 18px; }
.contact-channels li { display: flex; align-items: center; gap: 14px; }
.contact-channels small { display: block; color: var(--muted); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-channels a { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-channels a:hover { color: var(--primary); }
.channel-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint-blue); color: var(--primary); font-size: 1.2rem; flex-shrink: 0; }
.contact-faces .faces { display: block; width: 170px; }

.form-card { position: relative; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-label { font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.req { color: var(--accent); }
.form-control, .form-select {
    border-radius: 12px; border: 1.5px solid var(--line); background-color: var(--surface-2); color: var(--text);
    padding: .75rem 1rem; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-control::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgb(47 107 255 / .15); background-color: var(--surface); color: var(--text); }
.form-check-input { width: 1.2em; height: 1.2em; border: 1.5px solid var(--line); margin-top: .2em; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-label { font-size: 1rem; }
.invalid-feedback { font-size: .875rem; }
.form-submit { padding-top: 6px; }
.contact-form .label-sending { display: none; }
.contact-form.is-sending .label { display: none; }
.contact-form.is-sending .label-sending { display: inline; }
.contact-form.is-sending button[type="submit"] { pointer-events: none; opacity: .85; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 32px 8px; }
.form-success h3 { font-size: 1.75rem; margin: 18px 0 8px; }
.form-success p { color: var(--muted); margin-bottom: 24px; }
.success-faces { width: 180px; }
.form-card .form-success:not([hidden]) { animation: pop-in .6s var(--ease-spring); }
@keyframes pop-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.envelope-fly { position: absolute; width: 56px; right: 40px; bottom: 40px; opacity: 0; pointer-events: none; z-index: 5; }
.envelope-fly.is-flying { animation: fly .7s cubic-bezier(.55, 0, .7, .4) forwards; }
@keyframes fly {
    0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
    60% { opacity: 1; }
    100% { opacity: 0; transform: translate(220px, -420px) rotate(28deg) scale(.5); }
}

/* ---------- Barra fija móvil ---------- */

.sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1020;
    display: flex; gap: 10px; padding: 10px; border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(140%); transition: transform .45s var(--ease-out);
}
.sticky-cta .btn { flex: 1; }
.sticky-cta.is-visible { transform: none; }

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

.site-footer { background: var(--bg); color: var(--muted); padding: 80px 0 32px; font-size: 1rem; }
.footer-tagline { margin: 18px 0 20px; max-width: 300px; }
.footer-title { font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; font-weight: 600; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-social a { color: var(--muted); text-decoration: none; transition: color .2s; word-break: break-word; }
.footer-links a:hover, .footer-social a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9375rem; }
.made-in { display: inline-flex; align-items: center; gap: 8px; }
.flag-dot { width: 18px; height: 12px; border-radius: 3px; background: linear-gradient(#0067C6 33%, #fff 33% 66%, #0067C6 66%); }
.to-top { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: #fff; text-decoration: none; transition: transform .25s var(--ease-out), background-color .2s; }
.to-top:hover { transform: translateY(-3px); background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 991.98px) { .site-footer { padding-bottom: 104px; } }

/* ---------- Páginas legales y de error ---------- */

.legal { padding: calc(var(--nav-h) + 56px) 0 96px; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin: 24px 0 8px; }
.legal-updated { color: var(--muted); margin-bottom: 40px; }
.legal-body h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.legal-body p { color: var(--muted); }
.legal-back { color: var(--muted); text-decoration: none; font-weight: 500; }
.legal-back:hover { color: var(--text); }

.error-page { padding: calc(var(--nav-h) + 64px) 0 120px; }
.error-faces { width: 220px; margin-bottom: 8px; }
.error-code { font-size: 1rem; font-weight: 700; color: var(--accent); letter-spacing: .2em; margin: 0; }
.error-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 8px 0 14px; }
.error-page .section-lead { margin-bottom: 32px; }

/* ---------- Animaciones de entrada (solo con JS y sin reduced-motion) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .45s ease-out, transform .45s ease-out; transition-delay: var(--delay, 0ms); }
.js .values-grid > :nth-child(even) [data-reveal].is-visible { transform: none; }

[data-tilt] { transition: transform .5s var(--ease-out); transform-style: preserve-3d; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
    .js [data-reveal], .js .inbox, .js .inbox-row, .js .hero-badge { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    .scribble path { stroke-dashoffset: 0; }
    .steps-draw { stroke-dashoffset: 0; }
    .is-marquee .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* Cambio de idioma: fundido corto del texto */
.is-switching [data-i18n], .is-switching [data-i18n-html], .is-switching [data-i18n-list] { transition: opacity .18s ease; opacity: 0; }

@media (max-width: 991.98px) {
    :root { --nav-h: 68px; }
    .hero-visual { max-width: 460px; margin-top: 16px; }
    .brand-word { font-size: 1.3rem; }
    .brand-faces { width: 40px; }
}
@media (max-width: 575.98px) {
    .hero-actions .btn { flex: 1 1 100%; }
    .billing-toggle button { padding: .5rem .9rem; }
    .faq-a { padding-right: 0; }
}
