/* Construcciones Newen
   Identidad: azul marino y rojo del logo; cortes en diagonal y etiquetas inclinadas del catálogo 2026.
   Tipografía: Archivo (variable). Titulares condensados, pesados y en cursiva, como el catálogo; texto en ancho normal.
   Radios: tarjetas e imágenes 8px, botones y campos 6px. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-italic.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

:root {
  --bg: #f3f4f8;
  --bg-2: #e7eaf2;
  --surface: #ffffff;
  --ink: #0a1330;
  --muted: #4b5472;
  --line: #d3d8e6;
  --navy: #001038;          /* azul del logo */
  --navy-2: #0c1f5a;
  --on-navy: #f2f4fb;
  --on-navy-muted: #aeb7d6;
  --red: #d90d0d;           /* rojo del logo: acción principal */
  --red-hover: #f01818;
  --red-text: #c00b0b;      /* rojo legible como texto sobre claro */
  --danger: #b3261e;
  --shadow: 0 20px 44px -24px rgba(0, 16, 56, .5);
  --r-card: 8px;
  --r-ctl: 6px;
  --nav-h: 70px;
  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --z-nav: 50; --z-float: 60; --z-modal: 100;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050a1c; --bg-2: #0a1230; --surface: #0e1a42; --ink: #eef1fa; --muted: #a5aeca; --line: #1f2d5e;
    --navy: #000b28; --red-text: #ff6f63; --danger: #ff8b7e; --shadow: 0 20px 44px -24px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #050a1c; --bg-2: #0a1230; --surface: #0e1a42; --ink: #eef1fa; --muted: #a5aeca; --line: #1f2d5e;
  --navy: #000b28; --red-text: #ff6f63; --danger: #ff8b7e; --shadow: 0 20px 44px -24px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Archivo", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-stretch: 68%; font-weight: 800; font-style: italic; text-transform: uppercase; line-height: .98; letter-spacing: .005em; }
h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
h1 em, h2 em { font-style: inherit; color: var(--red-text); }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red-hover); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--tint { background: var(--bg-2); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy .lead { color: var(--on-navy-muted); }
.section--navy h2 em { color: var(--red-on-navy, #ff4a40); }
.lead { color: var(--muted); max-width: 62ch; margin-top: 1rem; font-size: 1.1rem; }
/* Etiqueta inclinada, tomada de los rótulos de molde del catálogo */
.tag { display: inline-block; background: var(--red); color: var(--on-red, #fff); font-stretch: 75%; font-weight: 800; font-style: italic; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; padding: .34rem 1.1rem .3rem .9rem; margin-bottom: 1.1rem; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .7rem 1.4rem; border-radius: var(--r-ctl); border: 2px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary { background: var(--red); color: var(--on-red, #fff); box-shadow: 0 12px 26px -14px rgba(217, 13, 13, .95); }
.btn--primary:hover { background: var(--red-hover); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { border-color: color-mix(in srgb, var(--on-navy) 70%, transparent); color: var(--on-navy); background: transparent; }
.btn--light:hover { background: var(--on-navy); color: var(--navy); border-color: var(--on-navy); }
.btn--sm { min-height: 44px; padding: .45rem 1rem; font-size: .93rem; }
.link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--red-text); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link i { transition: transform .25s var(--ease); }
.link:hover i { transform: translateX(3px); }
.after-grid { margin-top: 2.25rem; }

/* Navegación: siempre azul marino, como la cabecera del catálogo */
.nav { position: sticky; top: 0; z-index: var(--z-nav); height: var(--nav-h); background: var(--navy); color: var(--on-navy); border-bottom: 3px solid var(--red); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--red); }
.brand span { font-stretch: 75%; font-weight: 800; font-size: 1.35rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1; }
.brand small { display: block; font-stretch: 100%; font-weight: 500; font-size: .66rem; letter-spacing: .16em; color: var(--on-navy-muted); margin-bottom: .2rem; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--on-navy-muted); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"], .nav__links a.is-here { color: var(--on-navy); }
.nav__links a.is-here { box-shadow: 0 2px 0 var(--red-on-navy, #ff4a40); }
.nav__right { display: flex; align-items: center; gap: .7rem; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-ctl); border: 1px solid color-mix(in srgb, var(--on-navy) 30%, transparent); background: transparent; color: var(--on-navy); font-size: 1.3rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { border-color: #fff; }
.nav__toggle { display: none; }
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { position: absolute; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 3px solid var(--red); padding: .25rem 1.25rem 1rem; display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: .95rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(242, 244, 251, .14); }
}
@media (max-width: 560px) { .brand span { display: none; } .nav__right { gap: .45rem; } }

/* Hero: bloque azul con la foto cortada en diagonal y la franja roja de la portada del catálogo */
.hero { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; isolation: isolate; }
.hero__in { position: relative; z-index: 2; min-height: min(86dvh, 760px); display: flex; align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero__copy { width: min(100%, 610px); }
.hero h1 em { color: var(--red-on-navy, #ff3b30); }
.hero__sub { font-size: 1.18rem; color: var(--on-navy-muted); max-width: 44ch; margin-top: 1.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; margin: 2.75rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid color-mix(in srgb, var(--on-navy) 20%, transparent); }
.hero__stats strong { display: block; font-stretch: 68%; font-weight: 800; font-style: italic; font-size: 2.3rem; line-height: 1; }
.hero__stats span { font-size: .88rem; color: var(--on-navy-muted); }
.hero__photo, .hero__slash { position: absolute; top: 0; bottom: 0; right: 0; width: 50%; }
.hero__photo { z-index: 1; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__slash { z-index: 0; background: var(--red); translate: -18px 0; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
@media (max-width: 960px) {
  .hero__in { min-height: 0; padding-bottom: 2.5rem; }
  .hero__photo, .hero__slash { position: relative; width: 100%; height: 64vw; max-height: 440px; }
  .hero__photo { clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%); }
  .hero__slash { position: absolute; top: auto; bottom: 0; translate: 0 -10px; clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%); }
  .hero__media { position: relative; }
}

/* Franja de ventajas */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { display: flex; align-items: center; gap: .9rem; padding: 1.5rem 1.25rem; line-height: 1.3; }
.facts li + li { border-left: 1px solid var(--line); }
.facts i { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--navy-2); color: #fff; font-size: 1.4rem; display: inline-flex; align-items: center; justify-content: center; }
.facts strong { display: block; font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; }
.facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .facts ul { grid-template-columns: 1fr 1fr; } .facts li:nth-child(3) { border-left: 0; } .facts li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .facts ul { grid-template-columns: 1fr; } .facts li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* Servicios */
.services { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1.25rem; margin-top: 2.75rem; }
.svc-main { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.svc-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.svc-main::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 11, 40, .94) 12%, rgba(0, 11, 40, .45) 55%, rgba(0, 11, 40, .05)); }
.svc-main__body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.svc-main h3, .svc h3 { font-stretch: 72%; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.7rem; line-height: 1.05; }
.svc-main p { margin-top: .6rem; max-width: 52ch; color: #dfe4f3; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.chips li { padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); font-size: .86rem; font-weight: 600; }
.svc-side { display: grid; gap: 1.25rem; }
.svc { border-radius: var(--r-card); padding: 1.75rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 215px; }
.svc i { font-size: 2.1rem; margin-bottom: auto; padding-bottom: 1.25rem; }
.svc p { margin-top: .5rem; font-size: .99rem; }
.svc--navy { background: var(--navy-2); color: var(--on-navy); }
.svc--navy i { color: var(--red-on-navy, #ff5a50); }
.svc--navy p { color: var(--on-navy-muted); }
.svc--line { border: 1px solid var(--line); background: var(--surface); border-left: 5px solid var(--red); }
.svc--line i { color: var(--red-text); }
.svc--line p { color: var(--muted); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } .svc-main { min-height: 400px; } }

/* Tarjeta de molde (landing y catálogo) */
.mold { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.mold:hover { border-color: var(--navy-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.mold__img { display: block; width: 100%; padding: 0; border: 0; background: var(--navy); cursor: zoom-in; overflow: hidden; }
.mold__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease); }
.mold:hover .mold__img img { transform: scale(1.05); }
.mold__body { padding: .8rem .95rem 1rem; display: grid; gap: .1rem; flex: 1; align-content: start; }
.mold strong { font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; }
.mold span { color: var(--muted); font-size: .9rem; min-height: 1.45em; }
.mold__act { margin-top: .5rem; font-size: .9rem; font-weight: 700; }
.mold__act a { color: var(--red-text); text-underline-offset: 3px; display: inline-block; padding-block: .2rem; }

/* Carruseles */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.rail-ctl { display: flex; gap: .5rem; flex: none; }
.rail-ctl button { width: 48px; height: 48px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); font-size: 1.2rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s; }
.rail-ctl button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.rail { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 2.5rem; padding-block: .5rem 1rem; padding-inline: max(1.25rem, calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 min(70vw, 270px); scroll-snap-align: start; }
@media (max-width: 560px) { .rail-ctl { display: none; } }

/* Familias */
.fam { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.75rem; }
.fam a { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; background: var(--navy); }
.fam img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease); }
.fam a:hover img { transform: scale(1.06); }
.fam a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 11, 40, .92), rgba(0, 11, 40, 0) 58%); }
.fam__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1rem 1.1rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.fam__cap strong { font-stretch: 72%; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.35rem; line-height: 1.05; }
.fam__cap span { font-size: .82rem; font-weight: 700; white-space: nowrap; background: var(--red); color: var(--on-red, #fff); padding: .15rem .55rem; border-radius: 3px; }
@media (max-width: 960px) { .fam { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .fam { gap: .7rem; } .fam__cap { padding: .7rem; flex-direction: column; align-items: flex-start; gap: .35rem; } .fam__cap strong { font-size: 1.1rem; } }

/* Diseños circulares */
.circ { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.circ .btn { margin-top: 1.75rem; }
.circ__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.circ__grid figure { margin: 0; position: relative; border-radius: var(--r-card); overflow: hidden; }
.circ__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.circ__grid figcaption { position: absolute; left: 0; bottom: 0; background: var(--red); color: var(--on-red, #fff); font-stretch: 75%; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; padding: .25rem .95rem .2rem .6rem; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%); }
@media (max-width: 900px) { .circ { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .circ__grid { grid-template-columns: repeat(2, 1fr); } }

/* Carta de colores */
.colors { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; margin-top: 2.75rem; }
.swatch-view { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); isolation: isolate; }
.swatch-view img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.35); }
.swatch-view__tint { position: absolute; inset: 0; mix-blend-mode: multiply; background: var(--c, #8f562f); transition: background-color .45s var(--ease); }
.swatch-name { margin-top: 1rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.swatch-name strong { font-stretch: 72%; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.swatch-name span { color: var(--muted); font-size: .9rem; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.swatches button { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.swatches b { display: block; aspect-ratio: 1; border-radius: var(--r-card); background: var(--c); border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.swatches button:hover b { transform: translateY(-3px); }
.swatches button[aria-pressed="true"] b { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 6px var(--red); }
.swatches small { display: block; margin-top: .45rem; font-size: .8rem; font-weight: 600; line-height: 1.2; color: var(--muted); }
.note { color: var(--muted); font-size: .92rem; margin-top: 1.5rem; max-width: 60ch; }
@media (max-width: 860px) { .colors { grid-template-columns: 1fr; } .swatch-view { aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { .swatches { grid-template-columns: repeat(4, 1fr); } }

/* Proceso */
.steps { list-style: none; margin: 2.75rem 0 0; padding: 0; counter-reset: paso; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.steps li { counter-increment: paso; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--navy-2); border-radius: var(--r-card); padding: 1.5rem 1.4rem 1.7rem; }
.steps li::before { content: "0" counter(paso); display: block; font-stretch: 68%; font-weight: 800; font-style: italic; font-size: 3rem; line-height: 1; color: var(--red-text); margin-bottom: .9rem; }
.steps p { color: var(--muted); margin-top: .45rem; font-size: .98rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Galería de obras */
.gallery { columns: 3; column-gap: 1.1rem; margin-top: 2.75rem; }
.gallery button { position: relative; display: block; width: 100%; margin: 0 0 1.1rem; padding: 0; border: 0; background: var(--navy); cursor: zoom-in; border-radius: var(--r-card); overflow: hidden; break-inside: avoid; }
.gallery img { width: 100%; transition: transform .7s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .gallery { columns: 2; } }
@media (max-width: 480px) { .gallery { column-gap: .7rem; } .gallery button { margin-bottom: .7rem; } }

/* Preguntas */
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; color: var(--red-text); transition: transform .35s var(--ease); }
.faq details[open] summary i { transform: rotate(180deg); }
.faq p { color: var(--muted); padding-bottom: 1.4rem; max-width: 66ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Cotizar */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact a { display: flex; align-items: center; gap: 1rem; padding: .95rem 0; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--on-navy) 18%, transparent); }
.contact i { font-size: 1.6rem; color: var(--red-on-navy, #ff5a50); flex: none; }
.contact span { display: block; font-size: .85rem; color: var(--on-navy-muted); }
.contact strong { font-weight: 700; overflow-wrap: anywhere; }
.form { background: var(--surface); color: var(--ink); border-radius: var(--r-card); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; box-shadow: var(--shadow); }
.field { display: grid; gap: .45rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .7rem .9rem; border-radius: var(--r-ctl); border: 1.5px solid color-mix(in srgb, var(--ink) 34%, transparent); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--red) 45%, transparent); border-color: var(--red); }
.field small { color: var(--muted); font-size: .84rem; }
.field .err { color: var(--danger); font-size: .86rem; font-weight: 600; display: none; }
.field.is-invalid input { border-color: var(--danger); }
.field.is-invalid .err { display: block; }
.form .btn { grid-column: 1 / -1; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Pie */
.footer { background: color-mix(in srgb, var(--navy) 72%, #000); color: var(--on-navy); padding-block: 3.5rem 2rem; border-top: 3px solid var(--red); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer p { color: var(--on-navy-muted); margin-top: 1rem; max-width: 40ch; }
.footer h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer ul a:hover { text-decoration: underline; }
.footer .footer__bottom { max-width: none; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(242, 244, 251, .16); font-size: .88rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* Botón flotante de WhatsApp */
.wa { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: var(--z-float); width: 60px; height: 60px; border-radius: 50%; background: #0e7a3a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); transition: transform .3s var(--ease); }
.wa:hover { transform: translateY(-3px) scale(1.04); }

/* Visor de imágenes */
.lb { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(0, 6, 24, .94); display: none; align-items: center; justify-content: center; padding: 1rem; }
.lb.is-open { display: flex; }
.lb figure { margin: 0; display: grid; justify-items: center; gap: .7rem; max-width: min(100%, 1100px); }
.lb img { max-width: 100%; max-height: calc(100dvh - 7.5rem); border-radius: var(--r-card); object-fit: contain; }
.lb figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; color: #fff; font-size: .95rem; text-align: center; }
.lb__n { font-weight: 700; font-variant-numeric: tabular-nums; opacity: .7; }
.lb__n:empty, .lb__cap:empty { display: none; }
.lb .lb__cta { position: static; width: auto; height: auto; border-radius: var(--r-ctl); background: var(--red); font-size: .93rem; }
.lb .lb__cta:hover { background: var(--red-hover); }
.lb [hidden] { display: none; }
.lb button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.4rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb button:hover { background: var(--red); }
.lb__close { top: 1rem; right: 1rem; }
.lb__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb__next { right: 1rem; top: 50%; translate: 0 -50%; }

/* Aparición al hacer scroll */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

/* Página de catálogo */
.cat-head { background: var(--navy); color: var(--on-navy); padding-block: clamp(2.5rem, 5vw, 4rem); }
.cat-head .lead { color: var(--on-navy-muted); }
.cat-tools { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; align-items: center; }
.search { position: relative; flex: 1 1 280px; max-width: 440px; }
.search i { position: absolute; left: .9rem; top: 50%; translate: 0 -50%; font-size: 1.2rem; color: #4b5472; pointer-events: none; }
.search input { width: 100%; min-height: 50px; padding: .7rem .9rem .7rem 2.7rem; border-radius: var(--r-ctl); border: 2px solid transparent; background: #fff; color: #0a1330; font: inherit; }
.search input::placeholder { color: #5b6480; }
.search input:focus { outline: 3px solid rgba(255, 90, 80, .6); border-color: var(--red); }
.tabs { position: sticky; top: var(--nav-h); z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tabs ul { list-style: none; margin: 0; padding: .7rem 0; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a { display: block; padding: .5rem 1rem; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.tabs a:hover, .tabs a.is-on { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.family { padding-block: clamp(2.5rem, 5vw, 3.75rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 70px); }
.family__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.family__head span { color: var(--muted); font-weight: 600; }
.molds { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 1rem; }
@media (max-width: 520px) { .molds { grid-template-columns: 1fr 1fr; gap: .7rem; } .mold__body { padding: .65rem .7rem .8rem; } .mold strong { font-size: .95rem; } }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; margin-top: 2rem; }
.pages button { padding: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--navy); cursor: zoom-in; }
.pages img { width: 100%; transition: transform .6s var(--ease); }
.pages button:hover img { transform: scale(1.05); }
.empty { display: none; padding: 4rem 0; text-align: center; }
.empty.is-on { display: block; }
.empty i { font-size: 2.6rem; color: var(--muted); }
.empty p { color: var(--muted); margin-top: .5rem; }
.cta-band { background: var(--navy); color: var(--on-navy); border-radius: var(--r-card); border-left: 8px solid var(--red); padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band p { color: var(--on-navy-muted); margin-top: .6rem; max-width: 52ch; }
@media (max-width: 560px) { .hero__stats { gap: .75rem 1.3rem; margin-top: 2rem; } .hero__stats strong { font-size: 1.9rem; } .hero__stats span { font-size: .8rem; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Conversión: sellos de confianza, CTA contextuales, testimonios, formulario corto y barra móvil */
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.25rem 0 0; padding: 0; font-size: .93rem; font-weight: 600; color: var(--on-navy); }
.hero__trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust i { color: #4ade80; font-size: 1.15rem; }
.swatch-cta { margin-top: 1.5rem; }
#obras .cta-band { margin-top: 3rem; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.testi { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.1rem; margin-top: 2.5rem; }
.testi figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--r-card); padding: 1.5rem; }
.testi blockquote { margin: 0; font-size: 1.05rem; }
.testi figcaption { margin-top: 1rem; display: flex; gap: .6rem; align-items: baseline; }
.testi figcaption span { color: var(--muted); font-size: .9rem; }
.more { border: 1.5px dashed color-mix(in srgb, var(--ink) 28%, transparent); border-radius: var(--r-ctl); }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; font-weight: 700; }
.more summary::-webkit-details-marker { display: none; }
.more summary span { font-weight: 500; color: var(--muted); }
.more summary i { font-size: 1.25rem; color: var(--red-text); transition: transform .3s var(--ease); }
.more[open] summary i { transform: rotate(45deg); }
.more__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; padding: .25rem 1rem 1.1rem; }
@media (max-width: 560px) { .more__grid { grid-template-columns: 1fr; } }
.form__trust { grid-column: 1 / -1; display: flex; gap: .45rem; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.form__trust i { font-size: 1.05rem; margin-top: .15rem; }
.btn--wa { background: #0e7a3a; color: #fff; }
.btn--wa:hover { background: #109447; }
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-float); display: grid; grid-template-columns: 1fr 1.25fr; gap: .6rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--navy); border-top: 3px solid var(--red); transition: transform .35s var(--ease); }
  .mbar.is-off { transform: translateY(110%); }
  .mbar .btn { min-height: 48px; padding-inline: .5rem; }
  .wa { display: none; }
  body { padding-bottom: 74px; }
}

/* Comparativa, qué incluye, reseñas y comunas */
.cmp { margin-top: 2.5rem; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.cmp__row { display: grid; grid-template-columns: 1.05fr 1.3fr 1fr 1fr; }
.cmp__row + .cmp__row { border-top: 1px solid var(--line); }
.cmp__row > * { padding: 1rem 1.1rem; display: flex; align-items: center; gap: .5rem; }
.cmp__head strong { font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: .95rem; }
.cmp__c { font-weight: 700; }
.cmp .is-us { background: color-mix(in srgb, var(--navy) 100%, transparent); color: var(--on-navy); font-weight: 600; }
.cmp .is-us i { color: #4ade80; font-size: 1.2rem; flex: none; }
.cmp__row span:not(.is-us):not(.cmp__c) { color: var(--muted); }
@media (max-width: 760px) {
  .cmp__head { display: none; }
  .cmp__row { grid-template-columns: 1fr; padding: .4rem 0 .8rem; }
  .cmp__row > * { padding: .45rem 1rem; }
  .cmp__c { font-size: 1.05rem; padding-top: .8rem; }
  .cmp__row span[data-col] { flex-wrap: wrap; }
  .cmp__row span[data-col]::before { content: attr(data-col); flex-basis: 100%; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
  .cmp .is-us { margin: .2rem .75rem; border-radius: var(--r-ctl); }
}
.incluye { margin-top: 1.75rem; }
.incluye strong { font-stretch: 80%; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--on-navy-muted); }
.incluye ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.incluye li { display: flex; gap: .55rem; align-items: flex-start; }
.incluye i { color: #4ade80; font-size: 1.15rem; margin-top: .2rem; }
.comunas { margin-top: 1.25rem; color: var(--on-navy-muted); font-size: .95rem; }
.rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1.1rem; font-size: .95rem; text-decoration: none; color: inherit; }
.rating__s { color: #f5b301; letter-spacing: .08em; }
a.rating:hover { text-decoration: underline; }

/* Enlace para saltar al contenido con teclado */
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 200; padding: .7rem 1rem; border-radius: var(--r-ctl); background: var(--red); color: var(--on-red, #fff); font-weight: 700; text-decoration: none; }
.skip:focus { top: .75rem; }
.nf { min-height: 60dvh; display: flex; align-items: center; }
.nf h1 em { color: var(--red-on-navy, #ff3b30); }

/* Mi selección: corazón en cada molde y aviso flotante que lleva a cotizar */
.mold__fav { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 11, 40, .62); color: #fff; font-size: 1.3rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .25s var(--ease), background-color .2s; }
.mold__fav:hover { transform: scale(1.08); }
.mold__fav[aria-pressed="true"] { background: var(--red); color: var(--on-red, #fff); }
.sel { position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: var(--z-float); display: flex; align-items: stretch; border-radius: 999px; overflow: hidden; background: var(--navy); color: var(--on-navy); border: 2px solid var(--red); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); transition: transform .35s var(--ease), opacity .25s; }
.sel[hidden] { display: none; }
.sel.is-off { transform: translateY(160%); opacity: 0; pointer-events: none; }
.sel a { display: flex; align-items: center; gap: .55rem; padding: .55rem .5rem .55rem 1rem; text-decoration: none; font-size: .95rem; min-height: 48px; }
.sel a > i { font-size: 1.25rem; color: var(--red-on-navy, #ff5a50); }
.sel a strong { background: var(--red); color: var(--on-red, #fff); padding: .3rem .8rem; border-radius: 999px; font-size: .9rem; }
.sel button { width: 44px; border: 0; background: transparent; color: var(--on-navy-muted); cursor: pointer; font-size: 1rem; }
.sel button:hover { color: var(--on-navy); }
@media (max-width: 760px) { .sel { left: .75rem; bottom: calc(82px + env(safe-area-inset-bottom)); } }
.sel-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.sel-chips:empty { display: none; }
.sel-chips li { display: inline-flex; align-items: center; gap: .15rem; padding: .15rem .2rem .15rem .7rem; border-radius: 999px; background: var(--navy-2); color: #fff; font-size: .88rem; font-weight: 600; }
.sel-chips button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sel-chips button:hover { background: rgba(255, 255, 255, .18); }

/* Galería: filtro por tipo de espacio y rótulo de cada obra */
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.filtros[hidden] { display: none; }
.filtros + .gallery { margin-top: 1.5rem; }
.filtros button, .opt span { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .93rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.filtros button:hover, .opt:hover span { border-color: var(--navy-2); }
.filtros button[aria-pressed="true"], .opt input:checked + span { background: var(--red); border-color: var(--red); color: var(--on-red, #fff); }
.gallery__cap { position: absolute; left: 0; bottom: 0; background: var(--red); color: var(--on-red, #fff); font-stretch: 75%; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; padding: .25rem .95rem .2rem .6rem; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%); }

/* Antes y después */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.25rem; margin-top: 2.75rem; }
.ba { margin: 0; }
.ba__view { --p: 50%; position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); box-shadow: var(--shadow); }
.ba__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__antes { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba__l { position: absolute; top: .75rem; padding: .2rem .7rem; border-radius: 3px; background: rgba(0, 11, 40, .78); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ba__l--a { left: .75rem; }
.ba__l--d { right: .75rem; background: var(--red); color: var(--on-red, #fff); }
.ba__bar { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba__bar i { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #0a1330; font-size: 1.35rem; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .7); }
.ba__view input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba__view:has(input:focus-visible) { outline: 3px solid var(--red-hover); outline-offset: 3px; }
.ba figcaption { margin-top: .7rem; font-weight: 600; }

/* Formulario: opciones como botones, calculadora de superficie y confirmación */
.opts { border: 0; margin: 0; padding: 0; min-width: 0; }
.opts legend { padding: 0; font-weight: 700; font-size: .92rem; margin-bottom: .45rem; }
.opts__in { display: flex; flex-wrap: wrap; gap: .45rem; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.opt span { background: var(--bg); }
.opt input:focus-visible + span { outline: 3px solid var(--red-hover); outline-offset: 2px; }
.linkbtn { display: inline-flex; align-items: center; gap: .35rem; justify-self: start; min-height: 40px; padding: 0; border: 0; background: none; color: var(--red-text); font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.calc { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; }
.calc[hidden] { display: none; }
.form__done { display: none; grid-column: 1 / -1; justify-items: start; gap: .9rem; outline: 0; }
.form.is-done > :not(.form__done) { display: none; }
.form.is-done .form__done { display: grid; }
.form__done > i { font-size: 3rem; color: #0e7a3a; }
.form__done h3 { font-size: 1.5rem; }
.form__done ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .45rem; color: var(--muted); }
.form__done ol strong { color: var(--ink); }
.form__saved { padding: .7rem .9rem; border-radius: var(--r-ctl); background: var(--bg-2); font-size: .93rem; font-weight: 600; }
.form__saved[hidden] { display: none; }
.form__done .btn { justify-self: stretch; }

/* ===== Refinamiento visual: profundidad, trama de piso estampado, encabezados editoriales y terminaciones ===== */
:root {
  --shadow: 0 1px 2px rgba(0, 16, 56, .06), 0 18px 40px -18px rgba(0, 16, 56, .38);
  --shadow-lg: 0 2px 4px rgba(0, 16, 56, .06), 0 34px 70px -30px rgba(0, 16, 56, .55);
  /* Juntas de una sillería, como marca de agua sobre los fondos oscuros */
  --trama: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='150'%3E%3Cpath d='M0 .5H180M0 50.5H180M0 100.5H180M60.5 0V50M140.5 0V50M30.5 50V100M110.5 50V100M90.5 100V150M160.5 100V150' fill='none' stroke='%23fff' stroke-opacity='.075'/%3E%3C/svg%3E");
}
::selection { background: var(--red); color: var(--on-red, #fff); }
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.lead { font-size: 1.125rem; }

.section--navy, .footer, .cat-head, .cta-band { position: relative; isolation: isolate; }
.hero::before, .section--navy::before, .footer::before, .cat-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--trama); -webkit-mask-image: linear-gradient(115deg, #000, transparent 65%); mask-image: linear-gradient(115deg, #000, transparent 65%); pointer-events: none; }
.hero { background: radial-gradient(110% 90% at 0% 0%, var(--navy-2), transparent 62%), var(--navy); }

/* Encabezado de sección: título a la izquierda, texto de apoyo a la derecha */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.sec-head .tag { grid-column: 1 / -1; justify-self: start; }
.sec-head .lead { margin: 0; padding-bottom: .4rem; }
.sec-head h2:last-child { grid-column: 1 / -1; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } .sec-head .lead { margin-top: 1rem; padding: 0; } }

/* Botones y cabecera */
.btn { min-height: 52px; }
.btn--sm { min-height: 44px; }
.btn--primary { background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 55%); }
.btn .ph-arrow-right { transition: transform .25s var(--ease); }
.btn:hover .ph-arrow-right { transform: translateX(4px); }
.nav { transition: box-shadow .3s; }
.nav.is-stuck { box-shadow: 0 14px 32px -18px rgba(0, 0, 0, .75); }

/* Portada */
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 5.1rem); }
.hero__copy { width: min(100%, 640px); }
.hero__stats li + li { padding-left: 2.25rem; border-left: 1px solid color-mix(in srgb, var(--on-navy) 20%, transparent); }
.hero__photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgba(0, 8, 30, .72), transparent); }
.hero__note { position: absolute; right: 1.25rem; bottom: 1.25rem; z-index: 3; display: flex; align-items: center; gap: .65rem; max-width: min(360px, 40vw); padding: .65rem .9rem; border-radius: var(--r-card); border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 11, 40, .58); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: .84rem; line-height: 1.3; }
.hero__note i { flex: none; font-size: 1.35rem; color: var(--red-on-navy, #ff5a50); }
.hero__note strong { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
@media (max-width: 960px) { .hero__note { left: .9rem; right: auto; bottom: .9rem; max-width: calc(100% - 1.8rem); } }
@media (max-width: 560px) { .hero__stats li + li { padding-left: 1.3rem; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__photo img { animation: acerca 16s var(--ease) both; }
  @keyframes acerca { from { transform: scale(1.1); } }
}

/* Franja de obras reales */
.strip { background: var(--navy); overflow: hidden; padding: 1.1rem 0 1.5rem; border-top: 1px solid color-mix(in srgb, var(--on-navy) 12%, transparent); }
.strip[hidden] { display: none; }
.strip__track { display: flex; gap: .8rem; width: max-content; animation: cinta 80s linear infinite; }
.strip:hover .strip__track, .strip:focus-within .strip__track { animation-play-state: paused; }
.strip button { flex: none; height: clamp(104px, 13vw, 168px); padding: 0; border: 0; border-radius: var(--r-card); overflow: hidden; background: var(--navy-2); cursor: zoom-in; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.strip button:hover img { transform: scale(1.07); }
@keyframes cinta { to { transform: translateX(calc(-50% - .4rem)); } }
@media (prefers-reduced-motion: reduce) { .strip { overflow-x: auto; } .strip__track { animation: none; } }

/* Ventajas: tarjeta que monta sobre la franja */
.facts i { background: color-mix(in srgb, var(--red) 13%, transparent); color: var(--red-text); }
.strip:not([hidden]) + .facts { position: relative; z-index: 3; border: 0; background: linear-gradient(var(--navy) 0 2.75rem, transparent 2.75rem); }
.strip:not([hidden]) + .facts ul { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lg); overflow: hidden; }

/* Tarjetas */
.svc-main { box-shadow: var(--shadow-lg); }
.svc-main img { transition: transform 1.2s var(--ease); }
.svc-main:hover img { transform: scale(1.05); }
.fam a { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.fam a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cmp { box-shadow: var(--shadow); }
.cmp__head .is-us { box-shadow: inset 0 4px 0 var(--red); }
.testi figure { box-shadow: var(--shadow); }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--red-text); }
.form { border-top: 5px solid var(--red); box-shadow: var(--shadow-lg); }

/* Proceso: línea de tiempo con numerales al trazo */
.steps { gap: 2.25rem 0; }
.steps li { position: relative; background: none; border: 0; border-top: 2px solid var(--line); border-radius: 0; padding: 1.6rem 1.75rem 0 0; }
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 3.5rem; height: 2px; background: var(--red); }
.steps li::before { font-size: 3.7rem; color: transparent; -webkit-text-stroke: 1.5px var(--red-text); margin-bottom: 1rem; }

/* Galería y llamado con foto */
.gal-mas { margin-top: 1.25rem; text-align: center; }
.gal-mas:has([hidden]) { display: none; }
.cta-band--foto { overflow: hidden; padding: clamp(2.25rem, 5vw, 4rem); box-shadow: var(--shadow-lg); }
.cta-band--foto::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--foto, none) center / cover; }
.cta-band--foto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--navy) 38%, color-mix(in srgb, var(--navy) 50%, transparent)); }

/* Sobre nosotros: manifiesto sobre fondo oscuro, mosaico de obras con sello, línea de tiempo y dudas respondidas */
#nosotros h2 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about .lead + .lead { margin-top: .9rem; }
.about__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }
.about__fotos { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: .8rem; aspect-ratio: 1 / 1; }
.about__fotos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--r-card); }
.about__fotos img:first-of-type { grid-row: 1 / -1; }
.about__fotos[data-n="2"] { grid-template-rows: 1fr; aspect-ratio: 4 / 3; }
.about__fotos[data-n="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 4 / 3; }
.about__sello { position: absolute; left: -.6rem; top: 1.6rem; display: grid; gap: .15rem; padding: .85rem 1.9rem .75rem 1.1rem; background: var(--red); color: var(--on-red, #fff); clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); }
.about__sello strong { font-stretch: 68%; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 2.3rem; line-height: 1; }
.about__sello span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hitos { list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.hitos li { position: relative; padding: 1.6rem 1.5rem 0 0; border-top: 2px solid color-mix(in srgb, var(--on-navy) 22%, transparent); }
.hitos li::before { content: ""; position: absolute; left: 0; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 28%, transparent); }
.hitos strong { display: block; font-stretch: 68%; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 2.4rem; line-height: 1; color: var(--red-on-navy, #ff4a40); margin-bottom: .5rem; }
.hitos span { color: var(--on-navy-muted); font-size: .98rem; }
.dudas__t { margin-top: clamp(3rem, 6vw, 4.5rem); font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--on-navy-muted); }
.dudas { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.dudas li { padding: 1.6rem 1.5rem 1.7rem; border-radius: var(--r-card); border: 1px solid color-mix(in srgb, var(--on-navy) 16%, transparent); background: color-mix(in srgb, var(--on-navy) 6%, transparent); }
.dudas i { font-size: 1.9rem; color: var(--red-on-navy, #ff5a50); }
.dudas strong { display: block; margin-top: .8rem; font-stretch: 78%; font-weight: 800; font-style: italic; font-size: 1.45rem; line-height: 1.15; }
.dudas p { margin-top: .6rem; color: var(--on-navy-muted); font-size: .99rem; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .hitos { grid-auto-flow: row; margin-left: 7px; }
  .hitos li { border-top: 0; border-left: 2px solid color-mix(in srgb, var(--on-navy) 22%, transparent); padding: 0 0 1.6rem 1.5rem; }
  .hitos li:last-child { padding-bottom: 0; }
  .hitos li::before { left: -8px; top: 4px; }
  .hitos strong { font-size: 2rem; }
}

/* Páginas interiores y ajustes de la portada corta */
#nosotros h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
#nosotros h1 em { color: var(--red-on-navy, #ff4a40); }
.after-grid--btns { margin-top: 2.5rem; text-align: center; }
.dudas { margin-top: 2.75rem; }
main > .section:first-child { padding-top: clamp(3rem, 6vw, 5rem); }

/* El encabezado principal de la portada lleva la palabra clave dentro, con el aspecto de la etiqueta */
.hero h1 .tag { display: table; font-size: .82rem; line-height: 1.6; }
.hero__h { display: block; }
/* Páginas de servicio */
.pg-head .lead { max-width: 60ch; }
.pg-head h1 { max-width: 20ch; }
.migas { display: flex; align-items: center; gap: .4rem; margin-bottom: 1.4rem; font-size: .9rem; color: var(--on-navy-muted); }
.migas a { color: inherit; }
.migas i { font-size: .8rem; }
.pg-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.pg-txt h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.pg-txt h2:not(:first-child) { margin-top: 2.5rem; }
.pg-txt p { margin-top: .9rem; color: var(--muted); font-size: 1.1rem; max-width: 64ch; }
.pg-lado { position: sticky; top: calc(var(--nav-h) + 1.5rem); padding: 1.75rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--red); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.pg-lado > strong { font-stretch: 80%; text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; color: var(--muted); }
.pg-lado ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.pg-lado li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
.pg-lado li i { color: #0e7a3a; font-size: 1.25rem; margin-top: .15rem; flex: none; }
.pg-otras { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.pg-otras a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; transition: border-color .2s, transform .25s var(--ease); }
.pg-otras a:hover { border-color: var(--red); transform: translateY(-2px); }
.pg-otras i { color: var(--red-text); }
.chips a { color: inherit; text-decoration: none; }
.chips li:has(a) { transition: background-color .2s; }
.chips li:has(a):hover { background: rgba(255, 255, 255, .18); }
.svc__mas { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; font-weight: 700; color: inherit; text-underline-offset: 3px; }
@media (max-width: 900px) { .pg-body { grid-template-columns: 1fr; } .pg-lado { position: static; } }

/* Calculadora de precio */
.calc2 { margin-top: 2.75rem; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.calc2__in { padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: 1.25rem; align-content: center; }
.calc2__in > label { font-weight: 700; font-size: 1.15rem; }
.calc2__num { display: flex; align-items: baseline; gap: .6rem; }
.calc2__num input { width: 7.5ch; padding: .2rem .5rem; border: 0; border-bottom: 3px solid var(--red); border-radius: 0; background: none; color: var(--ink); font: inherit; font-stretch: 68%; font-weight: 800; font-style: italic; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; -moz-appearance: textfield; appearance: textfield; }
.calc2__num input::-webkit-outer-spin-button, .calc2__num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc2__num input:focus { outline: 0; border-color: var(--red-hover); }
.calc2__num span { font-size: 1.5rem; font-weight: 700; color: var(--muted); }
.calc2 input[type="range"] { width: 100%; accent-color: var(--red); height: 28px; }
.calc2__chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.calc2__chips button { min-height: 40px; padding: .3rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 600; font-size: .92rem; cursor: pointer; }
.calc2__chips button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--on-red, #fff); }
.calc2__lw { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--muted); font-size: .93rem; }
.calc2__lw input { width: 8.5ch; min-height: 40px; padding: .3rem .6rem; border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: .93rem; }
.calc2__out { padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--navy); color: var(--on-navy); display: grid; gap: .7rem; align-content: center; }
.calc2__k { font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--on-navy-muted); }
.calc2__out strong { font-stretch: 68%; font-weight: 800; font-style: italic; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; }
.calc2__out strong small { font-size: .38em; font-style: normal; font-stretch: 90%; color: var(--on-navy-muted); }
.calc2__out p { color: var(--on-navy-muted); }
.calc2__tip { display: inline-flex; justify-self: start; padding: .35rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--on-navy) 12%, transparent); color: var(--on-navy) !important; font-size: .92rem; font-weight: 600; }
.calc2__tip[hidden] { display: none; }
.calc2__btns { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .8rem; }
.calc2__out > small { color: var(--on-navy-muted); font-size: .84rem; margin-top: .4rem; }
@media (max-width: 820px) { .calc2 { grid-template-columns: 1fr; } }
.svc .svc__mas i { font-size: 1rem; margin: 0; padding: 0; color: inherit; }
.calc2__lw input { width: 11ch; }

/* Calculadora: tabla de tramos, con el tramo activo y los sellos de recomendado y mejor valor */
.calc2__tabla { grid-column: 1 / -1; padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line); background: var(--bg); }
.calc2__tabla > strong { font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; }
.calc2__tabla > strong span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: .4rem; }
.calc2__tabla ol { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: .6rem; }
.calc2__tabla button { position: relative; width: 100%; height: 100%; display: grid; gap: .1rem; justify-items: start; align-content: start; padding: .8rem .85rem .9rem; text-align: left; border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.calc2__tabla button:hover { border-color: var(--navy-2); transform: translateY(-2px); }
.calc2__tabla button.is-on { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.calc2__tabla button span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.calc2__tabla button b { font-stretch: 72%; font-weight: 800; font-style: italic; font-size: 1.45rem; line-height: 1.1; }
.calc2__tabla button small { font-size: .78rem; color: var(--muted); }
.calc2__tabla em { margin-top: .45rem; font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .12rem .5rem; border-radius: 4px; background: var(--red); color: var(--on-red, #fff); }
.calc2__tabla em.is-baja { background: color-mix(in srgb, #0e7a3a 16%, transparent); color: #12773d; }
:root[data-theme="dark"] .calc2__tabla em.is-baja { color: #6ee7a0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc2__tabla em.is-baja { color: #6ee7a0; } }
.calc2__tabla > p { display: flex; gap: .5rem; align-items: flex-start; margin-top: 1.1rem; color: var(--muted); font-size: .95rem; }
.calc2__tabla > p i { font-size: 1.2rem; color: var(--red-text); margin-top: .1rem; }
.calc2__tabla em { font-size: .66rem; white-space: nowrap; padding-inline: .4rem; }
/* El catálogo se arma con JavaScript: se reserva el alto para que lo de abajo no salte al cargar */
#familias { min-height: 100vh; }
/* Formulario: dos formas de terminar (WhatsApp o que te llamen) */
.form__btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; gap: .7rem; }
.form .form__btns .btn { grid-column: auto; padding-inline: .8rem; }
.form__error { grid-column: 1 / -1; padding: .7rem .9rem; border-radius: var(--r-ctl); background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-weight: 600; font-size: .93rem; }
.form__error[hidden] { display: none; }
.field .opc { font-weight: 500; color: var(--muted); }
.form.is-done .form__done { display: none; }
.form.is-done[data-via="whatsapp"] .form__done--wa, .form.is-done[data-via="llamada"] .form__done--llamada { display: grid; }
@media (max-width: 560px) { .form__btns { grid-template-columns: 1fr; } }
/* Calculadora: datos de contacto en el mismo lugar */
.calc2__form { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .8rem; }
.calc2__form[hidden], .calc2__ok[hidden], .calc2__err[hidden], .calc2__btns [hidden] { display: none; }
.calc2__form label:first-of-type { grid-column: 1 / -1; }
.calc2__form input { width: 100%; min-height: 50px; padding: .7rem .9rem; border-radius: var(--r-ctl); border: 1.5px solid color-mix(in srgb, var(--on-navy) 35%, transparent); background: color-mix(in srgb, var(--on-navy) 8%, transparent); color: var(--on-navy); font: inherit; }
.calc2__form input::placeholder { color: var(--on-navy-muted); }
.calc2__form input:focus { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); border-color: var(--red); }
.calc2__form input[aria-invalid="true"] { border-color: #ff8b7e; }
.calc2__form .btn, .calc2__err { grid-column: 1 / -1; }
.calc2__err { color: #ff8b7e !important; font-weight: 600; font-size: .92rem; }
.calc2__ok { display: flex; gap: .6rem; align-items: flex-start; margin-top: .8rem; padding: .9rem 1rem; border-radius: var(--r-ctl); background: color-mix(in srgb, #4ade80 16%, transparent); color: var(--on-navy) !important; font-weight: 600; outline: 0; }
.calc2__ok i { color: #4ade80; font-size: 1.4rem; flex: none; }
@media (max-width: 480px) { .calc2__form { grid-template-columns: 1fr; } }
/* ICONOS:inicio (generado por _src/optimiza.py) */
@font-face { font-family: "Iconos"; src: url("../fonts/iconos.woff2") format("woff2"); font-display: block; }
.ph { font-family: "Iconos" !important; speak: never; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; letter-spacing: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.ph-arrow-left:before { content: "\e058"; }
.ph-arrow-right:before { content: "\e06c"; }
.ph-arrow-up-right:before { content: "\e092"; }
.ph-arrows-horizontal:before { content: "\eb06"; }
.ph-calculator:before { content: "\e538"; }
.ph-camera:before { content: "\e10e"; }
.ph-caret-down:before { content: "\e136"; }
.ph-caret-left:before { content: "\e138"; }
.ph-caret-right:before { content: "\e13a"; }
.ph-certificate:before { content: "\e766"; }
.ph-check:before { content: "\e182"; }
.ph-check-circle:before { content: "\e184"; }
.ph-circles-three:before { content: "\e192"; }
.ph-clock:before { content: "\e19a"; }
.ph-currency-circle-dollar:before { content: "\e54c"; }
.ph-diamond:before { content: "\e1ec"; }
.ph-download-simple:before { content: "\e20c"; }
.ph-drop:before { content: "\e210"; }
.ph-envelope-simple:before { content: "\e218"; }
.ph-facebook-logo:before { content: "\e226"; }
.ph-footprints:before { content: "\ea88"; }
.ph-handshake:before { content: "\e582"; }
.ph-heart:before { content: "\e2a8"; }
.ph-house-line:before { content: "\e2c4"; }
.ph-instagram-logo:before { content: "\e2d0"; }
.ph-lightbulb:before { content: "\e2dc"; }
.ph-list:before { content: "\e2f0"; }
.ph-lock-simple:before { content: "\e308"; }
.ph-magnifying-glass:before { content: "\e30c"; }
.ph-map-pin:before { content: "\e316"; }
.ph-medal:before { content: "\e320"; }
.ph-moon:before { content: "\e330"; }
.ph-paint-brush:before { content: "\e6f0"; }
.ph-phone:before { content: "\e3b8"; }
.ph-plus-circle:before { content: "\e3d6"; }
.ph-ruler:before { content: "\e6b8"; }
.ph-shield-check:before { content: "\e40c"; }
.ph-sparkle:before { content: "\e6a2"; }
.ph-stack:before { content: "\e466"; }
.ph-star:before { content: "\e46a"; }
.ph-sun:before { content: "\e472"; }
.ph-truck:before { content: "\e4b4"; }
.ph-users-three:before { content: "\e68e"; }
.ph-whatsapp-logo:before { content: "\e5d0"; }
/* ICONOS:fin */
