:root {
  --agua: #0077c8;
  --agua-oscura: #00508a;
  --cobre: #c0692b;
  --azulejo: #eaf5f3;
  --junta: #cfe3df;
  --pizarra: #1b2a38;
  --aviso: #f6c343;
  --blanco: #ffffff;
  --letra: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--letra); font-size: 1.0625rem; line-height: 1.55;
  color: var(--pizarra); background: var(--blanco); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cobre); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 700 1rem/1 var(--letra); font-stretch: 110%;
  padding: 1rem 1.4rem; border: 0; border-radius: 6px; cursor: pointer; text-decoration: none;
  background: var(--agua); color: var(--blanco);
  box-shadow: 0 4px 0 var(--agua-oscura); transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { background: #0a84d6; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--agua-oscura); }
.btn-cobre { background: var(--cobre); box-shadow: 0 4px 0 #8a4516; }
.btn-cobre:hover { background: #cf7534; }
.btn-cobre:active { box-shadow: 0 0 0 #8a4516; }

/* Cabecera */
.top { background: var(--pizarra); color: var(--blanco); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo svg { width: 34px; height: 34px; }
.logo span { font-weight: 900; font-stretch: 125%; font-size: 1.5rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.tel) { text-decoration: none; font-weight: 500; }
.nav a:not(.tel):hover { text-decoration: underline; text-underline-offset: 4px; }
.tel {
  display: flex; flex-direction: column; line-height: 1.1; text-decoration: none;
  background: var(--aviso); color: var(--pizarra); padding: .45rem .9rem; border-radius: 6px;
}
.tel small { font-size: .75rem; font-weight: 600; }
.tel strong { font-size: 1.15rem; font-stretch: 110%; font-weight: 800; }

section { padding: clamp(4rem, 8vw, 7rem) 0; }
h2 {
  font-weight: 900; font-stretch: 125%; letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1; margin: 0 0 1rem;
}
.intro { max-width: 36rem; font-size: 1.15rem; margin: 0 0 3rem; }

@media (max-width: 820px) { .nav a:not(.tel) { display: none; } }

/* Portada */
.hero {
  position: relative; padding-bottom: 0;
  background-color: var(--azulejo);
  background-image:
    linear-gradient(var(--junta) 2px, transparent 2px),
    linear-gradient(90deg, var(--junta) 2px, transparent 2px);
  background-size: 64px 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: 3.5rem; }
.sello {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem;
  background: var(--pizarra); color: var(--blanco); font-weight: 600; font-size: .95rem;
  padding: .45rem .85rem; border-radius: 999px;
}
.sello::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.25); }
.hero h1 {
  font-weight: 900; font-stretch: 125%; letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: .96; margin: 0 0 1.5rem; color: var(--pizarra);
}
.hero-sub { font-size: 1.2rem; max-width: 30rem; margin: 0 0 2rem; }
.garantias { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.garantias li {
  background: var(--blanco); border: 2px solid var(--pizarra); border-radius: 8px;
  padding: .9rem 1.1rem; display: flex; flex-direction: column; min-width: 11rem;
}
.garantias strong { font-size: 1.9rem; font-stretch: 125%; font-weight: 900; color: var(--agua); line-height: 1.05; }
.garantias span { font-size: .95rem; }

.parte {
  background: var(--blanco); border: 2px solid var(--pizarra); border-radius: 10px;
  box-shadow: 8px 8px 0 var(--pizarra); overflow: hidden;
}
.parte-cabeza { background: var(--agua); color: var(--blanco); padding: 1.25rem 1.5rem; }
.parte-cabeza h2 { font-size: 1.8rem; margin: 0 0 .2rem; }
.parte-cabeza p { margin: 0; opacity: .9; }
.parte fieldset, .parte .campo { border: 0; margin: 0; padding: 1.1rem 1.5rem 0; min-width: 0; }
.parte legend, .parte label { font-weight: 700; display: block; margin-bottom: .55rem; padding: 0; float: left; width: 100%; }
.opciones { display: flex; flex-wrap: wrap; gap: .45rem; clear: both; }
.opcion {
  font: 500 .95rem/1.1 var(--letra); cursor: pointer; color: var(--pizarra);
  background: var(--azulejo); border: 2px solid transparent; border-radius: 6px; padding: .6rem .8rem;
}
.opcion:hover { border-color: var(--junta); }
.opcion[aria-pressed="true"] { background: var(--pizarra); color: var(--blanco); }
.parte select {
  width: 100%; font: 1rem var(--letra); color: var(--pizarra);
  padding: .75rem .9rem; border: 2px solid var(--pizarra); border-radius: 6px; background: var(--blanco);
}
.resultado { margin: 1.25rem 0 0; padding: 1.25rem 1.5rem 1.5rem; border-top: 2px dashed var(--junta); }
.resultado-vacio { margin: 0; color: #53677a; }
.cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.1rem; }
.cifras p { margin: 0; font-size: .95rem; }
.cifras strong { display: block; font-size: 1.9rem; font-weight: 900; font-stretch: 115%; line-height: 1.1; color: var(--pizarra); }
.cifras .precio strong { color: var(--cobre); }
.nota { font-size: .9rem; color: #53677a; margin: 0 0 1.1rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .7rem; }

.tuberia { display: block; width: 100%; height: 70px; margin-top: -1px; }
.tubo { stroke: var(--cobre); stroke-width: 30; fill: none; }
.agua-fluye {
  stroke: #7fd0ff; stroke-width: 8; fill: none; stroke-linecap: round;
  stroke-dasharray: 40 30; animation: fluir 1.6s linear infinite; opacity: .9;
}
.uniones rect { fill: #9a5220; }
@keyframes fluir { to { stroke-dashoffset: -70; } }
@media (prefers-reduced-motion: reduce) { .agua-fluye { animation: none; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.llamada label { font-weight: 700; display: block; margin-bottom: .5rem; }
.llamada-fila { display: flex; gap: .6rem; flex-wrap: wrap; }
.llamada-fila input {
  flex: 1 1 12rem; font: 1rem var(--letra); padding: .8rem .9rem;
  border: 2px solid var(--pizarra); border-radius: 6px;
}
.aviso { color: #b3261e; font-weight: 600; margin: .6rem 0 0; min-height: 1.4em; }
.pedida { margin: 0; background: #e3f6ea; border-left: 5px solid #1e9e57; padding: .9rem 1rem; border-radius: 4px; }

/* Servicios */
.lista-servicios { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.lista-servicios li {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.5rem; align-items: baseline;
  padding: 1.5rem 0 1.5rem 1.25rem; border-left: 6px solid var(--cobre); border-bottom: 1px solid var(--junta);
  margin-bottom: 1rem;
}
.lista-servicios h3 { margin: 0; font-size: 1.35rem; font-weight: 800; font-stretch: 110%; }
.lista-servicios p { margin: 0; grid-column: 1; max-width: 30rem; color: #3b4d5e; }
.lista-servicios b { grid-column: 2; grid-row: 1; font-weight: 800; color: var(--cobre); white-space: nowrap; }

/* Pasos */
.como { background: var(--pizarra); color: var(--blanco); }
.como .intro { color: #c6d3de; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: paso; position: relative; }
.pasos::before {
  content: ""; position: absolute; top: 1.75rem; left: 1.75rem; right: 1.75rem; height: 12px;
  background: var(--cobre); border-radius: 6px;
}
.pasos li { position: relative; counter-increment: paso; }
.pasos li::before {
  content: counter(paso); display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%; margin-bottom: 1.25rem;
  background: var(--agua); color: var(--blanco); border: 4px solid var(--pizarra);
  font-weight: 900; font-stretch: 125%; font-size: 1.5rem; position: relative;
}
.pasos h3 { margin: 0 0 .5rem; font-size: 1.3rem; font-weight: 800; font-stretch: 110%; }
.pasos p { margin: 0; color: #c6d3de; }

/* Zona */
.zona { background: var(--azulejo); }
.zona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.zona .intro { margin-bottom: 2rem; }
.barrios { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--junta); border: 2px solid var(--junta); }
.barrios li { background: var(--blanco); padding: 1.1rem .9rem; font-weight: 600; text-align: center; }

/* Opiniones */
.citas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.citas figure { margin: 0; }
.citas blockquote { margin: 0 0 1rem; font-size: 1.2rem; line-height: 1.5; }
.citas blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .7; color: var(--agua); font-weight: 900; }
.citas figcaption { font-weight: 700; color: var(--cobre); }

/* Pie */
.pie { background: var(--pizarra); color: var(--blanco); padding: 3.5rem 0 3rem; border-top: 12px solid var(--cobre); }
.pie-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.pie-logo { font-weight: 900; font-stretch: 125%; font-size: 2.6rem; line-height: 1; margin: 0 0 .75rem; color: #7fd0ff; }
.pie h3 { margin: 0 0 .5rem; font-size: 1rem; color: var(--aviso); }
.pie p { margin: 0; color: #c6d3de; }

@media (max-width: 900px) {
  .lista-servicios, .zona-grid, .citas, .pie-grid { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: 1fr; gap: 2rem; }
  .pasos::before { top: 1.75rem; bottom: 1.75rem; left: calc(1.75rem - 6px); right: auto; width: 12px; height: auto; }
  .pasos li { padding-left: 5rem; }
  .pasos li::before { position: absolute; left: 0; top: 0; }
  .barrios { grid-template-columns: repeat(2, 1fr); }
}

.lista-servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lista-servicios li { grid-template-columns: minmax(0, 1fr) auto; }
.tel strong { white-space: nowrap; }
@media (max-width: 900px) { .lista-servicios { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .top .wrap { gap: .5rem; }
  .logo span { font-size: 1.2rem; }
  .logo svg { width: 28px; height: 28px; }
  .tel { padding: .4rem .7rem; }
  .tel strong { font-size: 1rem; }
  .lista-servicios li { grid-template-columns: minmax(0, 1fr); }
  .lista-servicios b { grid-column: 1; grid-row: auto; margin-top: .35rem; }
  .sello { font-size: .85rem; }
}
