/* Cerrajería Irazú — paleta derivada del rótulo real del local (amarillo/rojo),
   ajustada a tonos utilizables en pantalla. Tipografía: Oswald (display) + Work Sans (cuerpo). */

:root {
  --tinta: #241b13;
  --tinta-suave: #4a4030;
  --crema: #fbf7ee;
  --crema-2: #efe6d3;
  --blanco: #ffffff;
  --rojo: #b8402e;
  --rojo-oscuro: #8f2f21;
  --amarillo: #e0a233;
  --amarillo-suave: #f6e6c4;
  --amarillo-texto: #96600f;
  --linea: #e3d9c2;
  --sombra: 0 10px 30px -12px rgba(36, 27, 19, .25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: 'Work Sans', Georgia, 'Times New Roman', serif;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 600; letter-spacing: .01em; margin: 0 0 .5rem; color: var(--tinta); }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; color: var(--rojo-oscuro); }
p { margin: 0 0 .8rem; }
a { color: var(--rojo-oscuro); }
img { max-width: 100%; display: block; }

/* ---- Botones ---- */
.boton {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  font-size: 1rem;
  letter-spacing: .02em;
  border: 2px solid transparent;
}
.boton-cta { background: var(--rojo); color: #fff; }
.boton-cta:hover { background: var(--rojo-oscuro); }
.boton-linea { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.boton-linea:hover { background: var(--tinta); color: #fff; }

/* ---- Demo banner ---- */
.demo-banner {
  background: #2b2620; color: #f2ece1; text-align: center; font-size: .85rem;
  line-height: 1.4; padding: .4rem .9rem; letter-spacing: .01em;
}
@media (min-width: 640px) { .demo-banner { font-size: .92rem; } }

/* ---- Cabecera ---- */
.cabecera { position: sticky; top: 0; z-index: 40; background: var(--crema); box-shadow: 0 1px 0 var(--linea); }
.cabecera-fila { max-width: 1100px; margin: 0 auto; padding: .75rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marca { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--tinta); min-width: 0; }
.marca-icono { width: 28px; height: 28px; color: var(--rojo); flex: none; }
.marca-icono svg { width: 100%; height: 100%; }
.marca-texto { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cabecera-cta { padding: .55rem 1.1rem; font-size: .92rem; flex: none; }

/* ---- Hero ---- */
.hero { padding: 2.6rem 1.1rem 3rem; }
.hero-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
.eyebrow { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--rojo-oscuro); margin-bottom: .6rem; }
.hero-desc { font-size: 1.08rem; color: var(--tinta-suave); max-width: 42ch; }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.2rem 0 1rem; }
.hero-rating { font-size: .95rem; color: var(--tinta-suave); }
.hero-imagen { background: var(--amarillo-suave); border-radius: 18px; padding: 1rem; box-shadow: var(--sombra); }
.hero-imagen img { border-radius: 10px; width: 100%; height: auto; aspect-ratio: 520/405; object-fit: cover; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-imagen { order: -1; padding: .6rem; }
}

/* ---- Secciones genéricas ---- */
.seccion { max-width: 1100px; margin: 0 auto; padding: 2.6rem 1.1rem; }
.prosa { max-width: 68ch; color: var(--tinta-suave); }
.prosa p:last-child { margin-bottom: 0; }

/* ---- Sobre nosotros ---- */
.sobre-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.sobre-imagen { background: var(--amarillo-suave); border-radius: 18px; padding: .8rem; box-shadow: var(--sombra); }
.sobre-imagen img { border-radius: 10px; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 820px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .sobre-imagen { max-width: 320px; margin: 0 auto; }
}

/* ---- Galería ---- */
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.galeria-item { margin: 0; background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; overflow: hidden; box-shadow: var(--sombra); }
.galeria-item img { width: 100%; height: 100%; }
.galeria-item figcaption { padding: .6rem .8rem; font-size: .88rem; color: var(--tinta-suave); }

/* ---- Servicios ---- */
.servicios-nota { color: var(--tinta-suave); margin-top: -.3rem; }
.servicios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1.4rem 0 1.6rem; }
@media (max-width: 720px) { .servicios-grid { grid-template-columns: 1fr; } }

.lista-llave { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.lista-llave li { display: flex; flex-direction: column; gap: .15rem; padding-left: 1.8rem; position: relative; }
.lista-llave li::before {
  content: ""; position: absolute; left: 0; top: .3rem; width: 1.15rem; height: 1.15rem;
  background-color: var(--rojo);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='21' cy='32' r='14' fill='none' stroke='black' stroke-width='9'/%3E%3Crect x='33' y='27' width='24' height='10' fill='black'/%3E%3Crect x='42' y='37' width='6' height='11' fill='black'/%3E%3Crect x='51' y='37' width='6' height='15' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='21' cy='32' r='14' fill='none' stroke='black' stroke-width='9'/%3E%3Crect x='33' y='27' width='24' height='10' fill='black'/%3E%3Crect x='42' y='37' width='6' height='11' fill='black'/%3E%3Crect x='51' y='37' width='6' height='15' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lista-llave strong { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.03rem; }
.lista-llave span { color: var(--tinta-suave); font-size: .95rem; }

/* ---- Reseñas ---- */
.resenas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; }
.resena { margin: 0; background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; padding: 1.2rem 1.3rem; box-shadow: var(--sombra); }
.resena p { font-size: 1rem; color: var(--tinta); }
.resena-estrellas { color: var(--amarillo-texto); letter-spacing: .1em; }
.resenas-fuente { color: var(--tinta-suave); font-size: .85rem; margin-top: 1rem; }

/* ---- Contacto ---- */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; margin-top: 1rem; }
@media (max-width: 780px) { .contacto-grid { grid-template-columns: 1fr; } }
.contacto-datos p { color: var(--tinta-suave); }
.contacto-datos a:not(.boton-cta) { color: var(--rojo-oscuro); font-weight: 600; text-decoration: none; }
.horario-lista { font-size: .95rem; }
.contacto-mapa iframe { border-radius: 12px; box-shadow: var(--sombra); }

/* ---- Redes sociales ---- */
.redes-fila { display: flex; gap: .6rem; margin: 1.1rem 0; flex-wrap: wrap; }
div.redes-fila a {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--tinta); text-decoration: none;
  /* !important: este badge circular vive dentro de contenedores (.contacto-datos, .pie)
     que traen su propia regla de color para <a> — sin esto, ese color de ambiente se
     cuela y el ícono queda casi invisible sobre el círculo oscuro (bug ya visto antes). */
  color: #fff !important;
}
.redes-fila a svg { width: 1.15rem; height: 1.15rem; }
.redes-fila a:hover { background: var(--rojo); }

/* ---- Pie ---- */
.pie { max-width: 1100px; margin: 0 auto; padding: 2rem 1.1rem 3rem; text-align: center; color: var(--tinta-suave); font-size: .85rem; }
.pie .redes-fila { justify-content: center; }
.pie a { color: var(--tinta-suave); text-decoration: underline; }

/* ---- WhatsApp flotante ---- */
.wa-flotante {
  position: fixed; right: 1.1rem; bottom: 1.1rem; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--rojo); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(184,64,46,.6); z-index: 50;
}
.wa-flotante svg { width: 1.7rem; height: 1.7rem; }

/* ---- Legal (páginas públicas) ---- */
.legal-top { max-width: 760px; margin: 0 auto; padding: 1rem 1.1rem .2rem; }
.legal-top a { color: var(--rojo-oscuro); text-decoration: none; font-size: .95rem; }
