/* MontaloYa — sistema de diseño
   Referencias: TaskRabbit (verde de confianza, pestañas con iconos, chips de subservicio, proyectos populares)
   y Thumbtack (foto a sangre con tarjeta de búsqueda, tarjetas de foto con etiqueta, bloque de ciudades). */

:root {
  --ground: #ffffff;
  --ground-2: #f3f6f4;
  --ground-3: #e4efe9;
  --ink: #14201c;
  --ink-2: #44514c;
  --line: #c9d3cf;
  --brand: #0c6b55;
  --brand-hover: #0a5a48;
  --action: #0b3a32;
  --action-hover: #0f4a40;
  --action-ink: #d4f5e8;
  --on-photo: #ffffff;
  --field: #ffffff;
  --error: #b42318;
  --ok: #0c6b55;
  --scrim: 16, 26, 23;

  --font: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --t-hero: clamp(2.1rem, 1rem + 4.2vw, 4rem);
  --t-h2: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --t-h3: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;

  --r-card: 16px;
  --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1312px;
  --gap-section: clamp(88px, 7vw + 40px, 168px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0f1715;
    --ground-2: #16211e;
    --ground-3: #1c2b27;
    --ink: #eef4f1;
    --ink-2: #b4c2bc;
    --line: #34443f;
    --brand: #5fd0ac;
    --brand-hover: #84ddc0;
    --action: #5fd0ac;
    --action-hover: #84ddc0;
    --action-ink: #06231c;
    --field: #121c19;
    --error: #ff8a80;
    --ok: #5fd0ac;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0f1715;
  --ground-2: #16211e;
  --ground-3: #1c2b27;
  --ink: #eef4f1;
  --ink-2: #b4c2bc;
  --line: #34443f;
  --brand: #5fd0ac;
  --brand-hover: #84ddc0;
  --action: #5fd0ac;
  --action-hover: #84ddc0;
  --action-ink: #06231c;
  --field: #121c19;
  --error: #ff8a80;
  --ok: #5fd0ac;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1.05; letter-spacing: -.025em; }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -.01em; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: var(--ground); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--action); color: var(--action-ink); padding: 10px 16px; border-radius: var(--r-pill); z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--gap-section) 0; }
.section:last-of-type { padding-bottom: var(--gap-section); }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: var(--ink); max-width: 56ch; }
.muted { color: var(--ink-2); }
.center { text-align: center; }

/* Botones */
.btn {
  --bg: var(--action); --fg: var(--action-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 0;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .16s var(--ease);
  touch-action: manipulation; user-select: none;
}
.btn:hover { background: var(--action-hover); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--brand); border: 2px solid currentColor; }
.btn--ghost:hover { background: var(--ground-3); }
.btn--light { --bg: #ffffff; --fg: #0b3a32; }
.btn--light:hover { background: #e4efe9; }
.btn--block { width: 100%; }

/* Cabecera opaca (nunca deja ver el contenido por detrás) */
.top { position: sticky; top: 0; z-index: 50; background: var(--ground); box-shadow: 0 1px 0 var(--line); }
.top__bar { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; color: var(--brand); }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { font-weight: 800; color: var(--ink); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: 1rem; transition: background-color .2s; }
.nav a:hover { background: var(--ground-2); }
.nav a[aria-current="page"] { color: var(--brand); }
.top__actions { display: flex; align-items: center; gap: 10px; }
.top__actions .btn { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink); transition: background-color .2s; }
.icon-btn:hover { background: var(--ground-2); }
.icon-btn svg { width: 22px; height: 22px; }
.menu-btn { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

.drawer { display: none; }
@media (max-width: 960px) {
  .nav, .top__actions .btn--ghost { display: none; }
  .menu-btn { display: inline-grid; }
  .top__actions { margin-left: auto; }
  .drawer {
    position: fixed; inset: 72px 0 0 0; z-index: 49; background: var(--ground);
    padding: 24px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; gap: 6px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
  }
  .drawer.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .drawer a:not(.btn) { padding: 16px 4px; font-size: 1.375rem; font-weight: 700; text-decoration: none; box-shadow: 0 1px 0 var(--line); }
  .drawer .btn { margin-top: 20px; }
  body.no-scroll { overflow: hidden; }
}
@media (max-width: 520px) {
  .top__actions .btn--primary-top { display: none; }
}

/* Portada: foto a sangre + tarjeta de búsqueda (Thumbtack) */
.hero { position: relative; isolation: isolate; background: #10201c; color: var(--on-photo); overflow: hidden; }
.hero__media { position: absolute; inset: 0 0 0 auto; width: 78%; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--scrim), 1) 22%, rgba(var(--scrim), .78) 42%, rgba(var(--scrim), 0) 66%);
}
.hero__inner { min-height: min(820px, calc(100svh - 72px)); display: flex; flex-direction: column; justify-content: center; padding-block: 72px 64px; }
.hero__copy { max-width: 640px; }
.hero h1 { font-size: var(--t-hero); line-height: .98; letter-spacing: -.035em; font-weight: 700; }
.hero__sub { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.45; font-weight: 500; max-width: 46ch; }

.finder { margin-top: 32px; background: var(--ground); color: var(--ink); border-radius: 20px; padding: 10px; max-width: 600px; }
.finder__q { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 6px; }
.finder__q svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--ink-2); }
.finder textarea { flex: 1; border: 0; background: transparent; resize: none; min-height: 52px; font-size: 1.0625rem; line-height: 1.45; outline: none; color: var(--ink); }
.finder textarea::placeholder, .finder input::placeholder { color: var(--ink-2); opacity: 1; }
.finder__row { display: grid; grid-template-columns: minmax(150px, .8fr) 1.6fr; gap: 10px; }
.finder__cp { position: relative; display: flex; align-items: center; gap: 8px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 16px; min-height: 52px; background: var(--field); }
.finder__cp:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.finder__cp svg { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.finder__cp input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-size: 1rem; }
.finder__hint { min-height: 22px; padding: 8px 14px 4px; font-size: var(--t-small); color: var(--ink-2); }
.finder__hint.is-ok { color: var(--ok); font-weight: 600; }
.finder__hint.is-error { color: var(--error); font-weight: 600; }
.hero__privacy { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: var(--t-small); font-weight: 500; }
.hero__privacy svg { width: 18px; height: 18px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 20px 44px; margin-top: 30px; }
.hero__facts li { display: grid; gap: 2px; }
.hero__facts strong { font-size: 1.375rem; letter-spacing: -.02em; line-height: 1.1; }
.hero__facts span { font-size: var(--t-small); opacity: .92; }
.hero__caption { position: absolute; right: var(--gutter); bottom: 24px; font-size: .8125rem; background: rgba(0,0,0,.42); padding: 8px 12px; border-radius: 10px; }

@media (max-width: 860px) {
  .hero { background: var(--ground-2); color: var(--ink); }
  .hero::before { display: none; }
  .hero__media { position: relative; width: 100%; height: 300px; inset: auto; z-index: 0; }
  .hero__inner { min-height: 0; padding-block: 28px 48px; }
  .hero__caption { display: none; }
  .finder { background: var(--ground); }
  .hero__media img { object-position: 55% 60%; }
}
@media (max-width: 520px) {
  .hero__media { height: 240px; }
  .finder textarea { min-height: 76px; }
  .finder__row { grid-template-columns: 1fr; }
  .hero__facts { gap: 16px 28px; }
}

/* Explorador de servicios (TaskRabbit) */
.explore__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; margin-top: 40px; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1.5px 0 var(--line); scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; min-width: 112px; display: grid; justify-items: center; gap: 10px;
  padding: 14px 12px 16px; border: 0; background: none; cursor: pointer; color: var(--ink-2);
  font-weight: 600; font-size: .9375rem; position: relative; scroll-snap-align: start;
  transition: color .2s;
}
.tab svg { width: 34px; height: 34px; transition: transform .25s var(--ease); }
.tab::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 3px; background: var(--brand); transform: scaleX(0); transition: transform .3s var(--ease); }
.tab:hover { color: var(--ink); }
.tab:hover svg { transform: translateY(-2px); }
.tab[aria-selected="true"] { color: var(--brand); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1.5px solid var(--ink); background: var(--ground); color: var(--ink);
  font-weight: 600; font-size: .9688rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .16s var(--ease);
}
.chip:hover { background: var(--ink); color: var(--ground); }
.chip:active { transform: scale(.97); }
.panel { margin-top: 28px; }
.panel[hidden] { display: none; }
.panel .chips { margin-bottom: 28px; }
.feature { display: grid; grid-template-columns: 1fr 1.25fr; background: var(--ground-3); border-radius: 24px; overflow: hidden; }
.feature__text p { max-width: 60ch; }
.feature__text { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.feature__text ul { display: grid; gap: 10px; }
.feature__text li { display: flex; gap: 12px; align-items: flex-start; }
.feature__text li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--brand); }
.feature__price { font-size: var(--t-small); color: var(--ink-2); }
.feature__price strong { color: var(--ink); }
.feature__text .btn { align-self: flex-start; margin-top: 6px; }
.feature__media { min-height: 380px; position: relative; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel.is-in .feature__media img { animation: settle .7s var(--ease) both; }
.panel.is-in .feature__text > * { animation: rise .5s var(--ease) both; }
.panel.is-in .feature__text > *:nth-child(2) { animation-delay: .05s; }
.panel.is-in .feature__text > *:nth-child(3) { animation-delay: .1s; }
.panel.is-in .feature__text > *:nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { opacity: .4; transform: scale(1.04); } }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 240px; order: -1; }
}
@media (max-width: 960px) {
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; gap: 0; }
  .tab { min-width: 0; padding-inline: 4px; font-size: .875rem; }
  .tab svg { width: 28px; height: 28px; }
}

/* Proyectos frecuentes: tarjetas de foto con etiqueta (Thumbtack) */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.project { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 4; text-decoration: none; color: #fff; background: #1b2a26; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover img { transform: scale(1.05); }
.project__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 18px 18px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72)); }
.project__label strong { display: block; font-size: 1.1875rem; letter-spacing: -.01em; }
.project__label span { font-size: .9375rem; opacity: .95; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .projects { gap: 12px; } .project__label { padding: 48px 12px 12px; } .project__label strong { font-size: 1rem; } .project__label span { font-size: .8125rem; } }

/* Por qué: lista + teléfono (Thumbtack) */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: 48px; }
.why__list { display: grid; gap: 8px; }
.why__item { text-align: left; border: 0; background: none; cursor: pointer; padding: 24px 26px; border-radius: 18px; display: grid; gap: 6px; color: var(--ink); transition: background-color .25s var(--ease); }
.why__item:hover { background: var(--ground-2); }
.why__item[aria-selected="true"] { background: var(--ground-3); }
.why__item strong { font-size: var(--t-h3); letter-spacing: -.01em; line-height: 1.2; }
.why__item span { color: var(--ink-2); max-width: 52ch; }
.phone { justify-self: center; width: min(340px, 100%); aspect-ratio: 9 / 16; border-radius: 44px; background: #0d1412; padding: 12px; box-shadow: 0 30px 60px rgba(16, 32, 28, .22); }
.phone__screen { height: 100%; border-radius: 34px; background: #fff; color: #14201c; overflow: hidden; display: flex; flex-direction: column; padding: 46px 22px 22px; position: relative; font-size: .9375rem; }
.phone__screen::before { content: ""; position: absolute; top: 14px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 20px; background: #0d1412; }
.phone__step { display: none; flex-direction: column; gap: 12px; height: 100%; }
.phone__step.on { display: flex; animation: rise .45s var(--ease) both; }
.phone__step h3, .phone__title { font-size: 1.25rem; line-height: 1.2; font-weight: 700; margin: 0; }
.phone__field { border-radius: 14px; background: #f3f6f4; padding: 14px; color: #44514c; line-height: 1.45; }
.phone__field b { color: #14201c; }
.phone__opt { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: #f3f6f4; }
.phone__opt i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px #8a9792; flex: none; }
.phone__opt.sel { background: #e4efe9; }
.phone__opt.sel i { box-shadow: inset 0 0 0 6px #0c6b55; }
.phone__opt small { display: block; color: #44514c; }
.phone__btn { margin-top: auto; border-radius: 999px; background: #0b3a32; color: #d4f5e8; text-align: center; padding: 14px; font-weight: 700; }
.phone__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; box-shadow: 0 1px 0 #dbe3df; }
.phone__row span { color: #44514c; }
@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; }
  .phone { width: min(300px, 86%); }
}

/* Cómo funciona */
.steps-band { background: var(--ground-3); border-radius: 28px; padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.steps { counter-reset: s; display: grid; gap: 26px; margin-top: 32px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.steps li::before { content: counter(s); width: 48px; height: 48px; border-radius: 50%; background: var(--ground); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; }
.steps strong { display: block; font-size: 1.1875rem; margin-bottom: 2px; }
.steps span { color: var(--ink-2); }
.steps-band__media { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; }
.steps-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
@media (max-width: 860px) {
  .steps-band { grid-template-columns: 1fr; }
  .steps-band__media { aspect-ratio: 4 / 3; order: -1; }
}

/* Compromisos (TaskRabbit) */
.promise { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-top: 44px; }
.promise > div { display: grid; gap: 10px; align-content: start; }
.promise h3 { color: var(--ink); }
.promise p { color: var(--ink-2); }
.promise .promise__big { background: var(--action); color: var(--action-ink); border-radius: 22px; padding: 30px; }
.promise .promise__big h3, .promise .promise__big p { color: inherit; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }

/* Antes del montaje */
.prep { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.prep__media { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; }
.prep__media img { width: 100%; height: 100%; object-fit: cover; }
.checks { display: grid; gap: 16px; margin-top: 28px; }
.checks li { display: flex; gap: 14px; }
.checks svg { width: 24px; height: 24px; flex: none; color: var(--brand); }
@media (max-width: 860px) { .prep { grid-template-columns: 1fr; } }

/* Ciudades (Thumbtack) */
.cities { background: var(--ground-2); padding-block: clamp(72px, 8vw, 128px); margin-top: var(--gap-section); }
.cities .chips { justify-content: center; margin-top: 32px; max-width: 980px; margin-inline: auto; }
.cities .chip { border-color: transparent; background: var(--ground); min-height: 40px; font-size: .9375rem; }
.cities .chip:hover { background: var(--action); color: var(--action-ink); }
.cities p.center { margin: 14px auto 0; max-width: 60ch; }

/* Banda final con foto */
.cta { position: relative; isolation: isolate; color: #fff; border-radius: 28px; overflow: hidden; padding: clamp(40px, 7vw, 104px) clamp(28px, 6vw, 88px); display: grid; gap: 20px; justify-items: start; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--scrim), .86) 22%, rgba(var(--scrim), .1) 72%); }
.cta h2 { max-width: 14ch; }
.cta p { max-width: 44ch; font-size: 1.125rem; }

/* Pie */
.foot { background: #0d1a17; color: #dbe5e1; margin-top: var(--gap-section); padding-top: 72px; }
.foot a { color: #ffffff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.foot h3, .foot__title { font-size: 1rem; font-weight: 700; color: #ffffff; margin: 0 0 14px; }
.foot ul { display: grid; gap: 10px; font-size: var(--t-small); }
.foot__about p { max-width: 34ch; font-size: var(--t-small); }
.foot__mark { font-weight: 800; letter-spacing: -.05em; line-height: .8; font-size: min(19.5vw, 19rem); color: #5fd0ac; margin-top: 64px; padding-bottom: .12em; white-space: nowrap; margin-left: -.04em; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 32px; font-size: .875rem; }
.foot__credits { font-size: .8125rem; color: #c3d0cb; padding-bottom: 36px; max-width: 75ch; }
.foot__credits a { color: #ffffff; text-decoration: underline; }
@media (max-width: 860px) { .foot__cols { grid-template-columns: 1fr 1fr; } .foot__about { grid-column: 1 / -1; } }

/* Subpáginas */
.page-head { background: var(--ground-2); padding-block: clamp(48px, 6vw, 96px); }
.page-head h1 { font-size: clamp(1.9rem, 1.2rem + 3.4vw, 4.25rem); line-height: 1; letter-spacing: -.035em; }
.page-head .lead { margin-top: 18px; }
.page-head + .section, .page-head + .section.wrap { padding-top: clamp(48px, 5vw, 88px); }
.page-head .chips { margin-top: 28px; }
.page-head .chip { border-color: transparent; background: var(--ground); }

.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; scroll-margin-top: 96px; }
.service + .service { margin-top: clamp(80px, 8vw, 136px); }
.service:nth-of-type(even) .service__media { order: 2; }
.service__media { border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--ground-2); }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__body { display: grid; gap: 18px; }
.service__body .chips { gap: 8px; }
.service__body .chip { min-height: 38px; padding: 0 16px; font-size: .9063rem; border-color: transparent; background: var(--ground-2); cursor: default; }
.service__body .chip:hover { background: var(--ground-2); color: var(--ink); }
.service__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service__meta div { background: var(--ground-2); border-radius: 14px; padding: 14px 16px; font-size: var(--t-small); }
.service__meta strong { display: block; color: var(--ink); }
.service__meta span { color: var(--ink-2); }
.service .btn { justify-self: start; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-of-type(even) .service__media { order: 0; }
}

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); }
.faq details { background: var(--ground-2); border-radius: 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.0625rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 22px; color: var(--ink-2); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Formulario de contacto */
.form-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 28px; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; }
.fieldset legend { font-size: var(--t-h3); font-weight: 700; letter-spacing: -.01em; padding: 0; margin-bottom: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: .9688rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 0;
  box-shadow: inset 0 0 0 1.5px var(--line); background: var(--field); color: var(--ink); font-size: 1rem;
  transition: box-shadow .2s;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.field.has-error input, .field.has-error select, .field.has-error textarea { box-shadow: inset 0 0 0 2px var(--error); }
.field__msg { font-size: .875rem; color: var(--ink-2); min-height: 0; }
.field.has-error .field__msg { color: var(--error); font-weight: 600; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { position: relative; }
.radios input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radios span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line); font-weight: 600; cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.radios input:checked + span { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.radios input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-small); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.form__status { border-radius: 16px; padding: 18px 20px; font-weight: 600; }
.form__status[hidden] { display: none; }
.form__status.is-error { background: color-mix(in srgb, var(--error) 12%, var(--ground)); color: var(--error); }
.form__status.is-ok { background: var(--ground-3); color: var(--ink); }
.aside-card { background: var(--ground-2); border-radius: 24px; overflow: hidden; position: sticky; top: 96px; }
.aside-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.aside-card > div { padding: 26px; display: grid; gap: 14px; }
.aside-card dl { display: grid; gap: 10px; margin: 0; font-size: var(--t-small); }
.aside-card dt { font-weight: 700; }
.aside-card dd { margin: 0; color: var(--ink-2); }
.only-pro { display: none; }
.is-pro .only-pro { display: grid; }
.is-pro .only-client { display: none; }
@media (max-width: 860px) {
  .form-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}
@media (max-width: 520px) { .grid-2, .service__meta { grid-template-columns: 1fr; } }

/* Entradas: el contenido es visible sin JS; solo se oculta cuando el script está activo */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; }
.hero__media img { animation: drift 18s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}
@media (hover: none) {
  .chip:hover { background: var(--ground); color: var(--ink); }
  .project:hover img { transform: none; }
}

.field .finder__hint { padding: 0; min-height: 0; }


/* Páginas de servicio, guías y cobertura */
.crumbs { font-size: .9375rem; color: var(--ink-2); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--brand); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.page-head .btn { min-height: 48px; }
.doc { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.doc__main > section + section { margin-top: clamp(36px, 4vw, 56px); }
.doc h2 { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 16px; }
.doc p { max-width: 64ch; }
.doc p + p, .doc ul + p, .doc ol + p, .doc table + p { margin-top: 14px; }
.ticks, .nums { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 13px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.nums { counter-reset: n; }
.nums li { counter-increment: n; position: relative; padding-left: 46px; min-height: 32px; }
.nums li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--ground-3); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.doc table { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--ground-2); font-weight: 700; }
.doc td:first-child { font-weight: 600; }
.faqs details { background: var(--ground-2); border-radius: 16px; margin-bottom: 10px; }
.faqs summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faqs details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faqs details p { padding: 0 20px 20px; color: var(--ink-2); }
.faqs a, .faq details a, .doc p a:not(.btn) { color: var(--brand); font-weight: 600; }
.more { font-weight: 700; color: var(--brand); text-decoration: none; align-self: flex-start; }
.more:hover { text-decoration: underline; }
.note-inline { font-size: var(--t-small); color: var(--ink-2); margin-top: 16px; }
.aside-card__title { font-size: var(--t-h3); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.cover-check { max-width: 360px; margin-bottom: 18px; }
.cover-check .finder__hint { padding: 4px 2px 0; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .doc aside { position: static; } }
.doc__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; }
.doc__main > section + .doc__fig { margin-top: clamp(36px, 4vw, 56px); }
.doc__fig + section { margin-top: clamp(36px, 4vw, 56px); }

/* Páginas legales */
.legal { max-width: 70ch; }
.legal h2 { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem); line-height: 1.15; letter-spacing: -.015em; margin: 32px 0 10px; }
.legal p { margin: 0; }
.callout { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--ground-2); }
