/* Cerrajería. Concepto: urgencias de noche.
   Negro, latón y el perfil de una llave. Unbounded para títulos, Manrope para texto. */

:root {
  --noche: #121212;
  --noche-2: #1E1E1E;
  --fondo: #F2F2F0;
  --superficie: #FFFFFF;
  --texto: #121212;
  --texto-suave: #55585D;
  --linea: #DADAD6;
  --acento: #D4A72C;
  --sobre-acento: #121212;
  --acento-texto: #7D5F0B;
  --fuente-titulos: "Unbounded", system-ui, sans-serif;
  --fuente-texto: "Chivo", system-ui, sans-serif;
  --radio: 12px;
}

.boton {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: .8rem 1.5rem; border-radius: var(--radio);
  font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform var(--rapido) var(--curva), background-color var(--rapido), color var(--rapido);
}
.boton:active { transform: scale(.97); }
.boton--principal { background: var(--acento); color: var(--sobre-acento); }
.boton--linea { border-color: #4A4A4A; color: #fff; }
.boton--secundario { border-color: var(--texto); color: var(--texto); background: transparent; }

.cabecera { position: sticky; top: 0; z-index: 40; background: var(--noche); color: #fff; border-bottom: 1px solid #2A2A2A; }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marca { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 600 1.05rem var(--fuente-titulos); letter-spacing: -.02em; }
.marca__icono { width: 38px; fill: none; stroke: var(--acento); stroke-width: 3; stroke-linecap: round; }
.marca__logo { max-height: 40px; width: auto; }
.cabecera__tel { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-size: .95rem; color: #C9C9C9; white-space: nowrap; }
.cabecera__tel strong { color: var(--acento); font: 600 1.05rem var(--fuente-titulos); font-variant-numeric: tabular-nums; }
.punto { width: 9px; height: 9px; border-radius: 50%; background: #3BD16F; box-shadow: 0 0 0 4px rgba(59, 209, 111, .18); }
@media (max-width: 34rem) { .marca span { font-size: .9rem; } .cabecera__tel { font-size: 0; gap: .4rem; } .cabecera__tel strong { font-size: .95rem; } }

.portada { position: relative; background: var(--noche); color: #fff; padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 11vw, 9rem); overflow: hidden; }
.portada h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; max-width: 20ch; margin-bottom: 1.25rem; }
.portada__entrada { font-size: 1.15rem; color: #BDBDBD; max-width: 46ch; }
.portada__telefono {
  display: inline-block; margin: 1.5rem 0 .5rem; text-decoration: none; color: var(--acento);
  font: 700 clamp(2.6rem, 9vw, 6rem)/1 var(--fuente-titulos); letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.portada__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.portada__nota { font-size: .95rem; color: #9A9A9A; margin: 0; }
.portada__google { margin: .6rem 0 0; font-weight: 700; }
.portada__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; z-index: 0; }
.portada .contenedor { position: relative; z-index: 1; }
.llave { position: absolute; right: -2rem; bottom: clamp(1rem, 3vw, 2.5rem); width: min(72rem, 120%); height: auto; opacity: .95; }
.llave__cabeza { fill: none; stroke: var(--acento); stroke-width: 10; }
.llave__agujero { fill: none; stroke: var(--acento); stroke-width: 4; opacity: .5; }
.llave__pala { fill: none; stroke: var(--acento); stroke-width: 4; stroke-linejoin: round; }
.llave__ranura { stroke: var(--acento); stroke-width: 2; stroke-dasharray: 6 8; opacity: .45; }

.precio { background: var(--acento); color: var(--sobre-acento); padding: 2.5rem 0; }
.precio__fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem 3rem; align-items: center; }
.precio h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -.03em; margin: 0; }
.precio p { margin: 0; font-size: 1.1rem; font-weight: 500; max-width: 60ch; }

.seccion { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.seccion h2, .consejos h2, .presupuesto h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.servicios__lista { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.servicios__lista li { padding: 1.4rem 0; border-top: 1px solid var(--linea); }
.servicios__lista h3 { font: 600 1.05rem var(--fuente-titulos); letter-spacing: -.02em; margin-bottom: .45rem; }
.servicios__lista p { margin: 0; color: var(--texto-suave); }

.consejos { background: var(--noche-2); color: #fff; padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.consejos__lista { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.consejos__lista li { border-left: 3px solid var(--acento); padding-left: 1.2rem; }
.consejos h3 { font: 600 1rem var(--fuente-titulos); letter-spacing: -.01em; }
.consejos p { color: #BDBDBD; margin: 0; }

.trabajos__rejilla { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .75rem; }
.trabajos__rejilla img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radio); }
.trabajos .resenas-hueco, .resenas .resenas-hueco { margin-top: 1.25rem; }

.resenas { background: var(--superficie); }
.resenas__nota-google { font-weight: 700; color: var(--acento-texto); }
.resenas__lista { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; }
.resena { background: var(--fondo); border-radius: var(--radio); padding: 1.25rem 1.4rem; }
.resena blockquote { margin: 0; }
.resena__autor { font-weight: 700; margin: 0; }

.zona__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.zona p { color: var(--texto-suave); }
.horario { margin: 1.25rem 0 0; }
.horario div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--linea); }
.horario dt { font-weight: 700; }
.horario dd { margin: 0; color: var(--texto-suave); text-align: right; }

.preguntas { background: var(--superficie); }
.preguntas__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem 3rem; }
.faq__item { border-top: 1px solid var(--linea); }
.faq__item:last-child { border-bottom: 1px solid var(--linea); }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-weight: 700; font-size: 1.05rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: .25rem; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform var(--medio) var(--curva); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--texto-suave); padding-right: 2rem; }

.presupuesto { background: var(--noche); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.presupuesto__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.presupuesto p { color: #BDBDBD; max-width: 40ch; }
.presupuesto a { color: #fff; text-underline-offset: 3px; }
.presupuesto .presupuesto__tel { display: inline-block; margin-top: 1rem; color: var(--acento); font: 700 clamp(1.8rem, 4vw, 2.6rem) var(--fuente-titulos); letter-spacing: -.04em; text-decoration: none; }
.presupuesto__form { background: var(--superficie); color: var(--texto); border-radius: var(--radio); padding: clamp(1.25rem, 4vw, 2rem); }
.presupuesto__form .boton { width: 100%; }

.pie { background: #0B0B0B; color: #9A9A9A; padding: 2rem 0; font-size: .95rem; }
.pie__fila { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.pie p { margin: 0; }
.pie strong { color: #fff; }
.pie-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.pie-legal a { color: #D0D0D0; text-underline-offset: 3px; }

.fijo-movil__llamar { background: var(--acento); color: var(--sobre-acento); }
.fijo-movil__wa { background: var(--noche-2); color: #fff; }
.pagina-legal { background: var(--superficie); }

@media (max-width: 60rem) {
  .precio__fila, .zona__rejilla, .preguntas__rejilla, .presupuesto__rejilla { grid-template-columns: minmax(0, 1fr); }
  .servicios__lista, .consejos__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .servicios__lista, .consejos__lista { grid-template-columns: minmax(0, 1fr); }
  .portada__acciones .boton { flex: 1 1 10rem; }
  .llave { width: 150%; right: -45%; }
}
@media (hover: hover) and (pointer: fine) {
  .boton--principal:hover { background: color-mix(in srgb, var(--acento) 82%, #fff); }
  .boton--linea:hover { border-color: #fff; }
  .boton--secundario:hover { background: var(--texto); color: #fff; }
  .portada__telefono:hover { color: color-mix(in srgb, var(--acento) 80%, #fff); }
  .faq__item summary:hover { color: var(--acento-texto); }
}
