:root {
  --ink: #141517;
  --ink-2: #1d1f22;
  --paper: #ffffff;
  --paper-2: #f3f3ef;
  --lime: #a6d608;
  --text-2: #595c60;
  --text-2-dark: #b7b9bb;
  --line: #d9d9d4;
  --line-dark: #34373a;
  --gutter: clamp(16px, 4vw, 56px);
  --sans: Jost, "Century Gothic", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--lime); color: var(--ink); }
.skip:focus { top: 8px; }

/* Tipografía común */
.label { font: 500 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.label.on-dark { color: var(--text-2-dark); }
.label span { color: var(--ink); margin-right: 10px; padding-bottom: 2px; border-bottom: 2px solid var(--lime); }
.label.on-dark span { color: #fff; }
h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 300; line-height: 1.08; letter-spacing: -.015em; }
.head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }

/* Botones */
.btn, .btn-line {
  display: inline-block; padding: 15px 28px; border-radius: 1px;
  font-family: var(--sans); font-size: 18px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn { border: 1px solid var(--lime); background: var(--lime); color: var(--ink); }
.btn:hover { background: #bfe92f; border-color: #bfe92f; }
.btn-line { border: 1px solid rgba(255, 255, 255, .65); color: #fff; }
.btn-line:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Encabezado */
.top { position: fixed; inset: 0 0 auto; z-index: 20; color: #fff; background: linear-gradient(rgba(20, 21, 23, .7), rgba(20, 21, 23, 0)); transition: background-color .2s; }
.top.solid, .top.open { background: var(--ink); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { width: 158px; }
#menu { display: flex; align-items: center; gap: 28px; font-size: 16px; }
#menu a { text-decoration: none; }
#menu a:not(.nav-tel):hover { color: var(--lime); }
.nav-tel { margin-left: 8px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .5); font-weight: 500; white-space: nowrap; transition: background-color .18s, color .18s; }
.nav-tel:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.menu-btn { display: none; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 1px; background: none; color: #fff; font: 500 16px var(--sans); cursor: pointer; }

/* Portada */
.hero { background: var(--ink); color: #fff; }
.hero-img { width: 100%; height: clamp(320px, calc(100svh - 370px), 720px); object-fit: cover; object-position: 50% 28%; }
.hero-in { display: grid; grid-template-columns: 7fr 5fr; column-gap: clamp(28px, 5vw, 80px); align-items: end; padding-top: clamp(28px, 3.4vw, 44px); padding-bottom: clamp(32px, 4vw, 52px); }
.hero-in .label { grid-column: 1 / -1; }
h1 { margin-top: 14px; font-size: clamp(44px, 6.2vw, 92px); font-weight: 300; line-height: 1; letter-spacing: -.025em; }
.hero-lead { font-size: clamp(19px, 1.8vw, 23px); font-weight: 300; line-height: 1.35; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Secciones */
.section { padding: clamp(64px, 9vw, 136px) 0; }
.paper { background: var(--paper-2); }
.grid-paper {
  background-color: var(--ink); color: #fff;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Fabricantes */
.makers { padding: clamp(56px, 7vw, 96px) 0; background: var(--ink); color: #fff; border-top: 1px solid var(--line-dark); }
.makers-in { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.makers h2 { margin-top: 14px; }
.makers .intro { margin-top: 20px; }
.makers-list li { padding: 20px 0 20px 18px; border-top: 1px solid var(--line-dark); box-shadow: inset 2px 0 0 var(--lime); }
.makers-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.makers-list h3 { font-size: clamp(23px, 2.2vw, 28px); font-weight: 400; line-height: 1.2; }
.makers-list p { margin-top: 6px; color: var(--text-2-dark); font-weight: 300; line-height: 1.45; }

/* Versículo */
.verse { padding: clamp(56px, 7vw, 96px) 0; text-align: center; }
.verse blockquote { max-width: 920px; margin: 0 auto; }
.verse p { font-size: clamp(23px, 2.8vw, 36px); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; }
.verse cite { display: block; margin-top: 16px; font: 500 13px/1.4 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }

/* Servicios */
.intro { max-width: 40em; font-size: clamp(19px, 1.8vw, 22px); font-weight: 300; line-height: 1.45; color: #dedfe0; }
.intro.dark { color: var(--text-2); }
.service-group { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: clamp(32px, 4vw, 52px) 0; border-top: 1px solid var(--line-dark); }
.group-name { position: sticky; top: 92px; align-self: start; font-size: clamp(26px, 2.6vw, 34px); font-weight: 300; line-height: 1.15; }
.group-name span { display: block; margin-bottom: 8px; font: 500 13px var(--mono); color: var(--lime); }
.service-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 64px); }
.service-cards article.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 170px 1fr; gap: 32px; }
.service-cards svg { display: block; width: 100%; max-width: 170px; height: auto; margin-bottom: 20px; fill: none; stroke: #e7e8e8; stroke-width: 1.3; stroke-linecap: square; }
.service-cards svg .fine { stroke: #85888b; stroke-width: 1; }
.service-cards svg .dash { stroke: #85888b; stroke-dasharray: 4 4; }
.service-cards svg .accent { stroke: var(--lime); stroke-width: 1.8; }
.service-cards h4 { margin: 0; font-size: 26px; font-weight: 400; line-height: 1.2; }
.service-cards p { margin-top: 10px; color: #d2d3d4; font-weight: 300; line-height: 1.5; }
.service-cards ul { margin-top: 14px; font-size: 16px; color: var(--text-2-dark); }
.service-cards li { position: relative; padding: 4px 0 4px 20px; line-height: 1.35; }
.service-cards li::before { content: ""; position: absolute; left: 0; top: 14px; width: 10px; height: 1px; background: var(--lime); }
.wide ul { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
.tag { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.services h3 { margin-top: 8px; font-size: 24px; font-weight: 400; line-height: 1.2; }
.services li > p:last-child { margin-top: 8px; color: var(--text-2-dark); font-size: 17px; font-weight: 300; line-height: 1.4; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; margin-top: 32px; font: 500 14px/1.4 var(--mono); letter-spacing: .03em; color: #e7e8e8; }
.values li { padding-left: 14px; border-left: 2px solid var(--lime); }

/* Aluminio y vidrio */
.line-group { margin-top: clamp(40px, 5vw, 64px); }
.line-group:first-of-type { margin-top: 0; }
.line-title { margin-bottom: 20px; padding-top: 14px; border-top: 2px solid var(--ink); font: 500 14px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px clamp(20px, 2.6vw, 36px); }
.line-media { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 18px; overflow: hidden; background: var(--paper-2); }
.line-media img { width: 100%; height: 100%; object-fit: cover; }
.line-credit { margin-top: 32px; font-size: 15px; color: var(--text-2); }
.line-media.dark { background: #0d0e0f; }
.line-media.dark img { object-fit: contain; }
.line-media svg { width: 66%; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: square; }
.line-media svg .fine { stroke: #8b8e91; stroke-width: 1; }
.line-media svg .dash { stroke: #8b8e91; stroke-dasharray: 4 4; }
.line-media svg .accent { stroke: #86ad00; stroke-width: 2; }
.lines h4 { margin: 0; font-size: 25px; font-weight: 400; line-height: 1.2; }
.line-desc { margin-top: 8px; font-size: 17px; line-height: 1.4; color: var(--text-2); }
.lines ul { margin-top: 12px; font-size: 16px; line-height: 1.35; }
.lines ul li { padding: 7px 0; border-top: 1px solid var(--line); }
.lines-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 44px; padding-top: 24px; border-top: 2px solid var(--ink); font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; }
.btn-dark { display: inline-block; padding: 15px 28px; border-radius: 1px; background: var(--ink); color: #fff; font-size: 18px; font-weight: 500; line-height: 1.2; text-decoration: none; transition: background-color .18s, color .18s; }
.btn-dark:hover { background: var(--lime); color: var(--ink); }

/* Proyecto */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.story img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; }
figcaption { margin-top: 12px; font-size: 16px; color: var(--text-2); }
figcaption span { margin-right: 8px; font: 500 13px var(--mono); color: var(--ink); }

.sheet { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; margin: clamp(44px, 6vw, 80px) 0; padding-top: 18px; border-top: 2px solid var(--ink); }
.sheet dl { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
.sheet dl div { padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.sheet dt { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.sheet dd { margin-top: 6px; font-size: 19px; line-height: 1.3; }

.trio { display: grid; grid-template-columns: 4fr 5fr 5fr; gap: clamp(16px, 2.4vw, 32px); }
.trio img { width: 100%; height: clamp(280px, 34vw, 480px); object-fit: cover; }
.trio img:first-child { object-position: 0 50%; }

/* Puertas y portones */
.door-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.door-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.door-next { margin-top: clamp(40px, 5vw, 64px); }

/* Diseño residencial */
.plan-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.plan-pair img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.plan-pair figure:first-child img { object-fit: contain; background: #fff; }
.house-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(24px, 3vw, 40px); }
.house-pair img { width: 100%; }
.grid-paper figcaption { color: var(--text-2-dark); }
.plan-cta { margin-top: clamp(28px, 3vw, 40px); }

/* Trabajos */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.works img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.steps li { position: relative; padding: 26px 32px 0 0; }
.steps li::before { content: ""; position: absolute; top: -8px; left: 0; width: 2px; height: 14px; background: var(--ink); }
.steps span { font: 500 14px var(--mono); color: var(--text-2); }
.steps h3 { margin-top: 12px; font-size: clamp(25px, 2.6vw, 34px); font-weight: 300; line-height: 1.15; }
.steps p { margin-top: 8px; color: var(--text-2); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 112px); align-items: start; }
.contact h2 { margin-top: 16px; }
.contact-lead { margin-top: 16px; font-size: clamp(19px, 2vw, 23px); font-weight: 300; color: #dedfe0; }
.big-tel { display: inline-block; margin-top: 26px; font-size: clamp(50px, 7vw, 92px); font-weight: 500; line-height: 1; letter-spacing: -.01em; color: #fff; text-decoration: none; transition: color .18s; }
.big-tel:hover { color: var(--lime); }
form { display: grid; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-dark); background: var(--ink); }
form label { margin: 0 0 6px; font-size: 16px; color: #e6e6e6; }
input, select, textarea {
  width: 100%; margin-bottom: 18px; padding: 12px 14px; border: 1px solid #54575a; border-radius: 1px;
  background: var(--ink-2); color: #fff; font: 400 17px/1.4 var(--sans);
}
input::placeholder, textarea::placeholder { color: #96999c; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lime); outline-offset: -1px; border-color: transparent; }
form .btn { justify-self: start; }
.form-error { margin-bottom: 14px; color: #ffb4a8; font-size: 16px; }
.fine-print { margin-top: 12px; font-size: 15px; color: var(--text-2-dark); }

/* Pie */
.foot { padding: 34px 0; background: var(--ink); border-top: 1px solid var(--line-dark); color: #fff; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.foot-in img { width: 138px; }
.foot-tel { margin-left: auto; font-size: 22px; font-weight: 500; text-decoration: none; }
.aviso { width: 100%; font-size: 14px; color: var(--text-2-dark); }

.float { display: none; }

@media (max-width: 1100px) {
  #menu { gap: 16px; font-size: 15px; }
  .lines, .values, .steps { grid-template-columns: repeat(2, 1fr); }
  .door-grid { grid-template-columns: repeat(3, 1fr); }
  .service-group { grid-template-columns: 1fr; gap: 24px; }
  .group-name { position: static; }
  .sheet { grid-template-columns: 1fr; }
  .sheet dl { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .menu-btn { display: block; }
  #menu { display: none; position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 18px; background: var(--ink); font-size: 19px; }
  .top.open #menu { display: flex; }
  #menu a { padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
  #menu .nav-tel { margin: 12px 0 0; padding: 12px; border: 0; background: var(--lime); color: var(--ink); text-align: center; }
  .contact, .hero-in, .makers-in { grid-template-columns: 1fr; }
  .hero-lead { margin-top: 16px; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li { padding: 20px 0 22px; border-top: 1px solid var(--line); }
  .steps li::before { display: none; }
}

@media (max-width: 700px) {
  .hero-img { height: auto; aspect-ratio: 1 / 1; }
  .story, .plan-pair, .house-pair { grid-template-columns: 1fr; }
  .door-grid { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio img { height: 58vw; }
  .trio img:first-child { grid-column: 1 / -1; height: 100vw; }
  .works, .service-cards { grid-template-columns: 1fr; }
  .service-cards article.wide { grid-template-columns: 1fr; gap: 0; }
  .wide ul { grid-template-columns: 1fr; }
  .sheet dl { grid-template-columns: 1fr; }
  .actions .btn, .actions .btn-line { flex: 1 1 100%; text-align: center; }
  .foot-tel { margin-left: 0; }
  .foot { padding-bottom: 90px; }
  .float.visible {
    display: block; position: fixed; right: 16px; bottom: 16px; z-index: 15;
    padding: 13px 22px; border-radius: 30px; background: var(--lime); color: var(--ink);
    font-weight: 600; text-decoration: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  }
}

@media (max-width: 460px) {
  .lines { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
