/* Adaros Digital: page CSS on top of the taste kit (system.css). BEM blocks of this site only. */

/* Logo in the bar and the footer: the client's horizontal logo */
.nav__logo img { height: 44px; width: auto; display: block; transition: height .5s var(--ease); }
.footer__logo img { height: 56px; }

/* Header: a flat bar across the top that becomes a floating pill once the page scrolls (client's request) */
.nav { left: 0; right: 0; margin-inline: auto; max-width: 100%; border: 1px solid transparent; border-bottom-color: var(--line);
  transition: max-width .55s var(--ease), top .55s var(--ease), border-radius .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease), height .55s var(--ease), background-color .55s var(--ease); }
.nav .nav__bar { transition: width .55s var(--ease); }
html.is-scrolled .nav:not(.is-open) { top: 12px; max-width: min(1120px, calc(100% - 24px)); height: 64px; border-radius: 999px;
  border-color: var(--line); background: rgb(255 255 255 / .9); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 2px rgb(47 43 40 / .06), 0 14px 34px rgb(47 43 40 / .12); }
html.is-scrolled .nav:not(.is-open) .nav__bar { width: calc(100% - 40px); }
html.is-scrolled .nav:not(.is-open) .nav__logo img { height: 34px; }
@media (max-width: 1023px) { html.is-scrolled .nav:not(.is-open) { border-radius: 20px; } }
/* the open menu is a full-screen sheet (position: fixed): the pill's backdrop-filter would make the pill its box and
   cut it, so while the menu is open the bar goes back to flat */

/* Inicio: the cat beside the price list */
.planes__mark img { width: 100%; height: auto; display: block; }
.work-grid { margin-top: var(--s-7); }
.work-grid .panel { aspect-ratio: 16 / 9; }

/* Inner page heads: statement heroes that hold their own content */
.page-head--short .hero__lead { margin-top: var(--s-4); }
.about__cat img { width: 100%; max-width: 420px; height: auto; display: block; margin-left: auto; }

/* Projects */
.frame__img { object-position: 0 0; }
.project__list { margin: var(--s-5) 0 0; padding: 0; list-style: none; color: var(--muted); display: grid; gap: var(--s-2); }

/* Project shots come in <picture> (WebP with a JPG fallback). The picture has no box of its own, and the image
   gets the rules the kit gives a direct child (system.css .frame__img, layout.css .hero__media > img). */
:is(.frame, .panel, .hero__media) > picture { display: contents; }
:is(.frame, .panel) > picture > .frame__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
@media (max-width: 1023px) { .hero__media > picture > img { object-position: var(--ly-pos-phone, var(--ly-pos, 50% 50%)); } }

/* Contact rows hold links on the value side */
.contact-rows { margin-top: var(--s-7); }
.contact-rows .rows__value { color: var(--ink); }
.contact-rows a.rows__value { display: inline-flex; align-items: center; min-height: 44px; }

/* Legal pages and blog posts: one readable column. The text is longer than the kit's fixed one or two screens, so
   the section grows with it instead of running under the footer. */
.legal, .post { padding: calc(var(--nav) + var(--s-9)) 0 var(--s-10); }
main > section:is(.legal, .post) { height: auto; min-height: 100vh; min-height: 100svh; }
main > section:is(.legal, .post) > .wrap { height: auto; }
/* the site-wide section rhythm below (--sec-pad) would put the title right under the fixed header: these pages have no
   hero, so their top clears the header first (the extra :not() only lifts this rule above that one) */
main > section:is(.legal, .post):not(.hero, .section--hero):not([data-moment]) { padding-top: calc(var(--nav) + var(--s-7)); }

/* Home hero: a drawn mockup of a client's site, the thing sent free before paying (a [data-ui] mock) */
.mock { display: grid; place-items: center; padding: clamp(20px, 4vw, 56px); }
.mock__window { width: 100%; max-width: 560px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 4px rgb(47 43 40 / .06), 0 20px 44px rgb(47 43 40 / .12); }
.mock__bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in oklab, var(--ink) 22%, var(--bg)); }
.mock__url { flex: 0 1 220px; margin-inline: auto; padding: 3px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; text-align: center; }
.mock__page { display: grid; gap: 20px; padding: 18px 20px 22px; }
.mock__nav { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.mock__brand { font-weight: 600; }
.mock__links { display: flex; gap: 14px; color: var(--muted); }
.mock__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: center; }
.mock__copy { display: grid; gap: 8px; justify-items: start; }
.mock__line { display: block; width: 100%; height: 8px; border-radius: 4px; background: color-mix(in oklab, var(--ink) 12%, var(--bg)); }
.mock__line--title { width: 92%; height: 14px; background: var(--ink); }
.mock__line--short { width: 60%; }
.mock__line--mid { width: 72%; }
.mock__btn { margin-top: 8px; padding: 6px 12px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; }
.mock__photo { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--surface); color: var(--muted); }
.mock__photo svg { width: 36px; height: 36px; }
.mock__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock__row span { height: 54px; border-radius: 8px; background: var(--surface); }
.mock__tag .ly-float__row { justify-content: flex-start; gap: var(--s-2); color: var(--ink); font-weight: 500; }
.mock__cat { width: 22px; height: 22px; }
/* a phone: the window shows its words only, and the tag stands under it instead of over it */
@media (max-width: 639px) {
  .mock { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: var(--s-3); padding: var(--s-4); }
  .mock__links, .mock__row, .mock__photo { display: none; }
  .mock__hero { grid-template-columns: minmax(0, 1fr); }
  .mock__page { gap: 12px; padding: 12px 14px 16px; }
  .mock__tag { position: static; }
}

/* Calls to WhatsApp: the mark in the button, and one line of plain facts under it */
.btn__icon { width: 20px; height: 20px; flex: none; }
.cta-note { margin: var(--s-3) 0 0; max-width: 46ch; color: var(--muted); font-size: var(--t-small); line-height: 1.5; }

/* Price rows: the price carries a little more weight than the plan's name */
.rows__value { font-weight: 500; }

/* Manifiesto (inicio): the statement on the surface ground (--surface, #f2efea), in full ink at every moment. The
   size eases from 1.75rem on a phone to 2.6rem on a wide screen, about 30 characters a line; the owned part
   ("a tu nombre") is underlined. Its entrance (assets/moments/line-reveal) moves the lines, never their colour. */
@media (max-width: 639px) { .manifiesto > .wrap { justify-content: center; } }
.manifiesto__texto { margin: 0; max-width: 30ch; color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.manifiesto__clave { font-weight: 500; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .14em; }

/* Footer: the number stays on one line; the two legal links apart */
.footer__phone { display: inline-block; white-space: nowrap; }
.footer__legal-links { display: inline-flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
@media (max-width: 639px) { .footer__legal-links { flex-direction: column; gap: 0; } }
.legal__body { max-width: 68ch; }
.legal__body h1 { font: var(--display-weight) clamp(36px, 4vw, 52px)/1.05 var(--font-display); letter-spacing: var(--display-tracking); margin: 0 0 var(--s-4); }
.legal__body h2 { font-size: 20px; font-weight: 500; margin: var(--s-8) 0 var(--s-2); }
.legal__body p { margin: 0; line-height: 1.7; }

/* Browser surfaces in the palette */
::selection { background: var(--ink); color: #fff; }
html { scrollbar-color: #c9c3bb transparent; }

@media (prefers-reduced-motion: reduce) { .nav, .nav__logo img { transition: none; } }

/* Screen counts below the desktop: the price list takes two screens there; the cat waits for the desktop */
@media (min-width: 640px) and (max-width: 1023px) { .planes__mark { display: none; } .work-grid > .card { grid-column: 1 / -1; } #trabajos .panel { --p-h: 330px; } }
/* on a phone the price list keeps its one screen: the cat waits for the desktop */
@media (max-width: 639px) { .planes__mark { display: none; } }
@media (min-width: 1024px) { .hero--split { --ly-h1: 64px; } }
#incluye .t-h3 { margin: 0 0 var(--s-2); }
.form__cat { display: block; width: 100%; max-width: 300px; height: auto; margin-top: var(--s-8); }
/* a phone keeps the cat too, smaller, so the form is never only text */
@media (max-width: 639px) { .form__cat { max-width: 220px; margin-top: var(--s-6); } }
/* Phone action bar (kit nav.actionbar): WhatsApp's mark in the button's own colour, no second colour */
.actionbar__icon { width: 20px; height: 20px; flex: none; }
/* Contact form: the trap field for bots stays out of sight and out of the tab order */
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 640px) and (max-width: 1023px) { .form__cat { max-width: 200px; margin-top: var(--s-6); } }
@media (max-width: 639px) { .contact-rows > li { grid-template-columns: 1fr; } .contact-rows .rows__value { grid-column: 1; grid-row: auto; text-align: left; white-space: normal; overflow-wrap: anywhere; } }
.rows > li { padding-bottom: var(--s-5); }
.frame { background: var(--surface); }
.panel:not([data-fx], .panel--device) { background: var(--surface); }
@media (max-width: 639px) { .page-head__rows .rows p { display: none; } .page-head__rows { margin-top: var(--s-6); } }
.company__title { margin: 0 0 var(--s-5); font-size: 20px; font-weight: 500; }
@media (min-width: 1024px) { .contact-rows { margin-top: 0; } .contact-rows .rows__name, .contact-rows .rows__value { font-size: 22px; } }
@media (max-width: 1279px) { #trabajos { --h: 2; } }
/* two project cards: one screen on a phone too */
@media (max-width: 639px) { #trabajos { --hm: 1; } }
.planes__mark img { max-width: 440px; margin-left: auto; }
.footer__col li, .footer__col a { overflow-wrap: anywhere; }
@media (max-width: 360px) { .nav__bar { gap: var(--s-3); } .nav__logo img { height: 36px; } .nav__toggle { margin-right: 0; } }

/* Legal pages: the update line reads in ink, like the text under it */
.legal__updated { color: var(--ink); font-size: var(--t-small); }

/* Drawn documents (a [data-ui] mock): the written quote on Servicios, the invoice header on Nosotros */
.doc-stage { margin-top: var(--s-6); padding: clamp(20px, 3vw, 40px); border-radius: var(--r-lg); background: var(--surface); }
.doc { display: grid; gap: var(--s-4); padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  box-shadow: 0 2px 4px rgb(47 43 40 / .06), 0 20px 44px rgb(47 43 40 / .12); font-size: 15px; }
.doc__head { display: flex; align-items: center; gap: var(--s-2); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.doc__cat { width: 28px; height: 28px; }
.doc__brand { font-weight: 600; }
.doc__type { margin-left: auto; color: var(--muted); font-size: var(--t-small); }
.doc__rows { display: grid; gap: var(--s-2); margin: 0; }
.doc__rows > div { display: flex; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
.doc__rows dt { color: var(--muted); }
.doc__rows dd { margin: 0; white-space: nowrap; }
.doc__total dt, .doc__total dd { color: var(--ink); font-weight: 600; }
.doc__terms { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.doc__terms li { position: relative; padding-left: 24px; }
.doc__terms li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 10px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.doc .company { margin: 0; }
.doc .company__title { margin: 0; }

/* Proyectos hero: the three projects as they look on a phone, beside the words */
.phones { display: flex; justify-content: flex-end; align-items: flex-start; gap: var(--s-4); }
.phones__item { flex: 0 1 180px; aspect-ratio: 390 / 844; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  box-shadow: 0 2px 4px rgb(47 43 40 / .06), 0 20px 44px rgb(47 43 40 / .12); }
.phones__item img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
@media (max-width: 1023px) { .phones { justify-content: flex-start; margin-top: var(--s-6); } }
@media (max-width: 639px) { .phones { gap: var(--s-3); } .phones__item { flex-basis: 0; flex-grow: 1; max-width: 120px; } }

/* Malla: the desktop shot inside a browser window with its real address */
.browser { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  box-shadow: 0 2px 4px rgb(47 43 40 / .06), 0 20px 44px rgb(47 43 40 / .12); }
.browser__view { aspect-ratio: 16 / 10; overflow: hidden; }
.browser__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.browser .mock__url { flex-basis: 280px; }

/* Nosotros: the invoice frame starts on the same line as the words beside it */
.doc-stage:first-child { margin-top: 0; }

/* Footer WhatsApp link: the kit makes footer links inline-flex, so the word and the number wrap as two whole pieces */
.footer__col a:has(> .footer__phone) { flex-wrap: wrap; column-gap: .3em; overflow-wrap: normal; }
/* a phone: the drawn invoice keeps room for its values */
@media (max-width: 639px) { .doc-stage { padding: var(--s-3); } .doc { padding: var(--s-4); } }

/* Inner page heads: a smaller h1 on the desktop, so even a long title stays within two lines */
@media (min-width: 1024px) {
  .hero--statement h1 { font-size: 46px; }

}
/* the h2s on those pages step down with it, so the h1 stays the largest heading */
@media (min-width: 1024px) { :root:has(main > .hero--statement) { --t-h2: 40px; } }
/* a phone: the contact links take the row's full width, so a number or an address never breaks mid-way */
@media (max-width: 639px) { .contact-rows a.rows__value { display: flex; width: 100%; overflow-wrap: normal; white-space: nowrap; } }

/* Servicios, the four steps (kit moment pinned-chapters): one drawn picture per step, on the bone ground */
#pasos { --ground-bg: var(--surface); }
.mo-pc__visual--lit > .mock--step, .mo-pc__visual--lit > .chat { width: 100%; max-width: 520px; }
.mock--step { display: grid; gap: var(--s-3); justify-items: start; padding: 0; }
.mock--step .mock__window { max-width: none; }
.mock__h { font: var(--display-weight) 18px/1.15 var(--font-display); letter-spacing: var(--display-tracking); }
.mock__photo--filled { background: var(--surface) url("../img/marca/gato.webp") 50% 70% / 58% no-repeat; }
.mock__badge { padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.mock__lock { display: inline-block; width: 8px; height: 7px; margin-right: 6px; border: 1.5px solid currentColor; border-radius: 1px; position: relative; top: -1px; }
.mock__lock::before { content: ""; position: absolute; left: 0; bottom: 100%; width: 5px; height: 4px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; }

/* the WhatsApp conversation of step 1, drawn in the palette (no WhatsApp green) */
.chat { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: 0 2px 4px rgb(47 43 40 / .06), 0 20px 44px rgb(47 43 40 / .12); }
.chat__head { display: flex; align-items: center; gap: var(--s-2); padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.chat__avatar { width: 30px; height: 30px; padding: 4px; border-radius: 50%; background: var(--surface); }
.chat__body { display: grid; gap: 10px; padding: 18px 16px 22px; font-size: 14px; line-height: 1.4; }
.chat__msg { display: block; max-width: 80%; margin: 0; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--surface); }
#pasos .chat__msg--out, .chat__msg--out { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--ink); color: #fff; }

/* a phone: the steps stand one under the other with a short picture; the drawings keep only their words */
@media (max-width: 639px) {
  #pasos .mo-pc__visual--lit { aspect-ratio: auto; padding: var(--s-4); }
  #pasos .mock__links, #pasos .mock__photo, #pasos .mock__line { display: none; }
  #pasos .mock__hero { grid-template-columns: minmax(0, 1fr); }
}
/* at rest (reduced motion, no script, tablets and phones) each step's drawing stays within the kit's 30svh
   (26svh on a phone) and shrinks to fit, so the four steps keep to two screens */
#pasos:not(.is-live) .mo-pc__visual--lit { aspect-ratio: auto; height: 30svh; padding: var(--s-3); overflow: hidden; }
#pasos:not(.is-live) .mo-pc__visual--lit > * { zoom: .62; }
@media (max-width: 639px) {
  #pasos:not(.is-live) .mo-pc__visual--lit { height: 26svh; }
  #pasos:not(.is-live) .mo-pc__visual--lit > * { zoom: .72; }
}
/* at rest the steps section is exactly two screens (the kit's 1H or 2H rhythm) */
main > #pasos[data-moment]:not(.is-live) { min-height: 200vh; min-height: 200svh; }
@media (max-width: 639px) {
  #pasos:not(.is-live) .mo-pc__visual--lit { height: 22svh; }
}

/* Phones: every section is as tall as its content, with the kit's padding between them (no screen-tall blank) */
@media (max-width: 639px) {
  :root { --padt: 72px; --padb: 48px; }
  main > :is(section, .section):not(.hero, .section--hero), main > :is(.hero, .section--hero), footer.closing { min-height: 0; }
  main > #pasos[data-moment]:not(.is-live) { min-height: 0; }
  /* the WhatsApp bar's room is kept once, at the foot of the page, not under every section */
  main > :is(section, .section):not(.hero, .section--hero) { padding-bottom: var(--padb); }
  html body main > .hero--split .hero__media { min-height: 260px; flex: none; }
}

/* Inicio, "Sitios que hicimos" on a phone: each project as a row (a small shot at the left, its words at the right),
   so the two shots no longer take a screen and a half */
@media (max-width: 639px) {
  .work-grid { margin-top: var(--s-6); row-gap: var(--s-6); }
  .work-grid > .card { display: grid; grid-template-columns: 42% minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-1); align-items: start; }
  .work-grid > .card > .panel { grid-row: 1 / span 2; --p-h: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0; }
  .work-grid > .card > .t-card { margin: 0; font-size: 17px; line-height: 1.3; }
  .work-grid > .card > p { margin: 0; font-size: var(--t-small); }
}

/* ================================================================== layout pass (impeccable layout)
   One vertical rhythm for the whole site. The kit sized every section to one or two whole screens, which left
   empty bands wherever the content was shorter; now a section is as tall as its content, with the same space
   between sections (more on a desktop, less on a phone). Only the steps moment on Servicios keeps its two
   screens while it is live, because it scrolls through them. Scale: 8 · 12 · 16 · 24 · 40 · 64, sections 64–112. */
:root { --sec-pad: clamp(56px, 5.5vw, 88px); }
@media (max-width: 639px) { :root { --sec-pad: 52px; } }

main > :is(section, .section):not(.hero, .section--hero):not([data-moment="pinned-chapters"]),
main > [data-moment="pinned-chapters"]:not(.is-live) { height: auto; min-height: 0; padding-block: var(--sec-pad); }
main > :is(.hero, .section--hero) { height: auto; min-height: 0; padding-bottom: var(--sec-pad); }
footer.closing { height: auto; min-height: 0; padding-top: var(--sec-pad); padding-bottom: 0; }
footer.closing > .wrap { row-gap: var(--sec-pad); }

/* the home hero's mockup keeps a real height now that the hero is no longer a whole screen */
@media (min-width: 1024px) { .hero--split .hero__media { min-height: 520px; } }
@media (min-width: 640px) and (max-width: 1023px) { .hero--split .hero__media { min-height: 380px; } }

/* Projects: the title, its line, the list and the link read as one group with air between them */
.project__text { display: grid; align-content: start; gap: var(--s-4); }
.project__text > h2, .project__text > .t-lead { margin: 0; }
.project__list { margin: var(--s-2) 0 0; }
.project__text > .btn-row { margin-top: var(--s-4); }

/* Projects: the desktop in a browser window and the phone in its own device, side by side and apart, each named */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) clamp(96px, 24%, 170px); gap: var(--s-5); align-items: end; }
.showcase__item { display: grid; gap: var(--s-2); margin: 0; }
.showcase__label { color: var(--muted); font-size: var(--t-small); }
.device { aspect-ratio: 390 / 844; overflow: hidden; border: 6px solid var(--ink); border-radius: 26px; background: var(--ink);
  box-shadow: 0 2px 4px rgb(47 43 40 / .08), 0 18px 40px rgb(47 43 40 / .16); }
.device__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
@media (max-width: 1023px) { .showcase { margin-top: var(--s-6); } }
@media (max-width: 639px) { .showcase { gap: var(--s-3); } .device { border-width: 4px; border-radius: 18px; } }

/* Servicios, the quote: what the chosen plan costs, then (on its own tint) what every plan brings */
.doc__part { display: grid; gap: var(--s-2); }
.doc__label { margin: 0; color: var(--ink); font-size: var(--t-small); font-weight: 600; }
.doc__rows > div:first-child dt { color: var(--ink); }
.doc__rows dt > span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.doc__part--incluido { padding: var(--s-4); border-radius: 10px; background: var(--surface); }

/* The close: one bone band across the column, the words at the left and the action with its note at the right */
.closing__cta.close--word { padding: clamp(32px, 5vw, 64px); border-radius: var(--r-lg); background: var(--surface); }
.close-word__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); column-gap: var(--s-8); row-gap: var(--s-3); align-items: end; }
.close-word__head > .section-head { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
.close-word__head > .btn { grid-column: 2; grid-row: 1; width: 100%; }
.close-word__head > .cta-note { grid-column: 2; grid-row: 2; margin: 0; }
@media (max-width: 899px) {
  .close-word__head { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-5); }
  .close-word__head > .section-head, .close-word__head > .btn, .close-word__head > .cta-note { grid-column: 1; grid-row: auto; }
  .close-word__head > .cta-note { margin-top: calc(-1 * var(--s-3)); }
}
@media (max-width: 639px) { .closing__cta.close--word { padding: var(--s-6) var(--s-5); } }
/* a long address in a drawn browser bar stays on one line */
.mock__url { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* The footer: a charcoal band to the page's edges, so the site visibly ends; its words in the light tones */
.closing__links { --ink: #ffffff; --muted: #c9c3bb; --line: rgb(255 255 255 / .16); --line-strong: rgb(255 255 255 / .28);
  position: relative; padding: clamp(48px, 6vw, 72px) 0 calc(var(--s-6) + var(--bar, 0px)); color: var(--ink);
  background: var(--p-inv-bg); box-shadow: 0 0 0 100vmax var(--p-inv-bg); clip-path: inset(0 -100vmax); }
.closing__links a { color: var(--ink); }
.closing__links a:hover { color: var(--muted); }
.closing__links .footer__logo img { filter: brightness(0) invert(1); }
.closing__links :focus-visible { outline-color: #ffffff; }
.closing__links ::selection { background: #ffffff; color: var(--p-inv-bg); }
/* Inicio, the two project cards: closer to their heading, the title off the shot */
.work-grid { margin-top: var(--s-6); }
@media (min-width: 640px) { .work-grid > .card > .t-card { margin-top: var(--s-2); } }

/* 404: the main sections as plain links under the lead */
.notfound__links ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0 var(--s-6); }
.notfound__links a { font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.notfound__links a:hover { text-decoration-color: currentColor; }

/* Blog (block .post): the legal pages' column, with room for sub-headings, lists and a call to WhatsApp */
.post__body { max-width: 68ch; }
.post__body h1 { font: var(--display-weight) clamp(36px, 4vw, 52px)/1.05 var(--font-display); letter-spacing: var(--display-tracking); margin: 0 0 var(--s-4); }
.post__body h2 { font-size: 24px; font-weight: 500; margin: var(--s-8) 0 var(--s-3); }
.post__body h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; margin: var(--s-6) 0 var(--s-2); }
.post__body p { margin: 0; line-height: 1.7; }
.post__body p + p, .post__body p + ul, .post__body ul + p { margin-top: var(--s-4); }
.post__body ul:not([class]) { display: grid; gap: var(--s-2); margin: var(--s-4) 0 0; padding-left: 1.25em; list-style: disc; line-height: 1.6; }
.post__body li a:not([class]) { text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); text-underline-offset: 3px; }
.post__body li a:not([class]):hover { text-decoration-color: currentColor; }
.post__meta, .post__lead + .post-list { margin-top: var(--s-5); }
.post__meta { color: var(--muted); font-size: var(--t-small); }
.post__meta + p { margin-top: var(--s-7); }
.post__lead { font-size: var(--t-lead); line-height: 1.5; }
.post__rows { margin-top: var(--s-5); }
.post__rows + p { margin-top: var(--s-5); }
.post__cta { display: grid; justify-items: start; gap: var(--s-4); margin-top: var(--s-9); padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--surface); }
.post__cta .cta-note { margin: 0; }
.post__more h2 { margin-top: var(--s-8); }
/* the way back: Inicio / Blog, small, above the title */
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-5); padding: 0; list-style: none; color: var(--muted); font-size: var(--t-small); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); }
.crumbs a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
/* the blog index: one row per guide, its title a link */
.post-list { display: grid; gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.post-list__item { padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.post__body .post-list__item h2 { margin: 0 0 var(--s-2); }
.post-list__item h2 a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.post-list__item h2 a:hover { text-decoration-color: currentColor; }

/* Inicio and Servicios: the line on hosting and domain under the price list */
.planes__note { margin-top: var(--s-4); max-width: 60ch; }
.planes__note + .btn-row { margin-top: var(--s-5); }

/* Servicios, #cotizador (block .cotizador; .quote is the kit's quotation block): the choices at the left, the estimate as a drawn quote (.doc) at the right */
.cotizador__form { display: grid; gap: var(--s-7); }
.cotizador__group { display: grid; gap: var(--s-3); min-width: 0; margin: 0; padding: 0; border: 0; }
.cotizador__legend { margin-bottom: var(--s-2); padding: 0; font-size: 20px; font-weight: 500; }
.cotizador__option { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: baseline; gap: 2px var(--s-3); padding: var(--s-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.cotizador__option:hover { border-color: var(--ink); }
.cotizador__option:has(input:checked) { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.cotizador__option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.cotizador__option input { grid-row: 1 / span 2; align-self: start; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); }
.cotizador__name, .cotizador__price { font-weight: 500; }
.cotizador__price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cotizador__text { grid-column: 2 / -1; color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.cotizador__field { max-width: 300px; }
.cotizador__help { max-width: 56ch; color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.cotizador__caption { margin-bottom: var(--s-4); color: var(--muted); font-size: var(--t-small); text-align: left; caption-side: top; }
.cotizador__summary { font: 500 18px/1.5 var(--font-text); }
.cotizador__cta { display: grid; justify-items: start; gap: var(--s-3); margin-top: var(--s-5); }
.cotizador__cta .cta-note { margin: 0; }
@media (min-width: 1024px) { .cotizador__aside { position: sticky; top: 96px; align-self: start; } }
@media (max-width: 1023px) { .cotizador__aside { margin-top: var(--s-8); } }
@media (max-width: 639px) { .cotizador__option { grid-template-columns: 20px minmax(0, 1fr); } .cotizador__price { grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { .cotizador__option { transition: none; } }

/* All prices as a table (what the cotizador shows without JavaScript) */
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table :is(th, td) { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { padding-top: 0; color: var(--muted); font-size: var(--t-small); font-weight: 500; }
.price-table tbody th { padding-right: var(--s-4); font-weight: 500; }
.price-table tbody th span { display: block; max-width: 56ch; margin-top: 2px; color: var(--muted); font-size: var(--t-small); font-weight: 400; line-height: 1.5; }
.price-table :is(td, thead th:not(:first-child)) { padding-left: var(--s-4); text-align: right; white-space: nowrap; }
.price-table + .planes__note { margin-top: var(--s-5); }
@media (max-width: 639px) { .price-table :is(td, thead th:not(:first-child)) { white-space: normal; padding-left: var(--s-3); } }

/* Servicios, preguntas frecuentes (block .preguntas): each answer folds under its question, closed by default.
   Not the kit's .faq, whose script opens every answer for good. */
.preguntas > details { border-bottom: 1px solid var(--line); }
.preguntas summary { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: start; gap: var(--s-4); padding: var(--s-5) 0;
  font: 500 var(--t-lead)/1.4 var(--font-text); list-style: none; cursor: pointer; }
.preguntas > details:first-child > summary { padding-top: 0; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: ""; width: 24px; height: 24px; margin-top: 2px;
  background: linear-gradient(currentColor, currentColor) 50% 50% / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 1.5px 14px no-repeat; }
.preguntas details[open] > summary::after { background-size: 14px 1.5px, 0 0; }
.preguntas summary:hover { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.preguntas summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.preguntas details > p { max-width: 64ch; padding-bottom: var(--s-5); color: var(--ink); line-height: 1.6; }
@media (max-width: 639px) { .preguntas summary { padding: var(--s-4) 0; } .preguntas details > p { padding-bottom: var(--s-4); } }

/* Proyectos, ejemplos por rubro: the line that says where the card goes */
.ejemplos__ver { margin-top: var(--s-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.card:hover .ejemplos__ver { text-decoration-color: currentColor; }
#ejemplos .work-grid > .card { align-self: start; }
#ejemplos .work-grid .panel { aspect-ratio: 16 / 10; }
@media (max-width: 639px) {
  #ejemplos .work-grid > .card > .panel { grid-row: 1 / span 3; aspect-ratio: 16 / 10; }
  #ejemplos .work-grid > .card > .ejemplos__ver { grid-column: 2; margin-top: 0; font-size: var(--t-small); }
}

/* Servicios, el botón del cotizador: puede partirse en dos líneas en pantallas muy angostas o con el texto agrandado,
   en vez de salirse de la pantalla (WCAG 1.4.10 y 1.4.12) */
.cotizador__cta .btn { max-width: 100%; height: auto; min-height: var(--btn-h); padding-block: 10px; white-space: normal; text-align: center; }

/* Campos de formulario (contacto y cantidad del cotizador): el borde que los identifica llega a 3,7:1 contra el
   fondo (WCAG 1.4.11; el del kit, tinta al 20 %, quedaba en 1,5:1). El borde rojo de error del kit no cambia. */
.field :is(input, select, textarea):not([aria-invalid="true"]) { border-color: color-mix(in oklab, var(--ink) 58%, transparent); }

/* Al llegar con Tab (o a un #ancla), el navegador deja espacio para el menú fijo de arriba y la barra de WhatsApp de
   abajo, así lo que tiene el foco nunca queda tapado (WCAG 2.4.11). El kit los dejaba en 0. */
html { scroll-padding-top: calc(var(--nav, 72px) + 16px); scroll-padding-bottom: 96px; }
