/* Gasfitería Don Hugo — ejemplo Recuadra. Mobile-first. */
:root {
  --azul: #0b2f6b;
  --azul-2: #123f8c;
  --azul-osc: #071f49;
  --naranjo: #ff6a00;
  --naranjo-osc: #e25500;
  --amarillo: #ffc400;
  --verde: #1fa855;
  --rojo: #d7261e;
  --tinta: #0f1a2b;
  --gris: #eef1f6;
  --linea: #d5dbe6;
  --radio: 14px;
  --titulo: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --texto: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--texto); color: var(--tinta); background: #fff; font-size: 17px; line-height: 1.45; padding-bottom: 84px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--titulo); line-height: 1.02; margin: 0; letter-spacing: .2px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contenedor { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.contenedor--angosto { max-width: 640px; }

/* Franja de ejemplo */
.franja-ejemplo { background: #222; color: #cfd5df; font-size: 12px; text-align: center; padding: 4px 8px; letter-spacing: .3px; }

/* Cabecera */
.cabecera { background: var(--azul); color: #fff; position: sticky; top: 0; z-index: 40; border-bottom: 4px solid var(--naranjo); }
.cabecera__fila { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.marca__icono svg { width: 38px; height: 38px; display: block; }
.marca__texto { display: flex; flex-direction: column; line-height: 1; }
.marca__texto strong { font-family: var(--titulo); font-size: 24px; letter-spacing: 1px; }
.marca__texto small { font-size: 12px; opacity: .85; margin-top: 2px; }
.abierto { margin-left: auto; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; color: #b8ffcf; }
.abierto i { width: 9px; height: 9px; border-radius: 50%; background: #2fe07a; box-shadow: 0 0 0 0 rgba(47,224,122,.7); animation: pulso 1.8s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 9px rgba(47,224,122,0); } 100% { box-shadow: 0 0 0 0 rgba(47,224,122,0); } }
.cabecera__tel { display: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: var(--radio); font-family: var(--titulo); font-weight: 800; font-size: 22px; letter-spacing: .4px; text-decoration: none; cursor: pointer; padding: 14px 20px; min-height: 56px; color: #fff; transition: transform .08s, filter .15s; text-transform: uppercase; }
.btn:active { transform: translateY(2px); }
.btn:hover { filter: brightness(1.07); }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.btn svg { width: 28px; height: 28px; flex: none; }
.btn small { display: block; font-family: var(--texto); font-weight: 600; font-size: 14px; text-transform: none; letter-spacing: 0; opacity: .95; }
.btn--llamar { background: var(--naranjo); box-shadow: 0 5px 0 var(--naranjo-osc); }
.btn--wsp { background: var(--verde); box-shadow: 0 5px 0 #13813f; }
.btn--azul { background: var(--azul); box-shadow: 0 4px 0 var(--azul-osc); }
.btn--naranjo { background: var(--naranjo); box-shadow: 0 4px 0 var(--naranjo-osc); }
.btn--texto { background: none; color: var(--azul); font-family: var(--texto); font-size: 15px; font-weight: 700; text-transform: none; text-decoration: underline; min-height: 40px; padding: 6px; box-shadow: none; }
.btn--ancho { width: 100%; }

/* Portada */
.portada { position: relative; color: #fff; background: var(--azul-osc); overflow: hidden; }
.portada__foto { position: absolute; inset: 0; background: url("../img/hero-bano.jpg") 65% 30% / cover no-repeat; opacity: .38; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,31,73,.35) 0%, rgba(7,31,73,.92) 75%); pointer-events: none; }
.portada__grid { position: relative; z-index: 1; padding-top: 22px; padding-bottom: 26px; display: grid; gap: 22px; }
.sello-urgencia { margin: 0 0 12px; font-weight: 700; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sello-urgencia span { background: var(--amarillo); color: var(--tinta); font-family: var(--titulo); font-size: 20px; font-weight: 800; padding: 4px 10px; border-radius: 6px; letter-spacing: 1px; }
.portada h1 { font-size: 42px; text-transform: uppercase; font-weight: 800; }
.portada__llegada { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 14px 0 18px; background: rgba(255,255,255,.1); border-left: 5px solid var(--amarillo); padding: 10px 12px; border-radius: 6px; }
.portada__llegada svg { width: 30px; height: 30px; color: var(--amarillo); flex: none; }
.portada__llegada strong { color: var(--amarillo); font-size: 22px; }
.botones-grandes { display: grid; gap: 14px; }
.botones-grandes .btn { justify-content: flex-start; font-size: 28px; padding: 14px 20px; min-height: 76px; text-align: left; line-height: 1; }
.botones-grandes .btn svg { width: 36px; height: 36px; }
.portada__datos { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 13px; line-height: 1.2; }
.portada__datos li { background: rgba(255,255,255,.1); border-radius: 8px; padding: 8px; text-align: center; }
.portada__datos strong { display: block; font-family: var(--titulo); font-size: 19px; color: #fff; }

/* Tarjeta comuna */
.tarjeta-comuna { background: #fff; color: var(--tinta); border-radius: var(--radio); padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35); border-top: 6px solid var(--amarillo); }
.tarjeta-comuna h2 { font-size: 30px; color: var(--azul); text-transform: uppercase; margin-bottom: 12px; }
.buscador { display: flex; gap: 8px; }
.buscador input { flex: 1; min-width: 0; }
.buscador .btn { font-size: 19px; padding: 0 16px; }
input, select { font: inherit; font-size: 18px; padding: 14px; border: 2px solid var(--linea); border-radius: 10px; width: 100%; background: #fff; color: var(--tinta); min-height: 56px; }
input:focus, select:focus { border-color: var(--azul-2); }
.respuesta { margin-top: 12px; }
.respuesta__vacia { margin: 0; font-size: 15px; color: #4a5568; }
.res { border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: center; }
.res__ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--titulo); font-weight: 800; font-size: 24px; color: #fff; }
.res__t { font-family: var(--titulo); font-size: 24px; font-weight: 800; line-height: 1; }
.res__d { font-size: 15px; }
.res--si { background: #e5f7ec; border: 2px solid var(--verde); }
.res--si .res__ico { background: var(--verde); }
.res--rec { background: #fff6dc; border: 2px solid #e0a800; }
.res--rec .res__ico { background: #e0a800; }
.res--no { background: #fde8e7; border: 2px solid var(--rojo); }
.res--no .res__ico { background: var(--rojo); }
.res .btn { grid-column: 1 / -1; margin-top: 8px; font-size: 18px; min-height: 48px; }

/* Aviso gas */
.aviso-gas { background: repeating-linear-gradient(-45deg, var(--amarillo) 0 18px, #1a1a1a 18px 36px); padding: 10px 0; }
.aviso-gas__fila { background: #fff; border-radius: var(--radio); padding: 18px; display: grid; gap: 12px; grid-template-columns: 52px 1fr; }
.aviso-gas__icono { width: 52px; height: 52px; border-radius: 50%; background: var(--rojo); color: #fff; font-family: var(--titulo); font-weight: 800; font-size: 36px; display: grid; place-items: center; }
.aviso-gas h2 { font-size: 27px; color: var(--rojo); text-transform: uppercase; }
.aviso-gas ol { margin: 8px 0 0; padding-left: 20px; font-size: 16px; }
.aviso-gas li { margin: 3px 0; }
.aviso-gas__nota { margin: 8px 0 0; font-size: 14px; color: #4a5568; }
.btn--gas { grid-column: 1 / -1; }

/* Secciones */
.seccion { padding: 44px 0; }
.seccion--gris { background: var(--gris); }
.seccion--azul { background: var(--azul); color: #fff; }
.antetitulo { margin: 0 0 6px; color: var(--naranjo-osc); font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: 1.2px; }
.titulo { font-size: 36px; text-transform: uppercase; color: var(--azul); font-weight: 800; }
.titulo--claro { color: #fff; }
.bajada { margin: 10px 0 22px; font-size: 17px; color: #3b4658; }
.subtitulo { font-size: 26px; color: var(--azul); text-transform: uppercase; margin: 34px 0 14px; }
.nota { font-size: 13px; color: #5b6576; margin: 10px 0 0; }

/* Problemas */
.problemas { display: grid; gap: 16px; }
.problema { background: #fff; border: 2px solid var(--linea); border-radius: var(--radio); overflow: hidden; display: grid; grid-template-columns: 112px 1fr; }
.problema img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.problema__cuerpo { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.problema h3 { font-size: 25px; color: var(--azul); }
.problema p { margin: 0; font-size: 15px; color: #3b4658; }
.problema .precio, .precio { font-family: var(--titulo); font-weight: 800; font-size: 32px; color: var(--tinta) !important; line-height: 1; margin-top: 4px !important; }
.precio small { font-family: var(--texto); font-size: 14px; font-weight: 600; color: #5b6576; }
.problema .btn { font-size: 19px; min-height: 50px; margin-top: auto; }
.problema--gas { border-color: var(--rojo); border-width: 3px; }
.problema--gas h3 { color: var(--rojo); }
.problema__alerta { background: #fde8e7; border-radius: 8px; padding: 8px 10px; color: #7a120d !important; }

/* Pasos */
.pasos { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.pasos li { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; font-size: 17px; }
.pasos span { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--naranjo); display: grid; place-items: center; font-family: var(--titulo); font-weight: 800; font-size: 26px; }

/* Mapa esquemático */
.mapa-wrap { display: grid; gap: 16px; margin-top: 20px; }
.mapa { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 58px; gap: 5px; background: #e9edf4; border-radius: var(--radio); padding: 8px; }
.mapa__c { border-radius: 7px; display: grid; place-items: center; text-align: center; font-size: 11.5px; font-weight: 700; line-height: 1.05; padding: 3px; cursor: pointer; border: 0; font-family: var(--texto); }
.mapa__c.z1 { background: var(--azul); color: #fff; }
.mapa__c.z2 { background: #4f7fd1; color: #fff; }
.mapa__c.z3 { background: #b9cdf0; color: var(--azul-osc); }
.mapa__c.base { background: var(--naranjo); color: #fff; outline: 3px solid var(--amarillo); }
.mapa__c.activa { outline: 3px solid var(--amarillo); outline-offset: 1px; }
.leyenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.leyenda li { display: flex; gap: 10px; align-items: center; }
.leyenda i { width: 26px; height: 26px; border-radius: 6px; flex: none; }
.leyenda .z1 { background: var(--azul); } .leyenda .z2 { background: #4f7fd1; } .leyenda .z3 { background: #b9cdf0; }

/* Confianza */
.cifras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.cifras div { background: #fff; border-radius: 12px; padding: 14px; border-bottom: 5px solid var(--naranjo); }
.cifras strong { display: block; font-family: var(--titulo); font-size: 36px; color: var(--azul); line-height: 1; }
.cifras span { font-size: 14px; color: #3b4658; }
.resenas { display: grid; gap: 12px; }
.resena { margin: 0; background: #fff; border-radius: 12px; padding: 16px; border: 1px solid var(--linea); }
.estrellas { color: #f2a900; font-size: 20px; letter-spacing: 2px; }
.estrellas span { color: #cfd5df; }
.resena blockquote { margin: 6px 0 10px; font-size: 16px; }
.resena figcaption { font-size: 14px; color: #5b6576; }
.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.galeria figure { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; }
.galeria img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.galeria figcaption { font-size: 13px; padding: 8px 10px; font-weight: 600; }
.pagos { margin-top: 26px; background: var(--azul); color: #fff; border-radius: var(--radio); padding: 18px; }
.pagos h3 { font-size: 26px; text-transform: uppercase; }
.pagos ul { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pagos li { background: #fff; color: var(--azul); font-weight: 800; border-radius: 8px; padding: 8px 12px; font-size: 15px; }
.pagos p { margin: 0; font-size: 15px; opacity: .9; }

/* Formulario */
.formulario { display: grid; gap: 16px; background: #fff; border: 3px solid var(--azul); border-radius: var(--radio); padding: 18px; }
.campo label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 17px; }
.opcional { font-weight: 500; color: #5b6576; }
.subir { display: flex !important; align-items: center; gap: 10px; border: 2px dashed #9aa6ba; border-radius: 10px; padding: 14px; cursor: pointer; font-weight: 600 !important; color: var(--azul); min-height: 56px; margin: 0 !important; }
.subir svg { width: 26px; height: 26px; }
.subir.lista { border-style: solid; border-color: var(--verde); background: #e5f7ec; }
.campo--marcado select { border-color: var(--naranjo); background: #fff4ec; }
.error { margin: 0; background: #fde8e7; color: #7a120d; padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.confirmacion { background: #e5f7ec; border: 3px solid var(--verde); border-radius: var(--radio); padding: 24px 18px; text-align: center; }
.confirmacion__check { width: 64px; height: 64px; border-radius: 50%; background: var(--verde); color: #fff; font-size: 38px; display: grid; place-items: center; margin: 0 auto 10px; font-weight: 800; }
.confirmacion h3 { font-size: 30px; color: #0d5a2c; text-transform: uppercase; }
.confirmacion__maqueta { font-size: 13px; color: #3b4658; background: #fff; border-radius: 8px; padding: 8px; }

/* Pie */
.pie { background: var(--azul-osc); color: #c8d3e8; padding: 28px 0; font-size: 14px; }
.pie p { margin: 4px 0; }
.pie__marca { font-family: var(--titulo); font-size: 22px; color: #fff; }
.pie__grid { display: grid; gap: 16px; }
.pie__recuadra { border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; }

/* Barra fija celular */
.barra-fija { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(7,31,73,.97); box-shadow: 0 -6px 20px rgba(0,0,0,.25); }
.barra-fija .btn { font-size: 21px; min-height: 58px; padding: 8px 10px; box-shadow: none; }
.barra-fija .btn svg { width: 24px; height: 24px; }

/* Aviso modal */
.aviso { position: fixed; inset: 0; z-index: 100; background: rgba(7,15,30,.6); display: grid; place-items: center; padding: 20px; }
.aviso[hidden] { display: none; }
.aviso__caja { background: #fff; border-radius: var(--radio); padding: 22px; max-width: 380px; width: 100%; border-top: 8px solid var(--naranjo); text-align: center; }
.aviso__t { font-family: var(--titulo); font-weight: 800; font-size: 28px; color: var(--azul); margin: 0 0 8px; line-height: 1.05; text-transform: uppercase; }
.aviso__caja p { margin: 0 0 16px; }

/* Desktop */
@media (min-width: 760px) {
  .problemas { grid-template-columns: repeat(2, 1fr); }
  .problema { grid-template-columns: 1fr; grid-template-rows: 180px auto; }
  .problema img { min-height: 0; }
  .resenas { grid-template-columns: repeat(3, 1fr); }
  .galeria { grid-template-columns: repeat(4, 1fr); }
  .cifras { grid-template-columns: repeat(4, 1fr); }
  .pasos { grid-template-columns: repeat(4, 1fr); }
  .pasos li { flex-direction: column; align-items: flex-start; }
  .mapa-wrap { grid-template-columns: 1.6fr 1fr; align-items: center; }
  .mapa { grid-auto-rows: 70px; }
  .mapa__c { font-size: 13px; }
  .pie__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .barra-fija { display: none; }
  .cabecera__tel { display: inline-flex; background: var(--naranjo); color: #fff; font-family: var(--titulo); font-weight: 800; font-size: 22px; padding: 8px 16px; border-radius: 10px; text-decoration: none; }
  .abierto { margin-right: 8px; font-size: 15px; }
  .portada__grid { grid-template-columns: 1.25fr 1fr; align-items: center; padding-top: 56px; padding-bottom: 64px; gap: 48px; }
  .portada h1 { font-size: 68px; }
  .portada__llegada { font-size: 22px; }
  .portada__llegada strong { font-size: 28px; }
  .botones-grandes { grid-template-columns: 1fr 1fr; }
  .botones-grandes .btn { font-size: 32px; min-height: 90px; }
  .portada__datos { font-size: 15px; }
  .portada__datos strong { font-size: 22px; }
  .tarjeta-comuna { padding: 26px; }
  .tarjeta-comuna h2 { font-size: 38px; }
  .aviso-gas__fila { grid-template-columns: 60px 1fr auto; align-items: center; }
  .btn--gas { grid-column: auto; }
  .problemas { grid-template-columns: repeat(3, 1fr); }
  .titulo { font-size: 48px; }
  .seccion { padding: 70px 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
