:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #22241e;
  --muted: #575446;
  --gold: #ffca06;
  --line: #e4e0d5;
  --forest: #26251f;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, figure, h1, h2, h3, p, dl, dd { margin: 0; }
body { line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #a8481f; outline-offset: 4px; }
section[id] { scroll-margin-top: 1.25rem; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 7; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { width: min(90%, 1240px); margin-inline: auto; }
.header { background: #fff; border-top: 6px solid var(--gold); border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; gap: .65rem; }
.brand { display: inline-flex; align-items: center; column-gap: .65rem; color: inherit; text-decoration: none; font-weight: 750; line-height: 1.14; }
.brand small { font-size: .85rem; font-weight: 550; }
.brand img { width: 4.6rem; height: auto; }
.nav-links { display: flex; align-items: center; gap: .65rem; margin-inline-start: auto; }
.nav .button { white-space: nowrap; }
.nav .button:hover, .nav-toggle[aria-expanded="true"] { background: #fff5ce; }
.nav .button[aria-current="page"] { text-decoration: underline; }
.nav-cta { flex-shrink: 0; }
.nav .nav-toggle { display: none; }
.nav-toggle-icon { width: 1rem; height: .72rem; border-block: 2px solid; position: relative; }
.nav-toggle-icon::before { content: ""; position: absolute; inset-inline: 0; top: 50%; border-top: 2px solid; transform: translateY(-50%); }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 5px; padding: .75rem 1.05rem; min-height: 47px; text-decoration: none; font-weight: 720; font-size: .94rem; }
.dark { background: var(--ink); color: white; }
.dark:hover { background: #484635; }
.outline { border-color: currentColor; background: transparent; color: var(--ink); }
.outline:hover { background: #22241e0a; }
.gold { background: var(--gold); color: #252419; }
.gold:hover { background: #ffdc57; }
.light-outline { border-color: #d3cbb6; color: white; background: transparent; }
/* Portada y accesos al catálogo */
.header { position: sticky; top: 0; z-index: 5; }
.home section[id], .home main[id], .home article[id], .home #productos { scroll-margin-top: 7rem; }
.header .brand img { width: 5rem; }
.header .brand { flex-shrink: 0; }
.header .brand span { max-width: 8rem; }
.header .brand small { white-space: nowrap; }
.hero { margin-top: clamp(1.65rem, 4vw, 3.25rem); }
.hero-copy {
  border-left: .375rem solid var(--gold);
  padding-left: clamp(.9rem, 2.2vw, 1.65rem);
  margin-bottom: clamp(1.25rem, 2.6vw, 2rem);
}
.hero h1 {
  margin-bottom: .3em;
  font: 600 clamp(2.5rem, 5.25vw, 4.65rem)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
  text-wrap: pretty;
}
.hero-promise { font-size: clamp(1.12rem, 1.65vw, 1.35rem); font-weight: 750; line-height: 1.25; }
.hero-intro.lead { max-width: 70ch; }
.lead { max-width: 41ch; margin-top: .65rem; color: var(--muted); font-size: 1rem; }
.hero-carousel { position: relative; display: grid; min-width: 0; background: #faf8f0; }
.hero-carousel-slides { position: relative; min-height: clamp(16rem, 45vw, 33rem); }
.hero-photo { position: absolute; inset: 0; min-width: 0; overflow: hidden; background: #e1d9c8; }
.hero-carousel-controls { position: absolute; z-index: 1; left: 1rem; bottom: .55rem; display: flex; border-radius: 3rem; padding-inline: .12rem; background: #25251fea; }
.hero-carousel-controls button { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.hero-carousel-controls button::before { content: ""; display: block; width: .55rem; height: .55rem; border: 1px solid #fff; border-radius: 50%; }
.hero-carousel-controls button[aria-current="true"]::before { border-color: var(--gold); background: var(--gold); }
.hero-carousel-controls button:hover::before { border-color: var(--gold); }
.hero-carousel-controls button:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.hero-photo img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center 53%; }
.hero-photo figcaption {
  position: absolute;
  right: 1rem;
  bottom: 3.1rem;
  left: 1rem;
  width: fit-content;
  padding: .7rem .9rem;
  border-left: 4px solid var(--gold);
  background: #25251fee;
  color: #fff;
  line-height: 1.35;
}
.hero-photo figcaption span { display: block; font-size: .875rem; margin-top: .17rem; color: #f5ebce; }
.choice-section { margin-top: clamp(1.35rem, 4vw, 3rem); background: #f8f5e9; border-block: 1px solid #eee7d0; }
.choice-section .section { padding-block: clamp(2.3rem, 4.75vw, 4.8rem); }
.choice-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); }
.wood-guide { display: grid; grid-template-columns: minmax(7rem,.46fr) minmax(0,1fr) minmax(0,1.48fr); background: white; border-top: 3px solid var(--gold); }
.wood-guide-copy { padding: clamp(1.25rem, 3vw, 2.4rem); align-self: center; }
.wood-guide-name { margin: 0 0 .8rem; font: 700 clamp(1.8rem, 3.2vw, 2.65rem)/1.1 Georgia, serif; overflow-wrap: anywhere; }
.wood-guide .choice-link { margin-top: 1.1rem; }
.wood-guide-photos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
.wood-guide-photos figure { display: flex; flex-direction: column; }
.wood-guide-photos img { width: 100%; height: clamp(13rem, 24vw, 23rem); object-fit: cover; }
.wood-guide-photos figcaption { padding: .7rem .9rem 1rem; font-size: .88rem; color: var(--muted); }
.wood-guide-photos strong { display: block; color: var(--ink); }
.guide-product-image { display: grid; place-items: center; padding: .85rem; }
.guide-product-image img { width: 100%; height: 12rem; object-fit: contain; }
@media (max-width: 820px) { .wood-guide { grid-template-columns: minmax(5rem,24%) minmax(0,1fr); } .wood-guide-photos { grid-column: 1 / -1; } .guide-product-image img { height: 9rem; } }
@media (max-width: 540px) { .wood-guide-photos { grid-auto-flow: row; } .wood-guide-photos img { height: auto; aspect-ratio: 16 / 10; } }
.eyebrow { display: flex; align-items: center; gap: .55rem; text-transform: uppercase; font-size: .875rem; font-weight: 750; letter-spacing: .075em; line-height: 1.4; }
.eyebrow span { background: currentColor; display: inline-block; width: 14px; height: 2px; flex: none; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 550; line-height: .99; letter-spacing: -.055em; }
h2 { font-size: clamp(2.5rem, 5vw, 4.7rem); margin-top: .21em; }
.section { padding-block: clamp(3.4rem, 7.5vw, 7.2rem); }
.intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.3rem 3rem; margin-bottom: 1.6rem; align-items: end; }
.intro > p { max-width: 43ch; margin-bottom: .18rem; color: var(--muted); }
.lasur-identity { --identity-color: #205684; }
.oil-identity { --identity-color: #a52936; }
.sheet-hero:is(.lasur-identity, .oil-identity) { border-top: 4px solid var(--identity-color); }
.packshot-link { display: block; border-radius: 5px; cursor: zoom-in; }
.packshot-link:focus-visible { outline-offset: -4px; }
.packshot-link img { filter: drop-shadow(0 .4rem .55rem #3c35261b); }
img[data-packshot="lasur"] {
  clip-path: polygon(0 8%, 21% 7%, 60% 7%, 89% 8%, 100% 10%, 96% 32%, 91% 58%, 87% 81%, 79% 90%, 66% 95%, 49% 96%, 30% 94%, 17% 90%, 10% 83%, 5% 63%, 1% 32%);
  clip-path: shape(
    from 0% 9.3%,
    curve to 100% 10% with 28% 6.7% / 74% 7.3%,
    curve to 91% 60% with 98% 27% / 94% 45%,
    curve to 82% 88% with 88% 78% / 87% 84%,
    curve to 49% 95.7% with 76% 93.2% / 63% 96%,
    curve to 15% 89% with 37% 95.8% / 20% 93.3%,
    curve to 5% 64% with 9% 85% / 7% 76%,
    curve to 0% 9.3% with 2% 48% / 0% 26%,
    close
  );
  filter: brightness(1.13) contrast(.98);
}
img[data-packshot="oil"] {
  clip-path: polygon(8% 13%, 13% 10%, 23% 8%, 41% 7%, 63% 7%, 84% 9%, 94.5% 12%, 93% 22%, 98% 25%, 98% 30%, 90% 34%, 88% 57%, 85% 77%, 79% 83%, 68% 88%, 55% 89%, 40% 88%, 29% 85%, 24% 81%, 20% 75%, 16.2% 57%, 13.4% 44%, 11.3% 33%, 8% 28%, 8% 24%, 9% 22%);
  clip-path: shape(
    from 8% 13%,
    curve to 50% 7% with 13% 9.8% / 32% 6.7%,
    curve to 94.5% 12.5% with 69% 6.7% / 90% 8.8%,
    curve to 93% 23% with 95% 15% / 94.7% 18.5%,
    curve to 98% 26% with 96% 23% / 98% 24%,
    curve to 90% 33.8% with 98% 29.8% / 94% 31.5%,
    curve to 85.5% 77% with 89% 48% / 88% 70%,
    curve to 53% 88.7% with 82.8% 84% / 68% 88.6%,
    curve to 25% 82.2% with 40% 88.8% / 29% 85.5%,
    curve to 16.2% 57% with 21% 79% / 18% 67%,
    curve to 11.3% 33% with 14.4% 48% / 13% 42%,
    curve to 8% 25% with 10.7% 30% / 7% 28.4%,
    curve to 9% 22% with 7.4% 23.5% / 8.6% 23%,
    curve to 8% 13% with 8.3% 18% / 8% 15%,
    close
  );
  filter: brightness(1.12) contrast(.98);
}
.identity-tag { color: var(--identity-color); }
h3 { font-size: clamp(1.35rem, 2.65vw, 2.25rem); letter-spacing: -.045em; line-height: 1.15; }
dt { font-weight: 725; }
.guide { background: #f8f5e9; border-top: 1px solid #eee7d0; }
.guide .intro { display: block; }
.guide h2 { max-width: 22ch; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.project-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.project-feature { grid-column: span 2; }
.project-views { display: grid; gap: 2px; }
.project-views:has(a + a) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.project-views:has(a + a) img { object-fit: contain; background: #f7f5ef; }
.project-card a { display: block; overflow: hidden; }
.project-card a:focus-visible { outline-offset: -4px; }
.project-card img { width: 100%; height: clamp(9rem, 17vw, 14rem); object-fit: cover; transition: transform .18s ease; }
.project-card a:hover img { transform: scale(1.035); }
.project-card figcaption { padding: .9rem 1rem 1rem; border-top: 3px solid var(--gold); }
.project-card h3 { font-size: 1.2rem; letter-spacing: -.025em; text-wrap: initial; }
.project-card p { margin-top: .24rem; color: var(--muted); font-size: .9rem; }
.project-dialog {
  position: fixed;
  width: min(94vw, 61rem);
  max-height: 92dvh;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.project-dialog::backdrop { background: #171712e0; }
.project-dialog figure { margin: 0; }
.project-dialog img { width: 100%; height: auto; max-height: 70dvh; object-fit: contain; background: #211f19; }
.project-dialog[data-photo-kind="packshot"] { width: min(92vw, 32rem); }
.project-dialog[data-photo-kind="packshot"] figure { padding-top: 1rem; }
.project-dialog[data-photo-kind="packshot"] img { width: auto; max-width: calc(100% - 2.5rem); max-height: 69dvh; margin: 0 auto 1rem; background: transparent; }
.project-dialog figcaption { border-top: 4px solid var(--gold); padding: .75rem 1rem 1rem; }
.project-dialog h2 { font: 750 1.35rem/1.2 "Aptos", "Segoe UI", sans-serif; letter-spacing: normal; text-wrap: initial; }
.project-dialog p { margin-top: .25rem; color: var(--muted); }
.photo-close { position: absolute; inset: .3rem .3rem auto auto; z-index: 1; border: 0; padding: 0; }
.photo-close button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.photo-close span {
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border: 1px solid #22241e33;
  border-radius: 50%;
  background: #fffffff2;
  font-size: 1.35rem;
  line-height: 1;
}
.photo-close button:hover span { background: #fff5ce; }
.photo-close button:focus-visible { outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
  .project-card img { transition: none; }
}
.company { display: grid; grid-template-columns: 1.03fr 1fr; gap: clamp(1.3rem, 6vw, 6rem); align-items: center; padding-bottom: clamp(2rem, 4vw, 4rem); }
.company-photo { aspect-ratio: 500 / 416; overflow: hidden; border-radius: 7px; }
.company-photo img {
  /* El recorte comienza en el píxel 90 de la foto de 740 px. */
  width: 148%;
  max-width: none;
  height: auto;
  transform: translateX(-12.16%);
  filter: contrast(.86) brightness(1.16);
}
.company figcaption { color: var(--muted); margin-top: .45rem; font-size: .84rem; }
.company h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.company h1 ~ p { margin-top: 1rem; }
.company-purpose { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; padding-bottom: clamp(3rem, 6vw, 6rem); }
.company-purpose section { padding: 1.35rem; border: 1px solid var(--line); border-top: 3px solid var(--gold); background: #fffefa; }
.company-purpose h2 { margin: 0 0 .7rem; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.company-purpose ul { margin: 0; padding-inline-start: 1.2rem; }
.company-purpose li + li { margin-top: .45rem; }
.quote { background: var(--forest); color: #fff9eb; }
.quote-layout { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(1.5rem, 6vw, 6rem); }
.quote .eyebrow { color: var(--gold); }
.quote h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.quote h1 + p { color: #e3ddcd; margin-top: 1.05rem; max-width: 41ch; }
form { border: 1px solid #797c69; padding: clamp(1rem, 3vw, 2rem); border-radius: 8px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
form label { font-weight: 630; font-size: .91rem; display: grid; gap: .32rem; margin-bottom: .7rem; }
input, select, textarea { width: 100%; min-width: 0; padding: .55rem .62rem; border: 1px solid #aaa385; background: #fffdf4; color: var(--ink); border-radius: 4px; }
textarea { resize: vertical; }
form .form-note, .feedback { font-size: .9rem; margin-top: .55rem; color: #e3ddcd; }
#resultado { margin-top: .8rem; }
.footer { background: #191d17; color: #f0ece0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .85rem 1.5rem; flex-wrap: wrap; padding-block: 1.25rem; font-size: .9rem; }
.sheet-header { width: min(90%, 960px); margin: auto; padding: 1rem 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.sheet { width: min(90%, 960px); margin: 0 auto 3rem; background: #fffefa; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sheet-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 1rem; padding: clamp(1.25rem, 5vw, 2.75rem); background: #fff8da; }
.sheet h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); overflow-wrap: anywhere; }
.sheet-subtitle { font-weight: 750; margin-bottom: .65rem; }
.sheet-hero img { margin: auto; width: 100%; height: 185px; object-fit: contain; }
.sheet-hero img[data-packshot] { width: auto; }
.sheet-body { padding: clamp(1.25rem, 5vw, 2.75rem); }
.sheet-body h2 {
  margin: 0 0 1rem;
  font-family: inherit;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.sheet-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.sheet-facts > div {
  padding: .95rem 1rem 1.05rem;
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 7px;
}
.sheet-facts > div:last-child:nth-child(5) { grid-column: span 2; }
.sheet-facts dt { font-weight: 750; line-height: 1.3; }
.sheet-facts dd { color: var(--muted); margin-top: .4rem; }
.sheet-application {
  margin-top: 1.75rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8f5e9;
}
.sheet-application ol { margin: 0; padding-inline-start: 1.5rem; max-width: 72ch; }
.sheet-application li { padding-inline-start: .25rem; }
.sheet-application li + li { margin-top: .7rem; }
.sheet-application li::marker { font-weight: 750; }
.sheet-actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.sheet-actions .button { text-align: center; }
@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-feature { grid-column: span 2; }
}
@media (max-width: 900px) {
  .nav { min-height: 64px; flex-wrap: wrap; gap: .5rem; padding-block: .45rem; }
  .header .brand img { width: 3.9rem; }
  .home section[id], .home main[id], .home article[id], .home #productos { scroll-margin-top: 5.6rem; }
  .nav .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
  }
  .nav-toggle:not([hidden]) + .nav-links {
    position: absolute;
    inset: 100% 0 auto;
    padding: .5rem 5% .9rem;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 12px 24px #26251f1a;
  }
  .nav-toggle[aria-expanded="false"]:not([hidden]) + .nav-links { display: none; }
  .nav-links { flex-wrap: wrap; gap: .5rem; width: 100%; margin-inline-start: 0; }
  .nav .brand { margin-inline-end: auto; }
  .nav .button { min-height: 44px; padding: .55rem .8rem; }
}
@media (max-width: 475px) {
  .nav-links { flex-direction: column; align-items: stretch; }
}
@media (max-width: 390px) {
  .nav .brand > span { display: none; }
}
@media (max-width: 690px) {
  .hero-carousel-slides { min-height: clamp(15rem, 65vw, 24rem); }
  .hero-photo figcaption { left: .6rem; right: .6rem; bottom: 3rem; }
  .hero-carousel-controls { left: .6rem; }
  .intro, .company, .quote-layout { grid-template-columns: 1fr; }
  .sheet-hero { grid-template-columns: 1fr; }
  .sheet-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company figure { order: 2; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-feature img { height: 12rem; }
}
@media print {
  :root { background: white; color: black; }
  .sheet { width: 100%; margin: 0; border: 0; background: white; overflow: visible; }
  .sheet-header, .sheet-actions, .sheet-hero figure, .sheet-hero p:not(.sheet-subtitle) { display: none; }
  .sheet .sheet-hero { display: block; padding: 0 0 .65rem; border: 0; border-bottom: 1px solid #aaa; background: white; }
  .sheet h1 { font-size: 22pt; line-height: 1.1; }
  .sheet-subtitle { margin: .3rem 0 0; }
  .sheet-body { padding: .75rem 0 0; font-size: 10.5pt; line-height: 1.35; }
  .sheet-body h2 { margin-bottom: .55rem; font-size: 15pt; }
  .sheet-body section { break-inside: avoid; }
  .sheet-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .sheet-facts > div { padding: .45rem .6rem; border: 1px solid #aaa; }
  .sheet-facts > div:last-child:nth-child(5) { grid-column: 1 / -1; }
  .sheet-application { margin-top: .8rem; padding: .65rem; border-color: #aaa; background: white; }
  .sheet-application li + li { margin-top: .3rem; }
}
@media (max-width: 425px) {
  .fields { grid-template-columns: 1fr; gap: 0; }
  .header .brand small { display: block; }
  .project-card figcaption { padding-inline: .65rem; }
}
@media (max-width: 475px) {
  .sheet-facts { grid-template-columns: 1fr; }
  .sheet-facts > div:last-child:nth-child(5) { grid-column: auto; }
  .sheet-actions .button { width: 100%; }
}

/* ===== Mejoras 2026-12: contacto, filtros, tonos, calculadora, footer ===== */
.hero-kicker { display: flex; align-items: center; gap: .7rem; margin-bottom: .85rem; font-size: .88rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hero-kicker img { width: 2.6rem; height: 2.6rem; object-fit: contain; flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.15rem; }
.hero-actions .button { min-height: 48px; }
.wood-guide-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.1rem; }
.wood-guide .wood-guide-actions .choice-link { margin-top: 0; }
.hero-carousel-controls button { width: 2.75rem; height: 2.75rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 1.4rem; }
.filter-btn { min-height: 44px; padding: .45rem .95rem; border: 1px solid #cfc8b4; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 650; font-size: .9rem; }
.filter-btn:hover { background: #fff5ce; }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dialog-title { font: 750 1.35rem/1.2 "Aptos", "Segoe UI", sans-serif; }
.dialog-nav { display: flex; justify-content: space-between; gap: .6rem; padding: 0 1rem 1rem; }
.dialog-nav button { min-height: 44px; min-width: 44px; padding: .45rem 1rem; border: 1px solid #cfc8b4; border-radius: 5px; background: #fff; color: var(--ink); font-weight: 650; }
.dialog-nav button:hover { background: #fff5ce; }
.dialog-nav[hidden] { display: none; }
.tone-section { margin-top: 1.75rem; }
.tone-section > p { color: var(--muted); font-size: .9rem; max-width: 66ch; }
.tone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .75rem; margin-top: 1rem; }
.tone-card { display: block; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; }
.tone-card:hover { border-color: #b9ad8c; }
.tone-swatch { display: block; height: 4.4rem; background:
  repeating-linear-gradient(98deg, #ffffff14 0 2px, #0000 2px 9px),
  repeating-linear-gradient(92deg, #00000014 0 1px, #0000 1px 14px),
  var(--tone, #a0672a); }
.tone-name { display: block; padding: .55rem .7rem .15rem; font-weight: 750; font-size: .92rem; }
.tone-cta { display: block; padding: 0 .7rem .65rem; font-size: .8rem; color: var(--muted); }
.contact-card { margin-top: 1.4rem; padding: 1rem 1.15rem; border: 1px solid #797c69; border-left: 4px solid var(--gold); border-radius: 6px; color: #e3ddcd; font-size: .94rem; }
.contact-card p + p { margin-top: .4rem; }
.contact-card a { color: #fff9eb; }
.calc-estimate { margin: 0 0 .9rem; padding: .85rem 1rem; border-left: 4px solid var(--gold); border-radius: 5px; background: #33322a; color: #fff9eb; font-size: .92rem; }
.calc-estimate[hidden] { display: none; }
.calc-estimate strong { color: var(--gold); }
.quote .actions, #resultado .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .65rem; }
.quote .button.wa { background: #25d366; color: #0b2e18; }
.quote .button.wa:hover { background: #4be083; }
.quote a.button.light-outline { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem 2.5rem; padding-block: 2rem 1.25rem; font-size: .92rem; }
.footer-grid a { color: #f0ece0; }
.footer-grid .brand { margin-bottom: .65rem; }
.footer-title { margin-bottom: .55rem; font-weight: 750; color: var(--gold); text-transform: uppercase; letter-spacing: .07em; font-size: .8rem; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li + li { margin-top: .4rem; }
.footer-bottom { border-top: 1px solid #3a3f35; padding-block: .9rem 1.4rem; font-size: .82rem; color: #c9c4b3; }
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 4; display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .65rem 1.05rem; border: 2px solid var(--gold); border-radius: 999px; background: #191d17; color: #fff; font-weight: 720; font-size: .92rem; text-decoration: none; box-shadow: 0 6px 18px #0003; }
.wa-float:hover { background: #2b3226; }
.wa-float svg { width: 1.25rem; height: 1.25rem; fill: #25d366; flex: none; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
@media (max-width: 900px) {
  .nav { flex-wrap: nowrap; }
  .nav .brand { order: 0; }
  .nav .nav-cta { order: 1; margin-inline-start: auto; }
  .nav .nav-toggle { order: 2; }
  .nav .nav-links { order: 3; }
  .nav .button { padding: .5rem .75rem; font-size: .88rem; }
  .nav .brand { margin-inline-end: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .nav .brand > span { display: none; }
}
@media (max-width: 690px) {
  .hero-carousel-slides { min-height: 0; position: static; }
  .hero-photo { position: relative; inset: auto; }
  .hero-photo img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .hero-photo figcaption { position: static; width: auto; margin: 0; }
  .hero-carousel-controls { position: relative; left: auto; bottom: auto; justify-self: center; margin: .6rem 0; }
  .footer-grid { grid-template-columns: 1fr; padding-bottom: 1rem; }
  .footer-bottom { padding-bottom: 4.75rem; }
  .wa-float span { display: none; }
  .wa-float { padding: .65rem; }
}
@media print {
  .header, .footer, .wa-float, .sheet-actions { display: none !important; }
}
.project-dialog .dialog-title { margin-top: 0; color: var(--ink); }
.project-dialog .dialog-nav { display: flex; }
.project-dialog .dialog-nav[hidden] { display: none; }
.project-card[hidden] { display: none; }
.sheet { margin-top: 1.5rem; }

/* ===== Carrusel de portada: fundido suave ===== */
.hero-carousel { position: relative; border-radius: 8px; overflow: hidden; background: #25251f; }
.hero-carousel-slides { display: grid; position: relative; width: 100%; height: clamp(16rem, 45vw, 33rem); min-height: 0; }
.hero-photo { grid-area: 1 / 1; position: relative; inset: auto; min-width: 0; min-height: 0; overflow: hidden; background: #25251f; opacity: 0; visibility: hidden; pointer-events: none; z-index: 0; transition: opacity .9s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .9s; }
.hero-photo.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; transition: opacity .9s cubic-bezier(.22, 1, .36, 1), visibility 0s linear 0s; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transform: scale(1.035); transition: transform 5.8s cubic-bezier(.22, 1, .36, 1); }
.hero-photo.is-active img { transform: scale(1); }
.hero-photo figcaption { opacity: 0; transform: translateY(.35rem); transition: opacity .55s ease .12s, transform .55s ease .12s; }
.hero-photo.is-active figcaption { opacity: 1; transform: translateY(0); }
.hero-carousel-controls { z-index: 3; }
.hero-carousel-controls button::before { width: .55rem; height: .55rem; border-radius: 999px; transition: width .35s ease, background-color .35s ease, border-color .35s ease; }
.hero-carousel-controls button[aria-current="true"]::before { width: 1.45rem; border-color: var(--gold); background: var(--gold); }
.hero-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0 0 .15rem; border: 1px solid #ffffff38; border-radius: 50%; background: #25251fcc; color: #fff; font-size: 1.7rem; line-height: 1; }
.hero-arrow[hidden] { display: none; }
.hero-arrow.prev { left: .75rem; }
.hero-arrow.next { right: .75rem; }
.hero-arrow:hover { border-color: var(--gold); background: #25251f; }
.hero-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 690px) {
  .hero-carousel-slides { height: auto; }
  .hero-photo { display: flex; flex-direction: column; }
  .hero-photo img { position: static; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .hero-photo figcaption { position: static; width: auto; margin: 0; min-height: 4.3rem; }
  .hero-arrow { top: calc((100% - 4.3rem) / 2); }
  .hero-carousel-controls { position: relative; left: auto; bottom: auto; justify-self: center; margin: .6rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-photo.is-active, .hero-photo img, .hero-photo figcaption, .hero-carousel-controls button::before { transition: none; }
  .hero-photo img { transform: none; }
}

/* ===== Datos personales y aviso legal ===== */
.consent-check { display: flex; align-items: flex-start; gap: .6rem; margin: .25rem 0 .95rem; font-weight: 500; font-size: .88rem; line-height: 1.4; color: #f0ece0; }
.consent-check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; padding: 0; accent-color: var(--gold); }
.consent-check a { color: #fff9eb; }
.footer-legal { display: block; margin-top: .35rem; }
.footer-bottom a, .footer-legal a { color: #f0ece0; }
.legal { width: min(90%, 860px); margin: 2.25rem auto 3.5rem; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: .5rem; }
.legal h2 { margin: 2rem 0 .6rem; font-family: inherit; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 760; letter-spacing: -.02em; line-height: 1.2; }
.legal p, .legal ul { margin: 0 0 .85rem; }
.legal ul { padding-inline-start: 1.25rem; }
.legal li + li { margin-top: .4rem; }
.legal .updated { color: var(--muted); font-size: .9rem; }
