/* ====================================================================
   CERRAJERÍA DE URGENCIAS
   Idea: una urgencia no se lee, se resuelve. Pantalla grafito con una
   boca de llave gigante en latón y un solo botón enorme: llamar. Después,
   "¿qué pasó?" en cuatro casos que abren WhatsApp con el mensaje armado.
   ==================================================================== */
:root {
  --grafito: #23272B;
  --grafito-2: #2E3338;
  --laton: #D4A437;
  --laton-claro: #F0CF7A;
  --hueso: #F5F3EE;
  --alerta: #E23B2E;
  --gris: #5E6368;
  --blanco: #FFFFFF;
  --wa: #25D366;

  --fuente-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --fuente: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--fuente); background: var(--hueso); color: var(--grafito); line-height: 1.55; font-size: 1.0625rem; padding-bottom: 64px; }
a { color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--laton-claro); outline-offset: 3px; }

.contenedor { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.1rem; }

/* ====================================================================
   URGENCIA
   ==================================================================== */
.inicio { position: relative; background: var(--grafito); color: var(--hueso); padding: 2rem 0 3rem; overflow: hidden; }
.bocallave { position: absolute; right: -40px; top: 30px; width: 220px; height: auto; fill: none; stroke: var(--laton); stroke-width: 3; opacity: 0.35; }
.inicio-contenido { position: relative; max-width: 640px; margin-left: 0; }
@media (min-width: 1080px) { .inicio-contenido { margin-left: auto; margin-right: auto; max-width: 1080px; } }
.aviso { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; color: var(--laton-claro); }
.aviso::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--alerta); box-shadow: 0 0 0 4px rgba(226, 59, 46, 0.25); }
.inicio h1 {
  font-family: var(--fuente-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 16vw, 7.5rem);
  line-height: 0.9;
  margin: 0.6rem 0 0.8rem;
  max-width: 9ch;
}
.bajada { max-width: 34ch; font-size: 1.15rem; color: #C9CDD1; margin-bottom: 1.6rem; }
.boton-llamar {
  display: grid;
  width: min(100%, 460px);
  padding: 1rem 1.3rem;
  background: var(--laton);
  color: var(--grafito);
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 6px 0 #9C7722;
}
.boton-llamar:hover { background: var(--laton-claro); }
.boton-llamar:active { transform: translateY(4px); box-shadow: 0 2px 0 #9C7722; }
.boton-llamar-etiqueta { font-weight: 700; font-size: 1.05rem; }
.boton-llamar-numero { font-family: var(--fuente-display); font-weight: 900; font-size: clamp(2.6rem, 12vw, 3.6rem); line-height: 1; }
.boton-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  margin-top: 1.1rem;
  font-weight: 600;
  color: var(--hueso);
  text-underline-offset: 4px;
}
.boton-wa svg { color: var(--wa); }
@media (min-width: 860px) {
  .inicio { padding: 4rem 0 5rem; }
  .bocallave { right: 8%; top: 50%; transform: translateY(-50%); width: 300px; opacity: 0.9; }
}
@media (prefers-reduced-motion: no-preference) {
  .aviso::before { animation: latido 1.6s ease-in-out infinite; }
  @keyframes latido { 50% { box-shadow: 0 0 0 8px rgba(226, 59, 46, 0); } }
}

/* ====================================================================
   ¿QUÉ PASÓ?
   ==================================================================== */
h2 { font-family: var(--fuente-display); font-weight: 900; font-size: clamp(2.3rem, 8vw, 3.4rem); line-height: 1; }
.casos { padding: 3rem 0; }
.casos h2 { margin-bottom: 1.2rem; }
.casos-lista { display: grid; gap: 0.8rem; }
.casos-lista a {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 1.2rem;
  background: var(--blanco);
  border: 2px solid var(--grafito);
  border-radius: 14px;
  text-decoration: none;
}
.casos-lista a:hover { background: var(--laton-claro); }
.casos-lista strong { font-family: var(--fuente-display); font-weight: 700; font-size: 1.7rem; line-height: 1.05; }
.casos-lista span { color: var(--gris); }
@media (min-width: 760px) { .casos-lista { grid-template-columns: 1fr 1fr; gap: 1rem; } }

/* ====================================================================
   SERVICIOS + LOCAL
   ==================================================================== */
.ubicacion { background: var(--grafito-2); color: var(--hueso); padding: 3rem 0; }
.ubicacion-grilla { display: grid; gap: 2.4rem; }
.ubicacion h2 { font-size: clamp(1.9rem, 6vw, 2.5rem); margin-bottom: 0.8rem; color: var(--laton-claro); }
.servicios-lista li { padding: 0.55rem 0; border-bottom: 1px solid #454B51; font-size: 1.1rem; }
.ubicacion p { color: #C9CDD1; margin-bottom: 0.4rem; }
.resenas a { color: var(--hueso); text-underline-offset: 4px; }
.boton-contorno { display: inline-flex; align-items: center; min-height: 48px; margin: 0.6rem 0 1rem; padding: 0.6rem 1.3rem; border: 2px solid var(--laton); color: var(--laton-claro); border-radius: 10px; font-weight: 700; text-decoration: none; }
#mapa-iframe { display: block; width: 100%; height: 260px; border: 0; border-radius: 14px; background: var(--grafito); }
@media (min-width: 860px) { .ubicacion-grilla { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }

.pie { background: var(--grafito); color: #9DA3A9; padding: 2rem 0 2.5rem; font-size: 0.92rem; }
.pie p + p { margin-top: 0.3rem; }
.demo-aviso { font-style: italic; }
.credito a { color: var(--laton-claro); font-weight: 700; }

/* Barra fija de contacto */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1.3fr 1fr; height: 64px; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25); }
.barra a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.barra-llamar { background: var(--laton); color: var(--grafito); }
.barra-wa { background: var(--wa); color: #0B2915; }
@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .barra { left: auto; right: 1rem; bottom: 1rem; width: 360px; border-radius: 14px; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
