:root {
  --rojo: #e30613;
  --rojo-oscuro: #b0040f;
  --amarillo: #f5c400;
  --texto: #1f1f1f;
  --suave: #5c5c5c;
  --fondo: #fffaf3;
  --tarjeta: #ffffff;
  --radio: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--rojo-oscuro); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

.cabecera {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1.25rem;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid #eee;
}
.marca { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.3rem; color: var(--rojo); text-decoration: none; }
.cabecera nav { display: flex; gap: 1.1rem; }
.cabecera nav a { color: var(--texto); text-decoration: none; font-weight: 600; }
.cabecera nav a:hover { color: var(--rojo); }

.portada { position: relative; min-height: 78vh; display: grid; align-items: end; color: #fff; }
.portada-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72)); }
.portada-texto { position: relative; z-index: 1; max-width: 760px; padding: 2.5rem 1.5rem 3rem; }
.portada h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.antetitulo { display: inline-block; margin: 0 0 .6rem; padding: .2rem .7rem; background: var(--amarillo); color: #000; font-weight: 700; border-radius: 999px; font-size: .9rem; }

.botones { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.boton { display: inline-block; padding: .8rem 1.3rem; border-radius: 999px; background: var(--rojo); color: #fff; font-weight: 700; text-decoration: none; }
.boton:hover { background: var(--rojo-oscuro); }
.boton.secundario { background: #fff; color: var(--rojo-oscuro); border: 2px solid var(--rojo); }

.bloque { max-width: 1100px; margin: 0 auto; padding: 3.5rem 1.25rem; }
.bloque h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--rojo); }
.tarjetas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 960px) { .tarjetas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tarjetas { grid-template-columns: 1fr; } }
.tarjeta { background: var(--tarjeta); border-radius: var(--radio); overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.tarjeta img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tarjeta h3, .tarjeta p { padding: 0 1rem; }
.tarjeta h3 { margin-top: 1rem; }
.tarjeta p { color: var(--suave); margin-bottom: 1.2rem; }

.destacado { background: var(--rojo); color: #fff; max-width: none; text-align: center; }
.destacado h2 { color: #fff; }
.destacado p { max-width: 680px; margin: 0 auto; }
.destacado .botones { justify-content: center; }
.destacado .boton { background: #fff; color: var(--rojo-oscuro); }
.destacado .boton.secundario { background: transparent; color: #fff; border-color: #fff; }

.contacto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.contacto h3 { margin-top: 1.2rem; font-size: 1.05rem; }
.horario { border-collapse: collapse; }
.horario td { padding: .3rem 1rem .3rem 0; border-bottom: 1px solid #eadfd0; }

.pie { text-align: center; padding: 2rem 1rem; color: var(--suave); font-size: .9rem; border-top: 1px solid #eee; }
.pie p { margin: .2rem 0; }

@media (max-width: 560px) {
  .cabecera nav { gap: .8rem; font-size: .95rem; }
  .marca { font-size: 1.1rem; }
}
