/* Busco Global — estilos de los componentes del plugin.
   Pensado para personas mayores: letra grande, alto contraste, botones amplios y foco visible. */
:root {
	--bg-pri: #2f5b3e;
	--bg-pri-osc: #1f4029;
	--bg-texto: #2d2d2d;
	--bg-suave: #4a4a4a;
	--bg-borde: #9a8f7a;
	--bg-fondo: #f6f0e3;
	--bg-ok: #8a3b12;
	--bg-error: #a4161a;
	--bg-aviso: #7a4a00;
	--bg-oro: #ffd24a;
	--bg-radio: 8px;
	--bg-medio: #4f7d5c;
	--bg-crema: #f6f0e3;
	--bg-crema-clara: #f9f5ec;
	--bg-melocoton: #f3c9a5;
	--bg-linea: #e3d9c3;
	--bg-sombra: 0 4px 20px rgba(0, 0, 0, .08);
	--bg-f-titulo: "Public Sans", "Mulish", sans-serif;
	--bg-f-boton: "Archivo Narrow", "Public Sans", "Mulish", sans-serif;
}

.bg-pagina, .bg-buscador, .bg-perfiles, .bg-tematicas, .bg-tematica, .bg-provincia, .bg-modal, .bg-barra, .bg-byg-info {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--bg-texto);
}
.bg-contenedor { padding-top: 32px; padding-bottom: 48px; }
.bg-pagina h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 16px; }
.bg-pagina h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.25; margin: 40px 0 14px; }
.bg-pagina h3 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 6px; }
.bg-intro { font-size: 1.25rem; max-width: 70ch; }
.bg-nota { font-size: 1rem; color: var(--bg-suave); }
.bg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.bg-pagina a, .bg-tematica a, .bg-perfiles a, .bg-provincia a, .bg-modal a, .bg-barra a { text-decoration: underline; text-underline-offset: 3px; }
.bg-pagina :focus-visible, .bg-buscador :focus-visible, .bg-perfiles :focus-visible, .bg-tematica :focus-visible,
.bg-provincia :focus-visible, .bg-modal :focus-visible, .bg-barra :focus-visible, .bg-byg-boton:focus-visible, .bg-anuncio :focus-visible {
	outline: 4px solid #111;
	outline-offset: 3px;
	box-shadow: 0 0 0 7px var(--bg-oro);
}

/* Botones */
.bg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 12px 24px;
	font-size: 1.125rem; font-weight: 700; line-height: 1.2; text-align: center;
	border: 2px solid var(--bg-pri); border-radius: var(--bg-radio);
	cursor: pointer; text-decoration: none !important;
}
.bg-btn-pri { background: var(--bg-pri); color: #fff !important; }
.bg-btn-pri:hover { background: var(--bg-pri-osc); border-color: var(--bg-pri-osc); }
.bg-btn-sec { background: #fff; color: var(--bg-pri) !important; }
.bg-btn-sec:hover { background: var(--bg-fondo); }
.bg-btn-tel { background: var(--bg-ok); border-color: var(--bg-ok); color: #fff !important; font-size: 1.25rem; white-space: nowrap; }
.bg-btn-tel::before { content: "\260E"; font-size: 1.2em; }
.bg-btn-tel:hover { background: #6b2c0b; }
.bg-btn-peq { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.bg-btn[disabled] { opacity: .6; cursor: wait; }

/* Formularios */
.bg-campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; position: relative; }
.bg-campo label, .bg-fieldset legend { font-weight: 700; font-size: 1.0625rem; }
.bg-campo input[type=text], .bg-campo input[type=search], .bg-campo input[type=email], .bg-campo input[type=tel],
.bg-campo input[type=url], .bg-campo input[type=password], .bg-campo select, .bg-campo textarea {
	width: 100%; box-sizing: border-box; min-height: 52px; padding: 10px 14px;
	font-size: 1.125rem; line-height: 1.4; color: var(--bg-texto);
	background: #fff; border: 2px solid var(--bg-borde); border-radius: var(--bg-radio);
}
.bg-campo textarea { min-height: 120px; }
.bg-campo input[type=file] { font-size: 1rem; padding: 8px 0; }
.bg-campo-error input, .bg-campo-error select, .bg-campo-error textarea { border-color: var(--bg-error); background: #fff5f5; }
.bg-campo-error label::after, .bg-check.bg-campo-error span::after { content: " ⚠"; color: var(--bg-error); }
.bg-form { max-width: 820px; }
.bg-form-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }
.bg-check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.bg-check input[type=checkbox], .bg-checks input[type=checkbox] { width: 26px; height: 26px; flex: 0 0 26px; margin: 2px 0 0; }
.bg-fieldset { border: 2px solid #e3d9c3; border-radius: var(--bg-radio); padding: 12px 16px; margin: 0 0 16px; }
.bg-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 16px; }
.bg-checks label { display: flex; gap: 10px; align-items: flex-start; min-height: 36px; }
.bg-checks-scroll { max-height: 260px; overflow: auto; padding-right: 6px; }

.bg-msg { padding: 14px 18px; border-radius: var(--bg-radio); border-left: 8px solid; margin: 0 0 18px; font-weight: 600; }
.bg-msg-ok { background: #e8f6ee; border-color: #0e5c2f; color: #0a3d1f; }
.bg-msg-error { background: #fdecec; border-color: var(--bg-error); color: #6e0f12; }
.bg-msg-info, .bg-aviso { background: #fff6e0; border-color: var(--bg-aviso); color: #4d2f00; }
.bg-aviso { padding: 14px 18px; border-radius: var(--bg-radio); border-left: 8px solid var(--bg-aviso); font-weight: 600; }

/* Buscador */
.bg-buscador {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: end;
	background: var(--bg-fondo); border: 2px solid #e3d9c3; border-radius: 14px; padding: 20px; margin: 0 0 24px;
}
.bg-buscador .bg-campo { margin: 0; }
.bg-buscador .bg-campo-q { grid-column: 1 / -1; }
.bg-buscador-titulo { grid-column: 1 / -1; margin: 0 0 4px; font-size: 1.6rem; }
.bg-buscador .bg-btn { width: 100%; }
.bg-auto {
	position: absolute; z-index: 50; top: 100%; left: 0; right: 0; margin-top: 4px;
	background: #fff; border: 2px solid var(--bg-pri); border-radius: var(--bg-radio); box-shadow: 0 8px 24px rgba(0,0,0,.18);
	max-height: 340px; overflow: auto;
}
.bg-auto [role=option] { padding: 12px 14px; min-height: 48px; box-sizing: border-box; cursor: pointer; border-bottom: 1px solid #efe7d6; }
.bg-auto [role=option]:hover, .bg-auto [role=option][aria-selected=true] { background: var(--bg-pri); color: #fff; }
.bg-auto-tipo { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .8; margin-right: 6px; }
@media (max-width: 560px) { .bg-buscador { grid-template-columns: 1fr; padding: 16px; } }

/* Resultados y tarjetas */
.bg-cuenta { margin: 0 0 12px; }
.bg-filtros { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 0 20px; }
.bg-pestanas { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; align-items: center; }
.bg-pestanas li { margin: 0; }
.bg-pestanas a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px;
	border: 2px solid var(--bg-borde); border-radius: 999px; background: #fff; color: var(--bg-texto); text-decoration: none; font-weight: 600;
}
.bg-pestanas a.bg-activo { background: var(--bg-pri); border-color: var(--bg-pri); color: #fff; }
.bg-pestanas-titulo { font-weight: 700; }
.bg-lista { display: grid; gap: 16px; }
.bg-tarjeta {
	display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
	background: #fff; border: 2px solid #e3d9c3; border-radius: 14px; padding: 18px 20px;
}
.bg-tarjeta-destacada { border-color: #b98900; background: #fffaeb; }
.bg-tarjeta-logo { width: 96px; height: 96px; object-fit: contain; border-radius: 8px; background: #fff; }
.bg-tarjeta-cuerpo { min-width: 0; }
.bg-tarjeta h3 { margin: 0 0 4px; font-size: 1.35rem; }
.bg-tarjeta h3 a { color: var(--bg-pri); }
.bg-tarjeta-meta { margin: 0 0 4px; font-size: 1rem; color: var(--bg-suave); font-weight: 600; }
.bg-tarjeta-lugar { margin: 0 0 6px; font-weight: 600; }
.bg-tarjeta-desc { margin: 0; }
.bg-tarjeta-acciones { display: flex; flex-direction: column; gap: 10px; min-width: 210px; }
.bg-etiqueta { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: .9375rem; font-weight: 700; }
.bg-etiqueta-destacado { background: #6b4e00; color: #fff; }
.bg-etiqueta-ejemplo { background: #efe7d6; color: #23272e; }
@media (max-width: 760px) {
	.bg-tarjeta { grid-template-columns: 1fr; }
	.bg-tarjeta-logo { width: 72px; height: 72px; }
	.bg-tarjeta-acciones { min-width: 0; }
}
.bg-paginacion ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.bg-paginacion a, .bg-paginacion span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 14px; box-sizing: border-box;
	border: 2px solid var(--bg-borde); border-radius: var(--bg-radio); font-weight: 700; text-decoration: none; background: #fff; color: var(--bg-texto);
}
.bg-paginacion .bg-activo { background: var(--bg-pri); border-color: var(--bg-pri); color: #fff; }
.bg-vacio { background: var(--bg-fondo); border-radius: 14px; padding: 24px; }
.bg-vacio h2 { margin-top: 0; }
.bg-vacio h3 { margin-top: 20px; }

.bg-chips, .bg-enlaces, .bg-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; }
.bg-chips li, .bg-enlaces li { margin: 0; }
.bg-chips a, .bg-enlaces a {
	display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; box-sizing: border-box;
	background: #fff; border: 2px solid var(--bg-pri); border-radius: 999px; color: var(--bg-pri); font-weight: 700; text-decoration: none !important;
}
.bg-chips a:hover, .bg-enlaces a:hover { background: var(--bg-pri); color: #fff; }
.bg-chips-grandes a { font-size: 1.1875rem; min-height: 54px; padding: 10px 22px; }
.bg-chips span { font-weight: 400; margin-left: 6px; }
.bg-chip-contenido, .bg-enlace-contenido { border-style: dashed !important; }
.bg-migas { font-size: 1rem; margin: 0 0 14px; color: var(--bg-suave); }

/* Ficha */
.bg-ficha-cab { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.bg-ficha-logo { width: 140px; height: 140px; object-fit: contain; border: 2px solid #e3d9c3; border-radius: 12px; background: #fff; }
.bg-ficha-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.bg-ficha-desc { font-size: 1.1875rem; }
.bg-ficha-contacto { background: var(--bg-fondo); border-radius: 14px; padding: 20px; }
.bg-ficha-contacto h2 { margin-top: 0; }
.bg-ficha-contacto ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bg-ficha-contacto .bg-btn { width: 100%; box-sizing: border-box; }
.bg-ficha-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.bg-ficha-fotos img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; }
@media (max-width: 800px) { .bg-ficha-cols { grid-template-columns: 1fr; } .bg-ficha-cab { flex-direction: column; align-items: flex-start; } }

/* Home: perfiles, temáticas, provincia */
.bg-perfiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.bg-perfil { background: #fff; border: 2px solid #e3d9c3; border-top: 8px solid var(--bg-pri); border-radius: 14px; padding: 22px; }
.bg-perfil-familiar { border-top-color: #8a3b12; }
.bg-perfil h2 { margin: 0 0 6px; font-size: 1.7rem; }
.bg-perfil p { margin: 0 0 8px; }
.bg-tematicas { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.bg-tematica { background: #fff; border: 2px solid #e3d9c3; border-radius: 14px; overflow: hidden; scroll-margin-top: 100px; }
.bg-tematica-img { display: block; width: 100%; height: 170px; object-fit: cover; }
.bg-tematica-cuerpo { padding: 20px; }
.bg-tematica h2 { margin: 0 0 4px; font-size: 1.7rem; }
.bg-tematica p { margin: 0; }
.bg-provincia { background: var(--bg-fondo); border-radius: 14px; padding: 24px; }
.bg-provincia h2 { margin: 0 0 12px; font-size: 1.7rem; }
.bg-provincia-selector { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.bg-provincia-selector .bg-campo { margin: 0; min-width: 260px; flex: 1 1 260px; max-width: 420px; }
.bg-provincia-lista { margin-top: 16px; }
.bg-byg-info h3 { margin: 0 0 6px; }

/* Anuncios */
.bg-anuncio { margin: 20px 0; }
.bg-anuncio-caja { position: relative; display: block; text-align: center; border: 1px solid #e3d9c3; border-radius: 10px; padding: 26px 8px 8px; background: #fff; }
.bg-anuncio-etiqueta {
	position: absolute; top: 4px; left: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	color: #3d4350; background: #efe7d6; padding: 1px 8px; border-radius: 4px;
}
.bg-anuncio-caja img { max-width: 100%; height: auto; display: inline-block; border-radius: 6px; }

/* Área de clientes */
.bg-area-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0 0 12px; border-bottom: 2px solid #e3d9c3; }
.bg-area-nav a {
	display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border-radius: var(--bg-radio);
	border: 2px solid var(--bg-borde); background: #fff; color: var(--bg-texto); font-weight: 700; text-decoration: none !important;
}
.bg-area-nav a.bg-activo { background: var(--bg-pri); border-color: var(--bg-pri); color: #fff; }
.bg-area-cuerpo h2 { margin-top: 0; }
.bg-tabla-wrap { overflow-x: auto; margin-bottom: 18px; }
.bg-tabla, .bg-pagina table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.bg-tabla th, .bg-tabla td, .bg-pagina table th, .bg-pagina table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e3d9c3; vertical-align: top; }
.bg-tabla thead th { background: var(--bg-fondo); white-space: nowrap; }
.bg-estado { display: inline-block; padding: 2px 10px; border-radius: 6px; font-weight: 700; font-size: .9375rem; background: #efe7d6; color: #23272e; }
.bg-estado-activo { background: #d9f2e3; color: #0a3d1f; }
.bg-estado-programado { background: #fff0c9; color: #4d2f00; }

/* Publicidad */
.bg-pub-hero { background: #fff; border: 2px solid #e3d9c3; border-radius: 16px; padding: 32px; }
.bg-pub-hero h2 { margin-top: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.bg-pub-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 0; padding: 0; }
.bg-pub-grid li { background: #fff; border: 2px solid #e3d9c3; border-radius: 14px; padding: 20px; margin: 0; }
.bg-pub-grid p { margin: 0; }
.bg-lista-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bg-lista-check li { padding-left: 34px; position: relative; }
.bg-lista-check li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 900; color: var(--bg-pri); font-size: 1.3em; line-height: 1.2; }
.bg-pub-form { scroll-margin-top: 100px; }

/* Idiomas */
.bg-idiomas ul { list-style: none; display: inline-flex; gap: 6px; margin: 0; padding: 0; }
.bg-idiomas a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 2px solid currentColor; border-radius: 999px;
	font-weight: 700; text-decoration: none;
}
.bg-idiomas a.bg-activo { background: var(--bg-pri); border-color: var(--bg-pri); color: #fff; }

/* Busca y Gana */
.bg-byg-boton {
	position: fixed; z-index: 9990; right: 20px; bottom: 20px; max-width: min(340px, calc(100vw - 40px));
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 22px;
	background: #b3261e; color: #fff; border: 4px solid var(--bg-oro); border-radius: 18px;
	box-shadow: 0 10px 30px rgba(0,0,0,.35); cursor: pointer; text-align: left;
	animation: bg-latido 2.4s ease-in-out infinite;
}
.bg-byg-boton-t { font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.bg-byg-boton-s { font-size: 1.0625rem; font-weight: 600; }
.bg-byg-boton:hover { background: #8f1d17; }
@keyframes bg-latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .bg-byg-boton { animation: none; } }
@media (max-width: 560px) { .bg-byg-boton { right: 12px; bottom: 12px; padding: 12px 16px; } .bg-byg-boton-t { font-size: 1.25rem; } }

.bg-modal-abierto { overflow: hidden; }
.bg-modal-fondo {
	position: fixed; inset: 0; z-index: 99990; background: rgba(0,0,0,.72);
	display: flex; align-items: flex-start; justify-content: center; padding: 20px 12px; overflow-y: auto;
}
.bg-modal { position: relative; width: 100%; max-width: 640px; background: #fff; border-radius: 18px; padding: 28px 26px; box-sizing: border-box; margin: auto; }
.bg-modal h2 { margin: 0 40px 8px 0; font-size: 2rem; line-height: 1.2; color: #b3261e; }
.bg-byg-gana { font-size: 1.5rem; line-height: 1.3; margin: 0 0 12px; }
.bg-byg-foto { display: block; max-width: 100%; max-height: 280px; margin: 0 auto 14px; border-radius: 12px; }
.bg-byg-sponsor img { max-height: 48px; vertical-align: middle; }
.bg-modal-cerrar {
	position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; font-size: 2rem; line-height: 1;
	background: #fff; color: #111; border: 2px solid var(--bg-borde); border-radius: 50%; cursor: pointer;
}

/* Barras de aviso (cookies, idioma) */
.bg-barra {
	position: fixed; z-index: 9980; left: 12px; right: 12px; bottom: 12px; max-width: 760px; margin: 0 auto;
	background: #fff; border: 2px solid #111; border-radius: 14px; padding: 16px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.3);
	font-size: 1.0625rem;
}
.bg-barra p { margin: 0 0 10px; }
.bg-barra-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.bg-barra-idioma { bottom: auto; top: 12px; }

/* Varios anuncios en una misma posición */
.bg-anuncio .bg-anuncio-caja + .bg-anuncio-caja { margin-top: 16px; }
/* Pie y cabecera */
.bg-legal { flex-direction: column; gap: 6px; }
.bg-legal a { color: inherit; }
.bg-idiomas-cab { display: inline-block; }
/* !important: los enlaces de la barra del tema imponen su propio color (blanco) y tapaban el idioma activo. */
.bg-idiomas-cab .bg-idiomas a { color: #fff !important; border-color: rgba(255,255,255,.75); }
.bg-idiomas-cab .bg-idiomas a:hover { background: rgba(255,255,255,.15); }
.bg-idiomas-cab .bg-idiomas a.bg-activo,
.bg-idiomas-cab .bg-idiomas a.bg-activo:hover { background: #fff; border-color: #fff; color: #2f5b3e !important; }
.bg-idiomas a:focus-visible { outline: 4px solid #111; outline-offset: 3px; box-shadow: 0 0 0 7px var(--bg-oro); }

/* Home: los destacados de la provincia en dos columnas cuando hay sitio */
.bg-provincia-lista .bg-lista { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.bg-provincia-lista .bg-tarjeta { grid-template-columns: 1fr; align-content: start; }
.bg-provincia-lista .bg-tarjeta-acciones { flex-direction: row; flex-wrap: wrap; min-width: 0; }
.bg-provincia-lista .bg-tarjeta-acciones .bg-btn { flex: 1 1 160px; }
.bg-menu-botones { display: grid; gap: 12px; margin-top: 20px; }
.bg-idiomas-cab ul { justify-content: center; }

/* ==========================================================================
   v1.1 — Portada, resultados en dos columnas, tipos de anuncio y contenidos
   ========================================================================== */
.bg-accesos, .bg-temas, .bg-patrocinadores, .bg-construccion { font-size: 1.125rem; line-height: 1.5; color: var(--bg-texto); }
.bg-accesos :focus-visible, .bg-temas :focus-visible, .bg-patrocinadores :focus-visible, .bg-construccion :focus-visible {
	outline: 4px solid #111; outline-offset: 3px; box-shadow: 0 0 0 7px var(--bg-oro);
}

/* Grupos Salud / Dinero / Ocio */
.bg-temas { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 28px; padding: 0; }
.bg-temas li { margin: 0; }
.bg-tema { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--bg-texto); }
.bg-tema img, .bg-tema-sin-img { width: 100%; max-width: 230px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 5px solid var(--bg-pri); background: var(--bg-fondo); box-sizing: border-box; }
.bg-tema-dinero img, .bg-tema-dinero .bg-tema-sin-img { border-color: #8a3b12; }
.bg-tema-ocio img, .bg-tema-ocio .bg-tema-sin-img { border-color: #1f5c7a; }
.bg-tema-nombre { font-size: 1.5rem; font-weight: 800; }
.bg-tema:hover .bg-tema-nombre { text-decoration: underline; }

/* Buscador: «Busco» + localidad + código postal */
.bg-buscador .bg-campo-cp input { max-width: 100%; }
.bg-resultados-titulo { margin-top: 0 !important; }
.bg-grupo h2 { margin: 24px 0 8px; }

/* Dos columnas: contenido + patrocinadores */
.bg-cols { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: start; }
.bg-cols-main { min-width: 0; }
.bg-patro-titulo { margin: 0 0 10px; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--bg-suave); }
.bg-patro-lista { display: grid; gap: 14px; }
.bg-patro { position: relative; display: block; aspect-ratio: 1; border: 2px solid #e3d9c3; border-radius: 12px; overflow: hidden; background: #fff; text-decoration: none; color: var(--bg-texto); box-sizing: border-box; }
.bg-patro img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-patro-nombre { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; background: rgba(255,255,255,.94); font-weight: 700; font-size: 1rem; line-height: 1.25; text-align: center; }
.bg-patro-libre { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; border-style: dashed; border-color: var(--bg-borde); background: var(--bg-fondo); color: var(--bg-pri); font-weight: 700; }
.bg-patro-libre:hover { background: #fff; text-decoration: underline; }
.bg-patro-banner { aspect-ratio: auto; border: 0; }
.bg-patro-banner .bg-anuncio-caja { margin: 0; }
/* La columna baja debajo del contenido cuando el hueco disponible es estrecho (móvil o columnas del maquetador). */
.bg-cq { container-type: inline-size; }
@container (max-width: 760px) {
	.bg-cols { grid-template-columns: 1fr; }
	.bg-patro-lista { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* Accesos «Tu día a día»: círculos en tres columnas (el santoral, encuadrado) */
.bg-accesos-titulo { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0 0 18px; }
.bg-accesos { container-type: inline-size; }
.bg-accesos-lista { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; justify-items: start; }
.bg-accesos-lista li { margin: 0; width: 100%; max-width: 250px; container-type: inline-size; }
.bg-acceso {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	aspect-ratio: 1; width: 100%; box-sizing: border-box; padding: 14%; overflow: hidden;
	border-radius: 50%; border: 5px solid var(--bg-acc, var(--bg-pri)); background: var(--bg-acc, var(--bg-pri));
	color: #fff; text-align: center; text-decoration: none; transition: transform .15s ease;
}
.bg-acceso-cuadro { border-radius: 18px; padding: 10%; }
.bg-acceso:hover { transform: scale(1.03); color: #fff; }
.bg-acceso-texto { font-weight: 800; font-size: clamp(1rem, 9.5cqw, 1.3rem); line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
.bg-acceso-con-img { background: #fff; padding: 0; justify-content: flex-end; }
.bg-acceso-con-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-acceso-con-img .bg-acceso-texto { position: relative; width: 100%; box-sizing: border-box; padding: 8px 16% 15%; background: var(--bg-acc, var(--bg-pri)); font-size: clamp(.95rem, 8cqw, 1.125rem); }
.bg-acceso-cuadro.bg-acceso-con-img .bg-acceso-texto { padding: 10px 12px 12px; }
@media (prefers-reduced-motion: reduce) { .bg-acceso { transition: none; } .bg-acceso:hover { transform: none; } }
/* Con menos de ~170 px por círculo el texto no cabe: se pasa a dos columnas y, al final, a una. */
@container (max-width: 560px) { .bg-accesos-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; justify-items: center; } }
@container (max-width: 330px) { .bg-accesos-lista { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
	.bg-temas { gap: 10px; }
	.bg-tema-nombre { font-size: 1.25rem; }
}

/* Tarjetas por tipo de anuncio */
.bg-tarjeta-resaltado { border: 4px solid var(--bg-pri); box-shadow: 0 0 0 4px #f3c9a5; }
.bg-tarjeta-logo { object-fit: cover; }

/* Paginación: «Estás viendo la página X de N» */
.bg-paginacion { margin-top: 28px; }
.bg-paginacion-info { margin: 0 0 10px; font-weight: 700; }
.bg-paginacion ul { margin-top: 0; }

/* En construcción */
.bg-construccion { background: #fff6e0; border: 3px dashed var(--bg-aviso); border-radius: 16px; padding: 28px 24px; text-align: center; margin: 0 0 24px; }
.bg-construccion p { margin: 0 0 12px; }
.bg-construccion-titulo { font-size: 1.9rem; font-weight: 800; color: #4d2f00; }
.bg-construccion-barra { border-radius: 0; border-width: 0 0 3px; margin: 0; padding: 14px 16px; }
.bg-construccion-barra .bg-construccion-titulo { font-size: 1.3rem; margin: 0; }

/* Contenidos del día y archivo */
.bg-pieza { background: #fff; border: 2px solid #e3d9c3; border-radius: 16px; padding: 24px; margin: 0 0 28px; }
.bg-pieza-meta { margin: 0 0 6px; color: var(--bg-suave); font-weight: 600; }
.bg-pieza .bg-pieza-titulo { margin: 0 0 14px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.bg-pieza-texto { font-size: 1.25rem; }
.bg-pieza-texto img, .bg-pieza-foto img { max-width: 100%; height: auto; border-radius: 12px; }
.bg-archivo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bg-archivo li { margin: 0; }
.bg-archivo a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 18px; min-height: 52px; box-sizing: border-box; background: #fff; border: 2px solid #e3d9c3; border-radius: 12px; text-decoration: none !important; color: var(--bg-texto); }
.bg-archivo a:hover { border-color: var(--bg-pri); background: var(--bg-fondo); }
.bg-archivo-titulo { font-weight: 700; color: var(--bg-pri); }
.bg-archivo-meta { color: var(--bg-suave); font-size: 1rem; }

/* Contratación en el área de clientes */
.bg-tipos { display: grid; gap: 10px; margin: 0 0 16px; }
.bg-tipo { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid #e3d9c3; border-radius: 12px; background: #fff; cursor: pointer; }
.bg-tipo input { width: 26px; height: 26px; flex: 0 0 26px; margin: 2px 0 0; }
.bg-tipo:has(input:checked) { border-color: var(--bg-pri); background: var(--bg-fondo); }
.bg-tipo-no { opacity: .65; cursor: not-allowed; }
.bg-contratar-titulo { font-weight: 700; margin: 12px 0 8px; }
.bg-contratar-total { font-size: 1.3rem; font-weight: 800; margin: 8px 0 0; }
.bg-contratar-total:empty { display: none; }
.bg-acciones { white-space: nowrap; }
.bg-estado-finalizado { background: #efe7d6; color: #23272e; }
.bg-pub-precio { font-weight: 800; color: var(--bg-pri); margin-top: 8px !important; }
.bg-pasos { padding-left: 1.4em; display: grid; gap: 8px; }
.bg-normas-texto { max-height: 46vh; overflow: auto; border: 2px solid #e3d9c3; border-radius: 12px; padding: 4px 16px; margin: 0 0 14px; }
.bg-modal .bg-normas-titulo { color: var(--bg-pri); }
.bg-normas-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.bg-patro-sin-img { display: flex; align-items: center; justify-content: center; padding: 12px; background: var(--bg-fondo); }
.bg-patro-sin-img .bg-patro-nombre { position: static; background: none; font-size: 1.125rem; }
.bg-pagina .bg-buscador .bg-buscador-titulo { margin: 0 0 4px; }

/* ==========================================================================
   Identidad de la landing: verde, crema y melocotón; Public Sans en los títulos
   y Archivo Narrow en botones y rótulos; tarjetas redondeadas con sombra suave.
   ========================================================================== */
.bg-pagina, .bg-buscador, .bg-accesos, .bg-temas, .bg-patrocinadores, .bg-construccion, .bg-modal, .bg-barra { font-weight: 400; }
.bg-pagina h1, .bg-pagina h2, .bg-pagina h3, .bg-buscador-titulo, .bg-accesos-titulo, .bg-modal h2, .bg-perfil h2, .bg-tematica h2, .bg-provincia h2 {
	font-family: var(--bg-f-titulo); font-weight: 400; letter-spacing: .5px; color: var(--bg-pri);
}
.bg-pagina h2 { position: relative; padding-bottom: 10px; }
.bg-pagina h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--bg-melocoton); }
.bg-vacio h2::after, .bg-pieza h2::after, .bg-pub-hero h2::after, .bg-area-cuerpo > h2::after, .bg-ficha-contacto h2::after { display: none; }
.bg-vacio h2, .bg-pieza h2, .bg-pub-hero h2, .bg-ficha-contacto h2 { padding-bottom: 0; }

/* Botones */
.bg-btn {
	font-family: var(--bg-f-boton); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 1.0625rem;
	border-radius: 6px; transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.bg-btn-pri { box-shadow: 0 3px 10px rgba(47, 91, 62, .25); }
.bg-btn-sec { background: transparent; }
.bg-btn-sec:hover { background: var(--bg-pri); color: #fff !important; }
.bg-btn-tel { letter-spacing: .5px; font-size: 1.1875rem; box-shadow: 0 3px 10px rgba(138, 59, 18, .25); }
.bg-btn-peq { font-size: .9375rem; }

/* Campos */
.bg-campo label, .bg-fieldset legend { font-weight: 600; }
.bg-campo input[type=text], .bg-campo input[type=search], .bg-campo input[type=email], .bg-campo input[type=tel],
.bg-campo input[type=url], .bg-campo input[type=password], .bg-campo select, .bg-campo textarea { border-width: 1.5px; transition: border-color .15s ease, box-shadow .15s ease; }
.bg-campo input:hover, .bg-campo select:hover, .bg-campo textarea:hover { border-color: var(--bg-pri); }
.bg-check input[type=checkbox], .bg-checks input[type=checkbox], .bg-tipo input { accent-color: var(--bg-pri); }
.bg-fieldset { border-width: 1px; border-radius: 14px; background: #fff; padding: 16px 20px; }
.bg-form { background: var(--bg-crema-clara); border: 1px solid var(--bg-linea); border-radius: 14px; padding: clamp(18px, 3vw, 30px); box-sizing: border-box; }
.bg-form h3 { margin-top: 18px; }
.bg-form > h3:first-of-type { margin-top: 0; }

/* Avisos */
.bg-msg, .bg-aviso { border-left-width: 5px; border-radius: 10px; font-weight: 500; }
.bg-msg-ok { background: #e9f1ea; border-color: var(--bg-pri); color: #1f4029; }
.bg-msg-info, .bg-aviso { background: #fbf1e3; border-color: #c98a4b; color: #4d2f00; }

/* Buscador: panel verde como las tarjetas principales de la landing */
.bg-buscador {
	background: var(--bg-pri); border: 0; border-radius: 14px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--bg-sombra); color: #fff;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.bg-buscador .bg-buscador-titulo, .bg-pagina .bg-buscador .bg-buscador-titulo { color: #fff; font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0 0 6px; padding: 0; }
.bg-buscador .bg-buscador-titulo::after { display: none; }
.bg-buscador .bg-campo label { color: var(--bg-melocoton); font-family: var(--bg-f-boton); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .9375rem; }
.bg-buscador .bg-campo input, .bg-buscador .bg-campo select { border-color: transparent; }
.bg-buscador .bg-btn-pri { background: var(--bg-melocoton); border-color: var(--bg-melocoton); color: var(--bg-pri-osc) !important; box-shadow: none; }
.bg-buscador .bg-btn-pri:hover { background: #fff; border-color: #fff; }
.bg-buscador :focus-visible { outline-color: #fff; }

/* Listados */
.bg-tarjeta, .bg-pieza, .bg-pub-grid li, .bg-perfil, .bg-tematica, .bg-pub-hero, .bg-archivo a {
	border: 1px solid var(--bg-linea); border-radius: 14px; box-shadow: var(--bg-sombra);
}
.bg-tarjeta { transition: box-shadow .15s ease, transform .15s ease; }
.bg-tarjeta:hover { box-shadow: 0 8px 26px rgba(0, 0, 0, .12); }
.bg-tarjeta h3 { font-size: 1.4rem; }
.bg-tarjeta h3 a { text-decoration: none; }
.bg-tarjeta h3 a:hover { text-decoration: underline; }
.bg-tarjeta-meta { font-family: var(--bg-f-boton); text-transform: uppercase; letter-spacing: 1px; font-size: .9375rem; color: var(--bg-medio); font-weight: 700; }
.bg-tarjeta-destacada { background: var(--bg-crema); border-color: var(--bg-melocoton); border-left: 6px solid var(--bg-pri); }
.bg-tarjeta-resaltado { border: 2px solid var(--bg-pri); box-shadow: 0 0 0 4px var(--bg-melocoton), var(--bg-sombra); }
.bg-etiqueta { font-family: var(--bg-f-boton); text-transform: uppercase; letter-spacing: 1px; font-size: .8125rem; padding: 3px 10px; border-radius: 999px; }
.bg-etiqueta-destacado { background: var(--bg-pri); color: var(--bg-melocoton); }
.bg-tarjeta-logo, .bg-ficha-logo { border-radius: 12px; border: 1px solid var(--bg-linea); }
.bg-vacio { border: 1px solid var(--bg-linea); }
.bg-cuenta { font-family: var(--bg-f-boton); text-transform: uppercase; letter-spacing: 1px; color: var(--bg-medio); font-weight: 700; font-size: 1rem; }
.bg-migas { font-size: .9375rem; }
.bg-ficha-contacto { border: 1px solid var(--bg-linea); box-shadow: var(--bg-sombra); }
.bg-ficha-fotos img { border-radius: 14px; box-shadow: var(--bg-sombra); }

/* Pestañas, paginación y navegación del área de clientes */
.bg-pestanas a, .bg-area-nav a, .bg-paginacion a, .bg-paginacion span {
	font-family: var(--bg-f-boton); text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; font-weight: 700;
	border: 1.5px solid var(--bg-pri); color: var(--bg-pri); background: transparent; border-radius: 999px;
}
.bg-pestanas a:hover, .bg-area-nav a:hover, .bg-paginacion a:hover { background: var(--bg-crema); }
.bg-pestanas a.bg-activo, .bg-area-nav a.bg-activo, .bg-paginacion .bg-activo { background: var(--bg-pri); color: #fff; }
.bg-area-nav ul { border-bottom: 1px solid var(--bg-linea); padding-bottom: 16px; }
.bg-area-hola { background: var(--bg-crema); border-radius: 10px; padding: 10px 16px; display: inline-block; }
.bg-paginacion-info { font-weight: 600; color: var(--bg-suave); }

/* Tablas */
.bg-tabla-wrap { border: 1px solid var(--bg-linea); border-radius: 14px; background: #fff; box-shadow: var(--bg-sombra); }
.bg-tabla thead th { background: var(--bg-pri); color: #fff; font-family: var(--bg-f-boton); text-transform: uppercase; letter-spacing: 1px; font-size: .9375rem; font-weight: 700; }
.bg-tabla tbody tr:last-child th, .bg-tabla tbody tr:last-child td { border-bottom: 0; }
.bg-tabla tbody tr:nth-child(even) { background: var(--bg-crema-clara); }
.bg-estado { border-radius: 999px; padding: 3px 12px; font-size: .875rem; }
.bg-estado-activo { background: #dcebdf; color: #1f4029; }
.bg-estado-programado { background: #fbe6cf; color: #6b3a05; }

/* Publicidad y contratación */
.bg-pub-hero { background: var(--bg-pri); border: 0; color: #fff; padding: clamp(24px, 4vw, 44px); }
.bg-pub-hero h2 { color: #fff; }
.bg-pub-hero .bg-btn-pri { background: var(--bg-melocoton); border-color: var(--bg-melocoton); color: var(--bg-pri-osc) !important; box-shadow: none; }
.bg-pub-hero .bg-btn-pri:hover { background: #fff; border-color: #fff; }
.bg-pub-hero .bg-btn-sec { border-color: #fff; color: #fff !important; }
.bg-pub-hero .bg-btn-sec:hover { background: #fff; color: var(--bg-pri) !important; }
.bg-pub-hero :focus-visible { outline-color: #fff; }
.bg-pub-grid li { display: flex; flex-direction: column; border-top: 5px solid var(--bg-medio); padding: 22px; }
.bg-pub-grid .bg-pub-tipo-preferente { border-top-color: var(--bg-pri); background: var(--bg-crema); }
.bg-pub-grid .bg-pub-tipo-oferta, .bg-pub-grid .bg-pub-tipo-especial { border-top-color: #8a3b12; }
.bg-pub-grid h3 { font-size: 1.5rem; margin-bottom: 8px; }
.bg-pub-precio { margin-top: auto !important; padding-top: 14px; font-family: var(--bg-f-boton); letter-spacing: .5px; font-size: 1.1875rem; }
.bg-pasos { list-style: none; counter-reset: bg-paso; padding: 0; gap: 12px; }
.bg-pasos li { counter-increment: bg-paso; position: relative; padding: 4px 0 4px 56px; min-height: 40px; }
.bg-pasos li::before { content: counter(bg-paso); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-pri); color: var(--bg-melocoton); font-family: var(--bg-f-boton); font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; }
.bg-tipo { border-width: 1.5px; border-radius: 12px; transition: border-color .15s ease, background-color .15s ease; }
.bg-tipo:hover { border-color: var(--bg-medio); }
.bg-tipo:has(input:checked) { background: var(--bg-crema); box-shadow: inset 0 0 0 1px var(--bg-pri); }
.bg-contratar-total { font-family: var(--bg-f-titulo); color: var(--bg-pri); background: var(--bg-crema); border-radius: 10px; padding: 12px 16px; }

/* Grupos Salud / Dinero / Ocio */
.bg-tema img, .bg-tema-sin-img, .bg-tema-dinero img, .bg-tema-dinero .bg-tema-sin-img, .bg-tema-ocio img, .bg-tema-ocio .bg-tema-sin-img {
	border: 5px solid #fff; box-shadow: 0 0 0 3px var(--bg-pri), var(--bg-sombra); background: var(--bg-crema); transition: transform .2s ease, box-shadow .2s ease;
}
.bg-tema:hover img, .bg-tema:hover .bg-tema-sin-img { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--bg-melocoton), 0 10px 26px rgba(0, 0, 0, .16); }
.bg-tema-nombre { font-family: var(--bg-f-boton); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 1.375rem; color: var(--bg-pri); }
.bg-tema:hover .bg-tema-nombre { text-decoration: none; color: #8a3b12; }

/* Accesos «Tu día a día» */
.bg-accesos-titulo { position: relative; padding-bottom: 10px; margin-bottom: 22px; }
.bg-accesos-titulo::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--bg-melocoton); }
.bg-acceso {
	border: 5px solid #fff; box-shadow: 0 0 0 3px var(--bg-acc, var(--bg-pri)), var(--bg-sombra);
	transition: transform .2s ease, box-shadow .2s ease;
}
.bg-acceso:hover { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--bg-melocoton), 0 10px 26px rgba(0, 0, 0, .18); }
.bg-acceso-cuadro { border-radius: 22px; }
.bg-acceso-texto { font-family: var(--bg-f-boton); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: clamp(.95rem, 8.6cqw, 1.1875rem); line-height: 1.25; }
.bg-acceso-con-img .bg-acceso-texto { font-size: clamp(.875rem, 7.4cqw, 1.0625rem); }
@media (prefers-reduced-motion: reduce) { .bg-acceso:hover, .bg-tema:hover img, .bg-tema:hover .bg-tema-sin-img { transform: none; } }

/* Patrocinadores */
.bg-patro-titulo { font-family: var(--bg-f-boton); letter-spacing: 2px; color: var(--bg-medio); font-size: .9375rem; }
.bg-patro { border: 1px solid var(--bg-linea); border-radius: 14px; box-shadow: var(--bg-sombra); transition: transform .2s ease, box-shadow .2s ease; }
a.bg-patro:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0, 0, 0, .12); }
.bg-patro-nombre { font-family: var(--bg-f-boton); text-transform: uppercase; letter-spacing: 1px; color: var(--bg-pri); }
.bg-patro-libre { border: 1.5px dashed var(--bg-borde); background: var(--bg-crema-clara); box-shadow: none; font-family: var(--bg-f-boton); text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; color: var(--bg-medio); }
.bg-patro-libre:hover { background: var(--bg-crema); color: var(--bg-pri); text-decoration: none; border-color: var(--bg-pri); }
.bg-patro-banner { box-shadow: none; }
.bg-anuncio-caja { border-color: var(--bg-linea); border-radius: 14px; }
.bg-anuncio-etiqueta { font-family: var(--bg-f-boton); letter-spacing: 1px; color: var(--bg-suave); }

/* Contenidos del día */
.bg-pieza { padding: clamp(20px, 3vw, 32px); border-top: 5px solid var(--bg-pri); }
.bg-pieza-meta, .bg-archivo-meta { font-family: var(--bg-f-boton); text-transform: uppercase; letter-spacing: 1px; font-size: .9375rem; color: var(--bg-medio); font-weight: 700; }
.bg-archivo a { box-shadow: none; transition: border-color .15s ease, background-color .15s ease; }
.bg-archivo-titulo { font-weight: 600; }

/* En construcción */
.bg-construccion { background: var(--bg-crema); border: 1.5px dashed var(--bg-medio); border-radius: 14px; padding: clamp(28px, 5vw, 48px) 24px; }
.bg-construccion-titulo { font-family: var(--bg-f-titulo); font-weight: 400; letter-spacing: .5px; color: var(--bg-pri); }

/* Ventanas y barras */
.bg-modal { border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.bg-modal-fondo { background: rgba(31, 64, 41, .78); }
.bg-normas-texto { border-width: 1px; background: var(--bg-crema-clara); }
.bg-barra { border: 0; border-top: 5px solid var(--bg-pri); background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.bg-chips a, .bg-enlaces a { border-width: 1.5px; font-weight: 600; }

/* Ajustes finos */
.bg-pagina a.bg-patro, .bg-pagina a.bg-patro:hover { text-decoration: none; }
.bg-pub-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 761px) {
	.bg-tarjeta-acciones { width: 230px; min-width: 0; }
	.bg-tarjeta:not(:has(.bg-tarjeta-logo)) { grid-template-columns: minmax(0, 1fr) auto; }
	.bg-provincia-lista .bg-tarjeta-acciones { width: auto; }
	.bg-provincia-lista .bg-tarjeta:not(:has(.bg-tarjeta-logo)) { grid-template-columns: 1fr; }
}
/* En móvil los patrocinadores van de dos en dos, también cuando la columna la pone el maquetador. */
@media (max-width: 760px) { .bg-patro-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* =====================================================================
 * Revisión con el cliente del 26/11/2026
 * ===================================================================== */

/* Salud / Dinero / Ocio: bloques rectangulares, algo más anchos que altos */
.bg-temas { gap: 18px; margin-bottom: 24px; }
.bg-tema { gap: 8px; }
.bg-tema img, .bg-tema-sin-img, .bg-tema-dinero img, .bg-tema-dinero .bg-tema-sin-img, .bg-tema-ocio img, .bg-tema-ocio .bg-tema-sin-img {
	max-width: none; aspect-ratio: 3 / 2; border-radius: 14px; border-width: 4px;
}

/* Línea de acceso a los apartados (lleva a las normas) */
.bg-apartados { margin: 0 0 22px; text-align: center; }
.bg-apartados a {
	display: inline-block; padding: 10px 22px; border-radius: 8px; background: var(--bg-melocoton);
	font-family: var(--bg-f-titulo); font-size: clamp(1.125rem, 2.4vw, 1.375rem); font-weight: 600; line-height: 1.3;
	color: #6d2c0b; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.bg-apartados a strong { font-weight: 800; letter-spacing: 1px; }
.bg-apartados a:hover { background: #efb98c; color: #4a1d06; }

/* Accesos «Tu día a día»: insignias circulares con el título en arco (sin franja horizontal) */
.bg-accesos-lista { gap: 20px 22px; }
.bg-acceso.bg-insignia {
	display: block; position: relative; aspect-ratio: 1; width: 100%; padding: 0; overflow: visible;
	border: 0; border-radius: 50%; background: none; color: inherit;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .16); transition: transform .2s ease, box-shadow .2s ease;
}
.bg-acceso.bg-insignia:hover { transform: translateY(-3px); box-shadow: 0 0 0 4px var(--bg-melocoton), 0 12px 26px rgba(0, 0, 0, .2); }
.bg-insignia-img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.bg-insignia-aro { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bg-insignia-fondo { fill: #1d5b3a; }
.bg-insignia-filo { fill: none; stroke: #f3deb0; stroke-width: 1.5; }
.bg-insignia-texto { fill: #fbf0d2; font-family: "Mulish", "Public Sans", sans-serif; font-weight: 800; letter-spacing: .03em; }
.bg-insignia-centro {
	position: absolute; inset: 18%; border-radius: 50%; overflow: hidden; box-sizing: border-box;
	border: 3px solid #f3deb0; background: #f6ead0; display: flex; align-items: center; justify-content: center;
}
.bg-insignia-centro img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-insignia-centro-icono { color: #1d5b3a; }
.bg-insignia-icono { width: 62%; height: 62%; }
.bg-solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .bg-acceso.bg-insignia { transition: none; } .bg-acceso.bg-insignia:hover { transform: none; } }

/* Patrocinadores: huecos cuadrados; el primero, destacado, arranca a la altura de Salud / Dinero / Ocio */
.bg-patro-banner { aspect-ratio: 1; border: 1px solid var(--bg-linea); box-shadow: var(--bg-sombra); background: var(--bg-crema-clara); }
.bg-patro-banner .bg-anuncio-caja { position: relative; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.bg-patro-banner .bg-anuncio-caja > a { display: block; height: 100%; }
.bg-patro-banner .bg-anuncio-caja img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 0; }
.bg-patro-banner .bg-anuncio-etiqueta { position: absolute; z-index: 1; left: 8px; top: 8px; margin: 0; }
.bg-patro-lista > :first-child { border: 3px solid var(--bg-pri); box-shadow: 0 0 0 4px var(--bg-melocoton), var(--bg-sombra); }

/* Página de normas */
.bg-normas-aceptar { margin: 28px 0 0; padding: 20px 22px; border: 1px solid var(--bg-linea); border-left: 6px solid var(--bg-pri); border-radius: 14px; background: var(--bg-crema-clara); }
.bg-normas-aceptar p { margin: 0 0 14px; }
.bg-normas-aceptar p:last-child { margin-bottom: 0; }
.bg-normas-mas { margin: 0 0 12px; }

/* Busca y Gana: el aviso que aparece al azar es el dibujo de la promoción */
.bg-byg-boton-dibujo { flex-direction: row; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 999px; }
.bg-byg-boton-img { width: 84px; height: 84px; border-radius: 50%; background: #fff; flex: none; }
.bg-byg-boton-txt { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 560px) { .bg-byg-boton-img { width: 64px; height: 64px; } }

/* Selector de idiomas con banderas (26/11/2026): Castellano arriba, Català abajo
   y, a la derecha, las banderas gallega y vasca (idiomas previstos, sin enlace). */
.bg-idiomas ul {
	display: inline-grid; grid-template-rows: auto auto; grid-auto-flow: column;
	gap: 6px 10px; align-items: center; justify-items: stretch;
}
.bg-idiomas li { margin: 0; padding: 0; }
.bg-idiomas ul a { display: flex; justify-content: space-between; gap: 10px; min-height: 40px; padding: 4px 8px 4px 14px; line-height: 1.1; box-sizing: border-box; }
.bg-bandera { display: block; flex: none; width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.28); }
.bg-idioma-prox { display: flex; align-items: center; justify-content: center; }
.bg-idioma-prox > span { display: block; cursor: default; opacity: .78; }
.bg-idiomas-cab .bg-idiomas ul a { min-height: 36px; padding-top: 2px; padding-bottom: 2px; }
.bg-idiomas-cab .bg-bandera { box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
