:root {
  --brand: #004aad;
  --brand-mid: #1c56a3;
  --brand-deep: #00357d;
  --brand-soft: #eaf2ff;
  --ink: #10233f;
  --ink-soft: #40516a;
  --line: #c8d6e8;
  --surface: #f5f8fc;
  --white: #fff;
  --wa: #25d366;
  --wa-ink: #052e14;
  --danger: #9d231b;
  --focus: #f4b400;
  --shadow: 0 1rem 2.5rem rgb(16 35 63 / .12);
  --shadow-soft: 0 .65rem 1.8rem rgb(16 35 63 / .08);
  --radius-sm: .65rem;
  --radius: 1.15rem;
  --radius-lg: 1.75rem;
  --max: 74rem;
  --header-h: 4.75rem;
  color-scheme: light;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
}

/* Controles del flujo aprobado */
.quantity-control{display:flex;align-items:center;gap:.65rem;margin-top:.75rem}
.quantity-control button,.date-choice,.photo-previews button{min-width:44px;min-height:44px}
.quantity-control output{min-width:2ch;text-align:center;font-weight:800}
.piece-card.is-selected{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 24%,transparent)}
.date-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(116px,1fr));gap:.65rem;margin:1rem 0}
.date-choice{border:1px solid var(--line);border-radius:999px;background:var(--surface);padding:.65rem .8rem;color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
.date-choice.is-selected{background:var(--accent);border-color:var(--accent);color:#062033}
.photo-previews{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}
.photo-previews span{display:flex;align-items:center;gap:.4rem;border:1px solid var(--line);border-radius:999px;padding:.25rem .35rem .25rem .75rem;max-width:100%;overflow-wrap:anywhere}
.cta-final{margin:clamp(2rem,6vw,5rem) auto;padding:clamp(2rem,5vw,4rem);max-width:1180px;background:var(--ink);color:#fff;border-radius:var(--radius-lg)}
.cta-final>div{max-width:720px}.cta-final h2{color:inherit}

@media (max-width:768px){
  .header__acciones,.header-actions{min-width:0;max-width:100%}
  .header__cta{max-width:100%}
  .banda__casa,.cta-final__casa,.hero-local__casa{max-width:100%;left:auto;right:0}
  svg{max-width:100%}
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 20rem;
  overflow-x: clip;
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.6;
  padding-bottom: 4.25rem;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-deep); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
h1, h2, h3 { margin: 0 0 .65em; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 8vw, 4.85rem); }
h2 { font-size: clamp(1.75rem, 6vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 4vw, 1.55rem); }
p, ul, ol, blockquote { margin-top: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .5rem;
  left: .5rem;
  padding: .75rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) auto auto;
  align-items: center;
  min-height: var(--header-h);
  padding: .55rem max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid transparent;
  background: rgb(255 255 255 / .96);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 .5rem 1.5rem rgb(16 35 63 / .09); }
.brand { display: inline-flex; width: min(9rem, 100%); min-height: 44px; align-items: center; }
.brand img { width: 100%; }
.header-actions { display: flex; gap: .35rem; }
.nav-toggle {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  margin-left: .2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
}
.nav-toggle span { width: 21px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:last-child { transform: translateY(-7px) rotate(-45deg); }
.site-nav {
  position: fixed;
  z-index: 99;
  inset: var(--header-h) 0 auto;
  display: none;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: grid; }
.site-nav a { display: flex; min-height: 48px; align-items: center; padding: .65rem; font-weight: 750; text-decoration: none; }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.05rem;
  border: 2px solid var(--brand);
  border-radius: 999px;
  color: var(--white);
  background: var(--brand);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--small { min-height: 44px; padding: .55rem .7rem; font-size: .82rem; }
.btn--wa { color: var(--wa-ink); border-color: var(--wa); background: var(--wa); }
.btn--wa:hover { color: var(--wa-ink); border-color: #1ebb58; background: #1ebb58; }
.btn--ghost { color: var(--brand-deep); background: transparent; }
.btn--ghost:hover { color: var(--white); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 800; }

.breadcrumbs { width: min(calc(100% - 2rem), var(--max)); margin: 1rem auto 0; color: var(--ink-soft); font-size: .9rem; }
.breadcrumbs:has(ol:empty) { display: none; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--brand-mid); }
.page-shell, .section { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 9vw, 6.5rem); }
.section--tint { width: 100%; padding-inline: max(1rem, calc((100% - var(--max)) / 2)); background: var(--surface); }
.section--intro { display: grid; }
.section--intro > .prose { width: min(100%, 72ch); }
.section-kicker { color: var(--brand-deep); font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.section > .section-kicker, .expectation-section__intro .section-kicker { display: inline-flex; min-height: 32px; align-items: center; margin-bottom: .85rem; padding: .35rem .7rem; border: 1px solid #c8d9f2; border-radius: 999px; background: var(--brand-soft); font-size: .76rem; }
.hero .section-kicker { color: #c9ddff; }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }

.hero { position: relative; display: grid; min-height: min(48rem, calc(100svh - var(--header-h))); align-items: end; overflow: clip; color: var(--white); background: var(--ink); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(8 26 53 / .88) 0%, rgb(8 26 53 / .7) 45%, rgb(8 26 53 / .1) 100%), linear-gradient(0deg, rgb(8 26 53 / .36), transparent 68%); }
.hero__media, .hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; }
.hero__content { position: relative; z-index: 1; width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; padding-block: clamp(3rem, 10vw, 7rem); }
.hero__content h1 { max-width: 13ch; }
.hero__content::before { content: ""; display: block; width: 4.5rem; height: .4rem; margin-bottom: 1.25rem; background: var(--white); box-shadow: 2.25rem 0 0 var(--brand); }
.hero__lead { max-width: 42rem; font-size: clamp(1.05rem, 2.5vw, 1.35rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.hero__badges li { display: inline-flex; min-height: 42px; align-items: center; gap: .5rem; padding: .45rem .75rem; border: 1px solid rgb(255 255 255 / .72); border-radius: 999px; color: var(--ink); background: rgb(255 255 255 / .96); font-size: .83rem; font-weight: 800; line-height: 1.2; }
.hero__badges svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; fill: none; stroke: var(--brand-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.page-hero { position: relative; overflow: clip; padding-block: clamp(3rem, 9vw, 6rem); background: linear-gradient(135deg, var(--brand-soft), var(--white)); border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; right: max(-5rem, calc((100vw - var(--max)) / 2 - 3rem)); bottom: -7rem; width: 17rem; height: 17rem; border: 2.5rem solid rgb(0 74 173 / .06); border-radius: 50%; pointer-events: none; }
.page-hero__inner { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.page-hero__inner > * { position: relative; z-index: 1; }
.page-hero p { max-width: 48rem; color: var(--ink-soft); font-size: 1.1rem; }

.card-grid { display: grid; gap: 1rem; padding: 0; list-style: none; }
.service-card, .case-card, .post-card, .review-card, .info-card {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.service-card { display: flex; min-height: 18rem; flex-direction: column; padding: 0; overflow: hidden; }
.service-card__media { position: relative; display: block; overflow: hidden; background: var(--brand-soft); }
.service-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.service-card:hover .service-card__media img { transform: scale(1.025); }
.service-card__symbol { position: absolute; right: .75rem; bottom: .75rem; display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid rgb(255 255 255 / .8); border-radius: 1rem; color: var(--brand-deep); background: rgb(255 255 255 / .95); box-shadow: 0 .35rem 1rem rgb(16 35 63 / .16); }
.service-card__symbol svg { width: 1.65rem; height: 1.65rem; }
.service-card__illustration { position: relative; display: grid; min-height: 11rem; flex: 0 0 auto; place-items: center; overflow: hidden; color: var(--brand); background: radial-gradient(circle at 75% 20%, rgb(255 255 255 / .92) 0 1.7rem, transparent 1.75rem), repeating-linear-gradient(135deg, transparent 0 1.1rem, rgb(0 74 173 / .035) 1.1rem 1.2rem), linear-gradient(135deg, #eaf2ff, #f9fbff); }
.service-card__illustration::after { position: absolute; right: -2.5rem; bottom: -3.5rem; width: 9rem; height: 9rem; border: 1rem solid rgb(0 74 173 / .08); border-radius: 50%; content: ""; }
.service-card__illustration svg { position: relative; z-index: 1; width: 4.3rem; height: 4.3rem; padding: .75rem; border: 1px solid rgb(0 74 173 / .13); border-radius: 1.3rem; color: var(--brand-deep); background: rgb(255 255 255 / .8); box-shadow: var(--shadow-soft); }
.service-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.service-card__eyebrow { display: inline-flex; align-items: center; gap: .38rem; margin: 0 0 .55rem; color: var(--brand-deep); font-size: .75rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.service-card__eyebrow svg { width: 1rem; height: 1rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card__body .text-link { margin-top: auto; }
.service-card__price { display: grid; gap: .1rem; margin: .5rem 0 .75rem; padding: .65rem .8rem; border: 1px solid #c6d8f2; border-left: .28rem solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); background: linear-gradient(110deg, var(--brand-soft), #fff); line-height: 1.35; }
.service-card__price span { color: var(--ink-soft); font-size: .8rem; font-weight: 750; }
.service-card__price strong { font-size: .98rem; }
.service-card__icon { display: grid; width: 3rem; height: 3rem; margin-bottom: 1rem; place-items: center; border-radius: 50%; color: var(--brand-deep); background: var(--brand-soft); }
.case-card, .post-card { padding: 0; overflow: hidden; }
.case-card__body, .post-card__body { padding: 1.25rem; }
.case-card__media { display: grid; min-height: 13rem; place-items: center; overflow: hidden; background: var(--brand-soft); }
.case-card__media img { width: 100%; height: 100%; max-height: 15rem; object-fit: contain; }
.case-card__stamp { position: absolute; top: .7rem; right: .7rem; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgb(255 255 255 / .96); font-size: .72rem; font-weight: 850; letter-spacing: .035em; }
.case-card__body { display: flex; min-height: 8rem; flex-direction: column; }
.case-card__body h3 { margin-bottom: .4rem; }
.case-card__body .text-link { margin-top: auto; }
.case-card img, .post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-card__media img { aspect-ratio: auto; }
.review-card { margin: 0; border-left: .38rem solid var(--brand); box-shadow: 0 .9rem 2rem rgb(16 35 63 / .08); }
.review-card blockquote::before { display: block; height: 1.6rem; color: var(--brand); content: "“"; font-size: 3rem; font-weight: 850; line-height: 1; }
.review-card blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.review-card figcaption { color: var(--ink-soft); font-weight: 800; }
.reviews-source { margin: 1.25rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.google-review__stars { color: #a65d00; font-size: 1.05rem; letter-spacing: .08em; }
.google-review__author { display: flex; align-items: center; gap: .7rem; }
.google-review__avatar { width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; border-radius: 50%; object-fit: cover; }
.google-review__details { display: flex; min-width: 0; flex-direction: column; gap: .15rem; }
.google-review__name { color: var(--ink); font-weight: 800; }
.google-review__meta, .google-review__meta a { color: var(--ink-soft); font-size: .88rem; }
.google-reviews__summary { margin: 0 0 1rem; color: var(--ink); font-weight: 800; }
.google-reviews__notice { margin: 1rem 0 0; color: var(--ink-soft); font-size: .84rem; }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--brand); box-shadow: var(--shadow); }
.before-after__panel { position: relative; min-width: 0; background: var(--surface); }
.before-after__panel img { width: 100%; height: 100%; min-height: 12rem; object-fit: cover; }
.media-label { position: absolute; z-index: 1; top: .55rem; left: .55rem; padding: .3rem .55rem; border-radius: 999px; color: var(--white); background: var(--ink); font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.before-after figcaption { grid-column: 1 / -1; padding: .8rem 1rem; color: var(--white); background: var(--brand-deep); }
.before-after:empty { display: none; }

.gallery { width: min(100%, 64rem); margin: clamp(2.5rem, 7vw, 5rem) auto 0; }
.gallery > h2 { max-width: 20ch; font-size: clamp(1.45rem, 4vw, 2.3rem); }
.gallery__grid { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; overflow: hidden; padding: .45rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.gallery__grid figure { position: relative; display: grid; min-width: 0; min-height: 11rem; margin: 0; overflow: hidden; place-items: center; background: var(--brand-soft); }
.gallery__grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__grid figure:has(.media-label) img { object-fit: contain; }
.gallery__grid .media-label { top: .7rem; left: .7rem; }
.gallery__grid figure:only-child { grid-column: 1 / -1; width: min(100%, 34rem); }

.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.price-table { width: 100%; min-width: 34rem; border-collapse: collapse; }
.price-table th, .price-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { color: var(--white); background: var(--brand-deep); }
.price-table tbody tr:nth-child(even) { background: var(--brand-soft); }
.notice { padding: 1rem; border-left: .35rem solid var(--brand); color: var(--ink); background: var(--brand-soft); }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label, fieldset legend { font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .72rem .85rem;
  border: 1px solid #8293aa;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--white);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5e6c7f; opacity: 1; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border: 2px solid var(--danger); }
.form-error { color: var(--danger); font-weight: 800; }
.choice-grid { display: grid; gap: .65rem; }
.choice-card { position: relative; display: flex; min-height: 56px; align-items: center; gap: .65rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.choice-card:has(input:checked) { border: 2px solid var(--brand); background: var(--brand-soft); }
.choice-card input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }

.booking { padding-block: clamp(2rem, 6vw, 5rem); }
.appointment { display: grid; width: min(100%, 62rem); grid-template-columns: minmax(0, 1fr); gap: 1.15rem; margin-inline: auto; }
.booking-progress { position: sticky; z-index: 20; top: var(--header-h); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .25rem; margin: 0; padding: .65rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgb(255 255 255 / .97); box-shadow: 0 .35rem 1rem rgb(16 35 63 / .08); list-style: none; }
.booking-progress li { display: grid; min-width: 0; min-height: 44px; place-items: center; padding: .3rem .15rem; border-radius: .7rem; color: var(--ink-soft); font-size: clamp(.64rem, 2.4vw, .82rem); font-weight: 800; line-height: 1.15; text-align: center; }
.booking-progress li.is-current { color: var(--white); background: var(--brand); }
.booking-progress li.is-done { color: var(--brand-deep); background: var(--brand-soft); }
.booking-step { min-inline-size: 0; margin: 0; padding: clamp(1.15rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-soft); }
.booking-step legend { padding: 0 .5rem; color: var(--ink); font-size: clamp(1.3rem, 4vw, 1.75rem); font-weight: 850; }
.booking-step > label, .piece-detail label { display: grid; gap: .4rem; margin-top: 1rem; font-weight: 800; }
.booking-step :is(input:not([type="checkbox"]), select, textarea) { width: 100%; min-height: 48px; padding: .72rem .8rem; border: 1px solid #8293aa; border-radius: var(--radius-sm); color: var(--ink); background: var(--white); }
.booking-step textarea { min-height: 8rem; resize: vertical; }
.booking-step output { display: block; margin-top: 1.25rem; padding: 1rem; border-left: .35rem solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); background: var(--brand-soft); font-weight: 750; }
.booking-step .check { display: flex; min-height: 48px; align-items: flex-start; gap: .7rem; padding: .75rem; border-radius: var(--radius-sm); background: var(--surface); }
.booking-step .check input { flex: 0 0 auto; }
.booking-step__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; margin-top: 1.25rem; }
.booking-summary { padding: 1rem; border-radius: var(--radius); color: var(--white); background: var(--ink); }
.booking-summary h2 { font-size: 1.35rem; }
.booking-summary output { display: block; font-weight: 800; }
.quote-bar { position: fixed; z-index: 88; right: 1rem; bottom: 5rem; left: 1rem; display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .75rem; border-radius: 999px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); transform: translateY(160%); transition: transform .25s ease; }
.quote-bar.is-up { transform: none; }
.quote-drawer { position: fixed; z-index: 201; inset: auto 0 0; width: 100%; max-height: 88dvh; overflow-y: auto; padding: 1.25rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--white); transform: translateY(105%); transition: transform .3s ease; }
.quote-drawer.is-open { transform: none; }
.quote-scrim { position: fixed; z-index: 200; inset: 0; background: rgb(16 35 63 / .7); opacity: 0; transition: opacity .3s ease; }
.quote-scrim.is-open { opacity: 1; }
.quote-list { padding-left: 1.25rem; }
.quote-list li { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 1rem; }
.quote__rm { width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--danger); background: var(--surface); font-size: 1.5rem; }

.piece-list { align-items: stretch; }
.piece-card { background: var(--white); box-shadow: 0 .2rem .7rem rgb(16 35 63 / .05); }
.piece-card:has(> input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.piece-card strong, .piece-card small { display: block; }
.piece-card small { margin-top: .15rem; color: var(--ink-soft); font-size: .78rem; }
.piece-card > span:last-child { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem; color: var(--ink-soft); font-size: .74rem; font-weight: 750; }
.piece-detail { display: grid; gap: .5rem 1rem; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.piece-detail h3 { margin: 0; }
.piece-detail p { margin-bottom: 0; }
.appointment__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.appointment__actions button { padding: .72rem 1.2rem; border: 2px solid var(--brand); border-radius: 999px; color: var(--white); background: var(--brand); font-weight: 800; }
.appointment__actions button[data-prev] { color: var(--brand-deep); background: var(--white); }
.appointment__actions button:hover { border-color: var(--brand-deep); background: var(--brand-deep); }
.appointment__actions button[data-prev]:hover { color: var(--white); }
.appointment > p { margin: 0; text-align: center; }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 56px; padding: 1rem 2.5rem 1rem 0; cursor: pointer; font-weight: 850; }
.faq-list details > div { padding-bottom: 1.25rem; }
.legal-copy { max-width: 76ch; }
.legal-copy :target { scroll-margin-top: calc(var(--header-h) + 1rem); }
.empty-state { padding: clamp(2rem, 8vw, 5rem); border-radius: var(--radius-lg); text-align: center; background: var(--brand-soft); }

.site-footer { display: grid; gap: 1.5rem; padding: 3rem max(1rem, calc((100% - var(--max)) / 2)) 6rem; border-top: .35rem solid var(--brand); color: var(--white); background: var(--ink); }
.site-footer__inner { width: min(100%, var(--max)); margin-inline: auto; }
.site-footer a { color: var(--white); }
.site-footer p { margin-bottom: 0; color: #cbd7e8; }
.site-footer nav { align-self: end; }
.site-footer .credito-cas { grid-column: 1 / -1; margin: .35rem 0 0; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .2); color: #cbd7e8; font-size: .85rem; }
.site-footer .credito-cas a { min-height: 44px; align-items: center; font-weight: 750; }

.template-home .section--intro { position: relative; padding-block: clamp(2.25rem, 6vw, 4.5rem); }
.template-home .section--intro::before { content: ""; width: 3rem; height: .3rem; margin-bottom: 1rem; border-radius: 1rem; background: var(--brand); }
.template-home .section--intro .prose { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.template-home .section--intro .prose h2 { max-width: 19ch; font-size: clamp(1.55rem, 4vw, 2.35rem); }
.template-home .section--intro .prose ul { display: grid; gap: .35rem; padding-left: 1.2rem; }
.template-home .section--intro .prose li::marker { color: var(--brand); }
.template-home .section[aria-labelledby="cases-title"] > h2 { max-width: 15ch; }
.template-home .section[aria-labelledby="reviews-title"] { padding-top: clamp(2rem, 6vw, 4.5rem); }
.expectation-section { position: relative; isolation: isolate; width: 100%; overflow: hidden; padding-inline: max(1rem, calc((100% - var(--max)) / 2)); border-block: 1px solid var(--line); background: linear-gradient(135deg, var(--brand-soft), #f8fbff 58%, var(--white)); }
.expectation-section::before { position: absolute; z-index: -1; top: 2rem; right: max(-6rem, calc((100vw - var(--max)) / 2 - 5rem)); width: 20rem; height: 20rem; border: 2rem solid rgb(0 74 173 / .045); border-radius: 50%; content: ""; }
.expectation-section__intro { width: min(100%, 45rem); margin-bottom: 1.5rem; }
.expectation-section__intro h2 { max-width: 15ch; }
.expectation-section__intro > p:last-child { max-width: 44ch; color: var(--ink-soft); font-size: 1.05rem; }
.expectation-grid { display: grid; gap: .8rem; counter-reset: expectation; }
.expectation-card { position: relative; min-width: 0; min-height: 13.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 .8rem 2rem rgb(16 35 63 / .09); counter-increment: expectation; }
.expectation-card::before { position: absolute; top: 1.15rem; right: 1.15rem; display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--brand-deep); background: var(--brand-soft); content: "0" counter(expectation); font-size: .7rem; font-weight: 850; }
.expectation-card::after { position: absolute; right: 1rem; bottom: 0; left: 1rem; height: .22rem; border-radius: 1rem 1rem 0 0; background: linear-gradient(90deg, var(--brand), #61a6e8); content: ""; }
.expectation-card__icon { width: 2.8rem; height: 2.8rem; margin-bottom: .9rem; padding: .55rem; border: 1px solid rgb(255 255 255 / .5); border-radius: .85rem; color: var(--white); background: linear-gradient(145deg, var(--brand), var(--brand-deep)); box-shadow: 0 .4rem 1rem rgb(0 74 173 / .2); }
.expectation-card__eyebrow { margin-bottom: .3rem; color: var(--brand-deep); font-size: .77rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.expectation-card h3 { margin-bottom: .5rem; font-size: 1.1rem; letter-spacing: -.01em; }
.expectation-card > p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: .94rem; }
.expectation-section > .actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .75rem; margin: 1.5rem 0 0; padding: 0; border: 0; background: transparent; }
.expectation-section > .actions .btn { min-width: 10.5rem; }

main > .actions { display: flex; width: min(calc(100% - 2rem), var(--max)); flex-wrap: wrap; justify-content: center; gap: .75rem; margin: clamp(2rem, 6vw, 5rem) auto; padding: clamp(1.5rem, 5vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-soft), var(--white)); }
.section:has(> h2:empty), aside:has(> h2:empty) { display: none; }

/* Integración del generador: todos los blancos táctiles medidos alcanzan 44 px. */
.breadcrumbs a,
.service-card h3 a,
.case-card h3 a,
.post-card h3 a,
.prose h3 a,
.site-footer a,
.prose p a,
.prose li a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}
.appointment__actions button,
.appointment > p a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.piece-card {
  display: grid;
  min-height: 64px;
  grid-template-columns: 44px minmax(0, 1fr) minmax(4.5rem, 5.25rem);
  align-items: center;
  gap: .65rem;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.piece-card > input[type="checkbox"], .check > input[type="checkbox"] { width: 44px; height: 44px; }
.piece-card input[type="number"] { width: 100%; min-height: 44px; }
.honeypot { position: absolute !important; inline-size: 1px !important; block-size: 1px !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.mobile-bar { position: fixed; z-index: 150; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--white); box-shadow: 0 -.5rem 1.5rem rgb(16 35 63 / .12); }
.mobile-bar a { display: grid; min-height: 56px; place-items: center; padding: .35rem; color: var(--brand-deep); font-size: .88rem; font-weight: 850; text-align: center; text-decoration: none; }
.mobile-bar__wa { color: var(--wa-ink) !important; background: var(--wa); }

.reveal { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  .reveal { animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 0 entry 22%; }
  @keyframes reveal-in { from { opacity: .45; transform: translateY(1rem); } }
}

@media (min-width: 48rem) {
  body { padding-bottom: 0; }
  .site-header { grid-template-columns: 11rem 1fr auto; padding-inline: max(1.5rem, calc((100% - var(--max)) / 2)); }
  .header-actions { grid-column: 3; }
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; grid-row: 1; grid-column: 2; justify-content: flex-end; max-height: none; overflow: visible; padding: 0 1rem; border: 0; box-shadow: none; }
  .site-nav a { padding-inline: .55rem; }
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 3rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .template-home .section--intro .prose { max-width: 62rem; }
  .template-home .section--intro .prose ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1.25rem; }
  .expectation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .gallery__grid { gap: .65rem; padding: .65rem; }
  .gallery__grid figure { min-height: 16rem; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form--two .field--wide, .form--two .form-error, .form--two .form-actions { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer nav { grid-column: 1 / -1; }
  .piece-detail { grid-template-columns: minmax(12rem, 1fr) repeat(2, minmax(10rem, .7fr)); align-items: end; }
  .piece-detail h3 { align-self: center; }
  .piece-detail > p { grid-column: 1 / -1; }
  .quote-bar { right: 2rem; bottom: 2rem; left: auto; width: 24rem; }
  .quote-drawer { top: 0; right: 0; bottom: 0; left: auto; width: min(30rem, 92vw); max-height: 100dvh; border-radius: var(--radius-lg) 0 0 var(--radius-lg); transform: translateX(105%); }
  .quote-drawer.is-open { transform: none; }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .site-header { grid-template-columns: 8rem minmax(0, 1fr) auto; padding-inline: 1rem; }
  .brand { width: 8rem; }
  .site-nav { gap: 0; padding-inline: .15rem; }
  .site-nav a { padding-inline: .28rem; font-size: .78rem; }
  .header-actions { gap: .2rem; }
  .header-actions .btn--small { padding-inline: .52rem; font-size: .74rem; }
}

@media (min-width: 72rem) {
  .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .expectation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
  .expectation-card { min-height: 15.5rem; padding: 1rem; }
  .template-home .hero__content { padding-block: 8rem; }
  .template-home .section[aria-labelledby="cases-title"] .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery__grid:has(figure:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .template-booking .page-hero__inner { display: grid; grid-template-columns: minmax(20rem, .8fr) minmax(0, 1.2fr); align-items: start; gap: 5rem; }
  .template-booking .page-hero h1 { position: sticky; top: calc(var(--header-h) + 2rem); font-size: clamp(3.5rem, 5vw, 4.85rem); }
  .site-footer { grid-template-columns: 1fr 1fr auto; }
  .site-footer nav { grid-column: auto; }
  .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

@media print {
  .site-header, .mobile-bar, .booking-progress, .quote-bar, .quote-drawer, .quote-scrim { display: none !important; }
  body { padding: 0; color: #000; }
  a { color: #000; }
}

/* El flujo usa tarjetas con contador, no checkbox. Estas reglas deben ganar al
   patrón heredado de tarjeta del chasis. */
.piece-card{display:block;min-height:132px;padding:1rem}
.piece-card.is-selected{border-color:var(--brand);box-shadow:0 0 0 2px rgb(0 74 173 / .2)}
.date-choice.is-selected{background:var(--brand);border-color:var(--brand);color:var(--white)}
.hero__video{width:100%;height:100%;object-fit:cover}
.certifications{display:flex;align-items:center;justify-content:center;gap:1.25rem;flex-wrap:wrap;padding:1.25rem max(1rem,calc((100% - var(--max))/2));background:var(--surface);text-align:center}
.certifications h2{width:100%;margin:0;font-size:1rem}.certifications div{display:flex;align-items:center;gap:1.5rem}.certifications img{width:auto;max-width:140px;max-height:64px}
.team-band{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.55fr);align-items:end;gap:2rem;overflow:hidden;padding:clamp(2rem,5vw,4rem) max(1rem,calc((100% - var(--max))/2));background:var(--brand);color:var(--white)}
.team-band h2{color:inherit}.team-band img{align-self:end;max-height:460px;object-fit:contain;object-position:bottom}
@media(max-width:47.99rem){.team-band{grid-template-columns:1fr}.team-band img{justify-self:center;max-height:300px}.cta-final{margin-inline:1rem}}
@media(prefers-reduced-motion:reduce){.hero__video{display:none}}
.reveal-media{position:relative;display:block;overflow:hidden;width:min(100%,640px);min-height:280px;margin-top:1.5rem;padding:0;border:0;border-radius:var(--radius-lg);background:var(--surface)}
.reveal-media img{width:100%;height:100%;object-fit:cover}.reveal-media__before,.reveal-media__after{position:absolute;inset:0}.reveal-media__after{opacity:0;transition:opacity .2s ease}.reveal-media.is-active .reveal-media__after{opacity:1}.reveal-media .media-label{position:absolute;right:1rem;bottom:1rem;z-index:2;padding:.5rem .75rem;border-radius:999px;background:var(--white);color:var(--ink);font-weight:800}
.cta-final .section-kicker,.team-band .section-kicker{color:var(--white)!important}
.contact-methods{display:flex;flex-wrap:wrap;gap:.5rem 1rem}.contact-methods a{display:inline-flex;min-width:44px;min-height:44px;align-items:center;overflow-wrap:anywhere}
