/* Plaza de Abastos de Palencia · one page
   Paleta del minimanual (lámina de color):
   verdes  #e0e1dd #c0c2ba #9fa396 #808574 · amarillos #fdf1c3 #fbe386 #f8d449 #f7c80d
   Contrastes (WCAG 2.x):
   #5a5e4d sobre #fff ........ 6,68:1  texto de lectura (verde oscuro de la variante oficial «logo - 3»)
   #fff sobre #5a5e4d ........ 6,68:1  pie
   #fff sobre #808574 ........ 3,80:1  solo grafismo / foco (>= 3:1)
   #f7c80d sobre #808574 ..... 2,39:1  solo grafismo, nunca texto
   #5a5e4d sobre #e0e1dd ..... 5,09:1  anillo de foco sobre el hero
   #5a5e4d sobre #f7c80d ..... 4,21:1  icono de reproducción (>= 3:1)
   #d0d2cb = mezcla 50 % #e0e1dd + 50 % #c0c2ba: motivo de fondo del hero, sin texto encima */
:root {
  --verde: #808574;
  --verde-oscuro: #5a5e4d;
  --gris: #e0e1dd;
  --amarillo: #f7c80d;
  --blanco: #fff;
  --serif: Georgia, "Noto Serif", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --margen: clamp(1rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blanco);
  color: var(--verde-oscuro);
  font: 400 1rem/1.55 var(--sans);
}

img, svg, iframe { display: block; max-width: 100%; }

/* ── Cabecera: banderola + vídeo ───────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.25rem;
  padding: 0 var(--margen) 1.5rem;
  background: var(--gris) url("simbolo-motivo.svg?v=1") no-repeat;
  background-size: auto 115%;
  background-position: right -40vw top 2rem;
}

.marca { margin: 0; width: 7rem; }
.marca img { width: 100%; height: auto; }

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--verde-oscuro);
}

.video-facade {
  all: unset;
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(4rem, 9vw, 6.5rem);
  height: auto;
  translate: -50% -50%;
  transition: scale .2s ease-out;
}
.video-play circle { fill: var(--amarillo); }
.video-play path { fill: var(--verde-oscuro); }
.video-facade:hover .video-play { scale: 1.08; }
.video-facade:focus-visible {
  outline: 4px solid var(--verde-oscuro);
  outline-offset: 4px;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-sinjs {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: .75rem 1rem;
  background: var(--verde-oscuro);
}
.video-sinjs a { color: var(--blanco); }

@media (min-width: 60em) {
  .hero {
    grid-template-columns: clamp(9rem, 14vw, 14rem) minmax(0, 1fr);
    justify-items: start;
    align-items: start;
    column-gap: clamp(2rem, 4vw, 4.5rem);
    padding-bottom: clamp(2rem, 6vh, 4rem);
    background-size: auto 160%;
    background-position: right -18vw top -6vh;
  }
  .marca { width: 100%; }
  .video {
    /* ocupa la primera pantalla sin desbordarla */
    width: min(100%, calc((100svh - 2 * clamp(2rem, 6vh, 4rem)) * 16 / 9));
    margin-top: clamp(2rem, 6vh, 4rem);
  }
}

/* ── Mensaje ───────────────────────────────────────────────── */
.mensaje {
  display: grid;
  gap: 1.5rem 4rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) var(--margen);
}
.lema {
  margin: 0;
  font: 400 clamp(2.25rem, 5.5vw, 4.75rem)/1.04 var(--serif);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.identidad { font-size: clamp(1.125rem, 1.7vw, 1.375rem); max-width: 34em; }
.identidad p { margin: 0 0 1.5rem; }
.firma {
  display: inline-block;
  padding-top: 1rem;
  border-top: 4px solid var(--amarillo);
  font-family: var(--serif);
  font-size: 1.15em;
}
.identidad .firma { margin-bottom: 0; }

@media (min-width: 60em) {
  .mensaje { grid-template-columns: 1.1fr 1fr; align-items: end; }
}

/* ── Pie ───────────────────────────────────────────────────── */
.pie {
  background: var(--verde-oscuro);
  color: var(--blanco);
  padding: 2rem var(--margen);
}
.pie p { max-width: 76rem; margin: 0 auto; font-family: var(--serif); font-size: 1.125rem; }

@media (prefers-reduced-motion: reduce) {
  .video-play { transition: none; }
  .video-facade:hover .video-play { scale: none; }
}
