/* ============================================================
   core.css — paginas principales: /, /services/, /about/, /contact/
   Menu movil, bloques nuevos (intro, ciudades, FAQ) y ajustes
   responsive. Se carga despues de Tailwind y de site.css.
   ============================================================ */

/* ---------- cabecera: menu movil + llamada ---------- */
.g-hright{display:flex;align-items:center;gap:8px}
.g-mnav{position:static}
.g-mnav>summary{list-style:none;cursor:pointer;width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;border:1px solid rgba(255,255,255,.35)}
.g-mnav>summary::-webkit-details-marker{display:none}
.g-mnav>summary svg{width:22px;height:22px}
.g-mnav .g-x{display:none}
.g-mnav[open] .g-x{display:block}
.g-mnav[open] .g-burger{display:none}
.g-mpanel{position:absolute;left:0;right:0;top:100%;background:#fff;box-shadow:0 18px 40px rgba(22,29,31,.25);border-top:4px solid #ba0013;padding:8px 16px 16px}
.g-mpanel a{display:block;padding:12px 4px;font-weight:700;color:#161d1f;border-bottom:1px solid #eef0f2}
.g-mpanel a[aria-current="page"]{color:#ba0013}
.g-mpanel a:last-child{border-bottom:0}
header.fixed nav a[aria-current="page"]{color:#fff}
header.fixed nav a[aria-current="page"]::after{right:0}
@media(max-width:479px){
  header.fixed .site-logo{height:28px}
  .g-hright>a[href^="tel:"]{padding:7px 12px;font-size:.9rem;gap:4px;white-space:nowrap}
}
@media(max-width:379px){.g-hright>a[href^="tel:"] .material-symbols-outlined{display:none}}

/* ---------- texto largo ---------- */
.g-prose{color:#5d3f3c;font-size:1.05rem;line-height:1.75}
.g-prose p{margin:0 0 14px}
.g-prose a,.g-link{color:#ba0013;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.g-more{display:inline-flex;align-items:center;gap:6px;color:#ba0013;font-weight:700;margin:-8px 0 16px;text-decoration:underline;text-underline-offset:3px}

/* ---------- ciudades ---------- */
.g-cities{display:grid;gap:12px;grid-template-columns:1fr}
@media(min-width:560px){.g-cities{grid-template-columns:1fr 1fr}}
@media(min-width:1024px){.g-cities{grid-template-columns:repeat(3,1fr)}}
.g-city{display:block;background:#fff;border:1px solid #e7bdb8;border-radius:16px;padding:18px 20px;color:#161d1f;box-shadow:0 2px 4px rgba(22,29,31,.04),0 12px 28px rgba(22,29,31,.07);transition:transform .2s ease,border-color .2s ease}
.g-city:hover{transform:translateY(-4px);border-color:#ba0013}
.g-city b{display:block;font-size:1.15rem;color:#ba0013;margin-bottom:4px}
.g-city span{display:block;font-size:.92rem;color:#5d3f3c}
.g-city.g-city-all{background:linear-gradient(135deg,#ba0013,#e31e24);border-color:#ba0013}
.g-city.g-city-all b,.g-city.g-city-all span{color:#fff}

/* ---------- FAQ ---------- */
.g-faq{background:#fff;border:1px solid #e7bdb8;border-radius:14px;overflow:hidden}
.g-faq>summary{list-style:none;cursor:pointer;padding:18px 56px 18px 20px;position:relative}
.g-faq>summary::-webkit-details-marker{display:none}
.g-faq>summary::after{content:"+";position:absolute;right:16px;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:8px;background:#ba0013;color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center;transition:transform .2s ease}
.g-faq[open]>summary::after{transform:translateY(-50%) rotate(45deg)}
.g-faq>summary h3{margin:0;font-size:1.05rem;font-weight:700;line-height:1.35}
.g-faq .g-ans{padding:0 20px 18px;color:#5d3f3c}
.g-faq .g-ans p{margin:0}

/* ---------- lista de servicios detallada (/services/) ---------- */
.g-svcrow{display:grid;gap:12px}
@media(min-width:768px){.g-svcrow{grid-template-columns:1fr 1fr}}
.g-svcd{background:#fff;border:1px solid #e7bdb8;border-left:4px solid #ba0013;border-radius:12px;padding:16px 18px}
.g-svcd h3{font-weight:700;font-size:1.1rem;margin:0 0 6px}
.g-svcd p{margin:0;color:#5d3f3c;font-size:.97rem}

@media(prefers-reduced-motion:reduce){.g-city,.g-faq>summary::after{transition:none}}

/* CTA finales: titulos text-5xl demasiado anchos en moviles pequenos */
@media(max-width:639px){
  #call-emergency h2,#call-to-action h2{font-size:2rem;line-height:1.2}
  #call-emergency>div,#call-to-action>div{padding-left:20px;padding-right:20px}
  #hero h1{font-size:2.4rem;line-height:1.12}
}
.g-prose a[href^="tel:"]{white-space:nowrap}
header.fixed .g-mpanel a{color:#161d1f;padding-bottom:12px}
header.fixed .g-mpanel a[aria-current="page"]{color:#ba0013}
header.fixed .g-mpanel a::after{display:none}
@media(max-width:419px){#emergency-header a[href^="tel:"] [data-gtm-number-display]{font-size:2.4rem;white-space:nowrap}}
