/* Web pública de GL313 — mesma paleta azul que a páxina anterior */
:root {
  --azul: #468df0;
  --azul-2: #5f78ff;
  --azul-escuro: #233042;
  --texto: #1a1a1a;
  --texto-suave: #5b6472;
  --fondo: #ffffff;
  --fondo-suave: #f3f6fb;
  --borde: #e3e8f0;
  --patrimonio: #c2410c;
  --espazos: #0f766e;
  --eventos: #7c3aed;
  --tradicions: #b45309;
  --empresas: #be185d;
  --persoas: #1d4ed8;
  --grupos: #4d7c0f;
  --institucions: #475569;
  --raio: 14px;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--texto);
  background: var(--fondo);
}
a { color: var(--azul-2); }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

/* Navegación */
.web-nav { background: var(--azul-escuro); }
.web-nav .nav-link, .web-marca { color: #fff !important; }
.web-nav .nav-link { opacity: .8; }
.web-nav .nav-link:hover, .web-nav .nav-link.active { opacity: 1; }
.web-marca { font-weight: 800; letter-spacing: .04em; }
.web-nav .navbar-toggler { border-color: rgba(255,255,255,.4); }
.web-nav .navbar-toggler-icon { filter: invert(1); }
.web-btn-api { background: var(--azul); color: #fff; border: 0; }
.web-btn-api:hover { background: var(--azul-2); color: #fff; }

/* Cabeceiras */
.web-heroe {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-2) 55%, #6aa9ff 100%);
  color: #fff;
  padding: 72px 0 56px;
}
.web-heroe h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.web-heroe .lead { max-width: 640px; opacity: .95; }
.web-heroe-busca {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px;
  max-width: 620px; margin: 28px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.web-heroe-busca i { color: var(--texto-suave); }
.web-heroe-busca input { flex: 1; border: 0; outline: 0; min-width: 0; font-size: 1.05rem; }
.web-heroe-busca .btn { background: var(--azul-escuro); color: #fff; border-radius: 999px; padding: 8px 20px; }
.web-cifras { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 0; }
.web-cifras strong { font-size: 1.5rem; display: block; line-height: 1.1; }
.web-heroe-contratar { padding: 88px 0 72px; }

.web-cabeceira-paxina { background: var(--fondo-suave); padding: 40px 0 28px; border-bottom: 1px solid var(--borde); }
.web-cabeceira-paxina p { color: var(--texto-suave); }
.web-filtro { display: flex; gap: 8px; max-width: 520px; }

/* Seccións */
.web-seccion { padding: 48px 0; }
.web-seccion-suave { background: var(--fondo-suave); }
.web-seccion-cabeceira { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; gap: 12px; }
.web-seccion-cabeceira a { text-decoration: none; font-weight: 600; white-space: nowrap; }
.web-contador, .web-baleiro { color: var(--texto-suave); }

/* Grade de tarxetas */
.web-grade { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.web-grade-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.web-grade-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.web-tarxeta {
  display: flex; flex-direction: column;
  border: 1px solid var(--borde); border-radius: var(--raio);
  overflow: hidden; text-decoration: none; color: inherit; background: #fff;
  transition: transform .15s, box-shadow .15s;
}
.web-tarxeta:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,40,80,.1); color: inherit; }
.web-tarxeta-imaxe {
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; color: #fff; background: var(--azul);
}
.web-tarxeta-imaxe img { width: 100%; height: 100%; object-fit: cover; }
.web-tarxeta-corpo { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.web-tarxeta-corpo h3 { font-size: 1.05rem; margin: 0; }
.web-tarxeta-data { font-size: .85rem; font-weight: 600; color: var(--eventos); }
.web-tarxeta-lugar { font-size: .88rem; color: var(--texto-suave); }
.web-etiqueta {
  align-self: flex-start; font-size: .75rem; font-weight: 600;
  background: var(--fondo-suave); border-radius: 999px; padding: 2px 10px; color: var(--texto-suave);
}

/* Cor de cada tipo */
.web-tipo-patrimonio { --tipo: var(--patrimonio); }
.web-tipo-espazos { --tipo: var(--espazos); }
.web-tipo-eventos { --tipo: var(--eventos); }
.web-tipo-tradicions { --tipo: var(--tradicions); }
.web-tipo-empresas { --tipo: var(--empresas); }
.web-tipo-persoas { --tipo: var(--persoas); }
.web-tipo-grupos { --tipo: var(--grupos); }
.web-tipo-institucions { --tipo: var(--institucions); }
.web-tarxeta-imaxe[class*="web-tipo-"] { background: linear-gradient(135deg, var(--tipo), color-mix(in srgb, var(--tipo) 60%, #000)); }

/* Mapa */
.web-mapa { height: 460px; border-radius: var(--raio); border: 1px solid var(--borde); z-index: 0; }
.web-mapa-ficha { height: 280px; }
.web-seccion-mapa { background: var(--fondo-suave); }
.web-lenda { display: flex; gap: 18px; list-style: none; padding: 0; margin: 12px 0 0; flex-wrap: wrap; font-size: .9rem; }
.web-lenda label { cursor: pointer; }
.web-punto { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--tipo); vertical-align: middle; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--tipo); }
.web-mapa-completo { position: relative; }
.web-mapa-completo .web-mapa { height: calc(100vh - 56px); min-height: 420px; border-radius: 0; border: 0; }
.web-mapa-panel {
  position: absolute; top: 16px; left: 56px; z-index: 500; max-width: 320px;
  background: #fff; border-radius: var(--raio); padding: 16px 18px; box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.web-mapa-panel h1 { font-size: 1.3rem; }
.web-mapa-cargando { font-style: italic; }
.web-mapa-panel p { font-size: .9rem; color: var(--texto-suave); }
.web-mapa-panel .web-lenda { flex-direction: column; gap: 6px; }
.web-como-chegar { display: inline-block; margin: 10px 0 0; font-weight: 600; text-decoration: none; }

/* Inicio: buscador e, xusto debaixo, o mapa */
.web-heroe-compacto { padding: 48px 0 36px; }
.web-heroe-compacto .web-heroe-busca { margin-bottom: 0; }
.web-mapa-inicio { padding: 24px 0 40px; background: var(--fondo-suave); }
.web-mapa-inicio .web-mapa { height: min(62vh, 560px); min-height: 360px; box-shadow: 0 12px 30px rgba(20,40,80,.15); }
.web-mapa-tema { height: 360px; }

/* Filtros por tema */
.web-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.web-chip {
  border: 1px solid var(--borde); background: #fff; color: var(--texto);
  border-radius: 999px; padding: 5px 14px; font-size: .9rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
}
.web-chip small { color: var(--texto-suave); margin-left: 2px; }
.web-chip:hover { border-color: var(--azul); color: var(--texto); }
.web-chip[aria-pressed="true"] { background: var(--azul-escuro); border-color: var(--azul-escuro); color: #fff; }
.web-chip[aria-pressed="true"] small { color: #cbd5e1; }
.web-cabeceira-paxina .web-chips { margin: 16px 0 0; }

/* Subdivisións dun territorio */
.web-subdivisions { list-style: none; padding: 0; margin: 0; columns: 4 200px; column-gap: 24px; }
.web-subdivisions li { break-inside: avoid; padding: 3px 0; }
.web-subdivisions a { text-decoration: none; font-weight: 500; }
.web-subdivisions small { background: var(--fondo-suave); border-radius: 999px; padding: 0 8px; margin-left: 4px; color: var(--texto-suave); }
.web-subdivisions .baleira a { color: var(--texto-suave); font-weight: 400; }

/* Subtítulos de sección */
.web-subtitulo { font-size: 1rem; font-weight: 700; color: var(--texto-suave); margin: 18px 0 10px; text-transform: uppercase; letter-spacing: .04em; }

/* Tarxetas de tema */
.web-tema {
  display: block; border: 1px solid var(--borde); border-radius: var(--raio);
  padding: 18px 20px; text-decoration: none; color: inherit; background: #fff;
  transition: transform .15s, box-shadow .15s;
}
.web-tema:hover { box-shadow: 0 12px 28px rgba(20,40,80,.1); }
a.web-tema:hover { transform: translateY(-3px); color: inherit; }
.web-tema h3 { font-size: 1.15rem; margin: 0 0 10px; }
.web-tema p { color: var(--texto-suave); font-size: .9rem; margin: 10px 0 0; }
.web-tema h3 a { color: inherit; text-decoration: none; }
.web-tema h3 a:hover { color: var(--azul-2); }
.web-subtemas { list-style: none; padding: 0; margin: 12px 0 0; font-size: .92rem; }
.web-subtemas li { margin: 3px 0; }
.web-subtemas a { text-decoration: none; }
.web-subtemas a:hover { text-decoration: underline; }
.web-subtemas .web-subtemas { margin: 2px 0 4px 14px; padding-left: 10px; border-left: 2px solid var(--borde); font-size: .88rem; }
.web-tema-tipos { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.web-migas-escuras, .web-migas-escuras a { color: var(--texto-suave); opacity: 1; }

/* Ficha */
.web-ficha-cabeceira { position: relative; background: linear-gradient(135deg, var(--tipo), color-mix(in srgb, var(--tipo) 55%, #000)); color: #fff; }
.web-ficha-cabeceira.con-foto { background: #111; min-height: 380px; display: flex; align-items: flex-end; }
.web-ficha-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.web-ficha-titulo { position: relative; padding: 56px 12px 36px; }
.web-ficha-titulo h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
.web-migas { font-size: .9rem; opacity: .9; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.web-migas a { color: #fff; }
.web-ficha-data, .web-ficha-lugar { margin: 4px 0 0; font-size: 1.05rem; }
.web-creditos { position: absolute; right: 12px; bottom: 8px; font-size: .75rem; opacity: .85; }
.web-ficha { padding: 40px 12px 56px; }
.web-ficha h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.web-resumo { font-size: 1.2rem; line-height: 1.6; color: #2b3340; }
.web-texto { line-height: 1.75; }
.web-texto img { max-width: 100%; height: auto; }
.web-lista-simple { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.web-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.web-galeria figure { margin: 0; }
.web-galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.web-galeria figcaption { font-size: .85rem; margin-top: 4px; }
.web-galeria figcaption small, .web-lista-simple small { color: var(--texto-suave); }
.web-audio audio { width: 100%; }
.web-caixa { border: 1px solid var(--borde); border-radius: var(--raio); padding: 18px 20px; margin-top: 20px; }
.web-caixa h2 { font-size: 1.05rem; margin: 0 0 12px; }
.web-caixa dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.web-caixa dt { font-weight: 600; color: var(--texto-suave); }
.web-caixa dd { margin: 0; }

/* O que só está na API */
.web-na-api { margin-top: 28px; border: 1px dashed var(--azul); border-radius: var(--raio); padding: 20px 22px; background: var(--fondo-suave); }
.web-na-api h2 { font-size: 1.1rem; margin: 0 0 10px; }
.web-na-api ul { columns: 2; column-gap: 24px; padding-left: 18px; margin: 0 0 12px; }
.web-na-api p { color: var(--texto-suave); font-size: .92rem; }
@media (max-width: 575px) { .web-na-api ul { columns: 1; } }

/* Busca e paxinación */
.web-resultados { list-style: none; padding: 0; display: grid; gap: 18px; }
.web-resultados a { font-size: 1.1rem; font-weight: 600; }
.web-resultados small { margin-left: 8px; color: var(--texto-suave); }
.web-resultado-resumo { color: var(--texto-suave); }
.web-resultado-resumo p { margin: 4px 0 0; }
.web-paxinacion { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 36px; }
.web-aviso { text-align: center; padding: 96px 0; }

/* Contratar */
.web-caracteristicas i { font-size: 1.8rem; color: var(--azul); }
.web-caracteristicas h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.web-caracteristicas p, .web-niveis p { color: var(--texto-suave); margin: 0; }
.web-niveis > div { border: 1px solid var(--borde); border-radius: var(--raio); padding: 18px 20px; }
.web-niveis h3 { font-size: 1.1rem; }
.web-chamada { background: var(--azul-escuro); color: #fff; padding: 56px 0; text-align: center; }
.web-chamada p { max-width: 620px; margin: 12px auto 24px; opacity: .9; }

/* Panel "Así se fai coa API" */
.web-api { background: #0f172a; color: #e2e8f0; padding: 20px 0; }
.web-api > .container > details > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-weight: 700; }
.web-api summary small { font-weight: 400; color: #94a3b8; }
.web-api-intro { color: #cbd5e1; margin: 14px 0; }
.web-api-intro a { color: #93c5fd; }
.web-api-chamada { border-top: 1px solid #1e293b; padding: 10px 0; }
.web-api-url { color: #86efac; word-break: break-all; }
.web-api-chamada details summary { color: #93c5fd; cursor: pointer; font-size: .9rem; margin-top: 4px; }
.web-api pre { background: #020617; color: #e2e8f0; border-radius: 10px; padding: 14px; max-height: 420px; overflow: auto; font-size: .8rem; margin: 8px 0 0; }
.web-api-exemplo { margin-top: 16px !important; }

/* Pé */
.web-pe { background: var(--fondo-suave); padding: 28px 0; font-size: .92rem; color: var(--texto-suave); border-top: 1px solid var(--borde); }

@media (max-width: 575px) {
  .web-heroe { padding: 48px 0 40px; }
  .web-mapa-panel { position: static; max-width: none; border-radius: 0; box-shadow: none; }
  .web-mapa-completo .web-mapa { height: 70vh; }
}
