/* Diseño «A · Color» de las páginas internas (1-dic). Solo con la web nueva activa. */
body.rta-directorio{--rta:#1d1d1f}
body.rta-asociaciones{--rta:#a8121b}
body.rta-solidaria{--rta:#9a4010}
body.rta-salud{--rta:#0b6570}
body.rta-deporte{--rta:#1e6637}
body.rta-cultura{--rta:#573788}
body.rta-comer{--rta:#7e4c00}
body.rta-comercios{--rta:#8f1e50}
body.rta-servicios{--rta:#38475a}
body.rta-moverse{--rta:#1c4f9c}
.rtd .rtd-grupo--directorio{--g:#1d1d1f}
.rtd .rtd-grupo--asociaciones{--g:#a8121b}
.rtd .rtd-grupo--solidaria{--g:#9a4010}
.rtd .rtd-grupo--salud{--g:#0b6570}
.rtd .rtd-grupo--deporte{--g:#1e6637}
.rtd .rtd-grupo--cultura,.rtd .rtd-grupo--ocio{--g:#573788}
.rtd .rtd-grupo--comer{--g:#7e4c00}
.rtd .rtd-grupo--comercios{--g:#8f1e50}
.rtd .rtd-grupo--servicios{--g:#38475a}
.rtd .rtd-grupo--moverse{--g:#1c4f9c}

/* Cabecera común */
body.rta .rta-cab{box-sizing:border-box;width:min(1140px,100%)!important;max-width:none!important;margin:4px auto 18px!important;padding:24px 20px!important;border-radius:26px;background:var(--rta);color:#fff;text-align:left}
body.rta .rta-cab h1{margin:0;padding:0;color:#fff;font-size:clamp(2rem,6vw,3rem);line-height:1.06;font-weight:800;letter-spacing:-.02em;text-wrap:balance}
body.rta .rta-cab p{margin:10px 0 0;max-width:62ch;color:#fff;font-size:1rem;line-height:1.45}
body.rta .rta-cab p a{color:#fff;text-decoration:underline}
body.rta .rta-miga{display:inline-block;margin-bottom:8px;padding:3px 0;color:#fff;font-size:.85rem;font-weight:800;text-decoration:none}
@media (min-width:760px){body.rta .rta-cab{padding:34px 36px!important}}
body.rtw-alinea-lista .rta-cab{width:min(1140px,100% - 40px)!important}
body.rtw-alinea-caja .rta-cab{width:min(1092px,100% - 2*clamp(22px,5.5vw,64px))!important}
body.rtw-alinea-estrecha .rta-cab{width:min(760px,100% - 2*clamp(22px,5.5vw,64px))!important}
/* Lo que cada lista repetía debajo de la cabecera. */
body.rta .rta-cab~.rt-places .rt-places__head h2:only-of-type,body.rta-deporte .rt-places__head h2,body.rta-cultura .rt-places__head h2,body.rta-servicios .rt-places__head h2,body.rta-comer .rt-shops--comer .rt-shops__head h2,body.rta-comer .rt-eat .rt-shops__head h2,body.rta-comer .rt-eat .rt-shops__eyebrow,body.rta-servicios .rt-jobs__head h2,body.rta-servicios .rt-jobs__eyebrow{display:none}

/* Equipamientos: sitio con sus botones */
body.rta ul.rt-places__list>li.rt-place{display:flex;flex-direction:column;border:0;border-radius:20px;padding:15px;box-shadow:0 1px 3px rgba(20,20,25,.07)}
body.rta li.rt-place .rt-place__barrio{order:-1;margin:0 0 2px;font-size:.78rem;font-weight:800;color:var(--rta)}
body.rta li.rt-place .rt-place__name{font-size:1.08rem}
body.rta li.rt-place .rta-dir{margin:4px 0 0;color:#55575d;font-size:.9rem;line-height:1.4}
body.rta li.rt-place .rta-accs{display:flex;flex-wrap:wrap;gap:8px;margin:auto 0 0;padding-top:12px}
body.rta .rta-acc{flex:1 1 84px;display:flex;align-items:center;justify-content:center;min-height:46px;padding:6px 10px;border:2px solid var(--rta);border-radius:13px;color:var(--rta);font-size:.9rem;font-weight:800;line-height:1.2;text-align:center;text-decoration:none}
body.rta .rta-acc--lleno{background:var(--rta);color:#fff}
body.rta .rt-places__sector{color:var(--rta)}
/* Dónde comer */
body.rta-comer ul.rt-shops__fichas>li.rt-shop--comer{border:0;box-shadow:0 1px 3px rgba(20,20,25,.07)}
body.rta-comer li.rt-shop--comer:not(.rt-shop--con-portada){border-left:5px solid var(--rta)!important}

/* Los iconos y detalles de las tarjetas de la sección */
body.rta .rt-asoc__ico{background:var(--rta);color:#fff}
body.rta-salud .rt-places__stat,body.rta-solidaria .rt-places__stat{color:var(--rta)}
body.rta-solidaria .rtw--solidaria .rtw-enlaces a{background:var(--rta);border-color:var(--rta);color:#fff}
body.rta-solidaria .rtw--solidaria .rtw-enlaces small{color:#fff}
/* Cursos, quién publica y publicar */
body.rta .rtc-fuente>a,body.rta .rtc-curso .rtc-cuando{color:var(--rta)}
body.rta .rtc-modos button[aria-pressed="true"]{background:var(--rta);border-color:var(--rta)}
body.rta .rtc-fuente{border-top:5px solid var(--rta)}

/* Páginas con cabecera propia: solo el color. */
body.rtw-pagina--noticias .rtw.rtw--noticias h1.rtw-titulo{margin:4px 0 14px;padding:24px 20px;border-radius:26px;background:#1d1d1f;color:#fff}
body.rta-moverse .wp-block-cover .wp-block-cover__image-background{opacity:.16}
body.rta-moverse .wp-block-cover,body.rta-asociaciones .wp-block-cover.alignwide{background-color:var(--rta)}
body.rta-asociaciones .wp-block-cover .wp-block-cover__image-background{opacity:.22}
body.rta-comercios .rt-esc__cabecera{width:min(1140px,100% - 24px);margin:4px auto 18px;padding:24px 20px;border-radius:26px;background:var(--rta);color:#fff;box-sizing:border-box}
body.rta-comercios .rt-esc__cabecera h1,body.rta-comercios .rt-esc__cabecera p{color:#fff}
body.rta-comercios .rt-banda-seccion{display:none}

/* Directorio: grupos de color que se despliegan */
.rtd .rtd-grupos{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:12px;align-items:start}
.rtd .rtd-grupo{background:var(--g);border-radius:22px;color:#fff;overflow:hidden}
.rtd .rtd-grupo--asociaciones{grid-column:1/-1}
.rtd .rtd-grupo[open]{grid-column:1/-1}
.rtd .rtd-grupo summary{list-style:none;display:flex;flex-direction:column;justify-content:space-between;gap:16px;min-height:132px;padding:16px;cursor:pointer}
.rtd .rtd-grupo summary::-webkit-details-marker{display:none}
.rtd .rtd-grupo summary::after{content:"+";position:absolute;align-self:flex-end;font-size:1.6rem;font-weight:800;line-height:1}
.rtd .rtd-grupo[open] summary::after{content:"−"}
.rtd .rtd-grupo--asociaciones summary,.rtd .rtd-grupo[open] summary{flex-direction:row;align-items:center;justify-content:flex-start;min-height:96px}
.rtd .rtd-grupo--asociaciones summary::after,.rtd .rtd-grupo[open] summary::after{position:static;margin-left:auto;align-self:center}
.rtd .rtd-grupo summary:focus-visible{outline:3px solid #fff;outline-offset:-6px}
.rtd .rtd-grupo-icono{display:flex}.rtd .rtd-grupo-icono svg{width:34px;height:34px}
.rtd .rtd-grupo strong{display:block;font-size:1.1rem;font-weight:800;line-height:1.2}
.rtd .rtd-grupo small{display:block;margin-top:3px;font-size:.78rem;line-height:1.35}
.rtd .rtd-grupo-dentro{display:grid;gap:8px;padding:0 12px 14px}
.rtd .rtd-grupo-dentro a,.rtd .rtd-grupo-dentro button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:50px;margin:0;padding:10px 14px;border:0;border-radius:14px;background:#fff;color:var(--g);font:inherit;font-weight:800;text-align:left;text-decoration:none;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:normal}
.rtd .rtd-grupo-dentro a::after,.rtd .rtd-grupo-dentro button::after{content:"→"}
.rtd .rtd-atajos{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 0}
.rtd .rtd-atajos a{display:flex;align-items:center;min-height:46px;padding:8px 16px;border:2px solid #1d1d1f;border-radius:999px;color:#1d1d1f;font-weight:800;text-decoration:none}
@media (min-width:760px){.rtd .rtd-grupos{grid-template-columns:repeat(4,minmax(0,1fr))}.rtd .rtd-grupo--asociaciones{grid-column:1/-1}.rtd .rtd-grupo[open]:not(.rtd-grupo--asociaciones){grid-column:span 2}.rtd .rtd-grupo-dentro{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* La ficha sencilla */
.rtfs{box-sizing:border-box;width:min(1100px,100% - 24px);margin-left:auto;margin-right:auto;text-align:left;color:#17171a}
.rtfs *{box-sizing:border-box}
.rtfs .rtfs-cab{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center;padding:22px 18px;border-radius:26px;background:var(--rta);color:#fff}
.rtfs .rtfs-logo{display:flex;align-items:center;justify-content:center;width:68px;height:68px;border-radius:20px;overflow:hidden;background:#fff;color:var(--rta)!important;font-weight:800;font-size:1.4rem}
.rtfs .rtfs-logo img{width:100%;height:100%;object-fit:contain;margin:0}
.rtfs .rtfs-nombre p{margin:0 0 4px;font-size:.82rem;font-weight:800}
.rtfs .rtfs-nombre h1{margin:0;color:#fff;font-size:clamp(1.5rem,5vw,2.4rem);line-height:1.12;font-weight:800;letter-spacing:-.015em;overflow-wrap:anywhere}
.rtfs .rtfs-botones{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}
.rtfs .rtfs-botones>*{flex:1 1 120px;display:flex;align-items:center;justify-content:center;min-height:52px;margin:0;padding:8px 14px;border:2px solid #fff;border-radius:15px;background:transparent;color:#fff;font:inherit;font-weight:800;font-size:.95rem;text-align:center;text-decoration:none;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:normal}
.rtfs .rtfs-botones>:first-child{background:#fff;color:var(--rta)}
.rtfs .rtfs-cuerpo{display:grid;gap:12px;margin-top:12px}
.rtfs .rtfs-cuerpo>div{display:grid;gap:12px;align-content:start;min-width:0}
.rtfs .rtfs-caja{max-width:none;margin:0;padding:18px;border-radius:20px;background:#fff}
.rtfs .rtfs-caja h2{margin:0 0 8px;font-size:1.15rem;line-height:1.3;font-weight:800}
.rtfs .rtfs-texto{margin:0;font-size:1.02rem;line-height:1.55}
.rtfs .rtfs-foto{display:block;width:100%;height:auto;border-radius:20px;margin:0}
.rtfs .rtfs-mapa{display:flex;align-items:center;justify-content:center;min-height:190px;border-radius:20px;overflow:hidden;background:#e7e9e4}
.rtfs .rtfs-mapa button{min-height:50px;margin:0;padding:10px 20px;border:2px solid var(--rta);border-radius:14px;background:#fff;color:var(--rta);font:inherit;font-weight:800;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:normal}
.rtfs .rtfs-mapa iframe{width:100%;height:280px;border:0}
.rtfs a.rtfs-otra{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #e6e3de;color:#17171a;text-decoration:none}
.rtfs .rtfs-otra>span{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;overflow:hidden;background:var(--rta);color:#fff;font-size:.8rem;font-weight:800}
.rtfs .rtfs-otra img{width:100%;height:100%;object-fit:contain;background:#fff;margin:0}
.rtfs .rtfs-otra b{font-size:.95rem;line-height:1.3;overflow-wrap:anywhere}
.rtfs .rtfs-invita{padding:18px;border-radius:20px;background:#fde8ea}
.rtfs .rtfs-invita h2{margin:0 0 6px;font-size:1.15rem;font-weight:800}
.rtfs .rtfs-invita p{margin:0 0 12px}
.rtfs .rtfs-invita a{display:inline-flex;align-items:center;min-height:48px;padding:10px 18px;border-radius:13px;background:#c9141e;color:#fff;font-weight:800;text-decoration:none}
.rtfs .rtfs-volver{margin:14px 0 0;font-weight:800}
@media (min-width:760px){.rtfs .rtfs-cab{grid-template-columns:auto minmax(0,1fr) auto;padding:30px}.rtfs .rtfs-botones{grid-column:auto;max-width:420px;justify-content:flex-end}.rtfs .rtfs-botones>*{flex:1 1 110px}.rtfs .rtfs-cuerpo{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.rtfs .rtfs-cuerpo.rtfs-una{grid-template-columns:minmax(0,1fr)}}

/* La ficha completa de quien publica toma el mismo color de marca en sus botones. */
body.rta .rtf .rtf-boton--rojo{background:#c9141e}

/* Ajustes tras verlo en la web (1-dic). */
body.rta li.rt-place .rta-accs{align-self:stretch;width:100%;max-width:none;flex-wrap:nowrap}
body.rta .rta-acc{flex:1 1 0;min-width:0}
body.rta:has(.rta-cab) .rt-banda-seccion{display:none}
body.rta-salud .rta-cab~* .rt-shops__head h2,body.rta-salud .rta-cab~* .rt-places__head h2:only-child{display:none}
body.rtw-activa.rta h1.wp-block-post-title{box-sizing:border-box;margin:4px 0 14px;padding:24px 20px;border-radius:26px;background:var(--rta);color:#fff;padding:24px 22px!important}
body.rta.page-id-13772 .rt-banda-seccion,body.rta.page-id-13772 main>.wp-block-post-featured-image{display:none}
/* Estructura nueva del directorio (3-dic): subtítulos y categorías todavía sin fichas. */
.rtd .rtd-grupo-dentro .rtd-sub{grid-column:1/-1;margin:8px 0 0;padding:0 4px;font-size:.74rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.85)}
.rtd .rtd-grupo-dentro .rtd-pronto{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px;padding:10px 14px;border:1px dashed rgba(255,255,255,.55);border-radius:14px;color:#fff;font-weight:700;opacity:.8}
.rtd .rtd-grupo-dentro .rtd-pronto small{display:inline;margin:0;font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;opacity:.85}
@media (min-width:760px){.rtd .rtd-grupo[open]:not(.rtd-grupo--asociaciones){grid-column:1/-1}.rtd .rtd-grupo--asociaciones .rtd-grupo-dentro{grid-template-columns:repeat(3,minmax(0,1fr))}}
