/* ==========================================================================
   BalearDesk — hoja de estilos (v3)
   Una sola tipografía (Manrope), azul noche, blanco cálido y un acento
   suave de amanecer. Bordes finos, sombras blandas, nada estridente.
   ========================================================================== */

:root {
  --bg: #F6F5F2;
  --surface: #FFFFFF;
  --ink: #0E1A26;
  --ink-2: #465463;
  --ink-3: #5F6B77;
  --line: rgba(14, 26, 38, .10);
  --line-strong: rgba(14, 26, 38, .20);
  --sea: #2F6E8E;
  --sea-soft: #E8F0F4;
  --dawn-ink: #8A5A22;
  --dawn-soft: #FBF3E7;
  --field: #F6F5F2;
  --shadow: 0 1px 2px rgba(14, 26, 38, .04), 0 14px 34px -14px rgba(14, 26, 38, .16);
  --shadow-lg: 0 2px 4px rgba(14, 26, 38, .04), 0 34px 70px -28px rgba(14, 26, 38, .30);

  /* Fijos: no cambian de noche */
  --navy: #0B1622;
  --navy-2: #13263A;
  --paper: #EEF2F6;
  --dawn: #E9B77E;
  --ok: #2E9E6B;

  --radius: 22px;
  --radius-sm: 12px;
  --f: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 48px);
  --head-h: 72px;
  color-scheme: light;
}

:root[data-theme="night"] {
  --bg: #0A121C;
  --surface: #111D2B;
  --ink: #EEF2F6;
  --ink-2: #AAB6C3;
  --ink-3: #8795A4;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .22);
  --sea: #8BBBD4;
  --sea-soft: #15293A;
  --dawn-ink: #E9B77E;
  --dawn-soft: #172433;
  --field: #0C1622;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 34px 70px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 16.5px;
  font-weight: 450;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s ease, color .6s ease;
  overflow-x: hidden;
}
a { color: inherit; }
p, ul, ol, h1, h2, h3, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; flex: none; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 88px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.meta { font-size: .76rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; line-height: 1.4; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.08; }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; }

.only-night { display: none; }
[data-theme="night"] .only-night { display: revert; }
[data-theme="night"] .only-day { display: none; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; }
.skip:focus { top: 12px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .92em 1.6em; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1.15; letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-sm { padding: .66em 1.2em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(14, 26, 38, .55); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); }

/* Sobre fondos oscuros */
.hero .btn-primary, .page-hero .btn-primary, .section-ink .btn-primary, .contact-section .btn-primary,
.site-header:not(.is-stuck):not(.menu-open) .btn-primary { background: #fff; color: var(--navy); }
.hero .btn-ghost, .page-hero .btn-ghost, .section-ink .btn-ghost {
  color: #fff; border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero .btn-ghost:hover, .page-hero .btn-ghost:hover, .section-ink .btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }

/* Cabecera --------------------------------------------------------------- */

.site-header {
  --sw-thumb: #fff; --sw-on: var(--navy);
  position: fixed; inset: 0 0 auto 0; z-index: 60; color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.site-header.is-stuck, .site-header.menu-open {
  --sw-thumb: var(--ink); --sw-on: var(--bg);
  color: var(--ink); border-color: var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
}
.site-header.menu-open { background: var(--bg); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--head-h); }

.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.32rem; letter-spacing: -.035em; line-height: 1; }
.brand-mark { width: 22px; height: 22px; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { color: inherit; text-decoration: none; font-size: .94rem; font-weight: 500; opacity: .84; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav a.nav-seo { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 26%, transparent); opacity: 1; white-space: nowrap; }
.nav a.nav-seo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dawn); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: flex; gap: 2px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.lang-switch a { padding: 6px 6px; color: inherit; text-decoration: none; opacity: .55; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current], .nav-langs a[aria-current] { opacity: 1; }
.nav-langs { display: none; }

/* Interruptor abierto / cerrado (día / noche) */
.sign {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 3px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  background: color-mix(in srgb, currentColor 7%, transparent); color: inherit; cursor: pointer;
}
.sign-opt { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; font-size: .78rem; font-weight: 600; white-space: nowrap; opacity: .62; transition: opacity .35s, color .35s; }
.sign-opt svg { width: 14px; height: 14px; }
.sign-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--sw-thumb); transition: transform .5s cubic-bezier(.3, 1.15, .4, 1), background-color .35s; }
[data-theme="night"] .sign-thumb { transform: translateX(100%); }
:root:not([data-theme="night"]) .sign-day, [data-theme="night"] .sign-night { opacity: 1; color: var(--sw-on); }

.menu-btn { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .3s, top .3s; }
.menu-btn i:first-child { top: 18px; }
.menu-btn i:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] i:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 1240px) { .header-cta { display: none; } }
@media (max-width: 1120px) {
  .nav {
    display: none; position: absolute; top: var(--head-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gut) 22px;
    background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; font-size: 1.18rem; font-weight: 600; letter-spacing: -.02em; opacity: 1; border-bottom: 1px solid var(--line); }
  .nav a.nav-seo { margin-top: 16px; padding: 13px 18px; justify-content: center; border: 1px solid var(--line-strong); }
  .lang-switch { display: none; }
  .nav .nav-langs { display: flex; gap: 20px; padding-top: 16px; }
  .nav .nav-langs a { padding: 6px 0; border: 0; font-size: .92rem; font-weight: 600; opacity: .55; }
  .nav .nav-langs a[aria-current] { opacity: 1; }
  .menu-btn { display: block; }
}
@media (max-width: 520px) {
  .sign-opt { padding: 7px 10px; }
  .sign-opt span { display: none; }
}

/* Portada ---------------------------------------------------------------- */

.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100svh; overflow: hidden; color: #fff; background: var(--navy); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease, filter 1.2s ease; }
.hero-video.is-on { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; transition: background-color 1.2s ease;
  background-image:
    linear-gradient(100deg, rgba(8, 16, 26, .84) 0%, rgba(8, 16, 26, .58) 46%, rgba(8, 16, 26, .30) 100%),
    linear-gradient(0deg, rgba(8, 16, 26, .78) 0%, rgba(8, 16, 26, 0) 40%);
}
[data-theme="night"] .hero-video { filter: brightness(.52) saturate(.6); }
[data-theme="night"] .hero-shade { background-color: rgba(10, 24, 52, .34); }

.hero-grid {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 5vw, 80px); align-items: center;
  padding-top: calc(var(--head-h) + 28px); padding-bottom: 32px;
}

.hero-status {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 15px 8px 13px; border-radius: 18px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: .82rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .9);
}
.hero-status b { font-weight: 700; color: var(--dawn); }
.hero-status .sep { opacity: .35; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 158, 107, .7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(46, 158, 107, 0); } }

.hero-title { margin: 26px 0 24px; font-size: clamp(2.9rem, 6.5vw, 5.7rem); line-height: 1.01; letter-spacing: -.042em; }
.hero-title em { font-style: normal; color: var(--dawn); }
.hero-lead { max-width: 34em; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.58; color: rgba(255, 255, 255, .86); }
.hero-lead time { color: var(--dawn); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .58); font-size: .78rem; font-weight: 500; letter-spacing: 0; text-transform: none; }

/* Demo: sectores + móvil */

.hero-demo { justify-self: end; width: min(100%, 352px); }
.reel-bar { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; min-width: 0; }
.hero-demo { min-width: 0; }
.reel-tabs {
  position: relative; flex: 1; min-width: 0; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 28px)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 28px)), transparent 100%);
}
.reel-tabs::-webkit-scrollbar { display: none; }
.reel-next { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 3px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
.reel-next:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.reel-tab { flex: 0 0 auto; min-width: 62px; padding: 6px 0; border: 0; background: none; color: rgba(255, 255, 255, .5); text-align: left; cursor: pointer; transition: color .25s; }
.reel-tab .bar { display: block; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .24); }
.reel-tab .bar i { display: block; width: 0; height: 100%; border-radius: 2px; background: #fff; }
.reel-tab.is-done .bar i { width: 100%; }
.reel-tab.is-active .bar i { animation: fill var(--dur, 12s) linear forwards; }
.reel-tab .lbl { display: block; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; font-weight: 600; }
.reel-tab:hover, .reel-tab.is-active { color: #fff; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

.phone { padding: 8px; border-radius: 42px; background: rgba(11, 22, 34, .82); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9); }
.phone-screen { display: flex; flex-direction: column; height: clamp(380px, 54svh, 480px); border-radius: 34px; overflow: hidden; background: #F3F4F1; color: var(--navy); }
.phone-top { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: rgba(255, 255, 255, .9); border-bottom: 1px solid rgba(14, 26, 38, .07); }
.phone-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-2); color: #fff; font-weight: 700; font-size: .95rem; }
.phone-top strong { display: block; font-size: .95rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.phone-top .status { display: block; font-size: .72rem; font-weight: 500; color: #5F6B77; }
.phone-log { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; overflow-y: auto; scrollbar-width: none; }
.phone-log::-webkit-scrollbar { display: none; }
.msg { max-width: 86%; padding: 9px 12px 6px; border-radius: 18px; font-size: .88rem; line-height: 1.42; animation: pop .32s ease-out both; }
.msg.c { align-self: flex-end; background: var(--navy-2); color: #fff; border-bottom-right-radius: 6px; }
.msg.a { align-self: flex-start; background: #fff; color: var(--navy); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(14, 26, 38, .07); }
.msg .who { display: block; margin-bottom: 2px; font-size: .66rem; font-weight: 700; letter-spacing: .02em; color: #2F6E8E; }
.msg time { display: block; margin-top: 1px; text-align: right; font-size: .64rem; opacity: .55; }
.typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 13px 14px; border-radius: 18px; border-bottom-left-radius: 6px; background: #fff; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #5F6B77; animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.phone-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 11px; }
.phone-input span { flex: 1; padding: 10px 15px; border-radius: 999px; background: #fff; color: #5F6B77; font-size: .82rem; }
.phone-input i { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-2); }

.demo-result {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 48px; margin-top: 14px; padding: 12px 16px 12px 34px; position: relative;
  border-radius: 16px; background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: .84rem; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease;
}
.demo-result::before { content: ""; position: absolute; left: 15px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.demo-result.is-on { opacity: 1; transform: none; }
.demo-result b { font-weight: 700; }
.demo-result span { opacity: .85; }

@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  .hero-demo { justify-self: center; width: min(100%, 380px); margin-top: 8px; }
  .hero-foot-note { display: none; }
}

/* Franja del informe SEO ------------------------------------------------- */

.seo-band { padding: clamp(28px, 4vw, 56px) 0 0; }
.seo-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(26px, 4vw, 52px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.seo-card .meta { color: var(--dawn-ink); }
.seo-card h2 { margin: 12px 0 14px; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.1; }
.seo-card p { color: var(--ink-2); max-width: 34em; }
.seo-start { display: flex; gap: 8px; padding: 7px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--field); transition: border-color .2s, box-shadow .2s; }
.seo-start:focus-within { border-color: var(--sea); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sea) 16%, transparent); }
.seo-start input { flex: 1; min-width: 0; padding: 0 16px; border: 0; background: none; font-size: 1rem; }
.seo-start input:focus { outline: none; }
.seo-start input::placeholder { color: var(--ink-3); }
.seo-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: .88rem; font-weight: 500; color: var(--ink-3); }
.seo-points li { display: inline-flex; align-items: center; gap: 8px; }
.seo-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
@media (max-width: 860px) { .seo-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .seo-start { flex-direction: column; padding: 8px; border-radius: 22px; }
  .seo-start input { padding: 12px 14px; }
}

/* Webs de ejemplo: el resto de sectores ----------------------------------- */

.works-more { margin: clamp(48px, 7vw, 96px) 0 clamp(20px, 3vw, 34px); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(18px, 2.4vw, 32px); }
.demo-grid .demo-card { display: grid; gap: 6px; align-content: start; color: inherit; text-decoration: none; }
.demo-grid .demo-card-img { display: block; margin-bottom: 10px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; background: var(--navy-2); border: 1px solid var(--line); }
.demo-grid .demo-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s ease; }
.demo-grid .demo-card:hover .demo-card-img img { transform: scale(1.04); }
.demo-grid .demo-card .meta { color: var(--sea); }
.demo-grid .demo-card b { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.demo-grid .demo-card > span:not(.meta):not(.link-arrow):not(.demo-card-img) { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 980px) { .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }

/* Demo en vivo ------------------------------------------------------------ */

.live-demo { background: radial-gradient(60% 80% at 100% 0%, rgba(47, 110, 142, .30), transparent 64%), radial-gradient(60% 90% at 0% 100%, rgba(233, 183, 126, .14), transparent 60%), var(--navy); }
.live-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.live-copy .h2 { margin-bottom: 18px; }
.live-copy > p:not(.meta) { max-width: 30em; font-size: 1.08rem; color: rgba(238, 242, 246, .78); }
.live-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.live-tabs button {
  padding: .66em 1.2em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04);
  color: rgba(238, 242, 246, .78); font-size: .98rem; font-weight: 500; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.live-tabs button:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.live-tabs button.is-active { background: #fff; border-color: #fff; color: var(--navy); }
.live-copy > p.live-note { margin-top: 22px; font-size: .88rem; color: rgba(238, 242, 246, .56); }

.chat-card { display: flex; flex-direction: column; height: min(600px, 78svh); border-radius: 28px; overflow: hidden; background: #F3F4F1; color: var(--navy); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: #fff; border-bottom: 1px solid rgba(14, 26, 38, .07); }
.chat-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-2); color: #fff; font-weight: 700; }
.chat-head strong { display: block; font-size: 1rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500; color: #5F6B77; }
.chat-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chat-head > div { min-width: 0; }
.chat-reset { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; margin-left: auto; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(14, 26, 38, .14); background: none; font-size: .78rem; font-weight: 600; color: #465463; cursor: pointer; transition: border-color .2s, color .2s; }
.chat-reset:hover { border-color: rgba(14, 26, 38, .4); color: var(--navy); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 18px 16px; overflow-y: auto; }
.chat-log .msg { max-width: 82%; font-size: .96rem; padding: 10px 14px; }
.chat-log .msg.n { align-self: center; max-width: 92%; padding: 9px 14px; border-radius: 14px; background: rgba(14, 26, 38, .06); color: #465463; font-size: .84rem; text-align: center; }
.chat-mode { padding: 0 18px 10px; font-size: .78rem; line-height: 1.4; color: #8A5A22; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.chat-suggest:empty { display: none; }
.chat-suggest button { padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(14, 26, 38, .14); background: #fff; color: var(--navy); font-size: .86rem; font-weight: 500; text-align: left; cursor: pointer; transition: border-color .2s; }
.chat-suggest button:hover { border-color: rgba(14, 26, 38, .45); }
.chat-form { display: flex; gap: 8px; padding: 6px 14px 14px; }
.chat-form input { flex: 1; min-width: 0; padding: 13px 18px; border-radius: 999px; border: 1px solid rgba(14, 26, 38, .12); background: #fff; color: var(--navy); font-size: 1rem; }
.chat-form input::placeholder { color: #8A949E; }
.chat-form input:focus { outline: none; border-color: #2F6E8E; box-shadow: 0 0 0 4px rgba(47, 110, 142, .14); }
.chat-form button { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer; transition: opacity .2s; }
.chat-form button:disabled, .chat-form input:disabled { opacity: .5; cursor: default; }
.chat-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; background: #fff; border-top: 1px solid rgba(14, 26, 38, .07); font-size: .92rem; font-weight: 600; }
.live-demo .chat-cta .btn-primary { background: var(--navy); color: #fff; }
.seo-band + .live-demo { margin-top: clamp(40px, 6vw, 88px); }
.footer-stack { display: grid; gap: 30px; align-content: start; }
@media (max-width: 520px) {
  .chat-reset { padding: 10px; }
  .chat-reset span { display: none; }
}
@media (max-width: 860px) {
  .live-grid { grid-template-columns: 1fr; }
  .chat-card { height: min(560px, 80svh); }
}

/* Secciones -------------------------------------------------------------- */

.section { padding: clamp(72px, 9vw, 132px) 0; }
.section-rule { border-top: 1px solid var(--line); }
.section-ink { background: var(--navy); color: var(--paper); }

.sec-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head-stack { display: block; }
.sec-head-stack .sec-lead { margin-top: 18px; }
.sec-num { margin-bottom: 14px; color: var(--sea); }
.sec-lead { max-width: 32em; font-size: 1.08rem; color: var(--ink-2); }
.section-ink .sec-num { color: var(--dawn); }
.section-ink .sec-lead { color: rgba(238, 242, 246, .74); }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } }

.ticks { display: grid; gap: 10px; margin-top: 18px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--sea); }

/* Ejemplos --------------------------------------------------------------- */

.works { display: grid; gap: clamp(56px, 8vw, 112px); }
.work { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.work:nth-child(even) .work-frame { order: 2; }
.work-frame { position: relative; display: block; border-radius: 20px; overflow: hidden; background: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transition: transform .45s ease, box-shadow .45s ease; }
.work-frame:hover { transform: translateY(-6px); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink-3); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser-bar b { margin-left: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .01em; }
.browser-view { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.browser-view iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .5)); pointer-events: none; }
.work-cover { position: absolute; inset: 0; z-index: 2; }

.work-info .meta { color: var(--sea); margin-bottom: 12px; }
.work-info > p:not(.meta) { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 26px; }
.tags li { padding: 6px 12px; border-radius: 999px; background: var(--sea-soft); color: var(--sea); font-size: .8rem; font-weight: 600; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--ink); }
.link-arrow::after { content: "→"; transition: transform .25s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
@media (max-width: 860px) {
  .work { grid-template-columns: 1fr; }
  .work:nth-child(even) .work-frame { order: 0; }
}

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

.svcs { border-bottom: 1px solid var(--line); }
.svc { border-top: 1px solid var(--line); }
.svc summary { display: grid; grid-template-columns: 40px minmax(0, 1.05fr) minmax(0, 1fr) auto 32px; gap: 8px 24px; align-items: center; padding: 24px 0; cursor: pointer; list-style: none; }
.svc summary::-webkit-details-marker { display: none; }
.svc-n { color: var(--ink-3); }
.svc-t { font-size: clamp(1.5rem, 2.7vw, 2.15rem); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; transition: color .25s; }
.svc summary:hover .svc-t, .svc[open] .svc-t { color: var(--sea); }
.svc-d { color: var(--ink-2); }
.svc-p { padding: 5px 12px; border-radius: 999px; background: var(--sea-soft); color: var(--sea); white-space: nowrap; letter-spacing: .02em; text-transform: none; font-size: .8rem; font-weight: 600; }
.svc-x { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .25s, border-color .25s; }
.svc-x::before, .svc-x::after { content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .3s; }
.svc-x::after { transform: rotate(90deg); }
.svc[open] .svc-x::after { transform: rotate(0); }
.svc-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 72px); align-items: start; padding: 2px 0 40px 64px; }
.svc-body p { max-width: 34em; font-size: 1.05rem; color: var(--ink-2); }
.svc-body .link-arrow { margin-top: 26px; }

.summary { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.summary .meta { color: var(--ink-3); }
.summary ul { margin: 12px 0 16px; }
.summary li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.summary li b { min-width: 1.4em; font-size: 1.5rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--sea); }
.svc-body .summary-note { padding: 13px 15px; border-radius: 14px; background: var(--dawn-soft); color: var(--ink); font-size: .92rem; line-height: 1.5; }

.flow .meta { color: var(--ink-3); margin-bottom: 14px; }
.flow ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; }
.flow li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.flow li:not(:last-child)::after { content: "→"; margin-left: 4px; color: var(--ink-3); font-weight: 500; }

@media (max-width: 860px) {
  .svc summary { grid-template-columns: 30px minmax(0, 1fr) 32px; }
  .svc-d { grid-column: 2 / 3; }
  .svc-p { grid-column: 2 / 3; justify-self: start; }
  .svc-x { grid-column: 3; grid-row: 1; }
  .svc-body { grid-template-columns: 1fr; padding-left: 0; }
}

/* Sectores --------------------------------------------------------------- */

.sector-list { display: flex; flex-wrap: wrap; gap: 10px; }
.sector-list button {
  padding: .7em 1.25em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04);
  color: rgba(238, 242, 246, .78); font-size: 1rem; font-weight: 500; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.sector-list button:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.sector-list button.is-active { background: #fff; border-color: #fff; color: var(--navy); }
.sector-panel { display: grid; min-height: 4.6em; margin-top: 34px; }
.sector-panel p { grid-area: 1 / 1; max-width: 32em; font-size: clamp(1.25rem, 2.1vw, 1.75rem); font-weight: 500; line-height: 1.34; letter-spacing: -.02em; color: rgba(238, 242, 246, .92); opacity: 0; visibility: hidden; transition: opacity .35s; }
.sector-panel p.is-active { opacity: 1; visibility: visible; }
.sector-panel b { font-weight: 600; color: var(--dawn); }
html:not(.js) .sector-panel p { grid-area: auto; opacity: 1; visibility: visible; margin-bottom: 10px; }
.sectors-foot { margin-top: 30px; color: rgba(238, 242, 246, .66); }
.sectors-foot a { color: #fff; font-weight: 600; text-underline-offset: 4px; }
.sector-panel a { color: #fff; font-weight: 600; font-size: .7em; text-underline-offset: 4px; white-space: nowrap; }

/* Calculadora ------------------------------------------------------------ */

.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc-form { display: grid; gap: 30px; align-content: center; padding: clamp(26px, 4vw, 56px); }
.field-range label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 600; }
.field-range output { flex: none; font-size: 1.35rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--sea); }
input[type="range"] { width: 100%; height: 28px; margin: 8px 0 0; accent-color: var(--sea); cursor: pointer; }
.calc-result { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 4vw, 52px); color: var(--paper); background: radial-gradient(120% 90% at 100% 0%, rgba(233, 183, 126, .20), transparent 60%), var(--navy); }
.calc-result .meta { color: rgba(238, 242, 246, .66); }
.calc-number { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 10px; font-size: clamp(3rem, 6vw, 4.8rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; color: var(--dawn); }
.calc-number small { font-size: 1.02rem; font-weight: 500; letter-spacing: 0; color: var(--paper); }
.calc-year { margin-top: 12px; }
.calc-foot { margin: 22px 0 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(238, 242, 246, .78); }
.calc-result .btn { align-self: flex-start; background: #fff; color: var(--navy); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* Pasos ------------------------------------------------------------------ */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps li { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: .92rem; font-weight: 700; color: var(--sea); }
.steps h3 { margin: 18px 0 8px; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; }
.steps p { color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Precios ---------------------------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: clamp(26px, 3vw, 36px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.plan .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-3); }
.plan-badge { padding: 4px 10px; border-radius: 999px; background: var(--dawn); color: var(--navy); letter-spacing: .04em; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .22em; margin-top: 26px; font-size: clamp(2.6rem, 4.2vw, 3.5rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.price small { font-size: .98rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.price-text { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.12; letter-spacing: -.035em; }
.price-note { margin-top: 10px; color: var(--ink-3); font-size: .94rem; }
.plan .ticks { margin: 26px 0 32px; }
.plan .btn { margin-top: auto; }
.plan-featured { background: radial-gradient(120% 80% at 100% 0%, rgba(233, 183, 126, .18), transparent 62%), var(--navy); border-color: var(--navy); color: var(--paper); box-shadow: var(--shadow-lg); }
.plan-featured .meta, .plan-featured .price-note, .plan-featured .price small { color: rgba(238, 242, 246, .68); }
.plan-featured .ticks li::before { background: var(--dawn); }
.plan-featured .btn-primary { background: #fff; color: var(--navy); }

.pilot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 28px; align-items: center; margin-top: 20px; padding: 22px 26px; border-radius: 22px; background: var(--dawn-soft); border: 1px solid var(--line); }
.pilot-tag { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); letter-spacing: .05em; }
.pilot-text { font-size: 1.04rem; }
.plans-foot { margin-top: 18px; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .pilot { grid-template-columns: 1fr; justify-items: start; }
}

/* Confianza -------------------------------------------------------------- */

.trust { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.founder-photo { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 26px; border: 1px dashed var(--line-strong); background: var(--surface); color: var(--ink-3); }
.founder figcaption { display: grid; gap: 2px; margin-top: 16px; }
.founder figcaption b { font-size: 1.08rem; font-weight: 600; }
.founder figcaption span { color: var(--ink-3); font-size: .94rem; }
.trust-lead { font-size: clamp(1.35rem, 2.3vw, 1.9rem); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
.trust-story { margin-top: 20px; max-width: 36em; color: var(--ink-2); }
.pledges { margin-top: 34px; counter-reset: pledge; border-bottom: 1px solid var(--line); }
.pledges li { counter-increment: pledge; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 17px 0; border-top: 1px solid var(--line); font-size: 1.06rem; color: var(--ink-2); }
.pledges li::before { content: counter(pledge, decimal-leading-zero); padding-top: .2em; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--sea); }
.pledges b { font-weight: 600; color: var(--ink); }
@media (max-width: 800px) {
  .trust { grid-template-columns: 1fr; }
  .founder { max-width: 300px; }
}

/* Islas ------------------------------------------------------------------ */

.islands { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.islands .sec-num { margin-bottom: 26px; }
.island-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.island-list li { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.island-list h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; }
.island-list h3 a { color: inherit; text-decoration: none; transition: color .25s; }
.island-list h3 a:hover { color: var(--sea); }
.island-list p { margin-top: 10px; font-size: .94rem; line-height: 1.6; color: var(--ink-3); }
.islands-note { margin-top: clamp(28px, 4vw, 44px); max-width: 30em; font-size: 1.08rem; color: var(--ink-2); }
@media (max-width: 800px) { .island-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

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

.faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: 108px; margin-bottom: 0; }
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 48px 22px 0; cursor: pointer; list-style: none; font-size: 1.12rem; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; transition: transform .3s;
  background: linear-gradient(var(--ink-3), var(--ink-3)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) center / 1.5px 100% no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .sec-head { position: static; }
}

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

.contact-section { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 128px) 0; color: var(--paper); background: radial-gradient(70% 90% at 0% 100%, rgba(233, 183, 126, .16), transparent 62%), radial-gradient(60% 80% at 100% 0%, rgba(47, 110, 142, .30), transparent 64%), var(--navy); }
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.contact-copy .sec-num { color: var(--dawn); }
.contact-lead { margin-top: 20px; max-width: 28em; font-size: 1.12rem; color: rgba(238, 242, 246, .84); }
.contact-points { display: grid; margin-top: 30px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.contact-points li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-weight: 500; }

.contact-form { display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 40px); border-radius: 28px; background: #fff; color: var(--navy); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label, .field legend { padding: 0; font-size: .88rem; font-weight: 600; letter-spacing: -.005em; }
.field legend { margin-bottom: 9px; }
.opt { font-weight: 500; opacity: .6; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid rgba(14, 26, 38, .16); border-radius: 14px; background: #F6F5F2; color: var(--navy);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8A949E; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #2F6E8E; background: #fff; box-shadow: 0 0 0 4px rgba(47, 110, 142, .14); }
.field .is-invalid { border-color: #C2452D; background: #FDF3F0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .55em 1.05em; border: 1px solid rgba(14, 26, 38, .16); border-radius: 999px; background: #fff; font-size: .92rem; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover span { border-color: rgba(14, 26, 38, .4); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid #2F6E8E; outline-offset: 2px; }
.contact-form .btn-primary { background: var(--navy); color: #fff; }
.form-fine { font-size: .84rem; color: #5F6B77; text-align: center; }
.form-note { padding: 14px 16px; border-radius: 14px; background: #FBF3E7; font-size: .9rem; line-height: 1.5; white-space: pre-line; }
.form-note strong { display: block; margin-bottom: 6px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Trampa para robots y consentimiento */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .86rem; line-height: 1.5; color: #465463; cursor: pointer; }
.contact-form .consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #0B1622; }
.contact-form .consent.is-invalid { color: #C2452D; }
.form-note a { font-weight: 700; text-underline-offset: 3px; }

/* Mensaje recibido y hueco para la llamada */
.contact-done { padding: clamp(24px, 3.4vw, 40px); border-radius: 28px; background: #fff; color: var(--navy); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.contact-done:focus { outline: none; }
.done-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; background: #E6F4EC; color: var(--ok); }
.contact-done h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; }
.contact-done > p { margin-top: 10px; color: #465463; }
/* El asistente contesta al momento */
.assistant { margin-top: 22px; overflow: hidden; border: 1px solid rgba(14, 26, 38, .1); border-radius: 20px; background: #F6F5F2; }
.assistant-tag { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-bottom: 1px solid rgba(14, 26, 38, .08); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #465463; }
.assistant-tag i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(46, 158, 107, .16); }
.assistant-log { position: relative; display: flex; flex-direction: column; gap: 9px; max-height: 360px; overflow-y: auto; padding: 16px; }
.assistant-msg { max-width: 90%; padding: 11px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.52; white-space: pre-line; overflow-wrap: anywhere; }
.assistant-msg.bot { align-self: flex-start; border-bottom-left-radius: 6px; background: #fff; }
.assistant-msg.me { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--navy); color: #fff; }
.assistant-msg.note { align-self: center; padding: 2px 8px; font-size: .84rem; color: #8F2F1C; }
.assistant-form { display: flex; gap: 8px; padding: 0 12px 12px; }
.assistant-form input { flex: 1; min-width: 0; padding: 12px 17px; border: 1px solid rgba(14, 26, 38, .12); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-size: 1rem; }
.assistant-form input::placeholder { color: #8A949E; }
.assistant-form input:focus { outline: none; border-color: #2F6E8E; box-shadow: 0 0 0 4px rgba(47, 110, 142, .14); }
.assistant-form input:disabled { opacity: .6; }
.assistant-form button { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer; }
.assistant-form button:focus-visible { outline: 2px solid #2F6E8E; outline-offset: 2px; }
.call { display: grid; gap: 14px; margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(14, 26, 38, .12); }
.call h4 { margin: 0; font-size: 1.12rem; letter-spacing: -.01em; }
.call-lead { margin-top: -8px; font-size: .93rem; color: #5F6B77; }
.call-days { display: flex; flex-wrap: wrap; gap: 8px; }
.call-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: #F6F5F2; }
.call-periods button { padding: .55em .3em; border: 0; border-radius: 10px; background: transparent; color: #465463; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.call-periods button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(14, 26, 38, .14); }
.call-periods button:focus-visible { outline: 2px solid #2F6E8E; outline-offset: 2px; }
.call-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.call-days button, .call-times button { flex: none; padding: .6em .95em; border: 1px solid rgba(14, 26, 38, .16); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.call-times button { padding-inline: 0; border-radius: 12px; background: #F6F5F2; font-variant-numeric: tabular-nums; }
.call-days button:hover, .call-times button:hover { border-color: rgba(14, 26, 38, .45); }
.call-days button[aria-pressed="true"], .call-times button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.call-days button:focus-visible, .call-times button:focus-visible, .call-links button:focus-visible { outline: 2px solid #2F6E8E; outline-offset: 2px; }
.call-note { padding: 12px 14px; border-radius: 12px; background: #FBF3E7; font-size: .9rem; }
.contact-done .btn-primary { background: var(--navy); color: #fff; }
.contact-done .btn-primary:disabled { opacity: .38; cursor: default; transform: none; box-shadow: none; }
.contact-done .btn-ghost { margin-top: 14px; border-color: rgba(14, 26, 38, .2); color: var(--navy); }
.contact-done .btn-ghost:hover { background: #F6F5F2; border-color: rgba(14, 26, 38, .45); }
.call-done { margin-top: 26px; padding: 18px 20px; border-radius: 18px; background: #E6F4EC; }
.call-done p:first-child { font-weight: 600; }
.call-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: .92rem; }
.call-links a, .call-links button { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Oferta de la web para quien llega desde una web de ejemplo */
.offer-top { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 30px; }
.offer-shot { display: block; overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; background: rgba(255, 255, 255, .06); transition: transform .3s, border-color .3s; }
.offer-shot:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .45); }
.offer-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.offer-price { display: grid; gap: 4px; }
.offer-price b { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--dawn); }
.offer-price span { font-size: .93rem; color: rgba(238, 242, 246, .72); }
.offer-list { display: grid; margin-top: 26px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.offer-list li { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-weight: 500; }
.offer-sub { margin-top: 30px; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--dawn); }
.offer-steps { display: grid; gap: 12px; margin-top: 14px; counter-reset: paso; }
.offer-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; counter-increment: paso; color: rgba(238, 242, 246, .9); }
.offer-steps li::before { content: counter(paso); display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; font-size: .82rem; font-weight: 700; }
.offer-time { margin-top: 22px; font-size: .93rem; color: rgba(238, 242, 246, .72); }
@media (max-width: 480px) { .call-periods { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .offer-top { grid-template-columns: minmax(0, 130px) minmax(0, 1fr); gap: 16px; } }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

/* Pie -------------------------------------------------------------------- */

.site-footer { background: var(--navy); color: var(--paper); border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-lead { max-width: 24em; margin-top: 16px; color: rgba(238, 242, 246, .7); }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 64px); padding-block: clamp(48px, 6vw, 80px) clamp(36px, 5vw, 56px); }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer nav a { text-decoration: none; color: rgba(238, 242, 246, .78); transition: color .2s; }
.site-footer nav a:hover { color: #fff; }
.footer-cols .meta { margin-bottom: 6px; color: rgba(238, 242, 246, .5); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(238, 242, 246, .5); font-size: .82rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
@media (max-width: 800px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}

/* CTA fija en móvil ------------------------------------------------------ */

.sticky-cta { display: none; }
@media (max-width: 700px) {
  .sticky-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .45); transition: opacity .3s, transform .3s; }
  .sticky-cta.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
  .footer-legal { padding-bottom: 96px; }
}

/* Aparición al hacer scroll ---------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .msg, .live { animation: none; }
  .reel-tab.is-active .bar i { animation: none; width: 100%; }
  .sign-thumb, body { transition: none; }
}
