/* Botxocats Gatos: ficha y listado */

.bxg-ficha, .bxg-lista-wrap, .bxg-otros { --bxg-caja: #209da0; --bxg-icono: #f3ba46; --bxg-icono-hover: #f7860b; }
.bxg-ficha *, .bxg-lista-wrap * { box-sizing: border-box; }

/* Avisos de estado */
.bxg-aviso { margin: 0 0 24px; padding: 14px 18px; border-radius: 6px; font-weight: 600; text-align: center; }
.bxg-aviso-adoptado { background: #e6f4ea; color: #1e6b34; }
.bxg-aviso-reservado { background: #fff4e0; color: #8a5200; }

/* Carrusel de fotos y vídeos */
.bxg-carrusel { max-width: 860px; margin: 0 auto 40px; }
.bxg-escenario { position: relative; }
.bxg-pista { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 4px; background: #f2f2f2; }
.bxg-pista::-webkit-scrollbar { display: none; }
.bxg-pista:focus-visible { outline: 3px solid var(--bxg-caja); outline-offset: 2px; }
.bxg-diapo { position: relative; flex: 0 0 100%; min-width: 0; aspect-ratio: 1 / 1; max-height: 85vh; overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always; background: #1d1d1d; }
@media (min-width: 700px) { .bxg-diapo { aspect-ratio: 4 / 3; } }
.bxg-fondo { position: absolute; top: -24px; right: -24px; bottom: -24px; left: -24px; background-position: center; background-size: cover; filter: blur(22px) brightness(.85); }
.bxg-foto-enlace { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; cursor: zoom-in; }
.bxg-foto-enlace img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bxg-diapo video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.bxg-diapo iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.bxg-facade { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #1d1d1d; color: #fff; text-decoration: none; }
.bxg-facade[hidden] { display: none; }
.bxg-facade:hover, .bxg-facade:focus { color: #fff; }
.bxg-facade .bxg-play { width: 72px; height: 72px; transition: transform .2s ease; }
.bxg-facade:hover .bxg-play { transform: scale(1.08); }
.bxg-facade-texto { font-weight: 700; letter-spacing: .04em; }
.bxg-flecha { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; padding: 0 0 4px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: #333; font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, .3); transition: background .2s ease, opacity .2s ease; }
.bxg-flecha:hover, .bxg-flecha:focus-visible { background: #fff; }
.bxg-flecha[disabled] { opacity: 0; pointer-events: none; }
.bxg-ant { left: 10px; }
.bxg-sig { right: 10px; }
.bxg-miniaturas { position: relative; display: flex; gap: 8px; margin: 10px 0 0; padding: 2px; overflow-x: auto; scrollbar-width: thin; }
.bxg-mini { position: relative; flex: 0 0 72px; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: #1d1d1d; opacity: .65; cursor: pointer; transition: opacity .2s ease, border-color .2s ease; }
.bxg-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bxg-mini:hover, .bxg-mini:focus-visible, .bxg-mini.activa { opacity: 1; }
.bxg-mini.activa { border-color: var(--bxg-caja); }
.bxg-mini-video .bxg-play { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; }

/* Características + historia */
.bxg-detalle { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin: 0 0 40px; }
@media (min-width: 960px) {
	.bxg-detalle { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
	.bxg-detalle.bxg-sin-rasgos { grid-template-columns: minmax(0, 1fr); }
}
.bxg-rasgos { list-style: none; margin: 0; padding: 0; }
.bxg-rasgos li { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.bxg-pata { flex: 0 0 30px; width: 30px; height: 30px; fill: var(--bxg-icono); transition: fill .2s ease; }
.bxg-rasgos li:hover .bxg-pata { fill: var(--bxg-icono-hover); }
.bxg-datos { margin: 0 0 12px; font-weight: 700; letter-spacing: .02em; color: var(--bxg-caja); }
.bxg-historia p { margin: 0 0 1em; }

/* Apadrinamiento mensual */
.bxg-apadrina { margin: 0; padding: 36px 32px; border: 2px solid var(--bxg-caja); border-radius: 4px; background: #fff; text-align: center; }
.bxg-apadrina h3 { margin: 0 0 12px; color: var(--bxg-caja); }
.bxg-apadrina p { margin: 0 0 16px; }
.bxg-apadrina-uso { font-weight: 600; }
.bxg-tramos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 720px; margin: 24px auto 18px; padding: 0; list-style: none; }
.bxg-tramos li { margin: 0; padding: 0; }
@media (min-width: 600px) {
	.bxg-t-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bxg-t-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bxg-t-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bxg-t-1 { grid-template-columns: minmax(0, 320px); justify-content: center; }
}
.bxg-tramo { display: flex; flex-direction: column; justify-content: center; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 4px; background: var(--bxg-caja); color: #fff; text-align: center; text-decoration: none; transition: filter .2s ease; }
.bxg-tramo:hover, .bxg-tramo:focus { color: #fff; filter: brightness(.9); }
.bxg-tramo-eti { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
.bxg-tramo-desc { font-size: .9rem; opacity: .95; }
.bxg-apadrina-otro { margin: 0 0 12px; }
.bxg-apadrina-otro a, .bxg-apadrina-nota a { color: var(--bxg-caja); font-weight: 600; text-decoration: underline; }
.bxg-apadrina-nota { margin: 0; color: #666; font-size: .9rem; }
.bxg-apadrina + .bxg-adopta { margin-top: 32px; }

/* Caja de adopción */
.bxg-adopta { margin: 70px 0 0; padding: 40px; border-radius: 4px; background: var(--bxg-caja); color: #fff; text-align: center; }
.bxg-adopta h3 { margin: 0 0 14px; color: #fff; }
.bxg-adopta p { margin: 0 0 26px; color: #fff; }
.bxg-botones { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 560px; margin: 0 auto; }
@media (min-width: 600px) {
	.bxg-botones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bxg-botones.bxg-un-boton { grid-template-columns: minmax(0, 260px); justify-content: center; }
}
.bxg-boton { display: block; padding: 14px 20px; border-radius: 4px; background: #fff; color: #565656; font-weight: 700; letter-spacing: .06em; text-align: center; text-decoration: none; text-transform: uppercase; transition: background .2s ease; }
.bxg-boton:hover, .bxg-boton:focus { background: #eaeaea; color: #565656; }

/* Listado */
.bxg-lista-wrap { margin: 0 0 2em; }
.bxg-vacio { text-align: center; }
.bxg-filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 28px; }
.bxg-filtro { padding: 8px 18px; border: 2px solid var(--bxg-caja); border-radius: 999px; background: #fff; color: var(--bxg-caja); font-weight: 700; cursor: pointer; transition: background .2s ease, color .2s ease; }
.bxg-filtro:hover, .bxg-filtro.activo { background: var(--bxg-caja); color: #fff; }

.bxg-lista { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bxg-c-1 { grid-template-columns: minmax(0, 1fr); }
.bxg-c-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bxg-c-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bxg-c-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bxg-c-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) {
	.bxg-c-3, .bxg-c-4, .bxg-c-5, .bxg-c-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
	.bxg-lista.bxg-lista { grid-template-columns: minmax(0, 1fr); }
}

.bxg-card { text-align: center; }
.bxg-card[hidden] { display: none; }
.bxg-card-foto { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; background: #f2f2f2; }
.bxg-card-foto img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bxg-card:hover .bxg-card-foto img { transform: scale(1.05); }
.bxg-sin-foto { position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.bxg-sin-foto .bxg-pata { width: 40%; height: 40%; fill: #cfcfcf; }
.bxg-cinta { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 999px; background: var(--bxg-caja); color: #fff; font-size: .8rem; font-weight: 700; }
.bxg-cinta-reservado { background: #f7860b; }
.bxg-cinta-adoptado { background: #2e8b57; }
.bxg-card-titulo { margin: 14px 0 4px; font-size: 1.25rem; line-height: 1.2; }
.bxg-card-titulo a { color: inherit; text-decoration: none; }
.bxg-card-datos { margin: 0; color: #666; font-size: .95rem; }

/* Foto ampliada */
.bxg-lb { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .88); }
.bxg-lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.bxg-lb button { position: absolute; padding: 10px 14px; border: 0; background: none; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; }
.bxg-lb button:hover, .bxg-lb button:focus { color: #f3ba46; }
.bxg-lb .bxg-cerrar { top: 8px; right: 10px; }
.bxg-lb .bxg-prev { top: 50%; left: 6px; transform: translateY(-50%); }
.bxg-lb .bxg-next { top: 50%; right: 6px; transform: translateY(-50%); }

/* Otros gatos, a ancho completo justo antes del pie de página */
.bxg-otros, .bxg-otros * { box-sizing: border-box; }
.bxg-otros { clear: both; width: 100%; padding: 60px 20px; background: #f6f3ee; }
.bxg-otros-int { max-width: 1200px; margin: 0 auto; }
.bxg-otros h2 { margin: 0 0 32px; text-align: center; }
.bxg-otros .bxg-lista-wrap { margin: 0; }
.bxg-otros-ver { margin: 36px 0 0; text-align: center; }
.bxg-boton-lleno { display: inline-block; padding: 14px 32px; border-radius: 4px; background: var(--bxg-caja); color: #fff; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: filter .2s ease; }
.bxg-boton-lleno:hover, .bxg-boton-lleno:focus { color: #fff; filter: brightness(.9); }

@media (prefers-reduced-motion: reduce) {
	.bxg-facade .bxg-play, .bxg-card-foto img { transition: none; }
}

/* Página de apadrinar */
.bxg-apadrinar, .bxg-apadrinar * { box-sizing: border-box; }
.bxg-ap-intro { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.bxg-ap-intro h2, .bxg-ap-seccion h2 { margin: 0 0 16px; }
.bxg-ap-enlace { color: var(--bxg-caja); font-weight: 600; text-decoration: underline; }
.bxg-ap-seccion { margin: 0 0 64px; }
.bxg-ap-seccion > h2 { text-align: center; margin-bottom: 28px; }
.bxg-ap-card { display: flex; flex-direction: column; align-items: center; }
.bxg-ap-card .bxg-card-foto { width: 100%; }
.bxg-ap-texto { margin: 8px 0 16px; font-size: .95rem; }
.bxg-ap-btn { margin-top: auto; }
.bxg-ap-cubre { max-width: 760px; margin-right: auto; margin-left: auto; padding: 36px 28px; border-radius: 4px; background: #f6f3ee; text-align: center; }
.bxg-ap-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 28px; padding: 0; list-style: none; }
.bxg-ap-tags li { margin: 0; padding: 6px 16px; border: 2px solid var(--bxg-caja); border-radius: 999px; background: #fff; color: var(--bxg-caja); font-weight: 700; font-size: .95rem; }

/* Ventana con los importes */
.bxg-pm { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.bxg-pm[hidden] { display: none; }
.bxg-pm-caja { position: relative; width: 100%; max-width: 560px; max-height: 100%; overflow-y: auto; padding: 36px 28px 28px; border-radius: 6px; background: #fff; color: #333; text-align: center; }
.bxg-pm-caja h3 { margin: 0 0 12px; color: var(--bxg-caja); }
.bxg-pm-caja p { margin: 0 0 14px; }
.bxg-pm-caja .bxg-tramos { margin-top: 18px; }
.bxg-pm-cerrar { position: absolute; top: 6px; right: 10px; padding: 6px 10px; border: 0; background: none; color: #555; font-size: 32px; line-height: 1; cursor: pointer; }
.bxg-pm-cerrar:hover, .bxg-pm-cerrar:focus-visible { color: var(--bxg-caja); }
@media (min-width: 600px) { .bxg-pm-caja .bxg-t-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
