/* Ferretería y Tlapalería La Unión — ftu.mx
   Static site, no dependencies. Fonts: Archivo (Google Fonts, variable width + weight). */

:root {
  --zinc-50: #F6F7F8;
  --zinc-100: #EEF0F2;
  --zinc-200: #E3E6E9;
  --zinc-300: #C9CED3;
  --metal: #7F878E;
  --steel: #545C63;
  --ink: #1C1F22;
  --cobalt: #1F4E9C;
  --cobalt-dark: #173C78;
  --wa: #177A42;
  --wa-dark: #11603A;
  --white: #FFFFFF;
  --error: #A3261B;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --maxw: 1240px;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--zinc-200);
  font-stretch: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 0.18em; }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; max-width: 66ch; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-stretch: 75%; font-weight: 800; line-height: 1; letter-spacing: -0.005em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); margin-bottom: 0.6em; }
h3 { font-size: 1.5rem; font-weight: 750; margin-bottom: 0.35em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--steel); }
.muted { color: var(--steel); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1;
  padding: .95rem 1.35rem; border-radius: var(--radius);
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-dark); color: var(--white); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-cobalt { background: var(--cobalt); color: var(--white); }
.btn-cobalt:hover { background: var(--cobalt-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--cobalt-dark); }
.btn-light:hover { background: var(--zinc-100); color: var(--cobalt-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--zinc-50);
  border-bottom: 1px solid var(--zinc-300);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }
.brand img { width: 196px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.5rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cobalt); }
.nav ul a { padding-block: .4rem; border-bottom: 2px solid transparent; }
.nav ul a[aria-current="page"] { border-bottom-color: var(--cobalt); }
.nav .btn { padding: .7rem 1.05rem; }
.nav .btn-cobalt, .nav .btn-cobalt:hover, .nav .btn-cobalt[aria-current="page"] { color: var(--white); }
.nav .btn-cobalt[aria-current="page"] { background: var(--cobalt-dark); }
.nav-toggle {
  display: none; margin-left: auto; font: inherit; font-weight: 650;
  background: none; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: .55rem .9rem; color: var(--ink); cursor: pointer;
}

@media (max-width: 860px) {
  .site-header .wrap { min-height: 4rem; }
  .brand img { width: 150px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--zinc-50); border-bottom: 1px solid var(--zinc-300);
    padding: .5rem var(--pad) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--zinc-200); }
  .nav ul a[aria-current="page"] { border-bottom-color: var(--zinc-200); }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

/* Hero */
.hero { padding-block: clamp(2.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); max-width: 14ch; line-height: .94; }
.hero .lead { margin-top: 1.25rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (max-width: 480px) { .hero-actions .btn { flex: 1 1 100%; justify-content: center; } }
/* Photo behind the hero: .hero.has-photo + <picture class="hero-photo"> (phone crop via <source>) */
.hero.has-photo {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--white);
  padding-block: clamp(4rem, 12vw, 9rem) clamp(3.5rem, 9vw, 7rem);
}
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(28, 31, 34, .92) 0%, rgba(28, 31, 34, .8) 42%, rgba(28, 31, 34, .4) 78%, rgba(28, 31, 34, .2) 100%);
}
@media (max-width: 859px) {
  .hero.has-photo::before { background: linear-gradient(180deg, rgba(28, 31, 34, .66) 0%, rgba(28, 31, 34, .84) 50%, rgba(28, 31, 34, .93) 100%); }
}
.hero.has-photo .lead { color: #E3E6E9; }
.hero.has-photo .btn-line { border-color: var(--white); color: var(--white); }
.hero.has-photo .btn-line:hover { background: var(--white); color: var(--ink); }
.hero.has-photo :focus-visible { outline-color: var(--white); }

/* Product carousel ("Algunos de nuestros productos") */
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.showcase-head h2 { font-size: clamp(1.35rem, 3vw, 2.1rem); font-stretch: 85%; margin: 0; }
.car-controls { display: none; gap: .5rem; flex: none; }
.showcase.is-ready .car-controls { display: flex; }
@media (max-width: 599px) { .car-btn[data-car="prev"], .car-btn[data-car="next"] { display: none; } }
.car-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: background-color .15s ease, color .15s ease;
}
.car-btn:hover { background: var(--ink); color: var(--white); }
.car-btn svg { width: 1.15rem; height: 1.15rem; }
.car-btn svg[hidden] { display: none; }
.slides {
  display: flex; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  background: var(--white); border: 1px solid var(--zinc-300); border-radius: var(--radius);
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-areas: "visual" "text"; align-content: start; gap: 1.25rem;
  padding: .75rem .75rem 1.5rem;
}
@media (min-width: 860px) {
  .slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); grid-template-areas: "text visual"; align-items: center; gap: 2.5rem; padding: 1.25rem 1.25rem 1.25rem 2.5rem; }
}
.slide-text { grid-area: text; padding-inline: .5rem; }
.slide-text h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .45em; }
.slide-text p { margin: 0; color: var(--steel); }
.slide-visual {
  grid-area: visual; container: visual / inline-size; position: relative;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  min-height: 15rem; padding: 1.25rem .75rem; margin: 0;
  background: var(--zinc-50); border-radius: 4px;
}
@media (min-width: 860px) { .slide-visual { min-height: 21rem; padding: 1.5rem; } }
.slide-visual img { flex: 0 1 auto; min-width: 0; max-width: 100%; height: auto; max-height: 13rem; object-fit: contain; }
@media (min-width: 860px) { .slide-visual img { max-height: 18rem; } }
.slide-visual.is-photo { padding: 0; overflow: hidden; }
.slide-visual.is-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
.dots { display: none; justify-content: center; margin-top: .25rem; }
.showcase.is-ready .dots { display: flex; }
.dot { width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dot::before { content: ""; width: 1.75rem; height: 4px; border-radius: 2px; background: var(--zinc-300); transition: background-color .2s ease; }
.dot:hover::before { background: var(--metal); }
.dot[aria-current="true"]::before { background: var(--ink); }
.showcase-note { margin: 1rem 0 0; font-size: 1.125rem; }

/* Pipe gauge — outside diameters and Sch 40 wall thickness to scale (sized to the slide via container units) */
.gauge-block { margin: 0; width: fit-content; max-width: 100%; }
.gauge {
  --u: calc((100vw - 2 * var(--pad) - 1.5rem) / 15);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center;
  row-gap: 1.5rem;
}
@supports (width: 1cqw) { .gauge { --u: calc(100cqw / 15); } }
@supports not (width: 1cqw) { @media (min-width: 860px) { .gauge { --u: 22px; } } }
@container visual (min-width: 600px) { .gauge { --u: min(40px, calc(100cqw / 28.5)); } }
.gauge li, .nuts li {
  display: flex; flex-direction: column; align-items: center;
  min-width: 1.6rem;
}
.ring {
  width: calc(var(--od) * var(--u));
  aspect-ratio: 1;
  margin-inline: calc(var(--u) * .16);
  border-radius: 50%;
  border: max(2px, calc(var(--w) * var(--u) * 1.25)) solid var(--metal);
  background: var(--zinc-50);
  box-shadow: inset 0 0 0 1px rgba(28, 31, 34, .12);
}
.size {
  align-self: stretch; text-align: center;
  border-top: 5px solid var(--ink);
  padding-top: .55rem;
  font-weight: 650; font-size: .875rem; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@container visual (min-width: 600px) { .size { font-size: .95rem; } }
.frac sup, .frac sub { font-size: .66em; line-height: 0; }
.frac sup { vertical-align: .45em; }
.frac sub { vertical-align: 0; }
.gauge-caption { margin-top: .9rem; text-align: center; color: var(--steel); font-size: .875rem; }

/* Hex nuts — across-flats and bore to scale */
.nuts {
  --u: calc((100vw - 2 * var(--pad) - 1.5rem) / 13);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; row-gap: 1.5rem;
}
@supports (width: 1cqw) { .nuts { --u: calc(100cqw / 13); } }
@supports not (width: 1cqw) { @media (min-width: 860px) { .nuts { --u: 52px; } } }
@container visual (min-width: 600px) { .nuts { --u: min(64px, calc(100cqw / 12.5)); } }
.nut { display: block; width: calc(var(--f) * 1.1547 * var(--u)); height: auto; margin-inline: calc(var(--u) * .14); }
.nut polygon { fill: var(--metal); }
.nut circle { fill: var(--zinc-50); }
.n14  { --f: .4375; }
.n516 { --f: .5; }
.n38  { --f: .5625; }
.n12  { --f: .75; }
.n58  { --f: .9375; }
.n34  { --f: 1.125; }
.n78  { --f: 1.3125; }
.n1   { --f: 1.5; }

.s18  { --od: .405; --w: .068; }
.s14  { --od: .540; --w: .088; }
.s38  { --od: .675; --w: .091; }
.s12  { --od: .840; --w: .109; }
.s34  { --od: 1.050; --w: .113; }
.s1   { --od: 1.315; --w: .133; }
.s114 { --od: 1.660; --w: .140; }
.s112 { --od: 1.900; --w: .145; }
.s2   { --od: 2.375; --w: .154; }
.s212 { --od: 2.875; --w: .203; }
.s3   { --od: 3.500; --w: .216; }
.s4   { --od: 4.500; --w: .237; }

@media (prefers-reduced-motion: no-preference) {
  .ring { animation: ring-in .5s cubic-bezier(.2, .7, .2, 1) both; transform-origin: 50% 100%; }
  .gauge li:nth-child(1) .ring { animation-delay: .05s; }
  .gauge li:nth-child(2) .ring { animation-delay: .1s; }
  .gauge li:nth-child(3) .ring { animation-delay: .15s; }
  .gauge li:nth-child(4) .ring { animation-delay: .2s; }
  .gauge li:nth-child(5) .ring { animation-delay: .25s; }
  .gauge li:nth-child(6) .ring { animation-delay: .3s; }
  .gauge li:nth-child(7) .ring { animation-delay: .35s; }
  .gauge li:nth-child(8) .ring { animation-delay: .4s; }
  .gauge li:nth-child(9) .ring { animation-delay: .45s; }
  .gauge li:nth-child(10) .ring { animation-delay: .5s; }
  .gauge li:nth-child(11) .ring { animation-delay: .55s; }
  .gauge li:nth-child(12) .ring { animation-delay: .6s; }
}
@keyframes ring-in { from { opacity: 0; transform: translateY(12px) scale(.7); } to { opacity: 1; transform: none; } }

/* Section rhythm */
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band-white { background: var(--white); }
.band-zinc { background: var(--zinc-100); }
.band-cobalt { background: var(--cobalt); color: var(--white); }
.band-head { display: grid; gap: .25rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .band-head { grid-template-columns: 1fr 1fr; align-items: end; } .band-head h2 { margin-bottom: 0; } .band-head p { margin-bottom: .2em; } }

/* Brands */
.brands {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--zinc-300); border-left: 1px solid var(--zinc-300);
}
@media (min-width: 700px) { .brands { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.brands li {
  aspect-ratio: 1;
  border-right: 1px solid var(--zinc-300); border-bottom: 1px solid var(--zinc-300);
}
.brands li > * {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; padding: .5rem;
}
.brands a { transition: background-color .15s ease; }
.brands a:hover { background: var(--zinc-50); }
.brands a:focus-visible { outline-offset: -3px; }
.brands img { width: 100%; max-width: 150px; height: auto; aspect-ratio: 1; object-fit: contain; }
/* Featured brands: 3 columns wide = full row on phones, half row on wider screens */
.brands .brand-featured { grid-column: span 3; aspect-ratio: 3; }
.brands .brand-featured > * { padding: .5rem 1rem; }
.brands .brand-featured img { width: min(80%, 340px); max-width: none; max-height: 100%; aspect-ratio: 5 / 2; }
.brands .brand-dark > * { background: var(--ink); }
.brands .brand-dark a:hover { background: #2A2F34; }
.brands .brand-dark a:focus-visible { outline-color: var(--white); }

/* Invoice strip */
.invoice-strip .wrap { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 820px) { .invoice-strip .wrap { grid-template-columns: 1fr auto; } }
.invoice-strip h2 { margin-bottom: .35em; }
.invoice-strip p { margin: 0; color: #DCE5F3; font-size: 1.15rem; }

/* About */
/* Full-width storefront photo opening the Nosotros section; capped height on very wide screens */
.storefront { margin: 0; background: var(--zinc-300); }
.storefront img { display: block; width: 100%; height: auto; max-height: 680px; object-fit: cover; object-position: 50% 45%; }
.about-grid { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.about-grid h2 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: .95; max-width: 11ch; margin: 0; }
@media (min-width: 960px) { .about-grid h2 { position: sticky; top: 7rem; } }
.about-copy .lead { color: var(--ink); }
.about-copy p:last-child { margin-bottom: 0; }
.audience {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--zinc-300); border: 1px solid var(--zinc-300); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 900px) { .audience { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.audience li { background: var(--zinc-50); padding: 1.25rem 1.1rem 1.4rem; }
.audience svg { display: block; width: 2.25rem; height: 2.25rem; color: var(--cobalt); margin-bottom: .75rem; }
.audience h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.audience p { margin: 0; color: var(--steel); font-size: .95rem; line-height: 1.45; }

.band-ink { background: var(--ink); color: var(--zinc-100); }
.purpose { display: grid; gap: 2.5rem 4.5rem; }
@media (min-width: 900px) { .purpose { grid-template-columns: 1fr 1fr; } }
.purpose article { border-top: 2px solid #4A5057; padding-top: 1.5rem; }
.purpose h3 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--white); margin-bottom: .55em; }
.purpose p { color: #D5DADE; font-size: 1.075rem; line-height: 1.65; margin: 0; }

/* Contact */
.contact { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.1fr; } }
.info { display: grid; gap: 1.6rem; margin: 0; align-content: start; }
.info dt { font-weight: 750; font-stretch: 85%; font-size: 1.15rem; margin-bottom: .3rem; }
.info dd { margin: 0; }
.info address { font-style: normal; }
.phones { display: grid; grid-template-columns: repeat(2, max-content); gap: .25rem 1.5rem; }
.phones a, .info a { font-weight: 550; }

.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--zinc-300); }
.form-card h3 { font-size: 1.75rem; }
.form-card > p { color: var(--steel); }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--steel); }
input, select, textarea {
  font: inherit; color: var(--ink); width: 100%;
  background: var(--zinc-50); border: 1.5px solid var(--metal); border-radius: var(--radius);
  padding: .75rem .85rem;
}
textarea { min-height: 7.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--cobalt); outline-offset: 0; border-color: var(--cobalt); }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .9rem; font-weight: 550; min-height: 0; }
.field-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .5rem; }
.form-note { font-size: .9rem; color: var(--steel); margin: 1rem 0 0; }

.map { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--zinc-300); background: var(--zinc-100); }
.map iframe { display: block; width: 100%; height: clamp(300px, 40vw, 440px); border: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--zinc-300); padding-block: 3.5rem 2rem; font-size: .975rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem 3rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-grid img { width: 180px; margin-bottom: 1rem; }
.footer-grid h2 { font-size: 1.1rem; font-stretch: 85%; color: var(--white); margin-bottom: .75rem; }
.footer-grid ul { display: grid; gap: .4rem; }
.footer-grid address { font-style: normal; }
.credit { display: inline-flex; align-items: center; gap: .55rem; }
.credit a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.credit img { width: auto; height: 1.15rem; }
.footer-legal { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid #3A3F44; font-size: .9rem; color: #A9B0B6; }
@media (max-width: 359px) { .site-footer { padding-bottom: 6rem; } } /* keep the credit above the WhatsApp button */

/* Floating WhatsApp */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: flex; align-items: flex-end; gap: .75rem; }
.wa-bubble {
  position: relative; background: var(--white); color: var(--ink); border-radius: 10px;
  padding: .8rem 2.3rem .8rem 1rem; box-shadow: 0 6px 24px rgba(28, 31, 34, .18);
  font-size: .95rem; max-width: 15rem; margin-bottom: .4rem;
}
.wa-bubble[hidden] { display: none; }
.wa-bubble strong { display: block; }
.wa-bubble button { position: absolute; top: .35rem; right: .35rem; width: 1.8rem; height: 1.8rem; border: 0; background: none; font-size: 1.25rem; line-height: 1; color: var(--steel); cursor: pointer; border-radius: 4px; }
.wa-button {
  width: 3.75rem; height: 3.75rem; border-radius: 50%;
  background: var(--wa); color: var(--white);
  display: grid; place-items: center; flex: none;
  box-shadow: 0 6px 20px rgba(17, 96, 58, .35);
}
.wa-button:hover { background: var(--wa-dark); color: var(--white); }
.wa-button svg { width: 1.9rem; height: 1.9rem; }
@media (prefers-reduced-motion: no-preference) {
  .wa-bubble:not([hidden]) { animation: bubble-in .35s ease-out both; }
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Facturación page */
.page-head { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.page-head .lead { margin-top: 1rem; }
.invoice-frame {
  overflow: hidden;
  background: var(--white); border: 1px solid var(--zinc-300); border-top: 5px solid var(--cobalt); border-radius: var(--radius);
}
.invoice-frame iframe {
  display: block; width: 100%; border: 0;
  height: 1800px; /* fixed: the invoice system can't report its height; tune this number if needed */
}
@media (max-width: 599px) { .invoice-frame iframe { height: 2400px; } } /* phones stack each invoice taller */
.invoice-scroll-hint {
  display: flex; align-items: center; gap: .6rem; margin: 0; max-width: none;
  padding: .75rem 1rem; border-bottom: 1px solid var(--zinc-300);
  background: var(--zinc-50); color: var(--ink); font-weight: 550; font-size: .95rem; line-height: 1.35;
}
.invoice-scroll-hint svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--cobalt); }
.invoice-frame.is-auto .invoice-scroll-hint { display: none; }
.invoice-help { padding-block: 1.25rem clamp(3rem, 7vw, 5rem); color: var(--steel); margin: 0; }

/* 404 */
.notfound { padding-block: clamp(4rem, 12vw, 8rem); }
.notfound h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin-bottom: .4em; }
