/* ==========================================================================
   En Línia — hoja de estilos (misma base que la web de F2F, otra paleta)
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #14171d;
  --ink-soft: #545a66;
  --paper: #f7f6f2;
  --paper-2: #edebe5;
  --card: #fdfcfa;
  --line: rgba(20, 23, 29, .12);
  --line-strong: rgba(20, 23, 29, .24);
  --accent: #1657d6;
  --accent-strong: #0f41a3;
  --accent-soft: #dfe8fb;
  --accent-light: #7fa6f3;
  --online: #19b36b;
  --on-dark: #f7f6f2;
  --on-dark-soft: #aeb3bd;
  --line-dark: rgba(247, 246, 242, .12);
  --wa: #25d366;
  --wa-dark: #1f9f55;

  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --maxw: 1240px;
  --gutter: 1.25rem;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --shadow-md: 0 2px 6px rgba(20, 23, 29, .05), 0 22px 44px -22px rgba(20, 23, 29, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 720px) {
  :root { --gutter: 2rem; }
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html.nav-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 720;
  font-stretch: 110%;
  line-height: 1.06;
  letter-spacing: -.022em;
  text-wrap: balance;
}

h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: -.005em;
  color: var(--accent);
}

p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ---------------------------------------------------------------- piezas comunes */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.1rem;
  font-size: .76rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* una línea corta con un punto al final: el gesto de la marca */
.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 7px;
  background:
    radial-gradient(circle at calc(100% - 3.5px) 50%, currentColor 3px, transparent 3.5px),
    linear-gradient(currentColor 0 0) 0 50% / calc(100% - 9px) 1.5px no-repeat;
}

.eyebrow--light { color: var(--accent-light); }

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.35rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 620;
  font-size: 1rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .94rem; }
.btn--lg { min-height: 56px; padding: 1rem 1.6rem; font-size: 1.03rem; }
.btn--block { width: 100%; }

.btn--primary { --btn-bg: var(--accent); --btn-fg: #fff; box-shadow: 0 12px 24px -14px rgba(15, 65, 163, .9); }
.btn--primary:hover { --btn-bg: var(--accent-strong); }
.btn--primary .icon { transition: transform .2s var(--ease); }
.btn--primary:hover .icon { transform: translateX(3px); }

.btn--ghost { --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }

.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: #fff; }

.btn--outline-light { --btn-bd: rgba(255, 255, 255, .6); --btn-fg: #fff; }
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--accent-strong); --btn-bd: #fff; }

.btn--whatsapp { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--whatsapp .icon { color: var(--wa); }
.btn--whatsapp:hover { --btn-bg: #000; }

.tag {
  display: inline-block;
  padding: .24rem .62rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }

.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2.15rem, 1.3rem + 3vw, 3.6rem); }
.section-head--split { display: grid; gap: 1.25rem 4rem; align-items: end; max-width: none; }
.section-head__lead { max-width: 34em; margin: 0; color: var(--ink-soft); font-size: 1.1rem; }

@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.25fr 1fr; }
}

/* ---------------------------------------------------------------- cabecera */

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; }

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 246, 242, .84);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.site-header.is-scrolled::before,
.nav-open .site-header::before { opacity: 1; }

.header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }

/* la marca: el cuadrado con la línea y el punto, y el nombre al lado */
.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand__mark { display: block; flex: none; width: 42px; height: 42px; }
.brand__mark-bg { fill: currentColor; }
.brand__mark-line { fill: none; stroke: var(--paper); stroke-width: 6; stroke-linecap: round; }
.brand__mark-dot { fill: var(--online); }
.brand__word {
  font-size: 1.45rem;
  font-weight: 740;
  font-stretch: 112%;
  letter-spacing: -.03em;
  line-height: 1;
  white-space: nowrap;
}
.brand__word em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--accent);
}
.brand--light { color: var(--on-dark); }
.brand--light .brand__mark-bg { fill: var(--on-dark); }
.brand--light .brand__mark-line { stroke: var(--ink); }
.brand--light .brand__word em { color: var(--accent-light); }

.nav__list { display: flex; gap: .15rem; }
.nav__list a {
  display: block;
  padding: .5rem .8rem;
  white-space: nowrap;
  border-radius: 999px;
  font-size: .96rem;
  font-weight: 540;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav__list a:hover { background: rgba(20, 23, 29, .06); }
.nav__list a[aria-current] { color: var(--accent); }
.nav__mobile-extra { display: none; }

.header__actions { display: flex; align-items: center; gap: .9rem; }
.header__cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* selector de idioma: ES | VA | EN */
.lang-switch ul { display: flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 .5rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 680;
  letter-spacing: .08em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.lang-switch a:hover { color: var(--ink); background: rgba(20, 23, 29, .06); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--paper); }

.nav__langs { display: grid; gap: .65rem; }
.nav__langs-title { margin: 0; font-size: .74rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.lang-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.lang-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.lang-pills a:hover { border-color: var(--ink); }
.lang-pills a[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

@media (max-width: 1199px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem var(--gutter) 2rem;
    overflow-y: auto;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.55rem;
    font-weight: 680;
    font-stretch: 112%;
    letter-spacing: -.01em;
  }
  .nav__list a:hover { background: none; color: var(--accent); }
  .nav__mobile-extra { display: grid; gap: 1.25rem; }
  .nav__mail { margin: 0; }
  .nav__mail a { display: inline-flex; align-items: center; gap: .45rem; font-weight: 620; font-size: 1.05rem; text-decoration: none; overflow-wrap: anywhere; }
  .nav__mail .icon { color: var(--accent); }
  .header__cta { display: none; }
  .nav-toggle { display: inline-grid; }
  .header__actions .lang-switch { display: none; }
}

/* tabletas: menú plegado, pero el botón y el idioma siguen a la vista */
@media (min-width: 760px) and (max-width: 1199px) {
  .header__cta { display: inline-flex; }
  .header__actions .lang-switch { display: block; }
  .nav__langs { display: none; }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(1.5rem, 4vw, 3.5rem)) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero::before {
  content: "";
  position: absolute;
  top: -22vw;
  right: -18vw;
  width: 64vw;
  height: 64vw;
  background: radial-gradient(closest-side, rgba(22, 87, 214, .13), transparent);
  pointer-events: none;
}

.hero__grid { position: relative; display: grid; gap: 2.75rem; align-items: center; }

.hero__title {
  margin-bottom: 1.4rem;
  font-size: clamp(2.6rem, 1.05rem + 3.9vw, 4.6rem);
  font-weight: 760;
  font-stretch: 116%;
  line-height: .98;
  letter-spacing: -.035em;
}
.hero__title em { display: block; margin-top: .06em; font-size: 1.06em; letter-spacing: -.01em; }
.hero__kicker { display: flex; margin-bottom: 1.4rem; line-height: 1.4; text-wrap: pretty; }

.hero__lead { max-width: 35em; margin-bottom: 2rem; font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem); color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

@media (max-width: 559px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; padding-inline: 1.1rem; }
}

@media (max-width: 399px) {
  .brand__mark { width: 36px; height: 36px; }
  .brand__word { font-size: 1.25rem; }
  .hero__cta .btn--primary .icon { display: none; }
}

.hero__art { margin: 0; }

@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 4vw, 4.5rem); }
}

/* ---- la ilustración: la web en un ordenador y en un móvil, unida a la casa */

.scene-wrap { position: relative; }
.scene { width: 100%; height: auto; overflow: visible; }

.hs-frame { fill: var(--card); stroke: var(--line-strong); stroke-width: 1.5; }
.hs-frame--dark { fill: var(--ink); stroke: var(--ink); }
.hs-screen { fill: var(--card); }
.hs-sep { stroke: var(--line); stroke-width: 1.5; }
.hs-dot { fill: var(--line-strong); }
.hs-url { fill: var(--paper-2); }
.hs-url-text { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .02em; fill: var(--ink-soft); }
.hs-ink { fill: var(--ink); }
.hs-muted { fill: var(--line-strong); }
.hs-accent { fill: var(--accent); }
.hs-accent-soft { fill: var(--accent-soft); }
.hs-card { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.hs-photo { fill: var(--accent-soft); }
.hs-photo-shape { fill: var(--accent-light); opacity: .8; }
.hs-photo-sun { fill: #fff; opacity: .9; }
.hs-home { fill: var(--line-strong); }
.hs-chimney { fill: var(--accent); }
.hs-draw { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hs-link { stroke: var(--accent); stroke-dasharray: 7 7; }
.hs-pulse { fill: var(--online); }
.hs-badge rect { fill: var(--ink); }
.hs-badge text { font-family: var(--font-serif); font-style: italic; font-size: 20px; fill: var(--paper); }
.hs-online { fill: var(--online); }

/* al cargar, la casa se dibuja y la línea llega hasta la web */
.js .scene-wrap.is-drawing .hs-house .hs-draw {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: hs-draw 1.2s var(--ease) .2s forwards;
}
.js .scene-wrap.is-drawing .hs-link {
  stroke-dasharray: 7 7;
  stroke-dashoffset: 0;
  opacity: 0;
  animation: hs-fade .8s ease 1.1s forwards;
}
.js .scene-wrap.is-drawing .hs-pulse,
.js .scene-wrap.is-drawing .hs-badge { opacity: 0; animation: hs-fade .6s ease 1.7s forwards; }
.hs-pulse { transform-box: fill-box; transform-origin: center; animation: hs-pulse 2.4s ease-in-out 2.4s infinite; }
.hs-online { transform-box: fill-box; transform-origin: center; animation: hs-pulse 2.4s ease-in-out 2.4s infinite; }
@keyframes hs-draw { to { stroke-dashoffset: 0; } }
@keyframes hs-fade { to { opacity: 1; } }
@keyframes hs-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .7; } }

.facts {
  display: grid;
  gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.fact { display: flex; align-items: flex-start; gap: .9rem; }

@media (min-width: 560px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
}
.fact .icon { width: 28px; height: 28px; margin-top: .1rem; color: var(--accent); }
.fact p { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--ink-soft); }
.fact strong { display: block; font-size: 1.05rem; font-weight: 680; font-stretch: 108%; color: var(--ink); }

/* ---------------------------------------------------------------- cinta */

.ticker { overflow: hidden; padding: 1.1rem 0; background: var(--ink); color: var(--on-dark); }
.ticker__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  font-size: clamp(1.05rem, .9rem + .6vw, 1.45rem);
  font-weight: 640;
  font-stretch: 118%;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.ticker span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--online); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- servicios */

.services__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }

@media (min-width: 1100px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.6rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-md); }
.service__num { position: absolute; top: 1.45rem; right: 1.5rem; font-size: .78rem; font-weight: 620; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: rgba(20, 23, 29, .38); }
.service__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.6rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.service__icon .icon { width: 28px; height: 28px; }
.service:hover .service__icon { background: var(--accent); color: #fff; }
.service h3 { margin-bottom: .6rem; font-size: 1.2rem; }
.service p { margin: 0; font-size: .98rem; line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 639px) {
  .service { display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; align-items: center; padding: 1.35rem 1.25rem 1.45rem; }
  .service__icon { width: 48px; height: 48px; margin: 0; border-radius: 12px; }
  .service__icon .icon { width: 25px; height: 25px; }
  .service h3 { margin: 0; padding-right: 1.5rem; font-size: 1.12rem; }
  .service p { grid-column: 1 / -1; margin-top: .9rem; }
  .service__num { top: 1.1rem; right: 1.1rem; }
}

/* ---------------------------------------------------------------- precios */

.pricing { background: var(--paper-2); }

.pricing__toggle { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: -1rem 0 2rem; }
.toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); }
.toggle__btn {
  min-height: 40px;
  padding: .45rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: .94rem;
  font-weight: 620;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.toggle__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pricing__toggle-note { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.pricing.is-yearly .pricing__toggle-note { color: var(--accent-strong); font-weight: 600; }

.plans { display: grid; gap: 1rem; align-items: stretch; }

@media (min-width: 640px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .plans { grid-template-columns: repeat(4, 1fr); }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.plan__badge {
  position: absolute;
  top: -13px;
  left: 1.5rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 680;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.plan__name { font-size: 1.25rem; }
.plan__desc { margin: .4rem 0 1.25rem; font-size: .95rem; color: var(--ink-soft); }
.plan__setup { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; margin: 0; }
.plan__setup strong { font-size: clamp(1.9rem, 1.2rem + 2.5vw, 2.3rem); font-weight: 760; font-stretch: 112%; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan__setup span { font-size: .9rem; color: var(--ink-soft); }
.plan__fee { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; margin: .7rem 0 0; padding-top: .7rem; border-top: 1px dashed var(--line-strong); }
.plan__fee-label { font-size: .86rem; color: var(--ink-soft); }
.plan__fee strong { font-size: 1.35rem; font-weight: 720; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--accent-strong); }
.plan__fee-unit { font-size: .9rem; color: var(--ink-soft); }
.plan__fee--only { border-top: 0; padding-top: 0; margin-top: 0; }
.plan__fee--only strong { font-size: 2.3rem; font-weight: 760; font-stretch: 112%; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.plan__note { margin: .8rem 0 0; font-size: .86rem; line-height: 1.45; color: var(--ink-soft); }
.plan__features { display: grid; gap: .55rem; margin: 1.4rem 0 1.6rem; font-size: .95rem; line-height: 1.4; }
.plan__features li { display: flex; align-items: flex-start; gap: .55rem; }
.plan__features .icon { width: 1.15em; height: 1.15em; margin-top: .18em; color: var(--accent); }
.plan .btn { margin-top: auto; }
.plan--soon { background: var(--paper); border-style: dashed; }
.plan--soon .plan__features .icon { color: var(--ink-soft); }

.included { display: grid; gap: 1.5rem; margin-top: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.included h3 { margin-bottom: 1rem; font-size: 1.15rem; }
.included__list { display: grid; gap: .6rem .9rem; font-size: .95rem; }
.included__list li { display: flex; align-items: center; gap: .6rem; }
.included__list .icon { width: 1.3em; height: 1.3em; color: var(--accent); }
.included__extra p { margin: 0 0 .5rem; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
.included__iva { font-weight: 640; color: var(--ink) !important; }

@media (min-width: 640px) {
  .included__list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .included { grid-template-columns: 1.3fr 1fr; gap: 3rem; }
}

/* ---------------------------------------------------------------- cómo funciona */

.steps { position: relative; display: grid; }
.step { position: relative; }
.step__num {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.3rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: .95rem;
  font-weight: 700;
  font-stretch: 115%;
  font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.step:hover .step__num { border-color: var(--accent); background: var(--accent); color: #fff; }
.step h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.step p { margin: 0; font-size: .97rem; line-height: 1.55; color: var(--ink-soft); }

@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.75rem; }
  /* la línea que une los pasos, con el punto al final */
  .steps::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 0;
    right: 0;
    height: 10px;
    margin-top: -5px;
    background:
      radial-gradient(circle at calc(100% - 5px) 50%, var(--accent) 4px, transparent 4.5px),
      linear-gradient(var(--line-strong) 0 0) 0 50% / calc(100% - 12px) 1.5px no-repeat;
  }
}

@media (max-width: 999px) {
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 1.25rem; padding-bottom: 2rem; }
  .step__num { grid-row: span 2; margin: 0; }
  .step h3 { padding-top: .7rem; }
  .step::before { content: ""; position: absolute; top: 48px; bottom: 0; left: 23px; width: 1.5px; background: var(--line-strong); }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
}

/* ---------------------------------------------------------------- trabajos */

.works { background: var(--paper-2); }
.works__grid { display: grid; gap: 1.25rem; }
.work {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.work__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(247, 246, 242, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 246, 242, .045) 1px, transparent 1px);
  background-size: 22px 22px;
}
.work__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .7s var(--ease);
}
.work:hover .work__media img { transform: scale(1.03); }
.work__media--mock { display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); background-color: var(--accent-strong); }
.work__media--mock .mock { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.work__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.25rem 1.4rem 1.4rem; }
.work__body > p { margin: 0; font-size: .98rem; line-height: 1.55; color: var(--ink-soft); }
.work__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: 0; font-size: .88rem; color: var(--ink-soft); }
.work__loc { display: inline-flex; align-items: center; gap: .3rem; }
.work__loc .icon { width: 1em; height: 1em; color: var(--accent); }
.work h3 { font-size: 1.35rem; }
.work .link-arrow { margin-top: auto; }
.work--next { justify-content: center; border-style: dashed; background: transparent; }
.work--next .work__body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.work--next .btn { margin-top: .5rem; }

/* el mock de Obrabi: colores por CSS */
.ob-bg { fill: var(--card); }
.ob-bar { fill: var(--ink); }
.ob-logo { fill: var(--online); }
.ob-light { fill: rgba(247, 246, 242, .35); }
.ob-title { font-family: var(--font-sans); font-size: 15px; font-weight: 700; fill: var(--ink); }
.ob-tile { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.ob-muted { fill: var(--line-strong); }
.ob-num { font-family: var(--font-sans); font-size: 17px; font-weight: 720; letter-spacing: -.02em; fill: var(--ink); }
.ob-num--accent { fill: var(--online); }
.ob-bars rect { fill: var(--accent-light); }
.ob-bars .ob-bar--accent { fill: var(--accent); }
.ob-track { fill: var(--line); }
.ob-fill { fill: var(--accent); }

@media (min-width: 600px) and (max-width: 899.98px) {
  .works__grid { grid-template-columns: 1fr 1fr; }
  .work:first-child { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  /* la web de F2F ocupa dos filas a la izquierda; Obrabi y «¿tu negocio?» van a la derecha */
  .works__grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: auto; }
  .work { grid-column: span 4; }
  .work--wide { grid-column: span 8; grid-row: span 2; }
  .work--wide .work__media { flex: 1; aspect-ratio: auto; min-height: 380px; }
  .work--wide .work__body { flex: none; }
  .work:not(.work--wide) .work__media { aspect-ratio: auto; height: clamp(200px, 16vw, 240px); }
}

/* ---------------------------------------------------------------- quién hay detrás */

.profile { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.profile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 15% 25%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 15% 25%, #000 10%, transparent 70%);
  opacity: .7;
  pointer-events: none;
}
.profile__grid { position: relative; display: grid; gap: 3rem; }
.profile__title { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.9rem); }
.profile__title em { color: var(--accent-light); }
.profile__mark { display: inline-flex; align-items: center; gap: .9rem; margin-top: 2.5rem; padding: .7rem 1.2rem .7rem .9rem; border: 1px solid var(--line-dark); border-radius: 999px; }
.profile__pulse { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--online); }
.profile__pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--online); opacity: 0; animation: ring 2.4s ease-out infinite; }
.profile__pulse-label { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: var(--on-dark); }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.profile__lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.55; color: var(--on-dark); }
.profile__body > p:not(.profile__lead) { color: var(--on-dark-soft); }
.team { display: grid; gap: 1rem; margin-top: 2.5rem; }
.team__item { padding: 1.4rem 1.3rem; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); background: rgba(247, 246, 242, .03); }
.team__item .icon { width: 30px; height: 30px; margin-bottom: 1rem; color: var(--accent-light); }
.team__item h3 { margin-bottom: .4rem; font-size: 1.08rem; }
.team__item p { margin: 0; font-size: .93rem; line-height: 1.5; color: var(--on-dark-soft); }

@media (min-width: 640px) and (max-width: 979px) {
  .team { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  .profile__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  .team__item { display: grid; grid-template-columns: 30px 1fr; column-gap: 1.1rem; align-items: start; }
  .team__item .icon { grid-row: span 2; margin: .1rem 0 0; }
}

/* ---------------------------------------------------------------- preguntas frecuentes */

.faq__grid { display: grid; gap: 2.5rem; }
.faq__intro h2 { margin-bottom: 1.1rem; font-size: clamp(2.15rem, 1.3rem + 3vw, 3.6rem); }
.faq__lead { max-width: 30em; margin-bottom: 1.8rem; font-size: 1.1rem; color: var(--ink-soft); }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0;
  font-size: 1.1rem;
  font-weight: 660;
  font-stretch: 104%;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: 4px; }
.faq__icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: transform .3s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.faq__item summary:hover .faq__icon { border-color: var(--ink); }
.faq__item[open] .faq__icon { transform: rotate(45deg); border-color: var(--ink); background: var(--ink); color: var(--paper); }
.faq__answer { padding: 0 3.25rem 1.5rem 0; color: var(--ink-soft); }
.faq__answer p { margin: 0; }
.faq__answer a { font-weight: 620; color: var(--accent-strong); }

@media (min-width: 980px) {
  .faq__grid { grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .faq__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------------------------------------------------------------- llamada a la acción */

.cta-band { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 6vw, 5.5rem); background: var(--accent); color: #fff; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 1.5px, transparent 1.5px 14px);
  pointer-events: none;
}
.cta-band__inner { position: relative; display: grid; gap: 2rem; align-items: center; }
.cta-band h2 { margin-bottom: .6rem; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); }
.cta-band p { margin: 0; font-size: 1.12rem; color: rgba(255, 255, 255, .9); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

@media (min-width: 980px) {
  .cta-band__inner { grid-template-columns: 1fr auto; }
}

/* ---------------------------------------------------------------- contacto */

.contact__grid { display: grid; gap: 3rem; }
.contact__info h2 { margin-bottom: 1.1rem; font-size: clamp(2.15rem, 1.3rem + 3vw, 3.6rem); }
.contact__lead { max-width: 32em; margin-bottom: 2.2rem; font-size: 1.1rem; color: var(--ink-soft); }
.contact-list { border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 1.1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--accent);
}
.contact-list__label { display: block; margin-bottom: .2rem; font-size: .76rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list__value { display: block; font-size: 1.1rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.contact-list__value a { text-decoration: none; }
.contact-list__value a:hover { color: var(--accent); text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; font-size: .95rem; font-weight: 620; color: var(--accent); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { width: 1.05em; height: 1.05em; }

.contact-form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-md);
}
.contact-form__title { margin-bottom: .35rem; font-size: 1.6rem; }
.contact-form__intro { margin-bottom: 1.6rem; color: var(--ink-soft); }
.field { display: grid; gap: .45rem; min-width: 0; margin: 0 0 1.1rem; padding: 0; border: 0; }
.field-row { display: grid; gap: 0 1rem; }
.field label,
.field legend { padding: 0; font-size: .88rem; font-weight: 640; }
.req { color: var(--accent); }
.field input,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(22, 87, 214, .15); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field ::placeholder { color: #9a9ca3; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .15rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: .5rem .95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: .92rem;
  font-weight: 560;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.form-actions .btn { flex: 1 1 210px; }
.form-actions .btn[hidden] { display: none; }
.form-note { margin: 1rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.form-error,
.form-success { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 10px; font-size: .93rem; font-weight: 580; }
.form-error { background: #fbe9e7; color: #8c1d18; }
.form-success { margin: 1rem 0 0; background: #e5f3e8; color: #1d5b2e; }

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .contact__grid { grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}

/* ---------------------------------------------------------------- pie */

.site-footer { padding-top: clamp(3.5rem, 6vw, 5rem); background: var(--ink); color: var(--on-dark-soft); }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand p { max-width: 26em; margin: 1.25rem 0 0; font-size: .95rem; }
.footer__title { margin-bottom: 1.1rem; font-size: .76rem; font-weight: 650; font-stretch: 110%; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); }
.footer__nav ul,
.footer__contact ul { display: grid; gap: .6rem; font-size: .96rem; }
.footer__legal { font-size: .86rem; opacity: .8; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line-dark); font-size: .88rem; }
.footer__bottom p { margin: 0; }
.footer__lang { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.footer__lang-title { font-size: .72rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); }
.footer__lang ul { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.footer__lang a[aria-current] { color: var(--on-dark); text-decoration: underline; text-underline-offset: .3em; }
.footer__top { display: inline-flex; align-items: center; gap: .4rem; }

@media (min-width: 820px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.25fr; }
}

/* ---------------------------------------------------------------- botón flotante de WhatsApp (solo con número) */

.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa-dark);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(31, 159, 85, .8);
  transition: transform .35s var(--ease), opacity .35s var(--ease), background-color .2s;
}
.wa-float[hidden] { display: none; }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { background: #178a47; }
.js .wa-float:not(.is-visible) { opacity: 0; transform: translateY(18px) scale(.85); pointer-events: none; }
.nav-open .wa-float { opacity: 0; pointer-events: none; }

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

.js [data-reveal]:not(.is-visible) { opacity: 0; }
.js [data-reveal].is-visible { animation: reveal .9s var(--ease) both; animation-delay: var(--delay, 0s); }

@keyframes reveal {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: none; }
}

/* ---------------------------------------------------------------- accesibilidad e impresión */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ticker__track { animation: none; }
}

@media print {
  .site-header, .ticker, .wa-float, .contact-form, .pricing__toggle { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; animation: none !important; }
  body { background: #fff; }
}
