/* =========================================================================
   Sistema de diseno multisite · capa sobre styles.css
   1. Tokens por portal   2. Temas y preferencias de accesibilidad
   3. Cabecera, selector de portal e idioma   4. Componentes nuevos
   ========================================================================= */

/* ---------- 1. Portales ------------------------------------------------- */
:root { --brand-deep: #0a2a66; --hover-lift: -2px; --radius: 4px; --ring: var(--blue); --font-ui: Manrope, Arial, sans-serif; }
:root[data-portal='parcbit'] { --blue: #0a6a5a; --blue-dark: #064a3f; --tint: #e6f3f0; --brand-deep: #06352d; }
:root[data-portal='menorca'] { --blue: #a3401c; --blue-dark: #7c2e12; --tint: #fbece6; --brand-deep: #4a1d0c; }
:root[data-portal='eivissa'] { --blue: #7a2c8c; --blue-dark: #5a1e69; --tint: #f5e9f8; --brand-deep: #36103f; }
:root[data-portal='emprenbit'] { --blue: #2e6310; --blue-dark: #1f4709; --tint: #eef7d8; --brand-deep: #1c3a0a; }
:root[data-portal='transparencia'] { --blue: #3b4a63; --blue-dark: #27324a; --tint: #eaeef5; --brand-deep: #1b2435; }

/* ---------- 2. Temas ---------------------------------------------------- */
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #e9efeb; --muted: #aab6af; --line: #35403a; --paper: #1b221e; --white: #111614; --surface: #171d1a;
  --field-line: #7e8c84; --tint: #1f2a33; --on-dark: #f3f7f4; --on-dark-soft: #b7c2bb; --inverse: #0b0f0d; --btn-text: #0d1210;
  --blue: #7fb0ff; --blue-dark: #aecbff;
}
:root[data-theme='dark'][data-portal='parcbit'] { --blue: #5ed6bf; --blue-dark: #94e6d6; --tint: #14302b; }
:root[data-theme='dark'][data-portal='menorca'] { --blue: #ff9b73; --blue-dark: #ffbd9f; --tint: #36211a; }
:root[data-theme='dark'][data-portal='eivissa'] { --blue: #d99bf0; --blue-dark: #e8bff8; --tint: #2d1c35; }
:root[data-theme='dark'][data-portal='emprenbit'] { --blue: #a8e063; --blue-dark: #c6f08f; --tint: #232f12; }
:root[data-theme='dark'][data-portal='transparencia'] { --blue: #a9bde0; --blue-dark: #cbd8ef; --tint: #1c2433; }
:root[data-theme='contrast'] {
  color-scheme: dark;
  --ink: #fff; --muted: #fff; --line: #fff; --paper: #000; --white: #000; --surface: #000; --field-line: #fff;
  --tint: #1d1d00; --on-dark: #fff; --on-dark-soft: #fff; --inverse: #000; --btn-text: #000; --blue: #ffe600; --blue-dark: #fff;
}
:root[data-theme='dark'] .icon, :root[data-theme='contrast'] .icon { filter: invert(1); }
:root[data-theme='dark'] .button:not(.light):not(.outline) .icon, :root[data-theme='contrast'] .button:not(.light):not(.outline) .icon { filter: none; }
:root[data-theme='dark'] .button.dark, :root[data-theme='dark'] .assistant[open] > summary { background: #e9efeb; color: #0d1210; }
:root[data-theme='dark'] .button.dark .icon { filter: none; }
:root[data-theme='dark'] .brand img, :root[data-theme='contrast'] .brand img { background: #fff; padding: 6px 10px; border-radius: 4px; }
:root[data-theme='dark'] .empren-band, :root[data-theme='dark'] .empren-band .eyebrow::before { color: #e9efeb; }
:root[data-theme='dark'] .empren-band { background: #26340f; }
:root[data-theme='dark'] .empren-band .button.dark { background: #a8e063; color: #14200a; }
:root[data-theme='contrast'] .empren-band { background: #000; border-block: 2px solid #fff; }
:root[data-theme='contrast'] .empren-band .button.dark { background: #ffe600; color: #000; }
:root[data-theme='contrast'] .empren-band .button.dark .icon-white { filter: none; }
:root[data-theme='contrast'] a:not(.button):not(.brand):not(.skip) { text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme='contrast'] .button { border-color: #ffe600; }
:root[data-theme='contrast'] .button.light, :root[data-theme='contrast'] .button.outline { border-color: #fff; }
:root[data-theme='contrast'] .hero::after { background: rgba(0,0,0,.72); }
:root[data-theme='contrast'] img.photo, :root[data-theme='contrast'] img.center-image { filter: grayscale(.2) contrast(1.05); }
:root[data-theme='dark'] img:not(.icon):not(.brand-logo) { filter: brightness(.92); }
:root[data-theme='dark'] .calendar-event, :root[data-theme='dark'] .event-detail, :root[data-theme='dark'] .agenda-list-item:hover { background: color-mix(in srgb, var(--event-color) 22%, var(--surface)); }
:root[data-theme='dark'] .formacion { --event-color: #8db4ff; } :root[data-theme='dark'] .encuentro { --event-color: #ff9fb0; }
:root[data-theme='dark'] .emprender { --event-color: #6fd9a8; } :root[data-theme='dark'] .ayuda { --event-color: #f0c35c; }
:root[data-theme='dark'] .blue { --offer-color: #8db4ff; } :root[data-theme='dark'] .green { --offer-color: #6fd9a8; }
:root[data-theme='dark'] .amber { --offer-color: #f0c35c; } :root[data-theme='dark'] .coral { --offer-color: #ff9fb0; }
:root[data-theme='dark'] .outside-month { background: #131815; color: #8a978f; }
:root[data-theme='contrast'] .calendar-event, :root[data-theme='contrast'] .event-detail { background: #000; border: 1px solid #fff; }
:root[data-theme='contrast'] .formacion, :root[data-theme='contrast'] .encuentro, :root[data-theme='contrast'] .emprender, :root[data-theme='contrast'] .ayuda { --event-color: #ffe600; --event-bg: #000; }
:root[data-theme='contrast'] .service-offer, :root[data-theme='contrast'] .center-option, :root[data-theme='contrast'] .application-form { border-color: #fff; }

/* Preferencias */
:root[data-text='125'] { font-size: 125%; } :root[data-text='150'] { font-size: 150%; } :root[data-text='175'] { font-size: 175%; }
:root[data-text='125'] .header-row, :root[data-text='150'] .header-row, :root[data-text='175'] .header-row { height: auto; min-height: 80px; padding-block: 8px; flex-wrap: wrap; }
:root[data-text='150'] .primary-nav, :root[data-text='175'] .primary-nav { display: none; }
:root[data-text='150'] .mobile-nav, :root[data-text='175'] .mobile-nav { display: block; }
:root[data-spacing='wide'] body { line-height: 1.95; letter-spacing: .04em; word-spacing: .16em; }
:root[data-spacing='wide'] p { margin-bottom: 1.2em; }
:root[data-font='readable'] { --font-ui: Verdana, Tahoma, 'Trebuchet MS', sans-serif; }
:root[data-font='readable'] body, :root[data-font='readable'] button, :root[data-font='readable'] input, :root[data-font='readable'] select, :root[data-font='readable'] textarea { font-family: var(--font-ui); }
:root[data-font='readable'] h1, :root[data-font='readable'] h2, :root[data-font='readable'] h3 { letter-spacing: 0; text-wrap: wrap; }
:root[data-links='underline'] a:not(.button):not(.brand):not(.skip) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
:root[data-motion='reduce'] { scroll-behavior: auto; }
:root[data-motion='reduce'] *, :root[data-motion='reduce'] *::before, :root[data-motion='reduce'] *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
:root[data-images='hide'] .photo, :root[data-images='hide'] .hero-photo, :root[data-images='hide'] .empren-photo, :root[data-images='hide'] .center-image, :root[data-images='hide'] .detail-photo, :root[data-images='hide'] .tile-photo { visibility: hidden; }
:root[data-images='hide'] .hero { background: var(--brand-deep); }
:root[data-focus='strong'] :focus-visible { outline: 4px solid var(--ring) !important; outline-offset: 3px !important; box-shadow: 0 0 0 8px var(--surface), 0 0 0 10px var(--ink) !important; }

/* Foco en dos tonos: visible sobre fondos claros, oscuros y fotografias */
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; box-shadow: 0 0 0 5px var(--surface); border-radius: 2px; }
.hero :focus-visible, .site-footer :focus-visible, .empren-band :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px #0d1210; }
:root[data-theme='contrast'] :focus-visible { box-shadow: 0 0 0 5px #000; }
.skip { background: var(--lime); color: #202724; border: 2px solid #202724; font-weight: 700; border-radius: 3px; }
:root[data-theme='dark'] .skip { background: #a8e063; }
.reading-guide { position: fixed; left: 0; right: 0; height: 56px; z-index: 90; pointer-events: none; background: color-mix(in srgb, var(--blue) 14%, transparent); border-block: 2px solid var(--blue); display: none; }
.reading-guide[data-on] { display: block; }

/* ---------- 3. Cabecera, portales e idioma ----------------------------- */
.utility { font-size: .8125rem; background: var(--paper); }
.utility .wrap { min-height: 42px; }
.portal-switch { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.portal-switch::-webkit-scrollbar { display: none; }
.portal-switch a { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; white-space: nowrap; font-weight: 600; border-bottom: 3px solid transparent; }
.portal-switch a::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--p, var(--blue)); flex: none; }
.portal-switch a:hover { background: var(--surface); }
.portal-switch a[aria-current='true'] { font-weight: 800; border-bottom-color: var(--p, var(--blue)); background: var(--surface); }
:root[data-theme='dark'] .portal-switch a::before { background: var(--p-dark, var(--p)); }
:root[data-theme='contrast'] .portal-switch a::before { background: #fff; }
.utility-links a { min-height: 42px; display: inline-flex; align-items: center; }
.header-actions { gap: 10px; }
.header-actions .language, .lang-menu > summary { min-height: 44px; }
.lang-menu { position: relative; }
.lang-menu > summary { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 22px; font-size: .8125rem; font-weight: 700; background: var(--surface); }
.lang-menu > summary::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lang-menu[open] > summary::after { transform: rotate(-135deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 230px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px #20272422; }
.lang-list a { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 11px 12px; min-height: 44px; font-size: .875rem; border-radius: 3px; }
.lang-list a:hover { background: var(--tint); }
.lang-list [aria-current='true'] { font-weight: 800; background: var(--tint); }
.lang-list small { color: var(--muted); font-size: .75rem; }
.a11y-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); font-weight: 700; font-size: .8125rem; cursor: pointer; color: var(--ink); text-decoration: none; }
.a11y-trigger:hover { background: var(--tint); }
.a11y-trigger .icon { width: 22px; height: 22px; flex-basis: 22px; }
.primary-nav > a[aria-current='page'] { color: var(--blue); }
.mobile-links { max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-links a[aria-current='page'] { color: var(--blue); }
.mobile-links .mobile-portals { margin-top: 18px; display: grid; gap: 0; }
.mobile-links .mobile-portals strong { font-size: .75rem; color: var(--muted); text-transform: uppercase; padding-top: 6px; }
.mobile-links .mobile-portals a { font-weight: 600; }
.site-header { transition: box-shadow .2s; }
.site-header[data-stuck] { box-shadow: 0 6px 24px #20272414; }
.brand-logo { }
.header-actions > .button.dark { white-space: nowrap; }
@media (max-width: 1100px) { .a11y-trigger span { display: none; } .a11y-trigger { padding: 0; width: 44px; justify-content: center; } }
@media (max-width: 900px) { .portal-switch a { padding: 0 10px; font-size: .8125rem; } .utility-links { display: none; } .utility .wrap { gap: 0; } }
@media (max-width: 600px) { .lang-menu > summary { padding: 0 10px; } .header-actions { gap: 8px; } .header-actions .search-shortcut { display: none; } }

/* ---------- Reveal ------------------------------------------------------ */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }
:root[data-motion='reduce'] .reveal { opacity: 1 !important; transform: none !important; }
@media print { html.js .reveal { opacity: 1 !important; transform: none !important; } .assistant, .a11y-trigger, .skip { display: none !important; } }

/* ---------- 4. Componentes --------------------------------------------- */
.lede { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; background: var(--tint); color: var(--blue); font-size: .75rem; font-weight: 700; }
.pill.neutral { background: var(--paper); color: var(--muted); }
.pill.warn { background: #fbf1d7; color: #6b4a03; } .pill.ok { background: #e3f4ea; color: #0d5a3a; } .pill.bad { background: #fbe9e9; color: #8f2b2b; } .pill.ai { background: #efe8fb; color: #56309b; }
:root[data-theme='dark'] .pill.warn { background: #3b3010; color: #f4d27a; } :root[data-theme='dark'] .pill.ok { background: #12351f; color: #8fe0b0; }
:root[data-theme='dark'] .pill.bad { background: #3a1a1a; color: #ffabab; } :root[data-theme='dark'] .pill.ai { background: #2a1f45; color: #cdb6ff; }
:root[data-theme='contrast'] .pill { background: #000; color: #fff; border: 1px solid #fff; }
.demo-flag { display: inline-flex; gap: 8px; align-items: center; font-size: .75rem; font-weight: 700; padding: 4px 10px; border: 1px dashed var(--field-line); border-radius: 3px; color: var(--muted); }
.notice-demo { border-left: 3px solid var(--blue); background: var(--tint); padding: 14px 18px; font-size: .8125rem; margin-block: 18px; border-radius: 0 3px 3px 0; }
.notice-demo strong { color: var(--ink); }

/* Mapa de portales (home) */
.portal-map { padding-block: 84px; background: var(--paper); border-block: 1px solid var(--line); }
.portal-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--ink); counter-reset: portal; }
.portal-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 26px 0; min-height: 230px; border-right: 1px solid var(--line); padding-left: 22px; transition: background .25s; counter-increment: portal; }
.portal-card:first-child { padding-left: 0; } .portal-card:last-child { border-right: 0; }
.portal-card::before { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 5px; background: var(--p); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.portal-card:hover::before, .portal-card:focus-visible::before { transform: scaleX(1); }
.portal-card:first-child::before { left: 0; }
.portal-card .tag { font-size: .75rem; font-weight: 700; color: var(--p-text, var(--p)); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.portal-card .tag::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--p); }
.portal-card h3 { font-size: 1.375rem; }
.portal-card p { font-size: .875rem; color: var(--muted); flex: 1; }
.portal-card .go { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 700; min-height: 32px; }
.portal-card:hover .go .icon { transform: translate(3px,-3px); }
.portal-card .go .icon { transition: transform .2s; }
@media (max-width: 1100px) { .portal-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .portal-card { padding: 22px 22px 22px 0; border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; } .portal-card:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); } .portal-card:first-child { padding-left: 0; } }
@media (max-width: 600px) { .portal-grid { grid-template-columns: 1fr; } .portal-card, .portal-card:nth-child(even) { padding: 20px 0; border-left: 0; } .portal-map { padding-block: 48px; } }

/* Home de portal (ParcBit / CentreBit / Emprenbit) */
.hero.portal-hero::after { background: linear-gradient(90deg, color-mix(in srgb, var(--brand-deep) 88%, transparent), color-mix(in srgb, var(--brand-deep) 45%, transparent) 55%, transparent 90%); }
.portal-hero .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.35); border-radius: 22px; font-size: .75rem; font-weight: 700; margin-bottom: 20px; }
.portal-hero .badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
:root[data-theme='dark'] .portal-hero .badge::before { background: #a8e063; }
.hero-facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8px; font-size: .875rem; }
.hero-facts span { display: inline-flex; gap: 8px; align-items: center; }
.task-strip { border-bottom: 1px solid var(--line); }
.task-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); }
.task-grid a { display: flex; flex-direction: column; gap: 6px; padding: 24px 20px; border-left: 1px solid var(--line); min-height: 118px; transition: background .2s; }
.task-grid a:first-child { border-left: 0; padding-left: 0; }
.task-grid a:hover { background: var(--tint); }
.task-grid strong { font-size: 1rem; display: flex; justify-content: space-between; gap: 10px; }
.task-grid span { font-size: .8125rem; color: var(--muted); }
@media (max-width: 900px) { .task-grid { grid-template-columns: repeat(2, 1fr); } .task-grid a, .task-grid a:first-child { padding: 18px 14px; border: 0; border-bottom: 1px solid var(--line); } .task-grid a:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; } }
.latest-company { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--inverse); color: var(--on-dark); padding: 28px 34px; border-radius: 6px; }
.latest-company .company-monogram { background: rgba(255,255,255,.12); color: var(--on-dark); width: 72px; height: 72px; font-size: 1.5rem; border-radius: 6px; }
.latest-company .eyebrow::before { background: var(--lime); }
.latest-company h3 { font-size: 1.5rem; margin: 6px 0; }
.latest-company p { color: var(--on-dark-soft); font-size: .875rem; }
.latest-company .button { background: var(--on-dark); color: #14181a; }
.latest-company .button .icon { filter: none; }
:root[data-theme='dark'] .latest-company { background: #0d1210; border: 1px solid var(--line); } :root[data-theme='contrast'] .latest-company { border: 2px solid #fff; }
@media (max-width: 700px) { .latest-company { grid-template-columns: 1fr; padding: 24px; } }
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.tile-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); } .tile-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.tile { border: 1px solid var(--line); border-radius: 6px; padding: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; position: relative; transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
a.tile:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 10px 28px #2027241a; }
.tile h3 { font-size: 1.125rem; line-height: 1.3; } .tile p { font-size: .875rem; color: var(--muted); }
.tile .tile-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); }
.tile .tile-icon .icon { width: 22px; height: 22px; }
.tile .more { margin-top: auto; font-size: .8125rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.tile-photo { width: 100%; aspect-ratio: 1.6; object-fit: cover; border-radius: 4px; }
.tile.photo-tile { padding: 0; overflow: hidden; } .tile.photo-tile > :not(img) { margin-inline: 22px; } .tile.photo-tile > .more { margin-bottom: 18px; } .tile.photo-tile > .tile-photo { border-radius: 0; margin: 0; width: 100%; }
@media (max-width: 1100px) { .tile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .tile-grid.three { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .tile-grid, .tile-grid.three, .tile-grid.two { grid-template-columns: 1fr; } }
.cta-band { background: var(--inverse); color: var(--on-dark); padding: 56px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: 2rem; max-width: 22ch; } .cta-band p { color: var(--on-dark-soft); margin-top: 8px; max-width: 52ch; }
.cta-band .button { background: var(--on-dark); color: #14181a; } .cta-band .button .icon { filter: none; }
:root[data-theme='dark'] .cta-band { background: #0d1210; border-block: 1px solid var(--line); } :root[data-theme='contrast'] .cta-band { border-block: 2px solid #fff; }
.live-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.live-poster { position: relative; min-height: 240px; background: linear-gradient(135deg, var(--brand-deep), var(--blue)); color: #fff; display: grid; place-items: center; }
.live-poster .play { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; color: #111; }
.live-poster .play svg { width: 28px; height: 28px; margin-left: 4px; }
.live-poster .pill { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,.45); color: #fff; }
.live-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
@media (max-width: 800px) { .live-card { grid-template-columns: 1fr; } }
.board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.board li { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.board time { font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
@media (max-width: 600px) { .board li { grid-template-columns: 1fr; gap: 4px; } }
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.section.tight { padding-block: 56px; }
.kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Filtros, resultados, estados */
.filter-bar { display: grid; gap: 14px; padding: 18px 0; border-block: 1px solid var(--line); }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filter-row .field { margin: 0; min-width: 170px; flex: 1; }
.search-field { position: relative; flex: 2 1 280px; }
.search-field input { padding-left: 42px; }
.search-field .icon { position: absolute; left: 13px; bottom: 14px; width: 18px; height: 18px; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 0; list-style: none; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 20px; background: var(--surface); color: var(--ink); font-size: .8125rem; font-weight: 600; cursor: pointer; }
.chip-btn:hover { background: var(--tint); border-color: var(--blue); }
.chip-btn[aria-pressed='true'] { background: var(--blue); border-color: var(--blue); color: var(--btn-text); }
.chip-btn .x { font-weight: 800; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; flex-wrap: wrap; }
.result-count { font-weight: 700; font-size: .9375rem; }
.empty-state { display: none; padding: 40px 24px; text-align: center; background: var(--paper); border-radius: 6px; margin: 16px 0; }
.empty-state[data-show] { display: block; }
.empty-state h2, .empty-state h3 { font-size: 1.25rem; margin-bottom: 8px; } .empty-state p { color: var(--muted); font-size: .9375rem; margin-bottom: 16px; }
.btn-plain { min-height: 44px; padding: 0 16px; border: 1px solid var(--field-line); background: var(--surface); border-radius: 3px; font-weight: 700; font-size: .8125rem; cursor: pointer; color: var(--ink); }
.btn-plain:hover { background: var(--tint); border-color: var(--blue); }
.pager { display: flex; gap: 6px; justify-content: center; padding: 28px 0 8px; list-style: none; margin: 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 3px; font-weight: 700; font-size: .875rem; padding: 0 10px; }
.pager [aria-current='page'] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pager [aria-disabled='true'] { color: var(--muted); opacity: .6; }

/* Directorio y mapa */
.dir-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
.dir-list { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.dir-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; padding: 20px 8px; border-bottom: 1px solid var(--line); align-items: center; transition: background .2s; }
.dir-item:hover, .dir-item[data-active] { background: var(--tint); }
.dir-item h3 { font-size: 1.125rem; } .dir-item p { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.dir-item .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.dir-item[hidden] { display: none; }
.map-box { position: sticky; top: 112px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); overflow: hidden; }
.map-stage { position: relative; aspect-ratio: 1.15; }
.map-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; transform: translate(-50%, -100%); min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: end center; }
.map-pin::before { content: ''; width: 26px; height: 26px; background: var(--blue); border: 3px solid var(--surface); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 8px #0003; transition: transform .2s; }
.map-pin:hover::before, .map-pin[aria-pressed='true']::before { transform: rotate(-45deg) scale(1.25); background: var(--ink); }
.map-pin[hidden] { display: none; }
:root[data-theme='dark'] .map-pin[aria-pressed='true']::before { background: #fff; }
.map-legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); background: var(--surface); }
.map-card { padding: 16px; background: var(--surface); border-top: 1px solid var(--line); min-height: 88px; font-size: .875rem; }
.map-card strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.map-svg-land { fill: color-mix(in srgb, var(--blue) 10%, var(--surface)); stroke: color-mix(in srgb, var(--blue) 45%, var(--surface)); stroke-width: 1.5; }
.map-svg-line { stroke: color-mix(in srgb, var(--ink) 18%, var(--surface)); stroke-width: 1.5; fill: none; }
.map-svg-water { fill: color-mix(in srgb, var(--blue) 5%, var(--paper)); }
.map-svg-label { fill: var(--muted); font: 600 11px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.view-toggle { display: none; }
@media (max-width: 900px) { .dir-layout { grid-template-columns: 1fr; } .map-box { position: static; order: -1; } .view-toggle { display: inline-flex; } }

/* Fichas */
.crumbs-wrap { padding-block: 14px 0; }
.profile-head { display: grid; grid-template-columns: 112px 1fr auto; gap: 28px; align-items: center; padding-block: 24px 36px; border-bottom: 1px solid var(--line); }
.profile-head .logo-mono { width: 112px; height: 112px; border-radius: 12px; background: var(--tint); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 2.25rem; }
.profile-head h1 { font-size: 2.5rem; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; padding-block: 40px 64px; }
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; } .prose p { margin-bottom: 1.1em; color: var(--ink); } .prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .5em; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--blue); font-size: 1.25rem; font-weight: 600; line-height: 1.5; }
.aside-card { border: 1px solid var(--line); border-radius: 6px; padding: 22px; background: var(--surface); margin-bottom: 20px; }
.aside-card h2, .aside-card h3 { font-size: 1rem; margin-bottom: 14px; }
.dl-list { margin: 0; display: grid; gap: 14px; font-size: .9375rem; }
.dl-list dt { font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.dl-list dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.share-row .btn-plain { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.share-status { font-size: .8125rem; color: var(--muted); min-height: 1.4em; }
.article-head { max-width: 860px; padding-block: 28px 20px; }
.article-head h1 { font-size: 3rem; line-height: 1.12; margin: 14px 0 18px; }
.article-hero { width: 100%; aspect-ratio: 2.2; object-fit: cover; border-radius: 6px; }
.figure-cap { font-size: .8125rem; color: var(--muted); margin-top: 8px; }
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 24px; }
.mini-map { position: relative; aspect-ratio: 1.6; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; gap: 28px; } .profile-head { grid-template-columns: 72px 1fr; } .profile-head .logo-mono { width: 72px; height: 72px; font-size: 1.5rem; } .profile-head > :last-child { grid-column: 1 / -1; } .article-head h1, .profile-head h1 { font-size: 2.125rem; } }

/* Cuadrantes de disponibilidad */
.slots { display: grid; grid-template-columns: 90px repeat(5, minmax(0,1fr)); gap: 6px; font-size: .8125rem; }
.slots .head { font-weight: 700; text-align: center; padding: 6px 0; color: var(--muted); }
.slots .time { display: grid; align-items: center; font-weight: 700; color: var(--muted); }
.slot { min-height: 44px; border: 1px solid var(--field-line); border-radius: 3px; background: var(--surface); font-weight: 600; font-size: .75rem; cursor: pointer; color: var(--ink); }
.slot:hover:not(:disabled) { background: var(--tint); border-color: var(--blue); }
.slot[aria-pressed='true'] { background: var(--blue); border-color: var(--blue); color: var(--btn-text); }
.slot:disabled { background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 6px, var(--surface) 6px, var(--surface) 12px); color: var(--muted); cursor: not-allowed; border-style: dashed; }
.slots-wrap { overflow-x: auto; padding-bottom: 6px; } .slots-wrap .slots { min-width: 540px; }
.slot-summary { padding: 12px 16px; border-radius: 3px; background: var(--tint); font-size: .875rem; margin-top: 14px; font-weight: 600; }

/* Formulario por pasos y errores */
.stepper { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: s; }
.stepper li { flex: 1; counter-increment: s; position: relative; padding-top: 34px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.stepper li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--field-line); background: var(--surface); font-size: .75rem; font-weight: 800; z-index: 1; }
.stepper li::after { content: ''; position: absolute; top: 12px; left: 34px; right: 8px; height: 2px; background: var(--line); }
.stepper li:last-child::after { display: none; }
.stepper li[aria-current='step'] { color: var(--ink); } .stepper li[aria-current='step']::before { border-color: var(--blue); background: var(--blue); color: var(--btn-text); }
.stepper li[data-done]::before { content: '\2713'; border-color: var(--blue); color: var(--blue); }
.stepper li[data-done]::after { background: var(--blue); }
.error-summary { border: 2px solid #b3261e; background: #fdf0ef; color: #3b0d0a; padding: 18px 22px; border-radius: 4px; margin-bottom: 24px; }
:root[data-theme='dark'] .error-summary { background: #3a1a1a; color: #ffd9d6; border-color: #ff8a80; } :root[data-theme='contrast'] .error-summary { background: #000; color: #fff; border-color: #fff; }
.error-summary h2 { font-size: 1.125rem; margin-bottom: 8px; } .error-summary ul { margin: 0; padding-left: 20px; } .error-summary a { text-decoration: underline; font-weight: 700; }
.field-error { display: none; color: #b3261e; font-size: .8125rem; font-weight: 700; }
:root[data-theme='dark'] .field-error { color: #ff9c94; } :root[data-theme='contrast'] .field-error { color: #fff; }
.field[data-invalid] .field-error, fieldset[data-invalid] .field-error { display: block; }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: #b3261e; border-width: 2px; }
.field[data-invalid] .field-error::before, fieldset[data-invalid] .field-error::before { content: '\26A0\00a0'; }
.req { color: #b3261e; } :root[data-theme='dark'] .req { color: #ff9c94; }
.step-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.step-hide { display: none !important; }
.choice-group { display: grid; gap: 10px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--field-line); border-radius: 4px; cursor: pointer; background: var(--surface); }
.choice:hover { border-color: var(--blue); } .choice:has(input:checked) { border-color: var(--blue); background: var(--tint); box-shadow: 0 0 0 1px var(--blue); }
.choice input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.choice strong { display: block; font-size: .9375rem; } .choice span { font-size: .8125rem; color: var(--muted); }
.cond { display: none; } .cond[data-show] { display: block; }
.file-drop { border: 2px dashed var(--field-line); border-radius: 6px; padding: 20px; text-align: center; font-size: .875rem; background: var(--paper); }
.file-drop input { max-width: 100%; }
.form-progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 18px; } .form-progress > i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .4s; }
.success-panel { text-align: center; padding: 40px 24px; }
.success-panel .check-big { width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--blue); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 16px; font-weight: 800; }

/* Asistente */
.assistant-panel { width: 360px; max-height: min(72vh, 620px); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.assistant-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.assistant-head h2 { font-size: 1.0625rem; margin: 6px 0 4px; }
.assistant-head p { font-size: .75rem; color: var(--muted); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; min-height: 140px; }
.msg { max-width: 92%; padding: 10px 14px; border-radius: 12px; font-size: .875rem; line-height: 1.5; }
.msg.bot { background: var(--paper); border-bottom-left-radius: 3px; align-self: flex-start; }
.msg.me { background: var(--blue); color: var(--btn-text); border-bottom-right-radius: 3px; align-self: flex-end; }
.msg small { display: block; margin-top: 6px; font-size: .75rem; color: var(--muted); }
.msg a { text-decoration: underline; font-weight: 700; display: inline; padding: 0; border: 0; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 12px; }
.chat-chips button { min-height: 34px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 18px; background: var(--surface); font-size: .8125rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.chat-chips button:hover { background: var(--tint); border-color: var(--blue); }
.chat-form { display: flex; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 3px; background: var(--surface); color: var(--ink); font-size: .875rem; }
.chat-form button { min-width: 44px; min-height: 44px; border: 0; border-radius: 3px; background: var(--blue); color: var(--btn-text); font-weight: 700; cursor: pointer; padding: 0 14px; }
.assistant-panel a.panel-link { display: inline; padding: 0; border: 0; }
.assistant-foot { padding: 0 20px 14px; font-size: .75rem; color: var(--muted); }
.assistant-foot a { display: inline; padding: 0; border: 0; text-decoration: underline; font-size: .75rem; font-weight: 700; }
@media (max-width: 600px) { .assistant-panel { width: min(360px, calc(100vw - 32px)); } }
:root[data-theme='dark'] .assistant > summary { border-color: var(--field-line); }

/* Panel de accesibilidad */
dialog.a11y-dialog { border: 0; padding: 0; margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); background: var(--surface); color: var(--ink); box-shadow: -20px 0 60px #0006; flex-direction: column; }
dialog.a11y-dialog[open] { display: flex; }
dialog.a11y-dialog::backdrop { background: rgba(10,14,12,.55); backdrop-filter: blur(2px); }
dialog.a11y-dialog[open] { animation: slide-in .28s cubic-bezier(.2,.7,.2,1); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.a11y-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.a11y-head h2 { font-size: 1.375rem; } .a11y-head p { font-size: .8125rem; color: var(--muted); margin-top: 6px; max-width: 32ch; }
.a11y-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.a11y-close:hover { background: var(--tint); }
.a11y-body { overflow-y: auto; padding: 8px 24px 20px; flex: 1; }
.a11y-group { border: 0; padding: 18px 0; margin: 0; border-bottom: 1px solid var(--line); }
.a11y-group legend, .a11y-group h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; margin: 0 0 12px; padding: 0; float: none; width: auto; display: block; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg label { position: relative; display: grid; place-items: center; text-align: center; min-height: 48px; padding: 6px; border: 1px solid var(--field-line); border-radius: 4px; cursor: pointer; font-size: .8125rem; font-weight: 700; background: var(--surface); }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg label:has(input:checked) { border-color: var(--blue); background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.seg .sample { display: block; font-size: 1.125rem; line-height: 1; margin-bottom: 2px; }
.seg.themes label { padding-top: 38px; position: relative; }
.seg.themes label::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 36px; height: 22px; border-radius: 4px; border: 1px solid var(--field-line); }
.seg.themes label[data-t='auto']::before { background: linear-gradient(90deg, #fff 50%, #171d1a 50%); } .seg.themes label[data-t='light']::before { background: #fff; }
.seg.themes label[data-t='dark']::before { background: #171d1a; } .seg.themes label[data-t='contrast']::before { background: #000; border: 2px solid #ffe600; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; min-height: 48px; cursor: pointer; font-size: .9375rem; font-weight: 600; }
.sw small { display: block; font-weight: 400; color: var(--muted); font-size: .8125rem; }
.sw input { appearance: none; -webkit-appearance: none; flex: none; width: 48px; height: 28px; border-radius: 14px; background: var(--field-line); position: relative; cursor: pointer; margin: 0; transition: background .2s; }
.sw input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px #0004; }
.sw input:checked { background: var(--blue); } .sw input:checked::after { transform: translateX(20px); background: var(--btn-text); }
:root[data-theme='dark'] .sw input:checked::after { background: #0d1210; }
.sw input:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.a11y-foot { padding: 16px 24px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; background: var(--paper); }
.a11y-status { font-size: .8125rem; color: var(--muted); width: 100%; min-height: 1.3em; }
.tts-row { display: flex; gap: 8px; flex-wrap: wrap; }
.kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--field-line); border-bottom-width: 2px; border-radius: 4px; font: 700 .8125rem/1.5 ui-monospace, Menlo, monospace; background: var(--paper); }

/* Back-office conceptual */
.bo-shell { display: grid; grid-template-columns: 248px minmax(0,1fr); min-height: 80vh; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); margin-bottom: 56px; }
.bo-side { background: var(--inverse); color: var(--on-dark); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.bo-side h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-soft); padding: 14px 10px 6px; }
.bo-side a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 4px; font-size: .875rem; min-height: 40px; color: var(--on-dark); }
.bo-side a:hover { background: rgba(255,255,255,.1); } .bo-side a[aria-current='page'] { background: rgba(255,255,255,.16); font-weight: 800; }
.bo-side .count { background: var(--lime); color: #202724; border-radius: 10px; padding: 1px 8px; font-size: .75rem; font-weight: 800; }
.bo-main { padding: 24px 28px 32px; min-width: 0; }
.bo-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.bo-top h2 { font-size: 1.5rem; } .bo-controls { display: flex; gap: 12px; flex-wrap: wrap; }
.bo-controls .field { margin: 0; flex-direction: row; align-items: center; gap: 8px; }
.bo-controls select { min-height: 40px; padding: 6px 10px; width: auto; }
.bo-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 16px; }
.bo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; min-width: 0; }
.bo-card h3 { font-size: 1rem; margin-bottom: 4px; } .bo-card > p.sub { font-size: .8125rem; color: var(--muted); margin-bottom: 14px; }
.span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.bo-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.bo-table caption { text-align: left; }
.bo-table th { text-align: left; font-size: .75rem; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); letter-spacing: .03em; }
.bo-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.bo-table tr:hover td { background: var(--paper); }
.bo-table .actions { display: flex; gap: 6px; } .bo-table .btn-plain { min-height: 36px; padding: 0 10px; }
.table-scroll { overflow-x: auto; }
.workflow { display: flex; gap: 0; list-style: none; padding: 0; margin: 0; }
.workflow li { flex: 1; padding: 12px 14px; border: 1px solid var(--line); font-size: .8125rem; font-weight: 700; position: relative; background: var(--surface); text-align: center; }
.workflow li + li { margin-left: -1px; } .workflow li[aria-current='step'] { background: var(--blue); color: var(--btn-text); border-color: var(--blue); }
.bars { display: grid; gap: 10px; } .bar-row { display: grid; grid-template-columns: 130px 1fr 56px; gap: 12px; align-items: center; font-size: .8125rem; }
.bar-row .track { height: 12px; background: var(--paper); border-radius: 6px; overflow: hidden; } .bar-row .track i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.role-matrix th, .role-matrix td { text-align: center; } .role-matrix th:first-child, .role-matrix td:first-child { text-align: left; }
.tick { color: var(--blue); font-weight: 800; } .dash { color: var(--muted); }
@media (max-width: 1000px) { .bo-shell { grid-template-columns: 1fr; } .bo-side { flex-direction: row; flex-wrap: wrap; } .bo-side h2 { width: 100%; } .span-4, .span-6, .span-8 { grid-column: span 12; } .workflow { flex-direction: column; } .workflow li + li { margin-left: 0; margin-top: -1px; } .bo-main { padding: 18px 16px; } }

/* Transparencia */
.doc-row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 18px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--line); }
.doc-row:hover { background: var(--tint); } .doc-row[hidden] { display: none; }
.doc-ico { width: 44px; height: 52px; border: 1px solid var(--field-line); border-radius: 3px; display: grid; place-items: end center; padding-bottom: 6px; font-size: .75rem; font-weight: 800; background: var(--surface); color: var(--blue); position: relative; }
.doc-row h3 { font-size: 1rem; line-height: 1.35; } .doc-row p { font-size: .8125rem; color: var(--muted); }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) { .doc-row { grid-template-columns: 44px 1fr; } .doc-row > :nth-child(n+3) { grid-column: 2; } }

/* Evento */
.event-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: 8px; overflow: hidden; background: var(--inverse); color: var(--on-dark); }
.event-hero > div { padding: 44px; } .event-hero > img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.event-hero h1 { font-size: 3rem; margin: 14px 0; } .event-hero p { color: var(--on-dark-soft); max-width: 46ch; }
.event-hero .pill { background: rgba(255,255,255,.14); color: #fff; }
.date-chip { display: inline-flex; gap: 14px; align-items: center; margin-top: 20px; font-weight: 700; }
.date-chip b { display: grid; place-items: center; width: 64px; height: 72px; background: var(--lime); color: #202724; border-radius: 6px; font-size: 1.75rem; line-height: 1; }
.date-chip b small { display: block; font-size: .75rem; letter-spacing: .06em; }
.program-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); } .program-list li { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.program-list time { font-weight: 800; color: var(--blue); }
@media (max-width: 900px) { .event-hero { grid-template-columns: 1fr; } .event-hero > div { padding: 28px 22px; } .event-hero h1 { font-size: 2.125rem; } .event-hero > img { min-height: 220px; order: -1; } }
:root[data-theme='dark'] .event-hero, :root[data-theme='dark'] .latest-company { border: 1px solid var(--line); } :root[data-theme='contrast'] .event-hero { border: 2px solid #fff; }

/* Agenda: vistas semana/dia generadas con JS */
.agenda-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.agenda-nav .btns { display: flex; gap: 8px; align-items: center; }
.agenda-nav h2 { font-size: 1.375rem; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.week-col { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 230px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.week-col h3 { font-size: .8125rem; font-weight: 800; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--muted); } .week-col h3 b { display: block; font-size: 1.5rem; color: var(--ink); font-weight: 400; }
.week-col.today h3 b { color: var(--blue); }
.week-col .calendar-event { margin: 0; }
.day-list { border-top: 1px solid var(--ink); }
.view-panel[hidden] { display: none; }
@media (max-width: 900px) { .week-grid { grid-template-columns: 1fr; } .week-col { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-start; } .week-col h3 { flex: 0 0 100%; display: flex; gap: 10px; align-items: baseline; } .week-col h3 b { display: inline; font-size: 1.125rem; } .week-col .calendar-event { flex: 1 1 220px; } .week-col .calendar-event > span, .week-col .calendar-event small { display: block; } }

/* Utilidades de listas de enlaces (footer redes) */
.footer-top a { display: inline-block; padding-block: 3px; }
.newsletter { display: flex; gap: 8px; margin-top: 16px; max-width: 360px; }
.newsletter input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 3px; border: 1px solid #7e8c84; background: rgba(255,255,255,.08); color: var(--on-dark); font-size: .875rem; }
.newsletter input::placeholder { color: var(--on-dark-soft); }
.newsletter button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 3px; background: var(--lime); color: #202724; font-weight: 800; cursor: pointer; }
.social-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: .8125rem; }
.sub-footer-note { font-size: .75rem; color: var(--on-dark-soft); max-width: 52ch; }

@media print { .site-header, .utility, .site-footer, .assistant, .skip { display: none !important; } body { background: #fff; color: #000; } a { text-decoration: underline; } }

.agenda-workspace.is-wd .month-panel, .agenda-workspace.is-wd .month-controls { display: none !important; }
html:not(.js) .js-only { display: none !important; }
html.js .no-js-only { display: none !important; }
.assistant-fallback a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .8125rem; font-weight: 700; }
.assistant-fallback { padding: 0 20px 16px; }

[hidden] { display: none !important; }
.tile-grid.five { grid-template-columns: repeat(5, minmax(0,1fr)); }
@media (max-width: 1100px) { .tile-grid.five { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .tile-grid.five { grid-template-columns: 1fr; } }

:root[data-theme='contrast'] .blue, :root[data-theme='contrast'] .green, :root[data-theme='contrast'] .amber, :root[data-theme='contrast'] .coral { --offer-color: #ffe600; }

.portal-nav { min-width: 0; flex: 1 1 auto; }
@media (max-width: 420px) {
  .header-row { gap: 6px; }
  .brand img { width: 104px !important; height: 46px !important; }
  .header-actions { gap: 5px; }
  .header-actions .lang-menu > summary, .header-actions .a11y-trigger, .header-actions .icon-button { min-height: 40px; height: 40px; }
  .header-actions .icon-button, .header-actions .a11y-trigger { width: 40px; }
  .lang-menu > summary { padding: 0 8px; gap: 4px; }
}

/* Salvaguardas de reflujo: contenido largo o texto ampliado no deben forzar scroll horizontal */
h1, h2, h3, h4 { overflow-wrap: anywhere; }
.profile-grid > *, .profile-head > *, .dir-layout > *, .split > *, .event-hero > *, .detail-grid > *, .services-grid > *, .agenda-grid > *, .footer-top > *, .tool-layout > *, .form-layout > * { min-width: 0; }
.section-head { flex-wrap: wrap; }
.newsletter { flex-wrap: wrap; }
.footer-top a, .footer-top li { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-head { grid-template-columns: 72px minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
:root[data-text='150'] .hero h1, :root[data-text='175'] .hero h1 { font-size: clamp(2.25rem, 8vw, 4.5rem); }
:root[data-text='150'] .page-heading h1, :root[data-text='175'] .compact-heading h1, :root[data-text='150'] .compact-heading h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
.task-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.task-grid a { min-width: 0; overflow-wrap: anywhere; }
.task-grid strong { align-items: flex-start; }
@media (max-width: 900px) { .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .task-grid { grid-template-columns: minmax(0, 1fr); } .task-grid a:nth-child(odd) { border-right: 0; } }
:root[data-text='150'] .task-grid, :root[data-text='175'] .task-grid { grid-template-columns: minmax(0, 1fr); }
:root[data-text='150'] .task-grid a, :root[data-text='175'] .task-grid a { border-right: 0 !important; padding-left: 0 !important; }
@media (max-width: 900px) { .services-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .service-links { grid-template-columns: minmax(0, 1fr); } }
.field .check input, .field .choice input, .choice input[type='checkbox'] { min-height: 0; padding: 0; border: 0; width: 20px; height: 20px; flex: 0 0 20px; }
.field .check { margin: 0; align-items: flex-start; gap: 12px; font-weight: 400; font-size: .875rem; }
@media (max-width: 420px) { .task-grid a, .task-grid a:nth-child(odd), .task-grid a:first-child { padding-inline: 0 !important; } }

/* =========================================================================
   Mapa real de Baleares (geo) y directorio (dx)
   ========================================================================= */
.geo-map { --sea: color-mix(in srgb, var(--blue) 6%, var(--surface)); --land: var(--surface); --coast: color-mix(in srgb, var(--ink) 22%, var(--surface));
  position: relative; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--blue) 9%, var(--surface)), var(--sea)); border: 1px solid var(--line); }
.geo-map svg { display: block; width: 100%; height: auto; }
.geo-land { fill: var(--land); stroke: var(--coast); stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(20, 30, 25, .08)); }
.geo-island { position: absolute; transform: translate(-50%, -50%); font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; white-space: nowrap; }
.geo-marker { position: absolute; transform: translate(-11px, -50%); display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 3px 11px 3px 3px;
  border-radius: 20px; background: var(--surface); color: var(--ink); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 4px 14px rgba(20, 30, 25, .14);
  font: 700 .8125rem/1 var(--font-ui); cursor: pointer; text-decoration: none; transition: transform .2s, background .2s, color .2s, opacity .2s, box-shadow .2s; white-space: nowrap; }
.geo-marker.geo-left { flex-direction: row-reverse; transform: translate(calc(-100% + 11px), -50%); padding: 3px 3px 3px 11px; }
.geo-marker.geo-static { cursor: default; }
.geo-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--c); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--c); }
.geo-label b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); font-size: .75rem; }
button.geo-marker:hover, a.geo-marker:hover { box-shadow: 0 6px 20px rgba(20, 30, 25, .22); border-color: var(--c); }
.geo-marker[aria-pressed='true'] { background: var(--c); color: #fff; border-color: var(--c); }
.geo-marker[aria-pressed='true'] .geo-label b { background: rgba(255,255,255,.22); color: #fff; }
.geo-map[data-selected] .geo-marker[aria-pressed='false'] { opacity: .5; }
.geo-marker.is-hot .geo-dot { animation: geo-pulse 1.2s ease-out infinite; }
@keyframes geo-pulse { 0% { box-shadow: 0 0 0 2px var(--c), 0 0 0 2px color-mix(in srgb, var(--c) 50%, transparent); } 100% { box-shadow: 0 0 0 2px var(--c), 0 0 0 14px transparent; } }
.geo-compact .geo-island { font-size: .625rem; }
:root[data-theme='dark'] .geo-marker, :root[data-theme='dark'] .dx-card, :root[data-theme='dark'] .dx-chip, :root[data-theme='dark'] .profile-head { --c: var(--cd); }
:root[data-theme='dark'] .geo-marker[aria-pressed='true'] { color: #0d1210; }
:root[data-theme='dark'] .geo-marker[aria-pressed='true'] .geo-label b { color: #0d1210; }
:root[data-theme='contrast'] .geo-marker, :root[data-theme='contrast'] .dx-card, :root[data-theme='contrast'] .dx-chip, :root[data-theme='contrast'] .profile-head { --c: #ffe600; }
:root[data-theme='contrast'] .geo-marker[aria-pressed='true'] { color: #000; }
:root[data-theme='contrast'] .geo-land { fill: #000; stroke: #fff; }
.addr address { font-style: normal; }
.addr-warn { font-size: .8125rem; color: var(--muted); margin: 10px 0 0; padding-left: 10px; border-left: 3px solid #c58a00; }

.dx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 6px 0 22px; }
.dx-head h1 { font-size: 2.5rem; margin: 10px 0 8px; }
.dx-head .lede { font-size: 1rem; }
.dx-search { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 18px; min-height: 60px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--surface); box-shadow: 0 6px 24px rgba(20, 30, 25, .06); margin-bottom: 28px; }
.dx-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.dx-search .icon { width: 22px; height: 22px; flex-basis: 22px; }
.dx-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 1.0625rem; min-height: 56px; outline: none; }
.dx-search input:focus-visible { box-shadow: none; outline: none; }
.dx-clear { flex: none; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 0; background: var(--paper); color: var(--ink); font-weight: 700; font-size: .8125rem; cursor: pointer; }
.dx-clear:hover { background: var(--tint); }
.dx-clear[data-idle] { visibility: hidden; }
.dx-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 40px; }
.dx-side { position: sticky; top: 108px; display: grid; gap: 28px; }
.dx-panel { display: grid; gap: 14px; }
.dx-panel-title { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; padding: 0; }
.dx-facet { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.dx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); font-size: .875rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.dx-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dx-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.dx-chip .n { color: var(--muted); font-weight: 700; font-size: .75rem; }
.dx-chip:hover { border-color: var(--field-line); }
.dx-chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.dx-chip:has(input:checked) .n { color: inherit; opacity: .75; }
.dx-chip:has(input:checked) .dot { box-shadow: 0 0 0 2px var(--surface); }
.dx-chip:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.dx-note { font-size: .8125rem; color: var(--muted); }
.dx-cta { padding: 20px; border-radius: 12px; background: var(--tint); }
.dx-cta p { font-size: .9375rem; }
.dx-toolbar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.dx-toolbar .result-count { font-size: 1.125rem; margin-right: auto; }
.dx-toolbar .chips { order: 3; width: 100%; }
.dx-toolbar .chips:empty { display: none; }
.dx-sort { margin: 0; flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.dx-sort select { min-height: 40px; width: auto; padding: 6px 10px; }
.dx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.dx-card { --c: var(--blue); position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: 'logo body' 'meta meta'; gap: 14px 16px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .2s; }
.dx-card[hidden] { display: none; }
.dx-card:hover, .dx-card:focus-within { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); box-shadow: 0 10px 30px rgba(20, 30, 25, .09); transform: translateY(-2px); }
.dx-logo { grid-area: logo; width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--c); font-weight: 800; font-size: 1.0625rem; letter-spacing: .02em; }
.dx-body { grid-area: body; min-width: 0; }
.dx-body h3 { font-size: 1.125rem; line-height: 1.3; margin-bottom: 6px; }
.dx-body h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
.dx-body h3 a:focus-visible { outline: none; box-shadow: none; }
.dx-card:has(h3 a:focus-visible) { outline: 3px solid var(--ring); outline-offset: 3px; }
.dx-body p { font-size: .9375rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.dx-place { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; }
.dx-place .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.dx-sample { margin-left: auto; font-size: .75rem; font-weight: 700; color: var(--muted); border: 1px dashed var(--field-line); border-radius: 4px; padding: 1px 6px; }
.dx-foot { font-size: .8125rem; color: var(--muted); margin-top: 24px; }
.dx-foot a { text-decoration: underline; }
.dx-logo-lg { background: color-mix(in srgb, var(--c) 13%, var(--surface)) !important; color: var(--c) !important; }
.dx-grid.reflow > .dx-card { animation: dx-in .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes dx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
:root[data-motion='reduce'] .dx-grid.reflow > .dx-card, :root[data-motion='reduce'] .geo-marker.is-hot .geo-dot { animation: none; }
@media (prefers-reduced-motion: reduce) { .dx-grid.reflow > .dx-card, .geo-marker.is-hot .geo-dot { animation: none; } }
@media (max-width: 960px) {
  .dx-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .dx-side { position: static; gap: 18px; }
  .dx-side .dx-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .dx-chip { flex: none; }
  .dx-side .geo-map { max-width: 520px; }
  .dx-cta { display: none; }
}
@media (max-width: 600px) { .dx-head h1 { font-size: 2rem; } .dx-grid { grid-template-columns: minmax(0, 1fr); } .dx-search { min-height: 54px; } .dx-search input { min-height: 50px; font-size: 1rem; } }

/* Demo pill in utility bar */
.demo-pill { margin-left: 4px; padding: 0 10px !important; min-height: 26px !important; border: 1px dashed var(--field-line); border-radius: 13px; font-weight: 700; font-size: .75rem; color: var(--muted); }
.demo-pill:hover { color: var(--ink); text-decoration: none !important; }

/* Marcadores de filtro: punto con recuento, nombre en tooltip y en los chips */
.geo-pin { padding: 0; border: 0; background: none; box-shadow: none; transform: translate(-50%, -50%); min-width: 44px; min-height: 44px; justify-content: center; }
.geo-pin:hover { box-shadow: none; }
.geo-num { width: 30px; height: 30px; display: grid; place-items: center; color: var(--c); background: var(--surface); border: 2px solid var(--c); box-shadow: 0 3px 10px rgba(20,30,25,.22); font-size: .8125rem; font-weight: 800; transition: transform .2s, background .2s, color .2s; }
.geo-pin:hover .geo-num, .geo-pin:focus-visible .geo-num { transform: scale(1.12); }
.geo-pin[aria-pressed='true'] { background: none; }
.geo-pin[aria-pressed='true'] .geo-num { background: var(--c); color: #fff; }
:root[data-theme='dark'] .geo-pin[aria-pressed='true'] .geo-num, :root[data-theme='contrast'] .geo-pin[aria-pressed='true'] .geo-num { color: #0d1210; }
.geo-tip { position: absolute; bottom: calc(100% - 2px); left: 50%; transform: translate(-50%, 4px); padding: 4px 8px; border-radius: 6px; background: var(--inverse); color: var(--on-dark); font-size: .75rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.geo-pin:hover .geo-tip, .geo-pin:focus-visible .geo-tip, .geo-pin[aria-pressed='true'] .geo-tip { opacity: 1; transform: translate(-50%, 0); }
.geo-pin.is-hot .geo-num { animation: geo-pulse 1.2s ease-out infinite; }

/* Como llegar (cl) */
.cl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; padding: 8px 0 40px; }
.cl-hero h1 { font-size: 2.75rem; margin: 10px 0; }
.cl-centre { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 36px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.cl-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.cl-body h2 { font-size: 2rem; margin: 10px 0 10px; }
.cl-body .eyebrow::before { background: var(--c); }
.cl-intro { color: var(--muted); max-width: 60ch; margin-bottom: 20px; }
.cl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cl-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--surface); display: grid; gap: 14px; align-content: start; }
.cl-card h3 { font-size: 1rem; }
.cl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-actions .btn-plain { display: inline-flex; align-items: center; }
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cl-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .9375rem; }
.cl-list a::after { content: '\2192'; color: var(--c); }
.cl-list a:hover { color: var(--c); }
.cl-others { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0 40px; }
.cl-others .btn-plain { display: inline-flex; align-items: center; }
:root[data-theme='dark'] .cl-centre { --c: var(--cd); }
@media (max-width: 900px) { .cl-hero, .cl-centre { grid-template-columns: minmax(0, 1fr); gap: 22px; } .cl-grid { grid-template-columns: minmax(0, 1fr); } .cl-hero h1 { font-size: 2.125rem; } }

/* Agenda por portal */
.agenda-scope { font-size: .875rem; color: var(--muted); margin: -8px 0 14px; }
.agenda-scope a { text-decoration: underline; }
.agenda-feature { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 16px; align-items: center; padding: 18px 22px; margin-bottom: 20px; border-radius: 12px; background: var(--inverse); color: var(--on-dark); }
.agenda-feature .pill { grid-row: span 2; background: var(--lime); color: #202724; }
.agenda-feature strong { font-size: 1.125rem; }
.agenda-feature > span:nth-of-type(2) { color: var(--on-dark-soft); font-size: .875rem; grid-column: 2; }
.agenda-feature .text-link { grid-row: 1 / span 2; grid-column: 3; color: var(--on-dark); }
.agenda-feature .text-link .icon { filter: invert(1); }
@media (max-width: 700px) { .agenda-feature { grid-template-columns: 1fr; } .agenda-feature .pill { grid-row: auto; justify-self: start; } .agenda-feature > span:nth-of-type(2), .agenda-feature .text-link { grid-column: 1; grid-row: auto; } }

/* Espacios disponibles (un) */
.un-filters { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 4px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.un-card { --c: var(--blue); display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); border-top: 4px solid var(--c); transition: box-shadow .2s, transform .2s; }
.un-card[hidden] { display: none; }
.un-card:hover { box-shadow: 0 10px 30px rgba(20,30,25,.09); transform: translateY(-2px); }
.un-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.un-type { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.un-size { font-size: 1rem; color: var(--muted); margin-top: 6px; }
.un-size strong { font-size: 2rem; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.un-card h3 { font-size: 1.0625rem; line-height: 1.35; }
.un-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
:root[data-theme='dark'] .un-card { --c: var(--cd); }
.un-form { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 40px; padding: 56px 0; margin-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.un-form h2 { font-size: 1.875rem; margin: 10px 0; }
.un-form .lede { margin-bottom: 18px; font-size: 1rem; }
@media (max-width: 900px) { .un-form { grid-template-columns: minmax(0, 1fr); } }
.aid-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 5px; }
.aid-card:hover { border-color: var(--offer-color); box-shadow: 0 10px 28px #2027241a; }
.aid-card:has(h3 a:focus-visible) { outline: 3px solid var(--ring); outline-offset: 3px; }
.aid-card h3 a:focus-visible { outline: none; box-shadow: none; }
.aid-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.aid-foot .text-link { font-size: .8125rem; min-height: 32px; }

/* =========================================================================
   Agenda (ag): calendario y lista
   ========================================================================= */
.ev-formacion { --ev: #1754ad; --ev-soft: #e8f0fc; } .ev-encuentro { --ev: #a73c51; --ev-soft: #fbecef; }
.ev-emprender { --ev: #117250; --ev-soft: #e3f3eb; } .ev-ayuda { --ev: #805a08; --ev-soft: #fbf0d4; }
:root[data-theme='dark'] .ev-formacion { --ev: #8db4ff; --ev-soft: #1c2840; } :root[data-theme='dark'] .ev-encuentro { --ev: #ff9fb0; --ev-soft: #3a1d25; }
:root[data-theme='dark'] .ev-emprender { --ev: #6fd9a8; --ev-soft: #14301f; } :root[data-theme='dark'] .ev-ayuda { --ev: #f0c35c; --ev-soft: #3a2f10; }
:root[data-theme='contrast'] [class*='ev-'] { --ev: #ffe600; --ev-soft: #000; }
.ag-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 6px 0 22px; }
.ag-head h1 { font-size: 2.75rem; margin: 10px 0 6px; }
.ag-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ag-head-actions .btn-plain { display: inline-flex; align-items: center; }
.ag-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ag-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 50px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--surface); }
.ag-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.ag-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 1rem; min-height: 46px; outline: none; }
.ag-search input:focus-visible { box-shadow: none; }
.ag-views, .ag-scale { display: inline-flex; border: 0; margin: 0; padding: 4px; gap: 4px; background: var(--paper); border-radius: 10px; }
.ag-views label, .ag-scale label { position: relative; display: grid; place-items: center; min-height: 42px; padding: 0 18px; border-radius: 7px; font-weight: 700; font-size: .9375rem; cursor: pointer; }
.ag-scale label { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.ag-views input, .ag-scale input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ag-views label:has(input:checked), .ag-scale label:has(input:checked) { background: var(--surface); box-shadow: 0 1px 4px rgba(20,30,25,.15); color: var(--blue); }
.ag-views label:has(input:focus-visible), .ag-scale label:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.ag-filters { display: grid; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dx-chip.ev-formacion .dot, .dx-chip.ev-encuentro .dot, .dx-chip.ev-emprender .dot, .dx-chip.ev-ayuda .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--ev); }
.ag-upcoming { padding: 22px 0 6px; display: grid; gap: 12px; }
.ag-up-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ag-up { position: relative; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ev); transition: box-shadow .2s, transform .2s; }
.ag-up:hover { box-shadow: 0 10px 30px rgba(20,30,25,.1); transform: translateY(-2px); }
.ag-up img { width: 100%; height: 120px; object-fit: cover; }
.ag-up-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ag-up-when { font-size: .8125rem; color: var(--muted); } .ag-up-when b { color: var(--ev); text-transform: uppercase; letter-spacing: .04em; }
.ag-up h3 { font-size: 1.125rem; line-height: 1.3; }
.ag-up h3 a::after { content: ''; position: absolute; inset: 0; }
.ag-up-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.ag-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 0 14px; }
.ag-nav-l { display: flex; align-items: center; gap: 8px; }
.ag-title { font-size: 1.75rem; min-width: 12ch; text-align: center; }
.ag-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); font-size: 1.125rem; cursor: pointer; }
.ag-arrow:hover { background: var(--tint); border-color: var(--blue); }
.ag-count { font-size: .875rem; color: var(--muted); width: 100%; margin-top: -6px; }
.ag[data-mode='list'] .ag-scale, .ag[data-mode='list'] .ag-arrow, .ag[data-mode='list'] [data-today] { display: none; }
.ag[data-mode='list'] .ag-title { text-align: left; }
.ag-anim > * { animation: dx-in .3s cubic-bezier(.2,.7,.2,1) both; }
:root[data-motion='reduce'] .ag-anim > * { animation: none; }
@media (prefers-reduced-motion: reduce) { .ag-anim > * { animation: none; } }

/* Mes */
.ag-month { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.ag-month th { padding: 12px 10px; text-align: left; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--line); }
.ag-cell { height: 132px; vertical-align: top; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ag-month tr td:last-child { border-right: 0; } .ag-month tbody tr:last-child td { border-bottom: 0; }
.ag-cell.is-weekend { background: color-mix(in srgb, var(--paper) 55%, var(--surface)); }
.ag-cell.is-out { background: var(--paper); } .ag-cell.is-out .ag-num { color: var(--muted); opacity: .6; }
.ag-num { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 6px; border: 0; border-radius: 50%; background: none; font: 700 .875rem var(--font-ui); color: var(--ink); cursor: pointer; }
.ag-num:hover { background: var(--tint); }
.ag-cell.is-today .ag-num { background: var(--blue); color: var(--btn-text); }
.ag-evs { display: grid; gap: 5px; }
.ev { position: relative; display: block; border-radius: 8px; background: var(--ev); color: #fff; text-decoration: none; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.12); transition: transform .15s, box-shadow .15s; }
:root[data-theme='dark'] .ev, :root[data-theme='contrast'] .ev { color: #0d1210; }
.ev:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.ev-body { display: grid; gap: 1px; padding: 6px 8px; }
.ev time { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 800; opacity: .9; }
.ev strong { font-size: .8125rem; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-where { font-size: .75rem; opacity: .9; }
.ev-rich .ev-img { display: block; height: 44px; background-size: cover; background-position: center; }
.ev-rich { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ev); }
.ev.is-soon::before { content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.ev.is-past { background: var(--ev-soft); color: var(--muted); box-shadow: none; }
:root[data-theme='dark'] .ev.is-past, :root[data-theme='contrast'] .ev.is-past { color: var(--muted); }
:root[data-theme='contrast'] .ev.is-past { outline: 1px solid var(--muted); outline-offset: -1px; }
.ev.is-past.ev-rich .ev-img { filter: grayscale(1); opacity: .6; }
.reg-mark { display: inline-block; width: 14px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.reg-mark::after { content: ''; position: absolute; left: 2px; right: 2px; top: 3px; height: 1.5px; background: currentColor; }
.ag-more { border: 0; background: none; font: 700 .75rem var(--font-ui); color: var(--blue); text-align: left; padding: 2px 4px; cursor: pointer; }
.ag-dots, .ag-month-list { display: none; }
/* Semana */
.ag-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.ag-wcol { min-height: 300px; padding: 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ag-wcol:last-child { border-right: 0; } .ag-wcol.is-weekend { background: color-mix(in srgb, var(--paper) 55%, var(--surface)); }
.ag-wcol h3 { display: flex; align-items: baseline; gap: 8px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ag-wcol h3 b { font-size: 1.5rem; color: var(--ink); letter-spacing: 0; }
.ag-wcol.is-today h3 b { color: var(--blue); }
.ag-empty-day { color: var(--muted); text-align: center; padding-top: 20px; }
.ag-wcol .ev-rich .ev-img { height: 70px; }
/* Lista y dia */
.ag-listview { display: grid; gap: 4px; }
.ag-monthhead { font-size: 1.5rem; text-transform: capitalize; margin: 24px 0 6px; }
.ag-day { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.ag-dayhead { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; font-weight: 400; color: var(--muted); position: sticky; top: 100px; align-self: start; }
.ag-dayhead .n { font-size: 2.25rem; line-height: 1; font-weight: 800; color: var(--ink); }
.ag-dayhead b { display: block; color: var(--ink); text-transform: capitalize; }
.ag-dayhead.is-today .n { color: var(--blue); }
.ag-day-evs { display: grid; gap: 12px; }
.ev-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-left: 5px solid var(--ev); border-radius: 12px; background: var(--surface); position: relative; transition: box-shadow .2s; }
.ev-row:hover { box-shadow: 0 8px 24px rgba(20,30,25,.08); }
.ev-row h3 { font-size: 1.125rem; } .ev-row h3 a::after { content: ''; position: absolute; inset: 0; }
.ev-time { font-size: 1.25rem; font-weight: 800; display: grid; } .ev-time small { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.ev-kind { display: flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ev); margin-bottom: 4px; }
.ev-kind .dot { width: 9px; height: 9px; border-radius: 3px; background: var(--ev); }
.ev-meta { font-size: .875rem; color: var(--muted); }
.ev-row-reg { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; position: relative; z-index: 1; }
.ev-row.is-past { opacity: .7; }
.ev-regb { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.ev-regb::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.reg-required { background: #e6f0ff; color: #0b3f99; } .reg-free { background: #e3f4ea; color: #0d5a3a; } .reg-full { background: #fbe9e9; color: #8f2b2b; } .reg-past { background: var(--paper); color: var(--muted); }
:root[data-theme='dark'] .reg-required { background: #1c2840; color: #aecbff; } :root[data-theme='dark'] .reg-free { background: #12351f; color: #8fe0b0; } :root[data-theme='dark'] .reg-full { background: #3a1a1a; color: #ffabab; }
:root[data-theme='contrast'] .ev-regb { background: #000; color: #fff; border: 1px solid #fff; }
.ev-row-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; background: var(--blue); color: var(--btn-text); font-weight: 700; font-size: .8125rem; text-decoration: none; position: relative; z-index: 1; }
.ev-row-cta:hover { background: var(--blue-dark); }
.ev-card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px transparent; border-top: 5px solid var(--ev); }
.ev-card-img img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; display: block; }
.ev-card-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.ev-card-body h3 { font-size: 1.5rem; line-height: 1.25; }
.ev-card-body > p { color: var(--muted); }
.ev-keys { margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ev-keys dt { font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.ev-keys dd { margin: 2px 0 0; font-size: .875rem; font-weight: 600; }
.ev-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ev-facts li { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--ev-soft); color: var(--ev); }
.ev-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.ag-past { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.ag-past summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.ag-day-only { padding-top: 6px; }
.ag-legend { list-style: none; display: flex; gap: 8px 20px; flex-wrap: wrap; padding: 16px 0 0; margin: 0; font-size: .8125rem; color: var(--muted); }
.ag-legend li { display: flex; align-items: center; gap: 7px; } .ag-legend .dot { width: 12px; height: 12px; border-radius: 3px; background: var(--ev); }
.rich-mark { width: 14px; height: 12px; border-radius: 3px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.ag-suggest { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; padding: 26px 28px; border-radius: 16px; background: var(--tint); }
.ag-suggest h2 { font-size: 1.375rem; } .ag-suggest p { color: var(--muted); margin-top: 4px; }
.ag-static h2 { font-size: 1.5rem; margin: 24px 0 8px; }
.ag-list { list-style: none; margin: 0; padding: 0; } .ag-row a { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
html.js .ag-static { display: none; }
/* Fichas de evento */
.event-hero.event-hero-plain { grid-template-columns: 1fr; background: linear-gradient(120deg, var(--ev), color-mix(in srgb, var(--ev) 60%, #0d1210)); }
.event-hero .ev-facts li { background: rgba(255,255,255,.16); color: #fff; }
.ev-reg { display: inline-flex; margin-top: 14px; padding: 6px 12px; border-radius: 20px; font-weight: 700; font-size: .875rem; background: rgba(255,255,255,.16); color: #fff; }
.prose .ev-reg.reg-free { background: #e3f4ea; color: #0d5a3a; }
.ev-minis { display: grid; gap: 8px; }
.ev-mini { display: grid; grid-template-columns: 54px 1fr; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; border-left: 4px solid var(--ev); background: var(--paper); }
.ev-mini time { grid-row: span 2; font-weight: 800; font-size: .8125rem; color: var(--ev); text-transform: uppercase; }
.ev-mini strong { font-size: .9375rem; line-height: 1.3; } .ev-mini span { font-size: .75rem; color: var(--muted); }
@media (max-width: 1000px) { .ag-up-list { grid-template-columns: minmax(0, 1fr); } .ag-up.has-img { flex-direction: row; } .ag-up.has-img img { width: 120px; height: auto; } .ev-card { grid-template-columns: minmax(0, 1fr); } .ev-card-img img { min-height: 0; aspect-ratio: 2.2; } }
@media (max-width: 760px) {
  .ag-cell { height: 64px; padding: 4px; text-align: center; }
  .ag-num { margin: 0 auto 2px; width: 28px; height: 28px; font-size: .8125rem; }
  .ag-evs { display: none; }
  .ag-dots { display: flex; justify-content: center; gap: 3px; } .ag-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ev); }
  .ag-month th { padding: 8px 2px; text-align: center; font-size: .6875rem; letter-spacing: 0; }
  .ag-month-list { display: block; margin-top: 18px; }
  .ag-week { grid-template-columns: minmax(0, 1fr); } .ag-wcol { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .ag-day { grid-template-columns: minmax(0, 1fr); gap: 10px; } .ag-dayhead { position: static; }
  .ev-row { grid-template-columns: 56px minmax(0, 1fr); } .ev-row-reg { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .ev-keys { grid-template-columns: minmax(0, 1fr); }
  .ag-title { font-size: 1.25rem; min-width: 0; }
  .ag-head h1 { font-size: 2.125rem; }
}

/* Historias (st) */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.st-card { --c: var(--blue); position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.st-card[hidden] { display: none; }
.st-card:hover { box-shadow: 0 12px 32px rgba(20,30,25,.1); transform: translateY(-3px); }
.st-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.st-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.st-kind { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.st-kind .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.st-card h3 { font-size: 1.25rem; line-height: 1.3; }
.st-card h3 a::after { content: ''; position: absolute; inset: 0; }
.st-card:has(h3 a:focus-visible) { outline: 3px solid var(--ring); outline-offset: 3px; } .st-card h3 a:focus-visible { outline: none; box-shadow: none; }
.st-body > p:not(.st-kind):not(.st-meta) { color: var(--muted); font-size: .9375rem; }
.st-meta { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--line); }
.st-co { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.st-co .dx-logo, .xn-co .dx-logo { width: 30px; height: 30px; border-radius: 8px; font-size: .75rem; }
.st-big { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.st-big .st-img { aspect-ratio: auto; height: 100%; min-height: 320px; }
.st-big .st-body { padding: 32px; justify-content: center; }
.st-big h3 { font-size: 2rem; }
.st-feature { margin-bottom: 28px; }
.st-invite { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 28px; align-items: center; margin: 40px 0 8px; padding: 30px; border-radius: 18px; background: var(--inverse); color: var(--on-dark); }
.st-invite h2 { font-size: 1.625rem; margin: 8px 0; } .st-invite p { color: var(--on-dark-soft); }
.st-invite .eyebrow::before { background: var(--lime); }
.st-invite .button { background: var(--lime); color: #202724; } .st-invite .button .icon { filter: none; }
.st-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-flow li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.st-flow b { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: rgba(255,255,255,.14); font-size: .875rem; }
.st-flow-v { margin: 22px 0; } .st-flow-v b { background: var(--tint); color: var(--blue); } .st-flow-v li { align-items: flex-start; font-weight: 400; } .st-flow-v strong { display: block; }
.st-provenance { font-size: .875rem; color: var(--muted); padding: 10px 14px; border-radius: 8px; background: var(--paper); }
.st-provenance span { font-weight: 800; color: var(--ink); }
.st-company .dx-logo { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--c); font-weight: 800; }
:root[data-theme='dark'] .st-card, :root[data-theme='dark'] .st-company, :root[data-theme='dark'] .article-head { --c: var(--cd); }
@media (max-width: 900px) { .st-big { grid-template-columns: minmax(0, 1fr); } .st-big .st-img { min-height: 0; aspect-ratio: 16 / 9; } .st-big h3 { font-size: 1.5rem; } .st-invite { grid-template-columns: minmax(0, 1fr); } }

/* Proponer actividad (pa) */
.pa-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 48px; padding: 12px 0 56px; align-items: start; }
.pa-title { font-size: 2.5rem; margin: 10px 0; }
.pa-import { padding: 16px; border-radius: 12px; background: var(--tint); margin-bottom: 20px; display: grid; gap: 10px; font-size: .9375rem; }
.pa-import-row { display: flex; gap: 8px; } .pa-import-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.pa-import-status { font-size: .8125rem; color: var(--muted); min-height: 1.2em; }
.pa-suggested { background: #fffbe6 !important; border-color: #c58a00 !important; }
:root[data-theme='dark'] .pa-suggested { background: #2e2808 !important; }
@media (max-width: 900px) { .pa-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .pa-title { font-size: 2rem; } }

/* Extranet (xn) */
.xn-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding-bottom: 56px; align-items: start; }
.xn-side { position: sticky; top: 108px; display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.xn-side a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: .9375rem; }
.xn-side a:hover { background: var(--paper); } .xn-side a[aria-current='true'] { background: var(--tint); color: var(--blue); }
.xn-side .count { background: var(--blue); color: var(--btn-text); border-radius: 10px; padding: 0 8px; font-size: .75rem; }
.xn-co { --c: var(--blue); display: flex; gap: 10px; align-items: center; padding: 6px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.xn-co .dx-logo { display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--c); font-weight: 800; }
.xn-co small { display: block; color: var(--muted); font-size: .75rem; }
.xn-main { display: grid; gap: 24px; min-width: 0; }
.xn-title { font-size: 2rem; margin-bottom: 14px; }
.xn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.xn-stats div { padding: 16px 18px; border-radius: 12px; background: var(--paper); } .xn-stats b { display: block; font-size: 1.75rem; } .xn-stats span { font-size: .875rem; color: var(--muted); }
.xn-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--surface); scroll-margin-top: 110px; }
.xn-card h2 { font-size: 1.375rem; margin-bottom: 6px; } .xn-card-head p { color: var(--muted); margin-bottom: 18px; max-width: 70ch; }
.xn-compose { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.xn-compose .success-panel { grid-column: 1; }
.xn-kinds .dx-chip { margin: 0 6px 6px 0; } .xn-kinds { margin-bottom: 14px; }
.xn-preview { position: sticky; top: 110px; display: grid; gap: 10px; }
.xn-ph { aspect-ratio: 16 / 9; background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 10px, var(--surface) 10px, var(--surface) 20px); }
.xn-flow { list-style: none; display: flex; gap: 0; margin: 10px 0 18px; padding: 0; counter-reset: s; }
.xn-flow li { flex: 1; text-align: center; padding: 8px; font-size: .8125rem; font-weight: 700; border: 1px solid var(--line); background: var(--paper); }
.xn-flow li + li { margin-left: -1px; }
@media (max-width: 1000px) { .xn-shell { grid-template-columns: minmax(0, 1fr); } .xn-side { position: static; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .xn-co { grid-column: 1 / -1; } .xn-compose { grid-template-columns: minmax(0, 1fr); } .xn-preview { position: static; } .xn-stats { grid-template-columns: minmax(0, 1fr); } }
.co-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.co-timeline li { position: relative; display: grid; gap: 2px; font-size: .9375rem; }
.co-timeline li::before { content: ''; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--blue); }
.co-timeline time { font-size: .75rem; font-weight: 800; color: var(--muted); }
.co-stories { display: grid; gap: 10px; }
.co-story { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none !important; }
.co-story:hover { border-color: var(--blue); }
.co-story img { width: 120px; height: 76px; object-fit: cover; border-radius: 8px; }
.co-story small { display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.co-story strong { font-size: .9375rem; line-height: 1.35; }
.co-share-cta { margin-top: 22px; padding: 14px 16px; border-radius: 10px; background: var(--tint); font-size: .9375rem; }
.co-share-cta a { text-decoration: underline; }
.hub-share { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; padding: 20px 24px; border-radius: 14px; background: var(--tint); }
.space-tile .tile-icon { color: var(--blue); }
.space-tile .tile-icon svg { width: 24px; height: 24px; }

/* =========================================================================
   Paleta de categorias y Servicios (sv)
   ========================================================================= */
.c-blue { --k: #1754ad; --k-soft: #e8f0fc; } .c-green { --k: #117250; --k-soft: #e3f3eb; } .c-amber { --k: #8a5a00; --k-soft: #fbf0d4; }
.c-coral { --k: #b13f36; --k-soft: #fcebe8; } .c-violet { --k: #6a3fb5; --k-soft: #f0eafb; } .c-teal { --k: #0b6e75; --k-soft: #e1f3f4; }
:root[data-theme='dark'] .c-blue { --k: #8db4ff; --k-soft: #1c2840; } :root[data-theme='dark'] .c-green { --k: #6fd9a8; --k-soft: #14301f; } :root[data-theme='dark'] .c-amber { --k: #f0c35c; --k-soft: #3a2f10; }
:root[data-theme='dark'] .c-coral { --k: #ff9f94; --k-soft: #3a1d1a; } :root[data-theme='dark'] .c-violet { --k: #c9b0ff; --k-soft: #2a2040; } :root[data-theme='dark'] .c-teal { --k: #6fd3da; --k-soft: #12302f; }
:root[data-theme='contrast'] [class*='c-'] { --k: #ffe600; --k-soft: #000; }
.sv-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--k-soft); color: var(--k); }
.sv-ico .ico { width: 24px; height: 24px; }
.sv-ico-lg { width: 64px; height: 64px; border-radius: 18px; } .sv-ico-lg .ico { width: 32px; height: 32px; }
.sv-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(90% 120% at 0% 0%, #1754ad 0%, #0a2a66 55%, #0d1b33 100%); }
.sv-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(221,245,124,.35), transparent 65%); pointer-events: none; }
.sv-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 28px 0 64px; position: relative; z-index: 1; }
.sv-crumbs, .sv-crumbs a { color: rgba(255,255,255,.85); }
.sv-hero .eyebrow::before { background: var(--lime); }
.sv-hero h1 { font-size: 3.5rem; margin: 12px 0; }
.sv-hero .lede { color: rgba(255,255,255,.85); }
.sv-search { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding: 6px 6px 6px 16px; border-radius: 14px; background: #fff; color: #202724; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.sv-search .ico { color: #6a3fb5; width: 24px; height: 24px; flex: none; }
.sv-search input { flex: 1; min-width: 0; border: 0; min-height: 50px; font-size: 1rem; outline: none; background: transparent; color: #202724; }
.sv-search input:focus-visible { box-shadow: none; }
.sv-search:focus-within { box-shadow: 0 0 0 4px var(--lime), 0 18px 40px rgba(0,0,0,.25); }
.sv-search .button { background: #0649c6; color: #fff; }
.sv-popular { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .875rem; color: rgba(255,255,255,.8); }
.sv-popular a { padding: 6px 12px; border-radius: 20px; background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.sv-popular a:hover { background: rgba(255,255,255,.22); }
.sv-hero-media { position: relative; }
.sv-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.sv-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 14px; background: #fff; color: #202724; box-shadow: 0 16px 36px rgba(0,0,0,.25); transition: transform .2s; }
.sv-float:hover { transform: translateY(-3px); }
.sv-float small { display: block; font-size: .75rem; color: #56615b; font-weight: 600; } .sv-float strong { font-size: .9375rem; }
.sv-float-a { left: -28px; bottom: 34px; } .sv-float-b { right: -14px; top: 26px; }
:root[data-theme='dark'] .sv-float { background: #171d1a; color: #e9efeb; } :root[data-theme='dark'] .sv-float small { color: #aab6af; }
:root[data-theme='contrast'] .sv-hero { background: #000; border-bottom: 2px solid #fff; }
.sv-h2 { font-size: 1.875rem; margin-bottom: 20px; }
.sv-needs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sv-need { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; min-height: 200px; border-radius: 18px; background: var(--k-soft); color: var(--ink); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.sv-need::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--k); opacity: .08; transition: transform .35s; }
.sv-need:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,30,25,.12); } .sv-need:hover::after { transform: scale(1.4); }
.sv-need .sv-ico { background: var(--k); color: #fff; } :root[data-theme='dark'] .sv-need .sv-ico { color: #0d1210; }
.sv-need strong { font-size: 1.25rem; line-height: 1.25; margin-top: 6px; } .sv-need > span:not(.sv-ico):not(.sv-go) { color: var(--muted); font-size: .9375rem; }
.sv-go { margin-top: auto; color: var(--k); } .sv-go .ico { transition: transform .2s; } .sv-need:hover .sv-go .ico { transform: translateX(5px); }
.sv-catalog { background: var(--paper); border-block: 1px solid var(--line); scroll-margin-top: 90px; }
.sv-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .sv-cat-head .sv-h2 { margin-bottom: 12px; }
.sv-filter { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.sv-filter input { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); flex: 0 1 260px; }
.sv-chip .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--k); }
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.sv-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 4px 0 var(--k); transition: transform .2s, box-shadow .2s; }
.sv-card[hidden] { display: none; }
.sv-card:hover { transform: translateY(-3px); box-shadow: inset 0 4px 0 var(--k), 0 16px 34px rgba(20,30,25,.1); }
.sv-card:target { outline: 3px solid var(--k); outline-offset: 3px; }
.sv-card-top { display: flex; align-items: center; gap: 12px; }
.sv-cat { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--k); }
.sv-card h3 { font-size: 1.375rem; line-height: 1.25; margin-top: 4px; }
.sv-card > p:not(.sv-aud) { color: var(--muted); }
.sv-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sv-tags li { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--k-soft); color: var(--k); }
.sv-aud { font-size: .875rem; margin-top: auto; padding-top: 8px; } .sv-aud span { font-weight: 800; color: var(--k); margin-right: 4px; }
.sv-cta { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 12px; background: var(--k-soft); color: var(--k); font-weight: 800; transition: background .2s, color .2s; }
.sv-cta:hover { background: var(--k); color: #fff; } :root[data-theme='dark'] .sv-cta:hover { color: #0d1210; }
.sv-band { background: linear-gradient(135deg, #0b6e75, #0a2a66); color: #fff; }
.sv-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 56px 0; }
.sv-band img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; }
.sv-band h2 { font-size: 2.25rem; margin: 12px 0 18px; } .sv-band .eyebrow::before { background: var(--lime); }
.sv-points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; font-weight: 600; }
.sv-points li { display: flex; align-items: center; gap: 12px; } .sv-points .sv-ico { background: rgba(255,255,255,.14); color: #fff; }
.sv-band .button { background: var(--lime); color: #202724; } .sv-band .button .ico { width: 20px; height: 20px; }
.sv-band .btn-plain { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); display: inline-flex; align-items: center; }
:root[data-theme='contrast'] .sv-band { background: #000; border-block: 2px solid #fff; }
.sv-resources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sv-res { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .2s, box-shadow .2s; }
.sv-res:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,30,25,.1); }
.sv-cover { position: relative; display: grid; place-items: center; height: 140px; background: linear-gradient(135deg, var(--k), color-mix(in srgb, var(--k) 55%, #0d1210)); color: #fff; }
.sv-cover .ico { width: 54px; height: 54px; opacity: .95; }
.sv-format { position: absolute; top: 12px; left: 12px; font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.2); }
:root[data-theme='dark'] .sv-cover { color: #0d1210; }
.sv-res-body { padding: 16px 18px 20px; display: grid; gap: 6px; } .sv-res-body strong { font-size: 1.0625rem; line-height: 1.3; } .sv-res-body span { font-size: .875rem; color: var(--muted); }
.sv-help { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 28px; border-radius: 20px; background: var(--k-soft, var(--tint)); }
.sv-help h2 { font-size: 1.5rem; } .sv-help p { color: var(--muted); }
.sv-help .btn-plain { display: inline-flex; align-items: center; }
@media (max-width: 1100px) { .sv-needs, .sv-resources { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sv-hero-grid, .sv-band-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .sv-hero h1 { font-size: 2.5rem; } .sv-float-a { left: 10px; } .sv-float-b { right: 10px; } .sv-help { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .sv-needs, .sv-resources, .sv-grid { grid-template-columns: minmax(0, 1fr); } .sv-search { flex-wrap: wrap; } .sv-search .button { width: 100%; justify-content: center; } .sv-float { position: static; margin-top: 10px; } }
/* Tarjetas de portal con imagen */
.portal-card .pc-media { display: block; height: 120px; margin: -26px -22px 6px 0; border-radius: 10px; overflow: hidden; background: var(--paper); }
.portal-card:first-child .pc-media { margin-left: 0; }
.portal-card:not(:first-child) .pc-media { margin-left: 0; }
.portal-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.portal-card:hover .pc-media img { transform: scale(1.04); }
.pc-pattern { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--p) 18%, var(--surface)) 0 10px, var(--surface) 10px 20px) !important; }
.portal-card { padding-top: 26px; }
.portal-card .pc-media { margin: 0 0 8px; order: -1; }
@media (max-width: 1100px) { .portal-card .pc-media { height: 140px; } }

/* Espacios (sp) */
.sp-form { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding-bottom: 20px; }
.sp-steps { display: grid; gap: 34px; min-width: 0; }
.sp-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.sp-step legend, .sp-legend { display: flex; align-items: center; gap: 12px; font-size: 1.375rem; font-weight: 800; margin-bottom: 16px; padding: 0; }
.sp-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: .9375rem; flex: none; }
.sp-centres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sp-centre { --c: var(--blue); display: flex; flex-direction: column; }
.sp-pick { position: relative; display: flex; flex-direction: column; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); overflow: hidden; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; height: 100%; }
.sp-pick:hover { box-shadow: 0 14px 30px rgba(20,30,25,.12); transform: translateY(-2px); }
.sp-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sp-pick:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 3px; }
.sp-pick:has(input:checked) { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.sp-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.sp-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sp-pick:hover .sp-photo img { transform: scale(1.04); }
.sp-check { position: absolute; top: 12px; right: 12px; display: none; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 20px; background: var(--c); color: #fff; font-weight: 800; font-size: .8125rem; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.sp-check .ico { width: 18px; height: 18px; }
.sp-pick:has(input:checked) .sp-check { display: inline-flex; animation: dx-in .25s both; }
.sp-info { display: grid; gap: 4px; padding: 16px 18px 6px; }
.sp-place { font-size: .8125rem; color: var(--muted); font-weight: 600; } .sp-info strong { font-size: 1.25rem; }
.sp-amen { list-style: none; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.sp-amen li { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; }
.sp-amen .ico { width: 20px; height: 20px; color: var(--c); flex: none; }
.sp-cta { margin: auto 18px 16px; padding-top: 12px; }
.sp-cta > span { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 42px; border-radius: 10px; font-weight: 800; font-size: .875rem; }
.sp-cta-off { background: var(--paper); } .sp-cta-on { display: none !important; background: var(--c); color: #fff; } .sp-cta-on .ico { width: 18px; height: 18px; }
.sp-pick:has(input:checked) .sp-cta-off { display: none; } .sp-pick:has(input:checked) .sp-cta-on { display: flex !important; }
:root[data-theme='dark'] .sp-centre { --c: var(--cd); } :root[data-theme='dark'] .sp-cta-on, :root[data-theme='dark'] .sp-check { color: #0d1210; }
.sp-links { display: flex; gap: 16px; padding: 10px 6px 0; font-size: .875rem; font-weight: 700; } .sp-links a { text-decoration: underline; text-underline-offset: 3px; }
.sp-rooms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sp-room { position: relative; display: grid; justify-items: start; gap: 8px; padding: 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.sp-room input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sp-room strong { font-size: .9375rem; line-height: 1.25; } .sp-room small { font-size: .75rem; color: var(--muted); }
.sp-room:hover { border-color: var(--field-line); }
.sp-room:has(input:checked) { border-color: var(--blue); background: var(--tint); }
.sp-room:has(input:checked) .sv-ico { background: var(--blue); color: var(--btn-text); }
.sp-room:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.sp-summary { position: sticky; top: 108px; padding: 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 14px; }
.sp-summary dd { font-weight: 700; }
.slots-box { border-top: 0 !important; margin: 0 !important; padding-top: 0 !important; }
@media (max-width: 1100px) { .sp-rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .sp-form { grid-template-columns: minmax(0, 1fr); } .sp-summary { position: static; order: -1; } .sp-centres { grid-template-columns: minmax(0, 1fr); } .sp-pick { flex-direction: row; flex-wrap: wrap; } .sp-photo { width: 40%; aspect-ratio: auto; min-height: 160px; } .sp-info { flex: 1; min-width: 0; } .sp-cta { width: 100%; margin-top: 0; } }
@media (max-width: 600px) { .sp-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-photo { width: 100%; min-height: 0; aspect-ratio: 16 / 9; } .sp-amen { grid-template-columns: minmax(0, 1fr); } }

/* Contenido de terceros con consentimiento */
.embed { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.embed-gate { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 34px 24px; min-height: 260px; align-content: center; background: radial-gradient(80% 100% at 50% 0%, color-mix(in srgb, var(--blue) 10%, var(--surface)), var(--paper)); }
.embed-youtube .embed-gate { background: linear-gradient(135deg, #1b1b1f, #3a0d0d); color: #fff; min-height: 300px; }
.embed-youtube .embed-text, .embed-youtube .embed-remember { color: rgba(255,255,255,.85); } .embed-youtube .embed-text a { color: #fff; }
.embed-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--surface); color: var(--blue); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.embed-youtube .embed-ico { background: #ff0033; color: #fff; }
.embed-ico .ico { width: 28px; height: 28px; }
.embed-provider { font-weight: 800; font-size: 1.0625rem; }
.embed-text { max-width: 52ch; font-size: .875rem; color: var(--muted); } .embed-text a { text-decoration: underline; }
.embed-remember { display: inline-flex; gap: 8px; align-items: center; font-size: .8125rem; color: var(--muted); cursor: pointer; }
.embed-frame iframe { display: block; width: 100%; height: 360px; border: 0; }
.embed-youtube .embed-frame iframe { aspect-ratio: 16 / 9; height: auto; }
.embed-pending { display: grid; place-items: center; text-align: center; gap: 8px; min-height: 300px; padding: 24px; background: #111; color: #fff; }
.embed figcaption { padding: 10px 16px; font-size: .8125rem; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }
.cl-map { margin-top: 16px; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 800px) { .live-grid { grid-template-columns: minmax(0, 1fr); } }

/* Para empresas, conocimiento, observatorio, STEM, recursos formativos */
.emp-hero { background: radial-gradient(90% 120% at 0% 0%, #0a6a5a 0%, #0a2a66 60%, #0d1b33 100%); }
.emp-needs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.emp-xn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px; border-radius: 22px; background: var(--paper); }
.emp-xn h2 { font-size: 2rem; margin: 10px 0; } .emp-points .sv-ico { background: var(--k-soft); color: var(--k); } .emp-points { color: var(--ink); margin: 18px 0; }
.emp-xn .btn-plain { display: inline-flex; align-items: center; }
.emp-xn-shot { border-radius: 16px; background: var(--surface); box-shadow: 0 24px 50px rgba(20,30,25,.16); overflow: hidden; border: 1px solid var(--line); }
.emp-xn-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line); } .emp-xn-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.emp-xn-body { display: flex; align-items: center; gap: 12px; padding: 18px; } .emp-xn-body .dx-logo { width: 44px; height: 44px; background: #e8f0fc; color: #1754ad; border-radius: 12px; display: grid; place-items: center; font-weight: 800; }
.emp-xn-body small { display: block; color: var(--muted); }
.emp-xn-rows { display: grid; gap: 10px; padding: 0 18px 22px; } .emp-xn-rows span { height: 14px; border-radius: 7px; background: var(--paper); } .emp-xn-rows span:nth-child(2) { width: 70%; } .emp-xn-rows span:nth-child(3) { width: 45%; }
.kn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 20px; }
a.stretch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.sv-card:has(a.stretch:focus-visible) { outline: 3px solid var(--ring); outline-offset: 3px; } a.stretch:focus-visible { outline: none; box-shadow: none; }
.article-head .sv-cat { display: block; margin-bottom: 4px; }
@media (max-width: 1000px) { .emp-needs, .kn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .emp-xn { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .emp-needs, .kn-grid { grid-template-columns: minmax(0, 1fr); } }
/* Graficos */
.ch-sample { font-size: .8125rem; color: var(--muted); margin-bottom: 18px; }
.ob-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.ob-stat { padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.ob-k { font-size: .8125rem; font-weight: 700; color: var(--muted); } .ob-stat b { font-size: 2.5rem; line-height: 1.1; letter-spacing: -.02em; } .ob-d { font-size: .8125rem; color: var(--muted); }
.ob-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ob-chart { margin: 0; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.ob-chart h2 { font-size: 1.125rem; } .ob-chart figcaption p { font-size: .8125rem; color: var(--muted); margin-bottom: 12px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.ch-grid { stroke: var(--line); stroke-width: 1; } .ch-axis { fill: var(--muted); font: 600 12px var(--font-ui); } .ch-val { fill: var(--ink); font: 700 12px var(--font-ui); }
.ch-bar path { fill: #1754ad; transition: opacity .15s; } .ch-hit { fill: transparent; }
.chart:has(.ch-bar:hover) .ch-bar:not(:hover) path, .chart:has(.ch-bar:focus) .ch-bar:not(:focus) path { opacity: .45; }
.ch-bar:focus { outline: none; } .ch-bar:focus path { stroke: var(--ink); stroke-width: 2; }
.ch-line { fill: none; stroke: #1754ad; stroke-width: 2; stroke-linejoin: round; }
.ch-pt circle { fill: #1754ad; stroke: var(--surface); stroke-width: 2; } .ch-pt .ch-tip { opacity: 0; transition: opacity .15s; }
.ch-pt:hover .ch-tip, .ch-pt:focus .ch-tip { opacity: 1; } .ch-pt:hover circle, .ch-pt:focus circle { r: 7; } .ch-pt:focus { outline: none; }
:root[data-theme='dark'] .ch-bar path, :root[data-theme='dark'] .ch-pt circle { fill: #8db4ff; } :root[data-theme='dark'] .ch-line { stroke: #8db4ff; }
:root[data-theme='contrast'] .ch-bar path, :root[data-theme='contrast'] .ch-pt circle { fill: #ffe600; } :root[data-theme='contrast'] .ch-line { stroke: #ffe600; }
.ch-table { margin-top: 12px; font-size: .875rem; } .ch-table summary { cursor: pointer; font-weight: 700; min-height: 40px; display: flex; align-items: center; }
@media (max-width: 900px) { .ob-charts, .ob-stats { grid-template-columns: minmax(0, 1fr); } }
/* STEM */
.stem-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #4b2a8f, #6a3fb5 45%, #0b6e75); padding: 24px 0 56px; }
.stem-hero h1 { font-size: 3.5rem; margin: 10px 0; } .stem-hero .lede { color: rgba(255,255,255,.88); max-width: 56ch; } .stem-hero .eyebrow::before { background: #ffd166; }
.stem-shapes span { position: absolute; border-radius: 50%; opacity: .25; } .stem-shapes span:nth-child(1) { width: 260px; height: 260px; right: 6%; top: -60px; background: #ffd166; }
.stem-shapes span:nth-child(2) { width: 140px; height: 140px; right: 24%; bottom: -40px; background: #6fd3da; border-radius: 24px; transform: rotate(18deg); } .stem-shapes span:nth-child(3) { width: 80px; height: 80px; right: 4%; bottom: 30px; background: #ff9f94; }
:root[data-theme='contrast'] .stem-hero { background: #000; border-bottom: 2px solid #fff; }
@media (max-width: 700px) { .stem-hero h1 { font-size: 2.5rem; } }
/* Recursos formativos */
.rf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.rf-card { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .2s, box-shadow .2s; }
.rf-card[hidden] { display: none; } .rf-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,30,25,.1); }
.rf-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--k), color-mix(in srgb, var(--k) 50%, #0d1210)); color: #fff; }
.rf-thumb .ico { width: 48px; height: 48px; } .rf-dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.55); font-size: .75rem; font-weight: 700; }
:root[data-theme='dark'] .rf-thumb { color: #0d1210; }
.rf-body { padding: 16px 18px 18px; display: grid; gap: 6px; } .rf-body h3 { font-size: 1.0625rem; line-height: 1.3; }
.rf-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }
.rf-card:has(a.stretch:focus-visible) { outline: 3px solid var(--ring); outline-offset: 3px; }

/* Emprenbit (em) */
.em-progs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.em-path { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.em-path li { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 18px; background: var(--k-soft); }
.em-path li:not(:last-child)::after { content: ''; position: absolute; right: -14px; top: 46px; width: 12px; height: 12px; border-top: 3px solid var(--k); border-right: 3px solid var(--k); transform: rotate(45deg); }
.em-path .sv-ico { background: var(--k); color: #fff; } .em-n { font-size: .75rem; font-weight: 800; color: var(--k); }
.em-path h2 { font-size: 1.25rem; } .em-path p:not(.sv-cat) { color: var(--muted); font-size: .9375rem; }
:root[data-theme='dark'] .em-path .sv-ico { color: #0d1210; }
.em-req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 10px 0 24px; }
.em-req h1 { font-size: 2.5rem; margin: 10px 0; }
.em-checks { list-style: none; margin: 0; padding: 22px; border-radius: 16px; background: var(--tint); display: grid; gap: 10px; }
.em-checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; } .em-checks .ico { color: var(--blue); width: 20px; height: 20px; flex: none; }
.xn-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.xn-steps li { display: grid; gap: 6px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.xn-steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--btn-text); font-size: .875rem; }
.xn-steps span { font-size: .875rem; color: var(--muted); }
.al-table th[scope='row'] { display: flex; align-items: center; gap: 10px; }
.al-logo { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #e3f3eb; color: #117250; font-size: .75rem; font-weight: 800; }
.al-table tr[hidden] { display: none; }
.ttt-hero { position: relative; overflow: hidden; color: #fff; padding: 24px 0 60px; background: radial-gradient(80% 120% at 100% 0%, #a73c51 0%, transparent 55%), linear-gradient(135deg, #1c1030, #2b1a4d 50%, #0d1b33); }
.ttt-hero h1 { font-size: 4.5rem; line-height: .98; margin: 14px 0; letter-spacing: -.02em; } .ttt-hero .lede { color: rgba(255,255,255,.85); max-width: 52ch; } .ttt-hero .eyebrow::before { background: #ff9fb0; }
.ttt-next { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.1); backdrop-filter: blur(6px); max-width: 820px; }
.ttt-next .pill { background: #ff9fb0; color: #2b0d14; } .ttt-next strong { margin-right: auto; }
:root[data-theme='contrast'] .ttt-hero { background: #000; border-bottom: 2px solid #fff; }
.em-comm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; padding-bottom: 56px; }
.em-gate { display: grid; gap: 12px; justify-items: start; align-content: center; padding: 32px; border-radius: 20px; background: var(--paper); }
.em-gate h2 { font-size: 1.75rem; } .em-gate p { color: var(--muted); }
.em-preview { display: grid; gap: 10px; padding: 24px; border-radius: 20px; border: 1px solid var(--line); position: relative; }
.em-preview::after { content: 'Vista previa'; position: absolute; top: 16px; right: 16px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.em-thread { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); filter: saturate(.9); }
.em-thread .dx-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #e3f3eb; color: #117250; font-size: .75rem; font-weight: 800; flex: none; }
.em-thread small { display: block; color: var(--muted); font-size: .8125rem; }
@media (max-width: 1000px) { .em-path, .xn-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .em-path li::after { display: none; } .em-req, .em-comm { grid-template-columns: minmax(0, 1fr); } .ttt-hero h1 { font-size: 3rem; } }
@media (max-width: 600px) { .em-path, .xn-steps, .em-progs { grid-template-columns: minmax(0, 1fr); } }

/* Extranet suite */
.xn-page .xn-shell { grid-template-columns: 260px minmax(0, 1fr); }
.xn-role { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--paper); margin-bottom: 12px; }
.xn-role a { text-align: center; padding: 8px 6px; border-radius: 7px; font-size: .8125rem; font-weight: 700; }
.xn-role a[aria-current='true'] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); color: var(--blue); }
.xn-nav { display: grid; gap: 2px; }
.xn-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: .9375rem; }
.xn-nav a .ico { width: 20px; height: 20px; color: var(--muted); } .xn-nav a:hover { background: var(--paper); }
.xn-nav a[aria-current='page'] { background: var(--tint); color: var(--blue); } .xn-nav a[aria-current='page'] .ico { color: var(--blue); }
.xn-out { margin-top: 10px; padding: 10px 12px; font-size: .875rem; color: var(--muted); text-decoration: underline; }
.xn-demo { font-size: .8125rem; color: var(--muted); padding: 8px 12px; border-radius: 8px; border: 1px dashed var(--field-line); justify-self: start; }
.xn-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.wf { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wf li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 4px; }
.wf li::before { content: ''; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; } .wf li:first-child::before { display: none; }
.wf li.wf-done::before, .wf li.wf-current::before { background: var(--blue); }
.wf-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 2px solid var(--field-line); font-weight: 800; font-size: .875rem; }
.wf-dot .ico { width: 18px; height: 18px; }
.wf-done .wf-dot { background: var(--blue); border-color: var(--blue); color: var(--btn-text); } .wf-current .wf-dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 18%, transparent); }
.wf strong { font-size: .875rem; } .wf small { font-size: .75rem; color: var(--muted); }
.xn-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.xn-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.xn-msg { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--paper); margin: 10px 0; } .xn-msg p { font-size: .9375rem; margin-top: 4px; }
.xn-msg .dx-logo, .xn-team .dx-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--blue); font-weight: 800; font-size: .75rem; flex: none; }
.xn-reply { display: flex; gap: 8px; } .xn-reply input { flex: 1; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); }
.xn-todo { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.xn-todo li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; } .xn-todo .ico { width: 20px; height: 20px; color: var(--blue); }
.xn-todo li.is-done { color: var(--muted); text-decoration: line-through; } .xn-todo li.is-done .ico { color: #117250; }
.xn-banner { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: #fff7e0; color: #5a4300; font-size: .9375rem; } .xn-banner .ico { flex: none; }
:root[data-theme='dark'] .xn-banner { background: #3a2f10; color: #f4d27a; }
.xn-grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-top: 12px; } .xn-wide { grid-column: 1 / -1; }
.xn-logo-up { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; } .xn-logo-big { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; background: #e3f3eb; color: #117250; font-weight: 800; font-size: 1.25rem; }
.xn-team { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 10px; } .xn-team li { display: flex; gap: 12px; align-items: center; } .xn-team small { display: block; color: var(--muted); }
.xn-wizard { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.xn-wizard li { display: grid; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); } .xn-wizard b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--field-line); font-size: .875rem; }
.xn-wizard b .ico { width: 16px; height: 16px; } .xn-wizard small { color: var(--muted); font-size: .8125rem; }
.xn-wizard .is-done b { background: #117250; border-color: #117250; color: #fff; } .xn-wizard .is-current { border-color: var(--blue); background: var(--tint); } .xn-wizard .is-current b { border-color: var(--blue); color: var(--blue); }
.xn-docs { display: grid; gap: 12px; } .xn-doc { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid var(--line); } .xn-doc > div { flex: 1; } .xn-doc small { display: block; color: var(--muted); font-size: .8125rem; }
.kb-toolbar { margin-bottom: 14px; }
.kb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.kb-col { padding: 12px; border-radius: 14px; background: var(--paper); display: grid; gap: 8px; align-content: start; min-height: 200px; }
.kb-col h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; padding: 2px 4px 6px; }
.kb-col .n { background: var(--surface); border-radius: 10px; padding: 0 8px; color: var(--ink); }
.kb-card { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: box-shadow .15s, border-color .15s; }
.kb-card:hover { box-shadow: 0 6px 16px rgba(20,30,25,.1); } .kb-card[aria-pressed='true'] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.kb-card span:not(.pill) { font-size: .8125rem; color: var(--muted); }
.xn-actions { display: flex; gap: 8px; flex-wrap: wrap; } .xn-danger { color: #8f2b2b; border-color: #d9a3a3; }
.xn-notes { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); font: inherit; }
dialog.xn-dialog { border: 0; border-radius: 18px; padding: 26px; width: min(520px, 92vw); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog.xn-dialog::backdrop { background: rgba(10,14,12,.55); } dialog.xn-dialog h2 { font-size: 1.375rem; margin-bottom: 8px; } dialog.xn-dialog p { color: var(--muted); margin-bottom: 14px; }
/* Acceso */
.xa-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding: 16px 0 56px; align-items: start; }
.xa-card { padding: 32px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 20px 50px rgba(20,30,25,.08); }
.xa-card h1 { font-size: 2.25rem; margin: 10px 0 6px; } .xa-form { margin-top: 20px; } .xa-form .button { width: 100%; justify-content: center; margin: 4px 0 14px; }
.xa-links a { font-size: .875rem; text-decoration: underline; } .xa-form .dx-note a { text-decoration: underline; }
.xa-side { display: grid; gap: 20px; } .xa-alta { padding: 26px; border-radius: 20px; background: var(--tint); display: grid; gap: 10px; justify-items: start; } .xa-alta h2 { font-size: 1.375rem; }
.xa-steps { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 8px; } .xa-steps li { display: flex; gap: 10px; align-items: center; } .xa-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); font-size: .8125rem; }
.xa-roles ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; } .xa-roles li { display: flex; gap: 12px; align-items: flex-start; } .xa-roles .ico { color: var(--blue); flex: none; margin-top: 2px; } .xa-roles strong { display: block; }
.xa-roles span { font-size: .9375rem; color: var(--muted); } .xa-roles strong { color: var(--ink); }
@media (max-width: 1000px) { .xn-page .xn-shell, .xa-layout, .xn-two { grid-template-columns: minmax(0, 1fr); } .kb { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wf { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; } .xn-slots, .xn-wizard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kb, .xn-grid-form { grid-template-columns: minmax(0, 1fr); } .wf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xn-nav a, .xn-side .xn-nav a { justify-content: flex-start; }
.footer-top .footer-h { font-size: .75rem; margin-bottom: 18px; color: var(--on-dark-soft); font-weight: 700; }
:root[data-theme='contrast'] .button.dark { background: #ffe600; color: #000; border-color: #ffe600; }
:root[data-theme='contrast'] .button.dark .icon-white, :root[data-theme='contrast'] .button.dark .icon { filter: none; }
:root[data-theme='dark'] .button.dark .icon-white { filter: none; }
.ag-cell.is-out .ag-num { opacity: 1; color: var(--muted); }
/* El color de centro llega en linea (--c/--cd); en temas oscuros lo cambian los descendientes */
:root[data-theme='dark'] [style*='--cd'] * { --c: var(--cd); }
:root[data-theme='contrast'] [style*='--cd'] * { --c: #ffe600; }
:root[data-theme='contrast'] .dx-logo, :root[data-theme='contrast'] .dx-logo-lg { background: #000 !important; border: 1px solid #ffe600; }

/* Sin animaciones de color al cambiar de tema o de preferencias */
.no-trans *, .no-trans *::before, .no-trans *::after { transition: none !important; }

/* =========================================================================
   Mapas interactivos (mp)
   ========================================================================= */
.mp { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 20px; }
.mp-side { position: sticky; top: 104px; display: grid; gap: 16px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 4px; }
.mp-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 50px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--surface); }
.mp-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.mp-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); min-height: 46px; font-size: 1rem; outline: none; } .mp-search input:focus-visible { box-shadow: none; }
.mp-search .ico { color: var(--blue); }
.mp-cat .mp-ci .ico { width: 16px; height: 16px; }
.mp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mp-item { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.mp-item:hover { border-color: var(--field-line); } .mp-item.is-sel { border-color: var(--blue); background: var(--tint); }
.mp-item small { display: block; font-size: .8125rem; color: var(--muted); }
.mp-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--mk-soft); color: var(--mk); }
.mp-ico svg, .mp-mk svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mp-empresa { --mk: #1754ad; --mk-soft: #e8f0fc; } .mp-edificio { --mk: #3b4a63; --mk-soft: #eaeef5; } .mp-sala { --mk: #6a3fb5; --mk-soft: #f0eafb; }
.mp-servicio { --mk: #8a5a00; --mk-soft: #fbf0d4; } .mp-movilidad { --mk: #0b6e75; --mk-soft: #e1f3f4; } .mp-evento { --mk: #b13f36; --mk-soft: #fcebe8; }
:root[data-theme='dark'] .mp-empresa { --mk: #8db4ff; --mk-soft: #1c2840; } :root[data-theme='dark'] .mp-edificio { --mk: #a9bde0; --mk-soft: #1c2433; } :root[data-theme='dark'] .mp-sala { --mk: #c9b0ff; --mk-soft: #2a2040; }
:root[data-theme='dark'] .mp-servicio { --mk: #f0c35c; --mk-soft: #3a2f10; } :root[data-theme='dark'] .mp-movilidad { --mk: #6fd3da; --mk-soft: #12302f; } :root[data-theme='dark'] .mp-evento { --mk: #ff9f94; --mk-soft: #3a1d1a; }
:root[data-theme='contrast'] [class*='mp-'] { --mk: #ffe600; --mk-soft: #000; }
.mp-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mp-zoom { display: flex; gap: 6px; align-items: center; }
.mp-viewport { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: #e9efe6; aspect-ratio: 1000 / 620; touch-action: none; cursor: grab; }
.mp-viewport:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
:root[data-theme='dark'] .mp-viewport { background: #1a221d; }
.mp-stage { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform .25s; }
.mp-level { position: absolute; inset: 0; width: 100%; height: 100%; display: none; } .mp-level.is-on { display: block; }
.mp-green { fill: #e3ecdd; } .mp-road { fill: none; stroke: #fff; stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.08)); }
.mp-walk { fill: none; stroke: #f6f2e6; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 0; }
.mp-parking { fill: #dfe6ee; stroke: #b9c6d6; stroke-width: 2; } .mp-bldg { fill: #ffffff; stroke: #c8d0cb; stroke-width: 2; filter: drop-shadow(0 6px 10px rgba(20,30,25,.12)); }
.mp-plaza { fill: #f1ead8; } .mp-floor { fill: #fff; stroke: #c8d0cb; stroke-width: 3; } .mp-room { fill: #f6f8f6; stroke: #c8d0cb; stroke-width: 2; } .mp-core { fill: #e3e9f4; stroke: #b9c6d6; stroke-width: 2; } .mp-hall { fill: #f1ead8; }
.mp-label { font: 700 15px var(--font-ui); fill: #3a453f; }
:root[data-theme='dark'] .mp-green { fill: #1f2a23; } :root[data-theme='dark'] .mp-road { stroke: #36423b; } :root[data-theme='dark'] .mp-walk, :root[data-theme='dark'] .mp-plaza, :root[data-theme='dark'] .mp-hall { stroke: #3d3a2e; fill: #2a2820; }
:root[data-theme='dark'] .mp-bldg, :root[data-theme='dark'] .mp-floor, :root[data-theme='dark'] .mp-room { fill: #26302b; stroke: #44514a; } :root[data-theme='dark'] .mp-parking, :root[data-theme='dark'] .mp-core { fill: #24303d; stroke: #3d4b5c; } :root[data-theme='dark'] .mp-label { fill: #d5ddd8; }
.mp-path-bg { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.mp-path { fill: none; stroke: var(--blue); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16 12; animation: mp-dash 1.2s linear infinite; }
@keyframes mp-dash { to { stroke-dashoffset: -28; } }
:root[data-motion='reduce'] .mp-path { animation: none; stroke-dasharray: none; } @media (prefers-reduced-motion: reduce) { .mp-path { animation: none; stroke-dasharray: none; } }
.mp-start { fill: #fff; stroke: var(--blue); stroke-width: 5; }
.mp-mk { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface); background: var(--mk); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); cursor: pointer; transition: transform .15s; z-index: 1; }
:root[data-theme='dark'] .mp-mk { color: #0d1210; }
.mp-mk:hover, .mp-mk:focus-visible, .mp-mk.is-sel { transform: translate(-50%, -50%) scale(1.2); z-index: 3; }
.mp-mk.is-sel { box-shadow: 0 0 0 4px var(--mk), 0 6px 16px rgba(0,0,0,.3); }
.mp-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 8px; border-radius: 6px; background: var(--inverse); color: var(--on-dark); font-size: .75rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .15s; }
.mp-mk:hover .mp-tip, .mp-mk:focus-visible .mp-tip, .mp-mk.is-sel .mp-tip { opacity: 1; }
.mp-badge { position: absolute; top: -12px; right: -18px; padding: 1px 6px; border-radius: 8px; background: var(--lime); color: #202724; font-size: .625rem; font-weight: 800; }
.mp-badge-live { background: #b13f36; color: #fff; animation: geo-pulse 1.6s ease-out infinite; }
.mp-legend { font-size: .8125rem; color: var(--muted); margin: 8px 2px 14px; }
.mp-panel { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: var(--surface); }
.mp-panel-empty h2 { font-size: 1.125rem; } .mp-panel-empty p { color: var(--muted); }
.mp-detail { display: grid; gap: 10px; } .mp-detail h2 { font-size: 1.5rem; } .mp-detail > p { color: var(--muted); }
.mp-dcat { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mk); }
.mp-modes-sel { border: 0; padding: 12px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.mp-sw { padding: 4px 0; font-size: .9375rem; }
.mp-route-sum { font-size: 1rem; } .mp-route-sum b { font-size: 1.5rem; color: var(--blue); }
.mp-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: .9375rem; }
.mp-steps li::marker { font-weight: 800; color: var(--blue); }
.mp-share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.mp-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mp-qr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px; border-radius: 20px; background: var(--paper); margin-bottom: 40px; }
.mp-qr-card { justify-self: center; display: grid; justify-items: center; gap: 10px; padding: 22px; border-radius: 18px; background: var(--surface); box-shadow: 0 16px 40px rgba(20,30,25,.14); text-align: center; }
.mp-qr-card b { display: block; } .mp-qr-card p { font-size: .875rem; color: var(--muted); }
.mp-qr-code { width: 132px; height: 132px; border-radius: 8px; background:
  linear-gradient(90deg, #202724 10px, transparent 10px) 0 0 / 22px 22px, linear-gradient(#202724 10px, transparent 10px) 0 0 / 22px 22px, #fff; border: 8px solid #fff; outline: 2px solid #202724; position: relative; }
.mp-qr-code::after { content: 'Demo'; position: absolute; inset: auto 0 -26px; font-size: .6875rem; color: var(--muted); }
body.mp-kiosk .utility, body.mp-kiosk .site-header, body.mp-kiosk .site-footer, body.mp-kiosk .assistant, body.mp-kiosk .breadcrumbs, body.mp-kiosk .section { display: none !important; }
body.mp-kiosk .mp-page .dx-head h1 { font-size: 3rem; } body.mp-kiosk .mp { grid-template-columns: 420px minmax(0, 1fr); } body.mp-kiosk .mp-item { padding: 16px; font-size: 1.125rem; }
@media (max-width: 1000px) { .mp { grid-template-columns: minmax(0, 1fr); } .mp-side { position: static; max-height: none; order: 2; } .mp-list { max-height: 320px; overflow: auto; } .mp-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mp-qr { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .mp-modes { grid-template-columns: minmax(0, 1fr); } .mp-mk { width: 30px; height: 30px; } }
.mp-label-room { font-size: 14px; fill: #56615b; } :root[data-theme='dark'] .mp-label-room { fill: #aab6af; }

.mp > * { min-width: 0; } .mp-toolbar, .mp-zoom { flex-wrap: wrap; }
.mp-kiosk-bar { display: none; }
body.mp-kiosk .mp-kiosk-bar { display: flex; align-items: center; gap: 18px; padding: 16px 22px; margin-bottom: 18px; border-radius: 16px; background: var(--inverse); color: var(--on-dark); font-size: 1.25rem; font-weight: 700; }
.mp-kb-live { padding: 4px 12px; border-radius: 10px; background: #b13f36; color: #fff; font-size: 1rem; } .mp-kb-qr { margin-left: auto; font-size: 1rem; font-weight: 600; color: var(--on-dark-soft); }
body.mp-kiosk .mp-page .dx-head .lede { font-size: 1.375rem; }
body.mp-kiosk .mp-viewport { box-shadow: 0 20px 50px rgba(20,30,25,.18); }
@media (max-width: 600px) { .mp-page .ag-head-actions { width: 100%; } .mp-toolbar { justify-content: flex-start; } }
@media (max-width: 700px) { .mp-viewport { aspect-ratio: 4 / 3; } .mp-mk { width: 24px; height: 24px; border-width: 2px; } .mp-mk svg { width: 13px; height: 13px; } .mp-badge { font-size: .5625rem; top: -10px; right: -14px; } }
.mp-mk { transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))); }
.mp-mk:hover, .mp-mk:focus-visible, .mp-mk.is-sel { transform: translate(-50%, -50%) scale(calc(1.2 / var(--z, 1))); }
:root[data-theme='contrast'] .dx-logo, :root[data-theme='contrast'] .al-logo, :root[data-theme='contrast'] .xn-logo-big, :root[data-theme='contrast'] .em-thread .dx-logo, :root[data-theme='contrast'] .emp-xn-body .dx-logo, :root[data-theme='contrast'] .xn-msg .dx-logo, :root[data-theme='contrast'] .xn-team .dx-logo, :root[data-theme='contrast'] .xn-co .dx-logo { color: #ffe600 !important; background: #000 !important; border: 1px solid #ffe600; }
:root[data-theme='dark'] .al-logo, :root[data-theme='dark'] .em-thread .dx-logo, :root[data-theme='dark'] .xn-logo-big { background: #14301f; color: #6fd9a8; }
:root[data-theme='dark'] .emp-xn-body .dx-logo { background: #1c2840; color: #8db4ff; }
:root[data-theme='dark'] .xn-danger { color: #ffabab; border-color: #7a3a3a; } :root[data-theme='contrast'] .xn-danger { color: #fff; border-color: #fff; }

/* Reflujo en pantallas estrechas y texto ampliado (nuevas paginas) */
fieldset { min-width: 0; }
.dx-side, .dx-panel, .dx-facet, .mp-side, .mp-main, .ag-toolbar > *, .dx-toolbar > *, .ag-up-body, .un-top > *, .xn-main, .sp-steps, .pa-layout > * { min-width: 0; }
.st-grid, .dx-grid, .rf-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.ag-search, .mp-search, .dx-search { min-width: 0; } .ag-search input, .mp-search input, .dx-search input { width: 100%; }
.ev-regb { white-space: normal; }
.un-top { flex-wrap: wrap; }
@media (max-width: 600px) {
  .dx-sort { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ag-toolbar { flex-direction: column; align-items: stretch; } .ag-search { flex-basis: auto; } .ag-views { align-self: flex-start; }
  .ag-up.has-img { flex-direction: column; } .ag-up.has-img img { width: 100%; height: 110px; }
  .dx-search .dx-clear { padding: 0 10px; }
}
:root[data-text='150'] .ag-up.has-img, :root[data-text='175'] .ag-up.has-img { flex-direction: column; }
:root[data-text='150'] .ag-up.has-img img, :root[data-text='175'] .ag-up.has-img img { width: 100%; }
.dx-chip { max-width: 100%; } .dx-chip > span { min-width: 0; overflow-wrap: anywhere; }
:root[data-text='125'] .dx-side .dx-chips, :root[data-text='150'] .dx-side .dx-chips, :root[data-text='175'] .dx-side .dx-chips { flex-wrap: wrap; overflow: visible; }
.ag-views, .ag-scale { flex-wrap: wrap; max-width: 100%; }
.ag-search { max-width: 100%; }
.dx-sort select { max-width: 100%; min-width: 0; }
legend.sr-only { float: none !important; width: 1px !important; }
.ev-row-cta { white-space: normal; text-align: center; }
.xn-main { grid-template-columns: minmax(0, 1fr); } .xn-main > *, .xn-card > *, .xn-two > * { min-width: 0; }
.xn-reply input { min-width: 0; }
.table-scroll { position: relative; }
.xn-docs { grid-template-columns: minmax(0, 1fr); } .xn-doc { flex-wrap: wrap; } .xn-doc > div { min-width: 0; }
.pa-import { grid-template-columns: minmax(0, 1fr); } .pa-import-row { flex-wrap: wrap; } .pa-import > * { min-width: 0; }
.xn-flow { flex-wrap: wrap; } .xn-flow li { min-width: 0; flex: 1 1 90px; overflow-wrap: anywhere; }

/* ---------- Mapas v2: accesos, plantas, QR y orientacion ---------- */
.mp-hwy { fill: none; stroke: #f2dfb0; stroke-width: 30; stroke-linecap: round; } :root[data-theme='dark'] .mp-hwy { stroke: #4a4126; }
.mp-water { fill: none; stroke: #bfdfe8; stroke-width: 16; stroke-linecap: round; } :root[data-theme='dark'] .mp-water { stroke: #1e3a44; }
.mp-wall { fill: #edf1e7; stroke: #a99a7a; stroke-width: 4; stroke-dasharray: 10 6; } :root[data-theme='dark'] .mp-wall { fill: #222c25; stroke: #6d6450; }
.mp-gatehouse { fill: #8a5a00; } .mp-bldgc { fill: #fff; stroke: #c8d0cb; stroke-width: 2; }
.mp-blk { fill: #eef1ee; stroke: #cfd6d1; stroke-width: 1.5; } :root[data-theme='dark'] .mp-blk { fill: #232c27; stroke: #3a463f; }
.mp-void { fill: #f3f6f9; stroke: #c8d0cb; stroke-width: 2; stroke-dasharray: 6 6; } :root[data-theme='dark'] .mp-void { fill: #1e2620; stroke: #44514a; }
:root[data-theme='dark'] .mp-bldgc { fill: #26302b; stroke: #44514a; }
.mp-label-blk { font-size: 12px; font-weight: 700; fill: #6a756f; } :root[data-theme='dark'] .mp-label-blk { fill: #93a099; }
.mp-label-label, .mp-label-water { font-size: 13px; font-weight: 700; fill: #4f5b55; } .mp-label-water { fill: #3d6f80; font-style: italic; }
.mp-label-parking { font-size: 16px; font-weight: 800; fill: #2d4f7a; } :root[data-theme='dark'] .mp-label-parking { fill: #9cc0ee; }
:root[data-theme='dark'] .mp-label-label { fill: #b5c0ba; } :root[data-theme='dark'] .mp-label-water { fill: #8cc3d3; }
.mp-path-car { stroke: #6b7a8f; stroke-dasharray: 3 10; stroke-width: 6; }
.mp-xfer { fill: var(--surface); stroke: var(--blue); stroke-width: 4; } .mp-stop { fill: var(--blue); stroke: #fff; stroke-width: 3; }
.mp-badge-off { background: #3b4a63; color: #fff; right: auto; left: -18px; }
.mp-mk.is-closed { filter: grayscale(1); opacity: .7; }

.mp-arrival { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--tint); border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent); font-size: .9375rem; }
.mp-arrival p { margin: 0; } .mp-arrival b { display: block; margin-bottom: 2px; }
.mp-arrival-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: #fff; } .mp-arrival-ico .ico { width: 18px; height: 18px; }
:root[data-theme='contrast'] .mp-arrival-ico { color: #000; }

.mp-levels { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mp-lvgroup { display: inline-flex; align-items: center; gap: 2px; padding-left: 10px; margin-left: 4px; border-left: 1px solid var(--line); }
.mp-lvname { font-size: .75rem; font-weight: 800; color: var(--muted); margin-right: 4px; white-space: nowrap; }
.mp-scan-btn .ico { width: 16px; height: 16px; }

.mp-stackbox { position: absolute; top: 12px; right: 12px; z-index: 4; width: 168px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 8px 24px rgba(20,30,25,.18); border: 1px solid var(--line); cursor: default; }
.mp-stack-t { margin: 0 0 8px; font-size: .8125rem; font-weight: 800; } .mp-stack-t small { display: block; font-weight: 600; color: var(--muted); }
.mp-stack { list-style: none; margin: 0; padding: 0 0 0 14px; display: grid; gap: 4px; position: relative; }
.mp-stack::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--line); }
.mp-stack button, .mp-stack-ground { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 32px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .8125rem var(--font-ui); cursor: pointer; text-align: left; }
.mp-stack button em { font-style: normal; font-size: .6875rem; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: var(--tint); color: var(--blue); }
.mp-stack button.is-route { border-color: var(--blue); } .mp-stack button.is-dest em { background: var(--blue); color: #fff; }
.mp-stack button.is-on, .mp-stack-ground.is-on { background: var(--inverse); color: var(--on-dark); border-color: var(--inverse); }
.mp-stack-ground { margin-top: 8px; justify-content: center; border-style: dashed; }
:root[data-theme='contrast'] .mp-stack button.is-dest em { color: #000; }

.mp-under { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin: 8px 2px 14px; }
.mp-under .mp-legend { margin: 0; flex: 1 1 280px; } .mp-alert-sw { flex: 0 1 340px; font-size: .875rem; }
.mp-where { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; } .mp-where span { padding: 3px 10px; border-radius: 999px; background: var(--paper); font-size: .8125rem; font-weight: 700; color: var(--ink) !important; }
.mp-reco { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--tint); }
.mp-reco small { display: block; margin-top: 4px; color: var(--muted); font-size: .8125rem; } .mp-reco q { font-weight: 700; color: var(--ink); }
.mp-reco-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #2d4f7a; color: #fff; font-weight: 900; font-size: 1.125rem; }
.mp-reco-taxi .mp-reco-ico { background: #8a5a00; } .mp-reco-warn { color: #9a3b12 !important; font-weight: 700; }
:root[data-theme='dark'] .mp-reco-warn { color: #ffb08a !important; }
.mp-mini { min-height: 34px; padding: 4px 12px; margin-top: 8px; font-size: .8125rem; }
.mp-steps li.is-tip { list-style: none; margin-left: -22px; padding: 8px 12px; border-radius: 10px; background: #fff4d6; color: #5c4300; font-size: .875rem; border-left: 4px solid #d89b00; }
:root[data-theme='dark'] .mp-steps li.is-tip { background: #3a2f10; color: #f6dc9b; } :root[data-theme='contrast'] .mp-steps li.is-tip { background: transparent; color: inherit; border-left-color: currentColor; }
.mp-steps li.st-lift, .mp-steps li.st-stair, .mp-steps li.st-door, .mp-steps li.st-park { font-weight: 700; }
.mp-qrbox { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border-radius: 14px; border: 1px dashed var(--field-line); }
.mp-qrbox p { margin: 4px 0 0; font-size: .875rem; color: var(--muted); }
.mp-qr-code.is-real, .mp-qrbox .mp-qr-code { width: 148px; height: 148px; background: #fff; border-radius: 10px; padding: 0; position: relative; }
.mp-qr-code.is-real::after { content: none; } .mp-qr-code svg { display: block; width: 100%; height: 100%; border-radius: 10px; }
.mp-qr-off { display: block; padding: 10px; font-size: .75rem; color: #333; }
.mp-signs { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.mp-sign { margin: 0; display: grid; justify-items: center; gap: 8px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: 0 12px 30px rgba(20,30,25,.12); text-align: center; font-size: .8125rem; color: var(--muted); max-width: 180px; }
.mp-sign b { display: block; color: var(--ink); font-size: .9375rem; }
body.mp-kiosk .mp-qrbox { grid-template-columns: 220px minmax(0, 1fr); } body.mp-kiosk .mp-qrbox .mp-qr-code { width: 220px; height: 220px; }
@media (max-width: 600px) { .mp-qrbox { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .mp-stackbox { width: 132px; padding: 8px; top: 8px; right: 8px; } .mp-lvgroup { border-left: 0; padding-left: 0; margin-left: 0; } }
@media (max-width: 700px) { .mp-viewport { aspect-ratio: 1000 / 620; } }

/* Orientarme: camara a pantalla completa con flecha */
body.mp-ar-open { overflow: hidden; }
.mp-ar { position: fixed; inset: 0; z-index: 200; background: #0b0f0d; color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.mp-ar video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.mp-ar-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: linear-gradient(#000a, transparent); }
.mp-ar-top h2 { margin: 0; font-size: 1.25rem; color: #fff; } .mp-ar .btn-plain { background: #fff; color: #111; border-color: #fff; }
.mp-ar-frame { position: relative; align-self: center; justify-self: center; width: min(62vw, 300px); aspect-ratio: 1; border-radius: 24px; box-shadow: 0 0 0 9999px #0006; }
.mp-ar-frame span { position: absolute; inset: 0; border: 4px solid #c8f04b; border-radius: 24px; }
.mp-ar.is-guide .mp-ar-frame { display: none; }
.mp-ar-arrow { position: absolute; left: 50%; top: 42%; width: 160px; height: 160px; margin: -80px 0 0 -80px; transition: transform .2s; filter: drop-shadow(0 8px 20px #0009); }
.mp-ar-arrow svg { width: 100%; height: 100%; fill: #c8f04b; stroke: #0b0f0d; stroke-width: 3; }
:root[data-motion='reduce'] .mp-ar-arrow { transition: none; }
.mp-ar-card { position: relative; margin: 12px; padding: 16px; border-radius: 18px; background: #fff; color: #111; display: grid; gap: 10px; max-width: 560px; justify-self: center; width: calc(100% - 24px); box-sizing: border-box; }
.mp-ar-msg { margin: 0; font-size: .875rem; color: #444; } .mp-ar-step { margin: 0; font-size: 1.25rem; font-weight: 800; }
.mp-ar-step:empty { display: none; }
.mp-ar-actions { display: flex; flex-wrap: wrap; gap: 8px; } .mp-ar-card .btn-plain { border-color: #c8d0cb; }
.mp-ar-more { font-size: .875rem; } .mp-ar-more summary { cursor: pointer; font-weight: 700; } .mp-ar-more label { display: grid; gap: 4px; margin-top: 8px; }
.mp-ar-more select { min-height: 40px; border-radius: 8px; border: 1px solid #c8d0cb; padding: 0 8px; font: inherit; }
.mp-ar-more .btn-plain { margin-top: 8px; }
.mp-placa { --mk: #3a3f47; --mk-soft: #eceef1; } :root[data-theme='dark'] .mp-placa { --mk: #c9ced6; --mk-soft: #262a30; }
.mp-path-car { stroke: #2d4f7a; stroke-dasharray: 2 10; stroke-width: 7; } :root[data-theme='dark'] .mp-path-car { stroke: #9cc0ee; }
.mp-stackbox { right: auto; left: 12px; width: 176px; } @media (max-width: 600px) { .mp-stackbox { left: 8px; width: 136px; } }
.mp-canvas { display: grid; gap: 12px; align-items: start; }
.mp-canvas:has(.mp-stackbox:not([hidden])) { grid-template-columns: minmax(0, 1fr) 150px; }
.mp-canvas .mp-stackbox { position: static; width: auto; box-shadow: none; background: var(--surface); }
@media (max-width: 700px) { .mp-canvas:has(.mp-stackbox:not([hidden])) { grid-template-columns: minmax(0, 1fr); } .mp-canvas .mp-stack { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); padding-left: 0; } .mp-canvas .mp-stack::before { display: none; } }
.mp-steps { list-style: none; padding-left: 0; counter-reset: st; }
.mp-steps li { position: relative; padding-left: 26px; } .mp-steps li:not(.is-tip) { counter-increment: st; }
.mp-steps li:not(.is-tip)::before { content: counter(st) '.'; position: absolute; left: 0; font-weight: 800; color: var(--blue); }
.mp-steps li.is-tip { margin-left: 0; padding-left: 12px; }
.mp-ar-card { grid-row: 3; align-self: end; } .mp-ar-frame { grid-row: 2; } .mp-ar-arrow { z-index: 1; }
.mp-ar-actions .btn-plain, .mp-ar-actions .button { min-height: 44px; }

/* ---------- Acceso y aparcamiento (como llegar) ---------- */
.ac { margin: 28px 0; display: grid; gap: 18px; }
.ac-h { font-size: 1.5rem; margin: 0; } .ac-h4 { font-size: 1.125rem; margin: 8px 0 0; }
.ac-key { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: #fff4d6; border-left: 6px solid #d89b00; color: #3d2d00; }
.ac-key p { margin: 0; font-size: 1.0625rem; } .ac-key b { display: block; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.ac-key-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #d89b00; color: #fff; }
:root[data-theme='dark'] .ac-key { background: #3a2f10; color: #f6dc9b; } :root[data-theme='contrast'] .ac-key { background: transparent; color: inherit; border-left-color: currentColor; }
:root[data-theme='contrast'] .ac-key-ico { background: transparent; color: inherit; border: 2px solid currentColor; }
.ac-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.ac-mode { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.ac-mode h4 { display: flex; gap: 10px; align-items: center; margin: 0 0 10px; font-size: 1.0625rem; }
.ac-mode h4 .sv-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
.ac-mode h4 .sv-ico .ico { width: 18px; height: 18px; }
.ac-mode ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .9375rem; }
.ac-table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 640px; }
.ac-table th, .ac-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ac-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ac-table small { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; }
.ac-inside { margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--paper); }
.ac-pend { font-size: .875rem; color: var(--muted); } .ac-pend summary { cursor: pointer; font-weight: 700; color: var(--ink); } .ac-pend ul { margin: 8px 0 0; padding-left: 20px; }
.cl-body .ac-key + p { margin: 10px 0 0; }
.mp-lvgroup { flex-wrap: wrap; max-width: 100%; } .mp-levels { min-width: 0; max-width: 100%; }
.mp-stack li, .mp-stack button { min-width: 0; } .mp-stack button { flex-wrap: wrap; } .mp-stack button span { overflow-wrap: anywhere; }
