/* Cabecera y pie nuevos (Claude Design «Cabecera Web» 1A / 1g y «Pie Web», 9-oct-2026). Tipografía Raleway. */
.prh, .prf {
  --pr-verde: #a2bf2c; --pr-verde-claro: #eef2dc; --pr-verde-oscuro: #788e1e; --pr-verde-profundo: #4f5e14;
  --pr-on-brand: #f5f5f5; --pr-texto: #1f2119; --pr-gris: #6e6e6e; --pr-gris-control: #8c9081;
  --pr-gris-linea: #e3e5dc; --pr-fondo-suave: #f6f7f1; --pr-hover: rgba(0, 0, 0, .06); --pr-error: #b3261e;
  --pr-sombra-2: 0 2px 6px rgba(28, 31, 23, .08), 0 12px 32px rgba(28, 31, 23, .12);
  font-family: Raleway, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--pr-texto);
}
.prh *, .prh *::before, .prh *::after, .prf *, .prf *::before, .prf *::after { box-sizing: border-box; }
.prh-icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.prh-icon--sm { width: 16px; height: 16px; }
.prh-girado { transform: rotate(180deg); }

/* ---------- Cabecera ---------- */
.prh { position: relative; z-index: 900; background: #fff; border-bottom: 1px solid var(--pr-gris-linea); }
.prh-barra {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
}
.prh-izq { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prh-usuario {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%;
  border: 1px solid var(--pr-gris-control); color: inherit; text-decoration: none; transition: background .15s;
}
.prh-usuario:hover { background: var(--pr-fondo-suave); }
.prh-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px;
  border: 1px solid var(--pr-verde); border-radius: 6px; background: var(--pr-verde); color: #fff !important;
  font: 600 14px/1 Raleway, system-ui, sans-serif; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s;
}
.prh-btn:hover { background: var(--pr-verde-oscuro); border-color: var(--pr-verde-oscuro); }
.prh-btn--bloque { display: flex; width: 100%; min-height: 48px; margin-bottom: 12px; font-size: 16px; }
.prh-solo-movil { display: none; }
.prh-logo { display: block; line-height: 0; }
.prh-logo img { display: block; height: 30px; width: auto; }
.prh-nav { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.prh-nav > a, .prh-destinos-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0; margin: 0;
  border: 0; border-top: 2px solid transparent; border-bottom: 2px solid transparent; background: transparent;
  color: inherit; font: 500 15px/1 Raleway, system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.prh-nav > a:hover, .prh-destinos-btn:hover { border-bottom-color: var(--pr-verde); }
.prh-destinos-btn[aria-expanded="true"] { border-bottom-color: var(--pr-verde-oscuro); }
.prh-destinos-btn .prh-icon { transition: transform .15s; }
.prh-destinos-btn[aria-expanded="true"] .prh-icon { transform: rotate(180deg); }
.prh-nav > a.prh-fav { position: relative; display: grid; place-items: center; width: 36px; height: 36px; margin-left: -8px; border: 0; border-radius: 50%; }
.prh-nav > a.prh-fav:hover { background: var(--pr-hover); }
.prh-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pr-verde-oscuro); color: #fff;
  font: 600 11px/18px Raleway, system-ui, sans-serif; text-align: center;
}
.prh-fav .prh-badge { position: absolute; top: -2px; right: -4px; box-shadow: 0 0 0 2px #fff; }
.prh-menu-btn { display: none; }

/* Mega-menú Destinos */
.prh-destinos { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--pr-gris-linea); box-shadow: var(--pr-sombra-2); }
.prh-destinos[hidden], .prh-movil[hidden], .prf-destinos[hidden], .prh-movil-provs[hidden] { display: none; }
.prh-destinos-in { max-width: 1200px; margin: 0 auto; padding: 28px 24px 20px; display: grid; gap: 20px; }
.prh-destinos-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.prh-destinos-tit { margin: 0; font: 700 24px/1.2 Raleway, system-ui, sans-serif; color: #000; }
.prh-enlace { color: var(--pr-verde-profundo); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.prh-ccaa { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 20px; }
.prh-ccaa-col { display: grid; gap: 6px; align-content: start; }
.prh-ccaa-col--pt { padding: 12px; border-radius: 8px; background: var(--pr-fondo-suave); }
.prh-ccaa-nombre { color: var(--pr-texto); text-decoration: none; font: 600 15px/1.3 Raleway, system-ui, sans-serif; }
.prh-prov { color: var(--pr-gris); text-decoration: none; font: 400 14px/1.4 Raleway, system-ui, sans-serif; }
a.prh-ccaa-nombre:hover, .prh-prov:hover { color: var(--pr-verde-profundo); text-decoration: underline; }

/* Panel móvil */
.prh-movil { position: fixed; inset: 0; z-index: 10001; display: flex; flex-direction: column; background: #fff; }
.prh-movil-cab { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--pr-gris-linea); }
.prh-movil-cab .prh-usuario { width: 44px; height: 44px; border: 0; }
.prh-movil-cab .prh-logo { justify-self: center; }
.prh-movil-cab .prh-logo img { height: 22px; }
.prh-cerrar { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--pr-fondo-suave); color: var(--pr-texto); cursor: pointer; }
.prh-movil-cuerpo { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 4px; align-content: start; }
.prh-movil-item { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; padding: 0 4px; border-bottom: 1px solid var(--pr-gris-linea); color: var(--pr-texto); text-decoration: none; font: 500 17px Raleway, system-ui, sans-serif; }
.prh-movil-item--tit { font-weight: 600; border-bottom: 0; }
.prh-movil-item--tit .prh-icon { margin-left: auto; }
.prh-movil-item--sin-linea { border-bottom: 0; }
.prh-movil-grupo { border-bottom: 1px solid var(--pr-gris-linea); }
.prh-movil-ccaa { display: grid; padding: 0 0 8px 8px; }
.prh-movil-ccaa-btn { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--pr-texto); font: 400 16px Raleway, system-ui, sans-serif; cursor: pointer; text-align: left; }
.prh-movil-ccaa-btn .prh-icon { margin-left: auto; transition: transform .15s; }
.prh-movil-ccaa-btn[aria-expanded="true"] .prh-icon { transform: rotate(180deg); }
.prh-movil-provs { display: grid; padding: 0 0 8px 12px; border-left: 2px solid var(--pr-verde); }
.prh-movil-provs a { display: flex; align-items: center; min-height: 40px; color: var(--pr-texto); font: 400 15px Raleway, system-ui, sans-serif; text-decoration: none; }
.prh-movil-provs a.prh-movil-toda { color: var(--pr-verde-profundo); font-weight: 600; }
html.prh-bloqueo, html.prh-bloqueo body { overflow: hidden; }

@media (max-width: 980px) {
  .prh-barra { grid-template-columns: 44px auto minmax(0, 1fr) 44px; column-gap: 6px; padding: 10px 12px; }
  .prh-izq { display: contents; }
  .prh-usuario { width: 44px; height: 44px; border: 0; }
  .prh-solo-escritorio { display: none; }
  .prh-solo-movil { display: inline; }
  .prh-logo { justify-self: center; }
  .prh-logo img { height: 22px; }
  .prh-nav, .prh-destinos { display: none !important; }
  .prh-menu-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--pr-texto); cursor: pointer; }
}

/* ---------- Pie ---------- */
.prf { background: #fff; border-top: 1px solid var(--pr-gris-linea); font-size: 14px; }
.prf-in { max-width: 1200px; margin: 0 auto; padding: 40px 24px 20px; display: grid; gap: 28px; }
.prf-grid { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto; gap: 48px; align-items: start; }
.prf-icono { display: block; width: 64px; height: 64px; }
.prf-icono img { display: block; width: 100%; height: 100%; margin: -8px 0 0 -8px; }
.prf-col { display: grid; gap: 14px; align-content: start; }
.prf-col-tit {
  display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; cursor: default; text-align: left;
  color: var(--pr-gris); font: 600 12px/1.3 Raleway, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.prf-col-tit .prh-icon { display: none; }
.prf-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prf-lista a, .prf-destinos-btn { color: var(--pr-texto); text-decoration: none; font: 400 15px/1.4 Raleway, system-ui, sans-serif; }
.prf-lista a:hover { color: var(--pr-verde-profundo); text-decoration: underline; }
.prf-destinos-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.prf-destinos-btn:hover { color: var(--pr-verde-profundo); }
.prf-destinos-btn .prh-icon { transition: transform .15s; }
.prf-destinos-btn[aria-expanded="true"] .prh-icon { transform: rotate(180deg); }
.prf-redes { display: flex; gap: 8px; }
.prf-redes a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--pr-gris-linea);
  color: var(--pr-texto); transition: background .15s, border-color .15s, color .15s;
}
.prf-redes a:hover { background: var(--pr-verde-claro); border-color: var(--pr-verde-oscuro); color: var(--pr-verde-profundo); }
/* Destinos del pie (28-oct): lista que se abre debajo del botón; cada comunidad despliega sus provincias */
.prf-dest-lista, .prf-dest-provs { list-style: none; margin: 0; padding: 0; }
.prf-dest-lista[hidden], .prf-dest-provs[hidden] { display: none; }
.prf-dest-lista { display: grid; gap: 2px; margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--pr-verde-claro); }
.prf-dest-provs { display: grid; gap: 2px; padding: 2px 0 6px 12px; }
.prf-dest-ccaa { display: inline-flex; align-items: center; gap: 4px; padding: 3px 0; border: 0; background: transparent; cursor: pointer; color: var(--pr-texto); font: 500 14px/1.4 Raleway, system-ui, sans-serif; text-align: left; }
.prf-dest-ccaa:hover { color: var(--pr-verde-profundo); }
.prf-dest-ccaa .prh-icon { transition: transform .15s; }
.prf-dest-ccaa[aria-expanded="true"] .prh-icon { transform: rotate(180deg); }
.prf-lista .prf-dest-lista a { font-size: 14px; }
.prf-lista .prf-dest-provs a { font-size: 13px; color: var(--pr-gris); }
.prf-lista .prf-dest-provs a:hover { color: var(--pr-verde-profundo); }
.prf-linea { height: 1px; background: var(--pr-gris-linea); }
.prf-copy { color: var(--pr-gris); font-size: 13px; }

@media (max-width: 960px) { .prh-ccaa { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .prf-in { padding: 28px 20px 24px; gap: 20px; }
  .prf-grid { grid-template-columns: 1fr; gap: 0; }
  .prf-icono { margin-bottom: 20px; }
  .prf-col { gap: 0; border-bottom: 1px solid var(--pr-gris-linea); }
  .prf-col:first-of-type { border-top: 1px solid var(--pr-gris-linea); }
  .prf-col-tit { width: 100%; min-height: 52px; cursor: pointer; color: var(--pr-texto); font-size: 15px; letter-spacing: 0; text-transform: none; }
  .prf-col-tit .prh-icon { display: inline-block; margin-left: auto; transition: transform .15s; }
  .prf-col-tit[aria-expanded="true"] .prh-icon { transform: rotate(180deg); }
  .prf-lista { display: none; gap: 0; padding: 0 0 12px; }
  .prf-col-tit[aria-expanded="true"] + .prf-lista { display: grid; }
  .prf-lista a, .prf-destinos-btn { display: flex; align-items: center; min-height: 44px; }
  .prf-redes { margin-top: 20px; }
  .prf-redes a { width: 44px; height: 44px; }
  .prf-dest-ccaa { width: 100%; min-height: 44px; font-size: 15px; }
  .prf-dest-ccaa .prh-icon { margin-left: auto; }
  .prf-lista .prf-dest-lista a, .prf-lista .prf-dest-provs a { min-height: 40px; }
}
