/* =============================================================
   Andamios Concepción — hoja de estilos
   Concepto: acero galvanizado + amarillo de seguridad.
   Una sola familia (Archivo) usando su eje de ancho:
   condensada para títulos (como la señalética de obra), normal para texto.
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --galv:      #e4e8ec;   /* acero galvanizado, fondo principal */
  --galv-2:    #d3d9df;   /* galvanizado en sombra */
  --paper:     #f8f9fa;   /* superficies claras */
  --steel:     #1d2a38;   /* acero pintado, texto y bloques oscuros */
  --steel-2:   #2c3d50;
  --zinc:      #6b7886;   /* texto secundario */
  --line:      #b9c2cb;   /* líneas de estructura */
  --safety:    #f5b800;   /* amarillo de seguridad (rodapiés, CTA) */
  --safety-dk: #c99600;
  --wa:        #1fa855;   /* verde WhatsApp, solo en botones de WhatsApp */
  --wa-dk:     #168a44;

  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --fs-hero: clamp(2.6rem, 6.2vw, 5.2rem);
  --fs-h2:   clamp(2rem, 4.2vw, 3.4rem);
  --fs-h3:   clamp(1.25rem, 2vw, 1.55rem);
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--steel);
  background: var(--galv);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 {
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
::selection { background: var(--safety); color: var(--steel); }
:focus-visible { outline: 3px solid var(--safety); outline-offset: 3px; }

/* 3. Utilidades ----------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  background: var(--safety); color: var(--steel); padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* 4. Botones -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.4rem;
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  border-radius: 3px;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 3px 0 var(--wa-dk); }
.btn-wa:hover { background: var(--wa-dk); }
.btn-safety { background: var(--safety); color: var(--steel); box-shadow: 0 3px 0 var(--safety-dk); }
.btn-safety:hover { background: #ffc61f; }
.btn-ghost { border: 2px solid currentColor; }
.btn-ghost:hover { background: var(--steel); color: var(--paper); border-color: var(--steel); }
.btn-block { width: 100%; }

/* 5. Barra superior + navegación ------------------------------ */
.topbar { background: var(--steel); color: #cfd6dd; font-size: .88rem; }
.topbar .wrap { display: flex; gap: 1.4rem; justify-content: space-between; align-items: center; min-height: 38px; }
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { color: var(--safety); }
.topbar-loc { display: none; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(228, 232, 236, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { font-stretch: 75%; font-weight: 800; font-size: 1.32rem; line-height: .95; letter-spacing: .01em; }
.brand-name small { display: block; font-stretch: 100%; font-weight: 500; font-size: .72rem; color: var(--zinc); letter-spacing: 0; margin-top: 3px; }
.nav-links { display: none; list-style: none; padding: 0; gap: .25rem; }
.nav-links a { display: block; padding: .5rem .8rem; text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 3px; }
.nav-links a:hover { background: var(--galv-2); }
.nav-cta { display: none; }
.nav-toggle { width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid var(--steel); border-radius: 3px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--steel); position: relative; transition: transform .25s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-drawer { display: none; border-top: 1px solid var(--line); background: var(--galv); }
.nav.open .nav-drawer { display: block; }
.nav-drawer ul { list-style: none; padding: .5rem 0 1rem; }
.nav-drawer a { display: block; padding: .85rem 0; font-weight: 700; font-size: 1.15rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-drawer .btn { margin-top: 1rem; }

/* 6. Hero + configurador ------------------------------------- */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem);
  background-image:
    linear-gradient(var(--galv-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--galv-2) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
.hero::after { /* desvanece la cuadrícula hacia abajo */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(transparent, var(--galv)); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2.2rem; align-items: center; }
.hero h1 { font-size: var(--fs-hero); }
.hero h1 .h1-sub { display: block; color: var(--steel-2); font-weight: 600; font-size: .52em; line-height: 1.1; margin-top: .55rem; letter-spacing: 0; }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 38ch; margin-top: 1.3rem; color: var(--steel-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-facts { list-style: none; padding: 0; display: grid; gap: .55rem; margin-top: 2rem; }
.hero-facts li { display: flex; gap: .65rem; align-items: baseline; font-weight: 600; }
.hero-facts li::before {
  content: ""; flex: none; width: 14px; height: 14px; transform: translateY(1px);
  background: repeating-linear-gradient(-45deg, var(--safety) 0 4px, var(--steel) 4px 8px);
}

.builder {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 1px 0 #fff inset, 0 24px 48px -28px rgba(29, 42, 56, .45);
}
.builder-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem 1.2rem; border-bottom: 1px solid var(--line);
}
.builder-head h2 { font-size: 1.45rem; }
.builder-head p { font-size: .86rem; color: var(--zinc); }
.builder-stage { position: relative; background: #eef1f4; border-bottom: 1px solid var(--line); }
.builder-stage svg { width: 100%; height: auto; aspect-ratio: 600 / 340; }
.builder-badge {
  background: var(--steel); color: #fff; padding: .6rem 1.2rem;
  font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.builder-badge strong { color: var(--safety); }
.builder-form { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: 1rem; }
.field label, .field .label { display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field output { font-variant-numeric: tabular-nums; color: var(--steel-2); font-weight: 800; font-stretch: 75%; font-size: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 540px) { .field-row { grid-template-columns: 1fr 1fr; gap: .8rem; } }
.field select, .field input[type="text"], .field input[type="tel"], .field input[type="date"], .field textarea {
  width: 100%; min-height: 48px; padding: .6rem .75rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: 3px;
}
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--steel); outline: none; box-shadow: 0 0 0 3px rgba(245, 184, 0, .45); }
.field textarea { min-height: 110px; resize: vertical; }

/* range con aspecto de tubo */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--steel) var(--fill, 30%), var(--galv-2) var(--fill, 30%)); border-radius: 3px; }
input[type="range"]::-moz-range-track { height: 6px; background: var(--galv-2); border-radius: 3px; }
input[type="range"]::-moz-range-progress { height: 6px; background: var(--steel); border-radius: 3px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: var(--safety); border: 3px solid var(--steel); cursor: grab;
}
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--safety); border: 3px solid var(--steel); cursor: grab; }

.seg { display: flex; border: 1.5px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; }
.seg label { flex: 1; margin: 0; display: flex; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: .6rem .3rem; font-weight: 600; font-size: .92rem; cursor: pointer; border-right: 1px solid var(--line); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--steel); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--safety); outline-offset: -3px; }
.builder-note { font-size: .82rem; color: var(--zinc); line-height: 1.45; }

/* 7. Secciones genéricas -------------------------------------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-dark { background: var(--steel); color: #e8edf2; }
.section-paper { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: 1rem; font-size: 1.1rem; color: var(--zinc); max-width: 60ch; }
.section-dark .section-head p { color: #aebccb; }

/* 8. Usos (filas, no tarjetas) ------------------------------- */
.uses { display: grid; gap: 0; border-top: 2px solid var(--steel); }
.use {
  display: grid; gap: .5rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr;
}
.use h3 { font-size: var(--fs-h3); }
.use p { color: var(--steel-2); max-width: 62ch; }
.use-tag { font-size: .9rem; font-weight: 600; color: var(--zinc); }

/* 9. Por qué multidireccional (lámina técnica) --------------- */
.spec { display: grid; gap: 2.5rem; align-items: center; }
.spec-figure { background: var(--steel-2); border: 1px solid #3c5068; border-radius: 4px; padding: 1.2rem; }
.spec-figure svg { width: 100%; height: auto; }
.spec-list { list-style: none; padding: 0; display: grid; gap: 1.6rem; }
.spec-list h3 { font-size: 1.35rem; color: #fff; display: flex; align-items: center; gap: .6rem; }
.spec-list h3 i { display: inline-block; width: 22px; height: 6px; background: var(--safety); font-style: normal; }
.spec-list p { color: #b9c6d3; margin-top: .35rem; max-width: 52ch; }

/* 10. Proceso (sí es una secuencia) -------------------------- */
.steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 1.6rem 0 1.6rem 4.4rem; border-top: 1px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute; left: 0; top: 1.35rem; width: 3rem; height: 3rem;
  display: grid; place-items: center;
  font-stretch: 75%; font-weight: 800; font-size: 1.7rem;
  background: var(--safety); color: var(--steel); border-radius: 3px;
}
.step h3 { font-size: 1.4rem; }
.step p { color: var(--steel-2); margin-top: .3rem; max-width: 46ch; }

/* 11. Obras -------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gallery figure { position: relative; overflow: hidden; background: var(--galv-2); aspect-ratio: 1; border-radius: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-note { margin-top: 1rem; color: var(--zinc); font-size: .95rem; }

/* 12. Cobertura ---------------------------------------------- */
.coverage { display: grid; gap: 2.5rem; }
.comunas { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.6rem; border-top: 2px solid var(--steel); }
.comunas li { border-bottom: 1px solid var(--line); }
.comunas a {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  padding: 1rem .2rem; text-decoration: none; font-weight: 700; font-size: 1.08rem;
  transition: background-color .2s, padding .2s var(--ease);
}
.comunas a::after { content: ""; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); flex: none; opacity: .5; }
.comunas a:hover { background: var(--galv-2); padding-left: .7rem; }
.comunas .is-base a { color: var(--steel); }
.comunas .is-base small { display: block; font-weight: 500; font-size: .8rem; color: var(--zinc); }
.map-frame { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--galv-2); min-height: 320px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }

/* 13. Seguridad --------------------------------------------- */
.safety-band {
  background: repeating-linear-gradient(-45deg, var(--safety) 0 22px, var(--steel) 22px 44px);
  height: 14px;
}
.checklist { list-style: none; padding: 0; display: grid; gap: 1rem; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: .8rem; align-items: start; }
.checklist li::before {
  content: ""; width: 24px; height: 24px; margin-top: 2px; border-radius: 3px;
  background: var(--safety) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4L19 7' fill='none' stroke='%231d2a38' stroke-width='3'/%3E%3C/svg%3E") center/18px no-repeat;
}
.checklist strong { display: block; font-size: 1.08rem; }
.checklist span { color: var(--steel-2); }

/* 14. Preguntas frecuentes ---------------------------------- */
.faq { border-top: 2px solid var(--steel); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.25rem 0; font-weight: 700; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 3px;
  background: var(--galv-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%231d2a38' stroke-width='2.5'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--safety); }
.faq details p { padding: 0 0 1.3rem; color: var(--steel-2); max-width: 70ch; }

/* 15. Contacto ---------------------------------------------- */
.contact { display: grid; gap: 2.5rem; }
.contact-direct { display: grid; gap: 1.2rem; align-content: start; }
.contact-direct h3 { font-size: 1.6rem; color: #fff; }
.contact-line { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: center; text-decoration: none; }
.contact-line .ico { width: 40px; height: 40px; border-radius: 3px; background: var(--steel-2); display: grid; place-items: center; }
.contact-line .ico svg { width: 20px; height: 20px; }
.contact-line b { display: block; color: #fff; font-size: 1.08rem; }
.contact-line span { color: #aebccb; font-size: .92rem; }
a.contact-line:hover b { color: var(--safety); }
.contact-form { background: var(--paper); color: var(--steel); border-radius: 4px; padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1rem; }
.contact-form h3 { font-size: 1.6rem; }
.contact-form > p { color: var(--zinc); font-size: .95rem; margin-top: -.5rem; }

/* 16. Pie ---------------------------------------------------- */
.footer { background: #142030; color: #aebccb; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer h4 { color: #fff; font-stretch: 75%; font-size: 1.15rem; margin-bottom: .8rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--safety); }
.footer .brand-name { color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid #2a3a4d; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; }

/* 17. Botón flotante de WhatsApp ---------------------------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: .6rem;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700;
  height: 58px; padding: 0 1.1rem 0 .9rem; border-radius: 29px;
  box-shadow: 0 10px 28px -8px rgba(22, 138, 68, .7);
  transition: transform .25s var(--ease), background-color .2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: var(--wa-dk); transform: translateY(-2px); }
.wa-float .wa-txt { display: none; }

/* 18. Páginas de comuna ------------------------------------- */
.crumbs { font-size: .9rem; color: var(--zinc); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--steel-2); }
.crumbs a:hover { text-decoration: underline; }
.local-intro { display: grid; gap: 2.5rem; }
.local-intro .prose p + p { margin-top: 1rem; }
.prose p { max-width: 64ch; color: var(--steel-2); font-size: 1.06rem; }
.sectors { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin-top: 1.4rem; }
.sectors li { background: var(--paper); border: 1px solid var(--line); padding: .4rem .75rem; border-radius: 3px; font-weight: 600; font-size: .92rem; }
.local-card { background: var(--steel); color: #e8edf2; border-radius: 4px; padding: 1.6rem; display: grid; gap: 1rem; align-content: start; }
.local-card h2 { font-size: 1.8rem; color: #fff; }
.local-card p { color: #b9c6d3; }

/* 19. Animación de armado del andamio (único momento animado) */
.draw { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); animation: draw .7s var(--ease) forwards; animation-delay: var(--d, 0s); }
.pop { opacity: 0; animation: pop .35s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* 20. Responsive -------------------------------------------- */
@media (min-width: 540px) {
  .topbar-loc { display: inline; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .g-wide { grid-column: span 2; aspect-ratio: auto; }
  .wa-float .wa-txt { display: inline; }
}
@media (min-width: 720px) {
  .use { grid-template-columns: minmax(200px, 1fr) 2fr; align-items: baseline; }
  .use-tag { grid-column: 2; }
  .comunas { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; min-height: 46px; }
  .nav-toggle, .nav-drawer, .nav.open .nav-drawer { display: none; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
  .spec { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 4.6rem 1rem 0 0; border-top: 0; }
  .step::before { top: 0; }
  .step::after { content: ""; position: absolute; top: 1.5rem; left: 3.6rem; right: .8rem; height: 2px; background: var(--line); }
  .step:last-child::after { display: none; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .coverage { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .comunas { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr 1.25fr; gap: 4rem; }
  .local-intro { grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: start; }
  .safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}
@media (min-width: 1280px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

/* 21. Movimiento reducido: solo se quita el armado animado --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw { animation: none; stroke-dashoffset: 0; }
  .pop { animation: none; opacity: 1; }
}

/* =============================================================
   22. Rediseño visual (v2): más imagen, menos texto
   ============================================================= */
:root { --sea: #c9d6e0; --land: #eef1f4; --map-mute: #6b8296; }

.btn-lg { min-height: 58px; padding: .9rem 1.6rem; font-size: 1.1rem; }
.btn-ghost-light { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--steel); border-color: #fff; }
.title { font-size: var(--fs-h2); margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.lead { font-size: 1.15rem; color: var(--zinc); margin-top: -1.2rem; margin-bottom: 1.6rem; }

/* Hero con foto */
.hero2 {
  background-color: var(--steel); color: #fff;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  padding: clamp(2.2rem, 5vw, 4.5rem) 0 0;
}
.hero2-grid { display: grid; gap: 2.4rem; align-items: center; }
.hero2 h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: .94; }
.hero2 h1 .h1-sub { display: block; font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-stretch: 100%; font-weight: 500; line-height: 1.4; color: #b9c6d3; margin-top: 1.2rem; letter-spacing: 0; max-width: 32ch; }
.hero2 .hero-actions { margin-top: 2rem; }
.hero2-photo {
  position: relative; aspect-ratio: 4 / 3; max-width: 100%;
  border-radius: 4px; overflow: hidden;
  box-shadow: 14px 14px 0 var(--safety);
  /* si la foto no carga, queda un andamio dibujado */
  background-color: var(--steel-2);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 66px, var(--safety) 66px 74px, transparent 74px 80px),
    repeating-linear-gradient(90deg, transparent 0 86px, #8fa0b1 86px 92px);
}
.hero2-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero2-photo figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(29,42,56,.85); color: #fff; font-size: .85rem; font-weight: 600;
  padding: .35rem .65rem; border-radius: 3px;
}
.trust {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin-top: clamp(2.4rem, 5vw, 4rem);
  background: rgba(255,255,255,.12); border-top: 1px solid rgba(255,255,255,.12);
}
.trust li { background: var(--steel); display: flex; align-items: center; gap: .7rem; padding: 1.1rem .4rem; font-weight: 700; font-size: .98rem; }
.trust svg { width: 30px; height: 30px; flex: none; color: var(--safety); --safety: #f5b800; --paper: var(--steel); }

/* Usos con íconos */
.use-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.use-grid a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
  min-height: 190px; padding: 1.3rem; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  transition: background-color .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.use-grid svg { width: 64px; height: 64px; color: var(--steel); }
.use-grid h3 { font-size: 1.35rem; }
.use-grid span { font-size: .9rem; font-weight: 600; color: var(--zinc); display: block; margin-top: .3rem; }
.use-grid a:hover { background: var(--safety); border-color: var(--safety); transform: translateY(-3px); --safety: #fff; }
.use-grid a:hover span { color: var(--steel); }

/* Cotizador destacado */
.section-grid {
  background-image:
    linear-gradient(var(--galv-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--galv-2) 1px, transparent 1px);
  background-size: 48px 48px;
}
.builder-wide { display: grid; overflow: hidden; }
.builder-visual { display: flex; flex-direction: column; background: #eef1f4; }
.builder-visual .builder-stage { flex: 1; display: flex; align-items: center; border-bottom: 0; }
.builder-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Ventajas */
.feat { list-style: none; padding: 0; display: grid; gap: 1.4rem; }
.feat li { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: center; }
.feat svg { width: 56px; height: 56px; padding: 10px; background: var(--steel-2); border-radius: 4px; color: #e8edf2; --safety: #f5b800; }
.feat h3 { font-size: 1.35rem; color: #fff; }
.feat p { color: #b9c6d3; }

/* Pasos con íconos */
.steps2 { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; counter-reset: s; }
.steps2 li { position: relative; text-align: center; counter-increment: s; }
.step-ico {
  position: relative; display: grid; place-items: center; margin: 0 auto 1rem;
  width: 92px; height: 92px; border-radius: 50%; background: var(--paper); border: 2px solid var(--steel);
}
.step-ico svg { width: 44px; height: 44px; color: var(--steel); }
.step-ico::after {
  content: counter(s); position: absolute; top: -4px; right: -4px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--safety); color: var(--steel); font-weight: 800; font-size: .95rem; border: 2px solid var(--steel);
}
.steps2 h3 { font-size: 1.3rem; }
.steps2 p { color: var(--zinc); margin-top: .2rem; }

/* Galería tipo mosaico */
.gallery2 { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 8px; }
.gallery2 figure { overflow: hidden; border-radius: 3px; background: var(--galv-2); }
.gallery2 img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery2 figure:hover img { transform: scale(1.05); }
.gallery2 .gl-a { grid-column: span 2; grid-row: span 2; }
.gallery2 .gl-b { grid-row: span 2; }

/* Cobertura con mapa */
.coverage2 { display: grid; gap: 2rem; align-items: center; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a {
  display: block; padding: .55rem .95rem; border-radius: 30px; text-decoration: none; font-weight: 700;
  background: var(--paper); border: 1.5px solid var(--line); transition: background-color .2s, border-color .2s;
}
.chips a:hover { background: var(--steel); color: #fff; border-color: var(--steel); }
.chips .is-base a { background: var(--safety); border-color: var(--safety); }
.map { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--sea); }
.map svg { width: 100%; height: auto; }
.map figcaption { font-size: .8rem; color: var(--zinc); padding: .5rem .8rem; background: var(--paper); border-top: 1px solid var(--line); }
.map-pins a { cursor: pointer; }
.map-pins circle { fill: var(--steel); stroke: #fff; stroke-width: 3; transition: fill .2s, r .2s; }
.map-pins text { fill: var(--steel); paint-order: stroke; stroke: var(--land); stroke-width: 5px; stroke-linejoin: round; }
.map-pins a:hover circle, .map-pins a:focus circle { fill: var(--safety); }
.map-pins a:hover text { text-decoration: underline; }
.map-pins .pin-base > circle:first-child { fill: var(--safety); opacity: .45; stroke: none; animation: pulse 2.4s ease-out infinite; transform-origin: 252px 352px; }
.map-pins .pin-base .pin-core { fill: var(--safety); stroke: var(--steel); stroke-width: 3; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* Preguntas */
.faq-wrap { display: grid; gap: 0; }

/* Banda final de contacto */
.cta-band { background: var(--safety); color: var(--steel); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.cta-grid { display: grid; gap: 2rem; align-items: end; }
.cta-band h2 { font-size: var(--fs-h2); }
.cta-number {
  display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.2rem;
  font-stretch: 75%; font-weight: 800; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1;
  text-decoration: none; color: var(--steel);
}
.cta-number svg { width: .9em; height: .9em; color: var(--wa-dk); background: #fff; border-radius: 50%; padding: .1em; }
.cta-number:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.cta-lines { list-style: none; padding: 0; display: grid; gap: .8rem; font-weight: 600; }
.cta-lines li { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: center; }
.cta-lines svg { width: 22px; height: 22px; }
.cta-lines a { text-decoration: none; }
.cta-lines a:hover { text-decoration: underline; }

.footer-about { margin-top: 1rem; max-width: 52ch; font-size: .9rem; line-height: 1.55; }
.footer-cols { grid-template-columns: 1fr 1fr; column-gap: 1rem; }

@media (min-width: 540px) {
  .trust li { padding: 1.3rem 1rem; }
  .gallery2 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
}
@media (min-width: 720px) {
  .use-grid { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .steps2 { grid-template-columns: repeat(4, 1fr); }
  .steps2 li:not(:last-child)::after { content: ""; position: absolute; top: 46px; left: calc(50% + 56px); right: calc(-50% + 56px); border-top: 2px dashed var(--line); }
}
@media (min-width: 960px) {
  .hero2-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero2-photo { aspect-ratio: 5 / 4; }
  .use-grid { grid-template-columns: repeat(5, 1fr); }
  .builder-wide { grid-template-columns: 1.35fr 1fr; }
  .builder-wide .builder-form { border-left: 1px solid var(--line); }
  .gallery2 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
  .coverage2 { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
  .cta-grid { grid-template-columns: 1.4fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pins .pin-base > circle:first-child { animation: none; }
}

/* 23. Ajustes tras revisión ---------------------------------- */
.trust { background: none; border-top: 1px solid rgba(255,255,255,.14); gap: 0; }
.trust li { border-bottom: 1px solid rgba(255,255,255,.08); }
.use-grid li { display: flex; }
.use-grid a { flex: 1; min-height: 150px; }
.use-grid svg { width: 52px; height: 52px; }
.use-grid li:last-child { grid-column: span 2; }
#usos { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.gallery2 { grid-auto-flow: dense; }
.gallery2 .gl-w { grid-column: span 2; }
.cta-number { white-space: nowrap; font-size: clamp(2rem, 8.5vw, 3.8rem); }
@media (min-width: 720px) {
  .use-grid li:last-child { grid-column: auto; }
  .use-grid a { min-height: 190px; }
  .use-grid svg { width: 64px; height: 64px; }
  .trust li + li { border-left: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 539px) { .map-pins text { font-size: 21px; } .map-pins text[font-size="12"] { font-size: 16px; } }

/* 24. Cotiza con una foto ------------------------------------ */
.foto-box { display: grid; gap: .6rem; }
.foto-btn {
  display: grid; grid-template-columns: 44px 1fr; gap: .8rem; align-items: center; cursor: pointer;
  padding: .8rem 1rem; border: 2px dashed var(--steel); border-radius: 4px; background: #fffbea;
  transition: background-color .2s, border-color .2s;
}
.foto-btn:hover { background: #fff2bf; border-style: solid; }
.foto-btn svg { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--safety); color: var(--steel); }
.foto-btn span { font-size: .92rem; color: var(--steel-2); line-height: 1.35; }
.foto-btn b { display: block; font-size: 1.02rem; color: var(--steel); }
#foto-input:focus-visible + input + .foto-status, .foto-btn:focus-within { outline: 3px solid var(--safety); }
.foto-status { font-size: .92rem; line-height: 1.45; padding: .7rem .9rem; border-radius: 4px; }
.foto-status small { color: var(--zinc); }
.foto-status.is-loading { background: var(--galv); display: flex; align-items: center; gap: .6rem; }
.foto-status.is-ok { background: #e6f5ec; border-left: 4px solid var(--wa); }
.foto-status.is-warn { background: #fff4d6; border-left: 4px solid var(--safety-dk); }
.foto-spin { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--steel); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 25. Mapa de Google en contacto ------------------------------ */
.gmap { position: relative; margin-top: 2.4rem; border-radius: 6px; overflow: hidden; border: 3px solid var(--steel); background: var(--galv-2); }
.gmap iframe { display: block; width: 100%; height: 340px; border: 0; }
.gmap .btn { position: absolute; left: 12px; bottom: 12px; }
.btn-dark { background: var(--steel); color: #fff; box-shadow: 0 3px 0 #0e1620; }
.btn-dark:hover { background: var(--steel-2); }
.btn-dark svg { color: var(--safety); }
@media (min-width: 960px) { .gmap iframe { height: 380px; } }
