/* Componentes compartidos de la ronda 3 (se antepone al CSS de cada propuesta) */
:root { --accent: #b3171f; --accent-dark: #7d0d14; --accent-fg: #fff; --accent-text: #a21b1b; --link: #a21b1b; --soft: #fbeaea; --ink: #1b1b1d; --wa: #0f7a3c; --radius: 10px; --maxw: 1800px; --gut: clamp(16px, 3.2vw, 62px); --ft-bg: #8f0f17; --ft-fg: #fff; --focus: #0b57d0; }
html.hc { --bg: #000; --fg: #fff; --muted: #fff; --surface: #000; --surface2: #000; --line: #fff; --accent: #ffe600; --accent-dark: #c9b400; --accent-fg: #000; --accent-text: #ffe600; --link: #ffe600; --soft: #000; --ink: #fff; --wa: #000; --ft-bg: #000; --ft-fg: #fff; --focus: #00e5ff; }
.sec-t { display: flex; align-items: center; gap: 1rem; font-size: clamp(1.5rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.sec-t .ico { width: 1.5em; height: 1.5em; color: var(--accent-text); stroke-width: 1.6; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--accent); padding-bottom: .5rem; margin-bottom: 1.25rem; }
.more3 { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: 0; min-height: 44px; color: var(--accent-text); font-weight: 700; text-decoration: none; cursor: pointer; }
.more3 .ico { transition: transform .3s var(--ease); } .more3:hover .ico { transform: translateX(4px); }
.btn.sm { min-height: 40px; padding: .3rem 1rem; font-size: .9rem; border-radius: 6px; }
.btn.sm .ico { width: 1.1em; height: 1.1em; }
html.hc .btn { color: #000; }
.social { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.social a { display: grid; place-items: center; min-width: 32px; min-height: 32px; text-decoration: none; transition: transform .2s var(--ease); } .social a:hover { transform: translateY(-2px); }
.soc { flex: none; box-sizing: border-box; width: 30px; height: 30px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; } .soc svg { width: 62%; height: 62%; display: block; flex: none; }
.social li { flex: none; display: block; }
.s0 { background: #1877f2; } .s1 { background: linear-gradient(45deg, #f6a21a, #d4207a 55%, #6b3fd1); } .s2 { background: #000; border: 1px solid #555; } .s3 { background: #e00000; } .s4 { background: #17a34a; } .s5 { background: #000; border: 1px solid #555; } .s6 { background: #0a66c2; }
html.hc .soc { background: #fff; color: #000; border: 1px solid #000; }
.wa-pill { display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; padding: .2rem .95rem; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; text-decoration: none; border: 1px solid rgba(255,255,255,.5); transition: transform .2s var(--ease); } .wa-pill:hover { transform: translateY(-1px); }
html.hc .wa-pill { border: 2px solid #fff; }
.gs { display: flex; align-items: stretch; background: #fff; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.12); } html.hc .gs { background: #000; border-color: #fff; }
.gs:focus-within { border-color: var(--focus); }
.gs-f { flex: 1; display: flex; align-items: center; gap: .6rem; padding-inline: 1rem; min-width: 0; } .gs-f input { flex: 1; border: 0; outline: 0; background: transparent; min-height: 52px; min-width: 0; font-size: 1.05rem; } .gs-f input::placeholder { color: var(--muted); opacity: 1; }
.gs-b { border: 0; background: var(--accent); color: var(--accent-fg); font-weight: 800; padding: 0 1.6rem; min-height: 48px; font-size: 1.05rem; transition: filter .2s; } .gs-b:hover { filter: brightness(.9); }
.evt { display: grid; grid-template-columns: 8px 78px minmax(0, 1fr) auto; align-items: center; gap: .9rem 1.1rem; padding: .9rem 1.1rem .9rem .9rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.ebar { align-self: stretch; border-radius: 6px; background: var(--c); min-height: 56px; }
.eday { display: grid; place-items: center; background: var(--soft); border-radius: 8px; padding: .4rem 0; line-height: 1; } html.hc .eday { border: 1px solid #fff; }
.eday b { color: var(--accent-text); font-size: 1.05rem; } .eday strong { font-size: 2.1rem; font-weight: 800; }
.ebody h3 { font-size: 1.1rem; margin: 0 0 .35rem; font-weight: 700; }
.em { display: flex; gap: .45rem; align-items: center; margin: 0; font-size: .85rem; color: var(--muted); } .em .ico { width: 1em; height: 1em; flex: none; } .em + .em { margin-top: .1rem; }
.evbtn { white-space: nowrap; }
.legend3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .45rem 1.5rem; font-size: .85rem; }
.legend3 li { display: flex; align-items: center; gap: .55rem; } .dot3 { width: 13px; height: 13px; border-radius: 50%; background: var(--c); flex: none; } html.hc .dot3 { border: 2px solid #fff; }
.manual { display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.4rem; background: var(--soft); border-radius: 12px; border: 1px solid var(--line); }
.manual > .ico { width: 3rem; height: 3rem; color: var(--accent-text); flex: none; stroke-width: 1.4; } .manual h3 { font-size: 1.15rem; margin: 0 0 .15rem; } .manual p { font-size: .9rem; margin: 0 0 .35rem; color: var(--muted); } .manual a { font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; }
/* pie compartido */
.ftx { background: var(--ft-bg); color: var(--ft-fg); }
.ftx a { color: var(--ft-fg); } .ftx h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.2rem; font-weight: 700; margin: 0 0 1rem; } .ftx h2 .ico { width: 1.7rem; height: 1.7rem; stroke-width: 1.4; }
.ftx p { margin: 0 0 .6rem; font-size: .95rem; } .fi { display: flex; gap: .8rem; align-items: flex-start; } .fi .ico { margin-top: .15rem; flex: none; }
.f-s dl { display: grid; gap: .7rem; margin: 0; font-size: .85rem; } .f-s dl > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; } .f-s dt { font-weight: 700; } .f-s dd { margin: 0; }
.f-l ul li { border-bottom: 1px solid rgba(255,255,255,.55); } .f-l a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; text-decoration: none; font-size: 1rem; transition: padding .3s var(--ease); } .f-l a:hover { padding-left: .5rem; }
.libro { display: flex; align-items: center; gap: .9rem; background: #fff; color: #1b1b1d !important; border-radius: 12px; padding: .8rem 1.1rem; text-decoration: none; margin-bottom: .6rem; } .libro > .ico:first-child { width: 2.8rem; height: 2.8rem; color: #b3171f; stroke-width: 1.4; } .libro span { display: grid; flex: 1; line-height: 1.15; } .libro small { font-size: .95rem; } .libro strong { font-size: 1.25rem; } .libro em { justify-self: start; background: #b3171f; color: #fff; font-style: normal; font-size: .65rem; font-weight: 800; letter-spacing: .12em; padding: .1rem .6rem; border-radius: 999px; margin-top: .25rem; } .libro > .ico:last-child { width: 2rem; height: 2rem; background: #b3171f; color: #fff; border-radius: 50%; padding: .4rem; }
html.hc .libro { border: 2px solid #fff; background: #000; color: #fff !important; } html.hc .libro > .ico { color: #ffe600 !important; } html.hc .libro em { background: #ffe600; color: #000; } html.hc .libro > .ico:last-child { background: #ffe600; color: #000 !important; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; } .mini a { display: flex; align-items: center; gap: .6rem; min-height: 56px; padding: .4rem .7rem; background: #fff; color: #1b1b1d !important; border-radius: 10px; text-decoration: none; font-size: .78rem; font-weight: 700; line-height: 1.15; } .mini a > .ico:first-child { width: 1.7rem; height: 1.7rem; color: #b3171f; flex: none; } .mini a span { flex: 1; } .mini a > .ico:last-child { width: 1.3rem; height: 1.3rem; background: #b3171f; color: #fff; border-radius: 50%; padding: .25rem; flex: none; }
html.hc .mini a { background: #000; color: #fff !important; border: 2px solid #fff; } html.hc .mini a > .ico { color: #ffe600 !important; background: transparent !important; }
dialog.wide { width: min(940px, calc(100vw - 24px)); } kbd { font: inherit; font-size: .85em; border: 1px solid var(--line); border-radius: 4px; padding: 0 .4rem; }
.a11y.big button { min-width: 52px; height: 52px; font-size: 1.1rem; }
@media (max-width: 760px) { .evt { grid-template-columns: 8px 64px minmax(0, 1fr); } .evt .evbtn { grid-column: 2 / -1; justify-self: start; } .ebar { min-height: 48px; } .f-s dl > div { grid-template-columns: 1fr; gap: .1rem; } .manual { flex-direction: column; align-items: flex-start; } }
/* Accesos directos del pie: las palabras no se parten por la mitad */
.mini a, .mini a * { overflow-wrap: normal !important; word-break: normal; hyphens: none; }
.mini a { gap: .45rem; padding: .4rem .55rem; font-size: .74rem; }
.mini a > .ico:first-child { width: 1.5rem; height: 1.5rem; }
.mini a span { min-width: 0; }
/* Franja compacta de acceso al Centro de Estudios Constitucionales */
.cecbar { display: flex; align-items: center; gap: .9rem; margin-top: 1.25rem; padding: .55rem .6rem .55rem 1rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; }
.cecbar > .ico { width: 1.9rem; height: 1.9rem; flex: none; color: var(--accent-text); }
.cecbar p { margin: 0; min-width: 0; flex: 1; font-size: .9rem; color: var(--muted); line-height: 1.3; }
.cecbar p strong { display: block; color: var(--fg); font-size: 1rem; }
.cecbar .btn { flex: none; min-height: 40px; padding: .4rem 1.1rem; font-size: .88rem; white-space: nowrap; }
html.hc .cecbar { border-left-color: #ffe600; }
@media (max-width: 640px) { .cecbar { flex-wrap: wrap; } .cecbar p { flex-basis: calc(100% - 3rem); } .cecbar .btn { width: 100%; justify-content: center; } }
/* Adaptación a teléfonos y tablets: objetivos táctiles de 44 px y tamaños mínimos de texto */
.manual a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; }
.libro em { font-size: .72rem; }
@media (max-width: 1024px) {
  .vall, .vt, .lbtn, a.btn.red-b, a.g3, .wa3, .brand, .cal-chip, .head-tools button, .head-tools a { min-height: 44px; display: inline-flex; align-items: center; }
  .cal-chip { width: 100%; }
  .tinfo, .tinfo *, .db, .db *, .ss, .sm, .se-s, p.se-s, a.btn.red-b, .btn.sm { font-size: max(.75rem, 12px) !important; }
}
@media (max-width: 600px) {
  /* Retícula de dos columnas que podía ensanchar la página: columnas que pueden encogerse */
  .enl-g, .e5g, .circ { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enl-g a, .e5g a { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 1024px) {
  .social a, .soc4 a, .tvb a:not(.btn) { position: relative; }
  .social a::after, .soc4 a::after, .tvb a:not(.btn)::after { content: ""; position: absolute; inset: -7px; }
  .chipq, .btn.sm, .cal-head button { min-height: 44px; }
  .cal-head button { min-width: 44px; }
  .fs button { min-width: 40px; min-height: 40px; }
}
/* Reflujo a 320 px (WCAG 1.4.10): ninguna retícula ensancha la página */
@media (max-width: 600px) {
  .f2-in, .f4-top, .f5-in, .ft3-in { grid-template-columns: minmax(0, 1fr) !important; }
  .f2-in > *, .f4-top > *, .f5-in > *, .ft3-in > *, .f-h, .f-l, .f-c1 { min-width: 0; }
  .f-h *, .f-l *, .f5a *, .f-c1 * { overflow-wrap: anywhere; }
  .e5g, .enl-g { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .infos { grid-template-columns: minmax(0, 1fr) !important; }
  .infos li { grid-column: auto !important; }
  .pillh { flex-wrap: wrap; row-gap: .6rem; }
  .vt { max-width: 100%; }
}
@media (max-width: 600px) { .mini { grid-template-columns: minmax(0, 1fr) !important; } .mini li, .mini a { min-width: 0; } }
/* Vista previa con imagen (comunicado, noticias): imagen a la izquierda y texto a la derecha, dimensionados a la ventana para evitar el scroll vertical */
#m-card .m-body img[data-m-img] { max-height: min(46vh, 520px); object-fit: contain; background: #f3f3f3; }
@media (min-width: 761px) {
  #m-card:has(img[data-m-img]:not([hidden])) { width: min(1040px, calc(100vw - 24px)); }
  #m-card .m-body:has(img[data-m-img]:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 1.6rem; align-items: start; }
  #m-card .m-body:has(img[data-m-img]:not([hidden])) > * { grid-column: 2; }
  #m-card .m-body:has(img[data-m-img]:not([hidden])) > img[data-m-img] { grid-column: 1; grid-row: 1 / span 4; width: 100%; height: auto; max-height: calc(100vh - 150px); margin: 0; }
}

/* Boceto 4 */
:root { --bg: #fff; --fg: #17181c; --muted: #4c4f57; --line: #d8d8dc; --surface: #f4f4f6; --surface2: #e9e9ed; --serif: "Times New Roman", Georgia, serif; --maxw: 1500px; --gut: clamp(16px, 4.4vw, 90px); --ft-bg: #171d26; --navy: #1a2230; }
html.hc { --bg: #000; --fg: #fff; --line: #fff; --surface: #000; --surface2: #000; --ft-bg: #000; --navy: #000; }
.hero4 { position: relative; color: #fff; background: #a3121b; padding-bottom: clamp(120px, 12vw, 200px); overflow: hidden; } html.hc .hero4 { background: #000; border-bottom: 2px solid #fff; }
.hero4-bg { position: absolute; inset: 0; } .hero4-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 45%; opacity: .55; mix-blend-mode: multiply; } .hero4-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(150,12,20,.35), rgba(150,12,20,.2) 50%, rgba(255,255,255,0) 100%); }
html.hc .hero4-bg img { mix-blend-mode: normal; opacity: .3; }
.hero4-in { position: relative; }
.top4 { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; } .logo { width: clamp(210px, 22vw, 400px);  } html.hc .logo {  background: transparent; padding: 0; }
.top4-r { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.acc4 { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #b3171f; border: 0; display: grid; place-items: center; } .acc4 .ico { width: 1.7rem; height: 1.7rem; }
.pb { display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; padding: 0 1.1rem; background: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; border: 2px solid #fff; transition: transform .2s var(--ease), background .2s, color .2s; } .pb.tr { color: #1d4ed8; } .pb.mp { color: #a3121b; } .pb:hover { transform: translateY(-1px); } .pb .ico:last-child { width: 1rem; height: 1rem; }
html.hc .pb, html.hc .acc4 { background: #000; color: #fff !important; }
.hero4-t { padding-top: clamp(40px, 6vw, 110px); display: grid; gap: 1.2rem; max-width: 760px; }
h1 { font-size: clamp(2.6rem, 5.6vw, 6rem); line-height: .98; font-weight: 800; letter-spacing: -.035em; margin: 0; } .hero4-t > p { font-size: clamp(1.05rem, 1.5vw, 1.55rem); margin: 0; line-height: 1.25; }
.hero4 .gs { max-width: 640px; border-radius: 0; border: 0; box-shadow: none; background: #fff; color: #222; } .hero4 .gs-f input { color: #222; min-height: 58px; } .hero4 .gs-f { padding-inline: 1.2rem; } html.hc .hero4 .gs { background: #000; color: #fff; border: 2px solid #fff; } html.hc .hero4 .gs-f input { color: #fff; }
.tiles4 { position: relative; margin-top: calc(clamp(96px, 9.5vw, 170px) * -1); z-index: 3; } .tiles4 ul { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; max-width: 1200px; margin-inline: auto; background: #fafafa; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0,0,0,.18); } html.hc .tiles4 ul { background: #000; border: 2px solid #fff; }
.tl4 { position: relative; display: grid; gap: .5rem; justify-items: center; align-content: start; text-align: center; padding: 1.8rem 1.1rem 4.4rem; min-height: 270px; height: 100%; color: var(--fg); text-decoration: none; border-right: 1px solid var(--line); transition: background .25s; } .tl4:hover { background: #fff; } li:last-child > .tl4 { border-right: 0; }
.tl4 > .ico { width: 3.6rem; height: 3.6rem; color: var(--accent-text); stroke-width: 1.2; } .tl4 strong { font-size: clamp(1.1rem, 1.45vw, 1.5rem); line-height: 1.05; } .tl4 > span { font-size: clamp(.82rem, 1vw, 1rem); color: var(--muted); line-height: 1.25; }
.tl4 .arr { position: absolute; bottom: 1.3rem; left: 0; right: 0; margin-inline: auto; width: 58px; height: 42px; overflow: hidden; background: var(--surface2); color: var(--accent-text); display: grid; place-items: center; transition: transform .25s var(--ease); } .tl4:hover .arr { transform: translateX(4px); } html.hc .tl4 .arr { background: #000; border: 1px solid #fff; }
.tl4.on { background: linear-gradient(rgba(20,24,34,.88), rgba(20,24,34,.94)), #1a2230; color: #fff; transform: translateY(-14px); min-height: 306px; box-shadow: 0 14px 30px rgba(0,0,0,.3); } .tl4.on .ico { color: #fff; } .tl4.on > span { color: #e7e9ee; } .tl4.on .arr { background: var(--accent); color: #fff; } html.hc .tl4.on { background: #000; border: 2px solid #ffe600; } html.hc .tl4.on .arr { background: #ffe600; color: #000; }
.bn4 { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(14px, 1.6vw, 30px); margin-top: 3rem; }
.b-tv, .b-com { position: relative; min-height: clamp(300px, 24vw, 440px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.2); } .b-tv img, .b-com img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .b-tv::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(100,10,16,.75), rgba(30,10,20,.85)); z-index: 1; } .b-com::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(14,24,48,.78), rgba(14,24,48,.9)); z-index: 1; } html.hc .b-tv::before, html.hc .b-com::before { background: rgba(0,0,0,.85); }
.bt { position: relative; z-index: 2; display: grid; gap: .8rem; justify-items: center; padding: 1.6rem 2rem; max-width: 600px; } .bh { display: flex; align-items: center; gap: .8rem; font-weight: 700; text-align: left; line-height: 1.1; margin: 0; font-size: .95rem; } .bh .ico { width: 2.6rem; height: 2.6rem; stroke-width: 1.3; }
.ev { display: flex; align-items: center; gap: .8rem; margin: 0; } .ev i { width: 70px; height: 2px; background: #e11d2a; } .ev b { background: #fff; color: #b3171f; border-radius: 999px; padding: .15rem 1rem; }
.bt h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 3.2rem); font-weight: 700; line-height: 1.02; margin: 0; } .bt p { margin: 0; font-size: clamp(.9rem, 1.1vw, 1.1rem); line-height: 1.3; }
.btn.red4 { background: var(--accent); border-color: var(--accent); border-radius: 999px; padding: .5rem 1.6rem; } .soc4 { display: flex; gap: .7rem; }
.blk4 { margin-top: clamp(3rem, 5vw, 5rem); } .kick { display: flex; align-items: center; gap: .9rem; color: var(--accent-text); font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.6rem); margin: 0 0 .1rem; } .kick::before { content: ""; width: 48px; height: 3px; background: var(--accent); }
.h4 { font-size: clamp(1.9rem, 3.6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 1.4rem; }
.mg7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(8px, 1vw, 22px); padding-bottom: 1.5rem; } .mg { position: relative; background: #7b0d14; } .mg img { width: 100%; aspect-ratio: 240/298; object-fit: cover; display: block; } .mg p { position: relative; margin: -2.8rem .5rem -1.2rem; background: #fff; color: #222; text-align: center; padding: .8rem .4rem .9rem; box-shadow: 0 8px 18px rgba(0,0,0,.2); display: grid; gap: .25rem; } .mg strong { font-family: var(--serif); font-size: clamp(.9rem, 1.15vw, 1.2rem); line-height: 1.08; } .mg span { font-size: .85rem; color: var(--muted); } html.hc .mg p { background: #000; color: #fff; border: 1px solid #fff; } html.hc .mg { background: #000; }
.hh { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; } .vall { background: none; border: 0; border-bottom: 3px solid var(--accent); padding: 0 0 .3rem; color: var(--accent-text); font-weight: 800; font-size: clamp(1rem, 1.4vw, 1.5rem); text-decoration: none; cursor: pointer; margin-bottom: 1.6rem; }
.ncar4 { --per: 1; } @media (min-width: 640px) { .ncar4 { --per: 2; } } @media (min-width: 1000px) { .ncar4 { --per: 3; } } .ncar4 .c-viewport { margin-inline: -14px; padding: 8px 0 20px; } .nc4 { padding: 0 14px; height: 100%; display: grid; }
.nc4 { grid-template-rows: auto 1fr; } .ph4 { position: relative; box-shadow: 0 10px 24px rgba(0,0,0,.15); } .ph4 img { width: 100%; aspect-ratio: 16/10; object-fit: cover; } .nb4 { background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.15); padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: .7rem; align-content: start; } html.hc .nb4 { background: #000; border: 1px solid #fff; }
.db { position: absolute; left: 0; top: 1rem; display: flex; align-items: center; font-size: 1.1rem; z-index: 1; } .db b { background: var(--accent); color: var(--accent-fg); padding: .4rem .7rem; font-weight: 700; } .db i { font-style: normal; background: #fff; color: #b3171f; padding: .4rem .8rem; font-weight: 600; } html.hc .db i { background: #000; color: #ffe600; }
.cat4 { color: var(--accent-text); font-weight: 700; font-size: 1.05rem; margin: 0; } .nb4 h3 { font-size: clamp(1.05rem, 1.3vw, 1.35rem); line-height: 1.22; margin: 0; font-weight: 800; } .nb4 h3 a:hover { text-decoration: underline; text-underline-offset: .15em; }
.lbtn { justify-self: start; border: 1px solid var(--accent); color: var(--accent-text); text-decoration: none; padding: .35rem .8rem; font-size: .85rem; transition: background .2s, color .2s; } .lbtn:hover { background: var(--accent); color: var(--accent-fg); }
.ncar4 .c-ctrl { justify-content: flex-end; margin-top: -.4rem; }
.sub4 { font-size: clamp(1rem, 1.3vw, 1.4rem); margin: -.6rem 0 1.4rem; }
.agtools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; } .sels { display: flex; gap: .8rem; flex-wrap: wrap; } .sels select { min-height: 48px; padding: 0 2.4rem 0 1rem; border: 1px solid var(--line); background: var(--bg); border-radius: 4px; font-weight: 600; box-shadow: 0 2px 4px rgba(0,0,0,.06); }
.ag4-wrap { }
.tabs[data-tabs] { position: relative; } .tabs > [role="tablist"] { position: absolute; right: 0; top: -62px; gap: 0; } .tabs > [role="tablist"] [role="tab"] { border-radius: 0; min-height: 44px; padding: 0 1.4rem; border: 1px solid var(--line); background: var(--bg); } .tabs > [role="tablist"] [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); } html.hc .tabs > [role="tablist"] [role="tab"][aria-selected="true"] { background: #ffe600; color: #000; }
.leg4 { margin-top: 1.2rem; padding: 1.1rem 1.3rem; background: var(--surface); border-radius: 10px; } .evs { display: grid; gap: .8rem; }
.svcs input { width: 100%; min-height: 70px; padding: 0 1.4rem; font-size: clamp(1.1rem, 1.5vw, 1.6rem); border: 0; background: var(--bg); box-shadow: 0 3px 12px rgba(0,0,0,.12); outline: 2px solid transparent; } .svcs input:focus { outline-color: var(--focus); } html.hc .svcs input { border: 2px solid #fff; }
.tb4 { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; } .tb4 [role="tablist"] { gap: 10px; } .tb4 [role="tab"] { border-radius: 0; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.12); min-height: 58px; padding: 0 1.5rem; font-size: clamp(1rem, 1.3vw, 1.4rem); background: var(--bg); } .tb4 [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-fg); } html.hc .tb4 [role="tab"] { border: 2px solid #fff; } html.hc .tb4 [role="tab"][aria-selected="true"] { background: #ffe600; color: #000; }
.clr { background: none; border: 0; color: var(--muted); font-size: 1.1rem; min-height: 44px; text-decoration: underline; text-underline-offset: .2em; } .cnt { margin: 1rem 0 .4rem; color: var(--muted); font-size: 1.15rem; }
.svl { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(30px, 6vw, 110px); } .svl li { border-bottom: 1px solid var(--line); } .svl a { display: flex; align-items: center; gap: 1.2rem; min-height: 88px; padding: .6rem .3rem; color: var(--fg); text-decoration: none; font-weight: 800; font-size: clamp(1.15rem, 1.8vw, 2rem); letter-spacing: -.02em; line-height: 1.02; transition: padding .3s var(--ease), color .2s; } .svl a:hover { padding-left: .8rem; color: var(--accent-text); } .svl a > .ico:first-child { width: 3.4rem; height: 3.4rem; color: var(--accent-text); stroke-width: 1.2; flex: none; } .svl a span { flex: 1; } .svl .ar { color: #8c8d93; } html.hc .svl .ar { color: #fff; }
.foot4 { margin-top: clamp(3rem, 5vw, 5rem); position: relative; } .f4-in { position: relative; padding-top: 3.2rem; padding-bottom: 1.2rem; } .crest { position: absolute; left: calc(var(--gut) - 24px); top: -48px; width: 150px; height: 150px; border-radius: 50%; background: #151a22; display: grid; place-items: center; padding: 1.2rem; border: 1px solid rgba(255,255,255,.1); } .crest .logo-w { width: 100%;  } html.hc .crest { background: #000; border: 2px solid #fff; }
.f4-top { display: grid; grid-template-columns: 1.4fr 1fr 1.25fr; gap: clamp(24px, 3vw, 60px); padding-left: clamp(0px, 12vw, 200px); } .f-h .fi span, .f-h p { color: #e8eaee; } .ftx h2 { border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: .7rem; } .f-l ul li { border-bottom: 1px solid rgba(255,255,255,.4); }
.foot4 .mini a { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.7); border-radius: 4px; } .foot4 .mini a > .ico { color: #fff; } .foot4 .mini a > .ico:last-child { background: transparent; color: #fff; padding: 0; width: 1.1rem; height: 1.1rem; }
.f4-sedes { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.35); padding-top: 1rem; } .f4-sedes .f-s h2 { border: 0; margin-bottom: .6rem; } .row4 { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0 !important; } .row4 > div { display: block !important; padding: 0 1.2rem; border-left: 1px solid rgba(255,255,255,.35); } .row4 > div:first-child { border: 0; padding-left: 0; } .row4 dt { font-size: 1.1rem; margin-bottom: .4rem; }
.f4-bar { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.8rem; } .slogan { flex: 1; margin: 0; background: #d1111c; padding: .9rem 1.5rem; text-align: center; font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.7rem); } html.hc .slogan { background: #000; border: 2px solid #fff; }
.f4-bot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.35); margin-top: 1.2rem; padding-top: 1rem; font-weight: 800; } .top-b { width: 48px; height: 48px; background: var(--accent); color: var(--accent-fg); border: 0; display: grid; place-items: center; } html.hc .top-b { background: #ffe600; color: #000; }
.wa-fab { position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); width: 48px; height: 48px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; z-index: 50; box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.9); transition: transform .25s var(--ease), box-shadow .25s; text-decoration: none; } .wa-fab:hover { transform: scale(1.06); } .wa-fab .ico { width: 1.7rem; height: 1.7rem; stroke-width: 1.9; } html.hc .wa-fab { background: #000; border: 2px solid #fff; }
@media (max-width: 1100px) { .tiles4 ul { grid-template-columns: repeat(3, 1fr); } .tl4 { min-height: 230px; border-bottom: 1px solid var(--line); } .tl4.on { transform: none; } .mg7 { grid-template-columns: repeat(4, 1fr); row-gap: 1.6rem; } .bn4 { grid-template-columns: 1fr; } .calendar.c4 { grid-template-columns: minmax(0, 1fr); } .calendar.c4 .cal-list, .calendar.c4 .cal-act { grid-column: 1; grid-row: auto; } .calendar.c4 .cal-act { margin-top: 0; } .f4-top { grid-template-columns: 1fr 1fr; padding-left: 0; } .f4-top .f-a { grid-column: 1 / -1; } .crest { display: none; } .f4-in { padding-top: 2rem; } .row4 { grid-template-columns: 1fr 1fr; row-gap: 1rem !important; } }
@media (max-width: 720px) { .tiles4 ul { grid-template-columns: 1fr 1fr; } .tl4 { min-height: 200px; padding-bottom: 3.8rem; } .mg7 { grid-template-columns: repeat(2, 1fr); } .tabs > [role="tablist"] { position: static; justify-content: flex-end; margin-bottom: .6rem; } .svl { grid-template-columns: 1fr; } .f4-top { grid-template-columns: 1fr; } .f4-bar { flex-direction: column; align-items: stretch; } .row4 { grid-template-columns: 1fr; } .hero4-t { padding-top: 2rem; } .top4-r .pb span:not(.sr-only) { font-size: .8rem; } .c4 .cal-day { min-height: 52px; padding: .2rem .3rem; font-size: .9rem; } }
@media (max-width: 460px) { .tiles4 ul { grid-template-columns: 1fr; } .f4-bot { flex-wrap: wrap; } }

/* Banner en movimiento: fondo de video propio (fotos oficiales en tono rojo); si existe video/banner.mp4 se usa en su lugar */
.hero4-bg { background: #7d0d14; overflow: hidden; }
.hero4-bg::after { z-index: 2; background: linear-gradient(90deg, rgba(100,7,14,.85) 0%, rgba(150,12,20,.58) 52%, rgba(150,12,20,.38) 100%); mix-blend-mode: multiply; }
.hv-v, .reel { position: absolute; inset: 0; width: 100%; height: 100%; } .hv-v { object-fit: cover; }
.hero4-bg .sc img { opacity: 1; mix-blend-mode: normal; object-position: center; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); }
.sc { position: absolute; inset: 0; opacity: 0; --d: 0s; animation: hv-sc 24s var(--d) infinite; overflow: hidden; }
.sc.s2 { --d: 6s; } .sc.s3 { --d: 12s; } .sc.s4 { --d: 18s; }
.hero4-bg .sc img { animation: hv-kb 24s var(--d) infinite; transform-origin: 62% 40%; }
.hero4-bg .sc.s2 img { object-position: 50% 22%; transform-origin: 60% 16%; } .hero4-bg .sc.s3 img { transform-origin: 40% 55%; }
.sc.s4 { background: radial-gradient(circle at 70% 45%, #b3171f, #5f0a10 70%); display: grid; place-items: center; } .sc.s4 svg { width: min(38vw, 520px); margin-left: 34%; }
.sc.s4 path, .sc.s4 circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hv-draw 24s var(--d) infinite; }
@keyframes hv-sc { 0% { opacity: 0; } 3% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
@keyframes hv-kb { 0% { transform: scale(1.04) translate(0, 0); } 29% { transform: scale(1.24) translate(-2.5%, -1.5%); } 100% { transform: scale(1.24) translate(-2.5%, -1.5%); } }
@keyframes hv-draw { 0% { stroke-dashoffset: 1; } 15% { stroke-dashoffset: 0; } 29% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
.hero4.paused .sc, .hero4.paused .sc img, .hero4.paused .sc path, .hero4.paused .sc circle { animation-play-state: paused !important; }
.hero4.has-video .reel { display: none; }
.hv-p { position: absolute; right: var(--gut); bottom: 1rem; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; padding: 0; transition: background .2s, color .2s; } .hv-p:hover { background: #fff; color: #a3121b; }
.hv-p .i-play { display: none; } .hv-p[aria-pressed="true"] .i-pause { display: none; } .hv-p[aria-pressed="true"] .i-play { display: block; }
html.hc .hero4-bg::after { background: #000; opacity: .55; mix-blend-mode: normal; } html.hc .hero4-bg .sc img { filter: grayscale(1); } html.hc .hv-p { border-color: #ffe600; color: #ffe600; }
@media (prefers-reduced-motion: reduce) { .sc.s1 { opacity: 1 !important; } .sc.s4 path, .sc.s4 circle { stroke-dashoffset: 0; } }
@media (max-width: 720px) { .sc.s4 svg { margin-left: 0; width: 60vw; } .hero4-bg::after { background: linear-gradient(rgba(100,7,14,.8), rgba(150,12,20,.6)); } }
.hero4-bg { z-index: 0; } .hero4-in { z-index: 1; }

.tl4 .arr .ico { width: 1.6rem; height: 1.6rem; stroke-width: 2; flex: none; }
.tl4.on > .ico { color: #fff; }

.wa-fab:hover { transform: scale(1.07); }
html.hc .wa-fab { background: #000; box-shadow: 0 0 0 3px #ffe600; color: #ffe600; }
@media (max-width: 720px) { .wa-fab { width: 44px; height: 44px; } body.x4 { padding-bottom: 0; } }
/* Magistrados: todas las tarjetas con la misma altura, aunque un nombre ocupe más líneas */
.mg7 { align-items: stretch; } .mg { display: flex; flex-direction: column; } .mg img { flex: none; } .mg p { flex: 1; align-content: start; }

/* Agenda: calendario con etiquetas por día, panel «Día seleccionado» y botones (boceto 4) */
.tabpanel { padding: 0; margin-top: 0; }
.calendar.c4 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.c4-main { min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.08); padding: 1rem 1rem 1.1rem; }
.c4 .cal-head { justify-content: flex-start; gap: .6rem; margin-bottom: .8rem; }
.c4 .cal-head button { border-radius: 6px; height: 42px; min-width: 42px; border: 1px solid var(--line); background: var(--bg); }
.c4 .cal-head button:hover { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.c4 .cal-title { font-size: 1.5rem; font-weight: 700; margin: 0 auto 0 .6rem; }
.c4 .cal-head button.txt { padding: 0 1.1rem; font-weight: 600; width: auto; border-radius: 6px; }
.c4 .cal-grid table { border-spacing: 0; border-collapse: collapse; }
.c4 .cal-grid th { background: var(--surface2); padding: .5rem 0; border: 1px solid var(--line); font-size: .85rem; color: var(--fg); }
html.hc .c4 .cal-grid th { background: #000; }
.c4 .cal-grid td { padding: 0; vertical-align: top; }
.c4 .cal-day { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .25rem; width: 100%; height: 100%; aspect-ratio: auto; min-height: 88px; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; font-size: 1.05rem; }
.c4 .cal-day.has-ev { background: transparent; }
.c4 .cal-day:hover { background: var(--surface); border-color: var(--line); }
.c4 .cal-day.is-sel { background: #fbe9ea; color: var(--fg); border-color: var(--line); }
html.hc .c4 .cal-day.is-sel { background: #000; outline: 2px solid #ffe600; outline-offset: -3px; }
.c4 .cal-n { font-weight: 700; }
.c4 .cal-ev-l { display: flex; align-items: center; gap: .3rem; font-size: .72rem; line-height: 1.15; font-weight: 500; color: var(--fg); overflow-wrap: break-word; max-width: 100%; }
.c4 .cal-ev-l i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.guia { margin: 1rem 0 0; } .guia a { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); text-decoration: none; } .guia .ico:first-child { color: var(--accent-text); width: 1.8rem; height: 1.8rem; flex: none; } .guia strong { flex: 1; font-size: 1rem; } .guia span { color: var(--accent-text); font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; white-space: nowrap; } .guia a:hover { border-color: var(--accent); }
.c4-side { display: grid; gap: .8rem; align-content: start; min-width: 0; }
.c4 .cal-list { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.08); padding: 1.3rem 1.4rem 1.2rem; }
.cal-kick { color: var(--accent-text); font-weight: 700; font-size: .8rem; letter-spacing: .04em; margin: 0 0 .15rem; }
.c4 h4.cal-lead { font-size: clamp(1.3rem, 1.8vw, 1.7rem); font-weight: 700; margin: 0 0 .7rem; line-height: 1.15; }
.cal-badge { display: inline-block; background: #fbdcdc; color: #a3121b; padding: .25rem .8rem; border-radius: 4px; font-weight: 600; font-size: .95rem; margin: 0 0 1rem; } html.hc .cal-badge { background: #ffe600; color: #000; }
.c4 .cal-ev { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: .8rem; }
.c4 .cal-ev .cal-evt { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 700; font-size: .95rem; color: var(--fg); } .c4 .cal-ev .cal-evt i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; }
.c4 .cal-ev h5 { font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 700; margin: .35rem 0 .7rem; line-height: 1.2; }
.cal-evm { display: grid; gap: .4rem; margin: 0; color: var(--muted); font-size: .95rem; } .cal-evm span { padding-left: 1.7rem; background: no-repeat left center / 1.15rem; }
.cal-evm span:nth-child(1) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c4f57' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.cal-evm span:nth-child(2) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c4f57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6 7-11a7 7 0 0 0-14 0c0 5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.cal-evm span:nth-child(3) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c4f57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-5 9 5M5.5 10v7M9.5 10v7M14.5 10v7M18.5 10v7M3 21h18M4 17.5h16'/%3E%3C/svg%3E"); }
html.hc .cal-evm span { filter: invert(1); }
.cal-prog { margin: .8rem 0 0; padding-top: .7rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.cal-sample { display: inline-block; margin: .6rem 0 0; padding: .1rem .6rem; border: 1px dashed var(--muted); border-radius: 999px; font-size: .75rem; color: var(--muted); }
.cal-act { display: grid; gap: .6rem; } .hint { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .9rem; margin: .3rem 0 0; } .hint .ico { width: 1.1rem; height: 1.1rem; flex: none; }
.btn.full { width: 100%; border-radius: 6px; min-height: 52px; } .btn.full.out { background: transparent; color: var(--accent-text); border-color: var(--line); } .btn.full.out:hover { border-color: var(--accent); filter: none; }
@media (max-width: 1100px) { .calendar.c4 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .c4 .cal-day { min-height: 56px; padding: .25rem .3rem; font-size: .9rem; } .c4 .cal-ev-l { font-size: 0; gap: 0; } .c4 .cal-ev-l i { margin-right: 3px; } .c4 .cal-day { flex-direction: column; } .c4-main { padding: .7rem; } .c4 .cal-title { font-size: 1.2rem; } .guia span { white-space: normal; } }
/* Panel derecho = una sola tarjeta, con el mismo alto que la del calendario */
.calendar.c4 { align-items: stretch; }
.c4-side { display: flex; flex-direction: column; gap: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.08); padding: 1.3rem 1.4rem 1.3rem; min-width: 0; }
.c4 .c4-side .cal-list { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; flex: none; }
.c4-side .cal-act { margin-top: auto; }
/* Redes sociales en blanco (sin colores de marca) */
body.x4 .soc { background: transparent; border: 0; color: #fff; width: 34px; height: 34px; }
body.x4 .soc svg { width: 78%; height: 78%; }
body.x4 .social a, body.x4 .soc4 a { min-width: 40px; min-height: 40px; }

.crest { padding: 1.1rem; } .crest .logo-w { width: 100%; height: 100%; object-fit: contain; }
/* ===== Recursos del PSB (boceto 4) ===== */
:root { --accent: #A31915; --accent-dark: #7d1210; --accent-text: #A31915; }
.hero4-bg { background: #7C252B; }
.hero4-bg img { opacity: 1; mix-blend-mode: normal; }
.hero4-bg::after { background: linear-gradient(90deg, rgba(29,36,42,.55), rgba(163,25,21,.0) 35%, rgba(163,25,21,0) 70%, rgba(29,36,42,.45)), linear-gradient(rgba(163,25,21,.86), rgba(163,25,21,.86)); }
html.hc .hero4-bg::after { background: rgba(0,0,0,.7); }
.tl4 .ti { width: 72px; height: 72px; object-fit: contain; } html.hc .tl4 .ti { filter: brightness(0) invert(1) !important; }
.tl4.on { background: #131D2A; }
.tl4 .arr { background: #FCE5E6; } html.hc .tl4 .arr { background: #000; }
.tl4.on .arr { background: #E90A0A; }
.red4, .btn.red4 { background: #A31915; border-color: #A31915; }
footer.ftx, .foot4 { --ft-bg: #1C2429; }
html.hc footer.ftx { --ft-bg: #000; }
/* Efecto de las tarjetas de navegación: al pasar el puntero o enfocar, igual que «Inicio» (fondo #131D2A, se eleva y se agranda) */
.tl4 { transition: background .28s var(--ease), color .28s var(--ease), transform .28s var(--ease), min-height .28s var(--ease), box-shadow .28s var(--ease); }
.tl4 .ti { transition: filter .28s var(--ease); }
.tl4:hover, .tl4:focus-visible { background: #131D2A; color: #fff; transform: translateY(-14px); min-height: 306px; box-shadow: 0 14px 30px rgba(0,0,0,.3); z-index: 2; }
.tl4:hover > span, .tl4:focus-visible > span { color: #e7e9ee; }
.tl4:hover .ti, .tl4:focus-visible .ti { filter: brightness(0) invert(1); }
.tl4:hover .arr, .tl4:focus-visible .arr { background: #E90A0A; color: #fff; transform: none; }
.tl4:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
html.hc .tl4:hover, html.hc .tl4:focus-visible { background: #000; outline: 2px solid #ffe600; }
html.hc .tl4:hover .arr { background: #ffe600; color: #000; }
@media (prefers-reduced-motion: reduce) { .tl4, .tl4 .ti { transition: none; } }
@media (hover: none) { .tl4:hover:not(.on):not(:focus-visible) { transform: none; min-height: 270px; background: transparent; color: var(--fg); box-shadow: none; } .tl4:hover:not(.on):not(:focus-visible) .ti { filter: none; } }
/* «Inicio» arranca desactivada (blanca) como las demás; solo se activa al pasar el mouse o enfocar */
.tl4.on:not(:hover):not(:focus-visible) { background: transparent; color: var(--fg); transform: none; min-height: 270px; box-shadow: none; }
.tl4.on:not(:hover):not(:focus-visible) > span { color: var(--muted); }
.tl4.on:not(:hover):not(:focus-visible) .arr { background: #FCE5E6; color: var(--accent-text); }
.tl4.on .ico { color: inherit; }
html.hc .tl4.on:not(:hover):not(:focus-visible) { background: #000; border: 0; }
html.hc .tl4.on:not(:hover):not(:focus-visible) .arr { background: #000; color: #fff; border: 1px solid #fff; }
/* Sin línea blanca a los lados de la tarjeta activa */
.tl4:hover, .tl4:focus-visible { border-right-color: #131D2A; box-shadow: 0 0 0 1px #131D2A, 0 14px 30px rgba(0,0,0,.3); }
html.hc .tl4:hover, html.hc .tl4:focus-visible { border-right-color: #ffe600; box-shadow: 0 0 0 1px #ffe600; }
/* Últimas noticias: carrusel con rotación automática, flechas laterales y puntos */
.ncar4 { position: relative; }
.ncar4 .c-ctrl { justify-content: center; align-items: center; gap: .8rem; margin-top: .2rem; }
.ncar4 .c-ctrl [data-prev], .ncar4 .c-ctrl [data-next] { position: absolute; top: 38%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; border: 2px solid #fff; box-shadow: 0 3px 12px rgba(0,0,0,.28); z-index: 3; display: grid; place-items: center; transition: background .2s, transform .2s var(--ease); }
.ncar4 .c-ctrl [data-prev] { left: -22px; } .ncar4 .c-ctrl [data-next] { right: -22px; }
.ncar4 .c-ctrl [data-prev]:hover, .ncar4 .c-ctrl [data-next]:hover { background: var(--accent-dark); transform: translateY(-50%) scale(1.07); }
.ncar4 .c-dots { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.ncar4 .c-dots button { width: 10px; height: 10px; min-width: 0; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: #c3c3c8; } .ncar4 .c-dots button[aria-current="true"] { background: var(--accent); width: 26px; border-radius: 6px; }
.ncar4 .c-dots button { position: relative; } .ncar4 .c-dots button::after { content: ""; position: absolute; inset: -10px -4px; }
html.hc .ncar4 .c-dots button { background: #888; } html.hc .ncar4 .c-ctrl [data-prev], html.hc .ncar4 .c-ctrl [data-next] { background: #ffe600; color: #000; }
@media (max-width: 700px) { .ncar4 .c-ctrl [data-prev] { left: -6px; } .ncar4 .c-ctrl [data-next] { right: -6px; } }
/* Flechas abajo, centradas debajo del carrusel: ‹ puntos › pausa */
.ncar4 .c-ctrl { gap: .9rem; margin-top: .4rem; }
.ncar4 .c-ctrl [data-prev], .ncar4 .c-ctrl [data-next] { position: static; transform: none; width: 42px; height: 42px; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.ncar4 .c-ctrl [data-prev]:hover, .ncar4 .c-ctrl [data-next]:hover { transform: scale(1.08); }
.ncar4 .c-ctrl [data-prev] { order: 1; } .ncar4 .c-dots { order: 2; } .ncar4 .c-ctrl [data-next] { order: 3; } .ncar4 .c-ctrl [data-play] { order: 4; }
@media (max-width: 700px) { .ncar4 .c-dots { display: none; } }
/* Puntos del carrusel de noticias: botón de 24 px (área táctil) con un punto visible; el activo es una píldora roja */
.ncar4 .c-dots { gap: 0; flex-wrap: nowrap; }
.ncar4 .c-dots button { position: static; width: 24px; height: 24px; min-width: 24px; min-height: 24px; border-radius: 0; background: none; display: grid; place-items: center; color: #b4b4ba; }
.ncar4 .c-dots button::after { content: ""; position: static; inset: auto; width: 10px; height: 10px; border: 0; border-radius: 5px; background: currentColor; transition: width .25s var(--ease), background .2s; }
.ncar4 .c-dots button[aria-current="true"] { background: none; width: 24px; color: var(--accent); }
.ncar4 .c-dots button[aria-current="true"]::after { width: 22px; background: var(--accent); }
.ncar4 .c-dots button[aria-current="true"] { min-width: 32px; }
.ncar4 .c-dots button:hover::after { background: var(--accent-dark); }
html.hc .ncar4 .c-dots button { background: none; color: #bbb; } html.hc .ncar4 .c-dots button[aria-current="true"], html.hc .ncar4 .c-dots button[aria-current="true"]::after { color: #ffe600; background: #ffe600; }
html.hc .ncar4 .c-dots button[aria-current="true"] { background: none; }
/* Escudo del pie: rojo de marca con anillo oscuro para separarlo del fondo */
.crest { background: #A31915; border: 0; box-shadow: 0 0 0 5px #1C2429, 0 6px 18px rgba(0,0,0,.35); }
html.hc .crest { background: #000; border: 2px solid #fff; box-shadow: none; }
.crest { box-shadow: none; border: 0; }
/* Escudo del pie: centrado óptico (el PNG tiene 51 px vacíos a la izquierda y el texto pesa abajo) */
.crest { padding: 1.35rem; }
.crest .logo-w { transform: translate(-2px, -3px); }
html.hc .crest .logo-w { transform: translate(-2px, -3px); }
/* Magistrados: placa anclada con filete rojo, Presidente destacado y hover coherente con las tarjetas de navegación */
.mg { transition: transform .3s var(--ease), filter .3s var(--ease), box-shadow .3s var(--ease); }
.mg p { margin: -3.1rem 0 0; padding: 1rem .5rem 1.05rem; border-top: 3px solid var(--accent); background: #fff; box-shadow: 0 -6px 14px rgba(0,0,0,.18); }
.mg span { font-size: .8rem; letter-spacing: .02em; }
.mg.pres { transform: translateY(-12px); }
.mg.pres p { background: #A31915; color: #fff; border-top-color: #fff; }
.mg.pres span { color: #fff; } .mg-b { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
@media (hover: hover) {
  .mg7:hover .mg:not(:hover) { filter: saturate(.55) brightness(.92); }
  .mg:hover { transform: translateY(-12px) scale(1.03); box-shadow: 0 18px 30px rgba(0,0,0,.3); z-index: 2; }
  .mg.pres:hover { transform: translateY(-16px) scale(1.03); }
}
html.hc .mg p { border-top-color: #ffe600; } html.hc .mg.pres p { background: #000; border: 2px solid #ffe600; color: #fff; }
html.hc .mg7:hover .mg:not(:hover) { filter: none; }
@media (prefers-reduced-motion: reduce) { .mg { transition: none; } .mg:hover, .mg.pres, .mg.pres:hover { transform: none; } }
@media (max-width: 1100px) { .mg.pres { transform: none; } }
/* Placas oscuras: se distinguen del fondo blanco de la página */
.mg p { background: #1C2429; color: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.22); }
.mg strong { color: #fff; } .mg span { color: #d3d8de; }
.mg.pres p { background: #A31915; } .mg.pres span, .mg.pres strong { color: #fff; }
html.hc .mg p { background: #000; }
/* Accesos directos del pie: efecto al pasar el mouse o enfocar */
.foot4 .mini a, .foot4 .libro { transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.foot4 .mini a > .ico, .foot4 .libro > .ico:last-child { transition: color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease); }
.foot4 .mini a:hover, .foot4 .mini a:focus-visible { background: #fff; color: #1C2429 !important; border-color: #fff; transform: translateY(-3px); box-shadow: 0 10px 18px rgba(0,0,0,.35); }
.foot4 .mini a:hover > .ico:first-child, .foot4 .mini a:focus-visible > .ico:first-child { color: #A31915; }
.foot4 .mini a:hover > .ico:last-child, .foot4 .mini a:focus-visible > .ico:last-child { color: #A31915; transform: translateX(4px); }
.foot4 .mini a:focus-visible, .foot4 .libro:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.foot4 .libro:hover, .foot4 .libro:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(0,0,0,.4); }
.foot4 .libro:hover > .ico:last-child, .foot4 .libro:focus-visible > .ico:last-child { background: #7d1210; transform: translateX(4px); }
html.hc .foot4 .mini a:hover, html.hc .foot4 .mini a:focus-visible { background: #ffe600; color: #000 !important; border-color: #ffe600; }
html.hc .foot4 .mini a:hover > .ico, html.hc .foot4 .mini a:focus-visible > .ico { color: #000 !important; }
@media (prefers-reduced-motion: reduce) { .foot4 .mini a, .foot4 .libro, .foot4 .mini a > .ico, .foot4 .libro > .ico:last-child { transition: none; } .foot4 .mini a:hover, .foot4 .libro:hover, .foot4 .mini a:hover > .ico:last-child, .foot4 .libro:hover > .ico:last-child { transform: none; } }

/* Escala tipográfica más equilibrada: título de sección ≈ 44 px, etiqueta 16 px, servicios ≈ 20 px, nombres de magistrados ≈ 18 px */
.h4 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.kick { font-size: clamp(.95rem, 1.1vw, 1rem); }
.svl a { font-size: clamp(1.1rem, 1.4vw, 1.25rem); font-weight: 700; letter-spacing: -.01em; min-height: 80px; }
.svl a > .ico:first-child { width: 3rem; height: 3rem; }
.mg p strong { font-size: clamp(.9rem, 1.25vw, 1.1rem); }

/* >>> CAMBIO 2026-11-22 · FONDO ROJO DEL BANNER IGUAL AL DEL BOCETO 5 (para revertir: borrar este bloque hasta «<<<» y ejecutar `node build3.js x4`; ver propuestas-v3/LEEME.md) */
.hero4-bg { background: #A31915; }
.hero4-bg::after { background: linear-gradient(90deg, rgba(29,36,42,.5) 0%, rgba(29,36,42,.3) 42%, rgba(29,36,42,0) 68%), linear-gradient(rgba(163,25,21,.59), rgba(163,25,21,.59)); mix-blend-mode: normal; } /* capa roja #A31915 al 59 % (como el boceto 5) + sombreado suave #1D242A a la izquierda para el texto blanco */
/* <<< FIN DEL CAMBIO */

/* >>> MENÚ LATERAL PLEGABLE (boceto 4): pestaña «Menú» en el borde izquierdo + panel deslizante. Para quitarlo: borrar este bloque, el bloque <button class="mtab4"> … </dialog id="m-menu4"> de x4.js y regenerar. */
.mtab4 { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: .7rem; width: 42px; padding: .95rem 0; background: #A31915; color: #fff; border: 0; border-radius: 0 10px 10px 0; box-shadow: 2px 2px 12px rgba(0,0,0,.3); cursor: pointer; transition: width .25s var(--ease), background-color .2s; }
.mtab4 .ico { width: 1.4rem; height: 1.4rem; } .mtab4 b { writing-mode: vertical-rl; font-size: .95rem; font-weight: 700; letter-spacing: .05em; }
.mtab4:hover, .mtab4:focus-visible { width: 50px; background: #7d1210; }
html.hc .mtab4 { background: #000; border: 2px solid #fff; border-left: 0; } html.hc .mtab4:hover { background: #ffe600; color: #000; }
dialog.drawer4 { margin: 0; padding: 0; border: 0; inset: 0 auto 0 0; height: 100vh; height: 100dvh; max-height: none; width: min(360px, 88vw); background: #1C2429; color: #fff; border-radius: 0 16px 16px 0; box-shadow: 8px 0 40px rgba(0,0,0,.45); overflow: hidden; }
dialog.drawer4[open] { display: flex; flex-direction: column; animation: drawer4-in .32s var(--ease); }
dialog.drawer4::backdrop { background: rgba(8,12,14,.62); }
@keyframes drawer4-in { from { transform: translateX(-100%); } to { transform: none; } }
html.hc dialog.drawer4 { background: #000; border-right: 3px solid #fff; }
.dr4-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1rem .8rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.2); flex: none; }
.dr4-logo { width: auto; height: 38px; max-width: 220px; } .dr4-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: transparent; color: #fff; cursor: pointer; transition: background-color .2s, color .2s; } .dr4-x .ico { width: 1.3rem; height: 1.3rem; } .dr4-x:hover { background: #fff; color: #1C2429; }
.dr4-b { flex: 1 1 auto; overflow-y: auto; padding: 1rem 1rem 1.4rem; overscroll-behavior: contain; }
.dr4-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.dr4-a, .dr4-l summary { display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 54px; padding: .5rem .9rem; border: 0; border-radius: 10px; background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: 1.04rem; line-height: 1.15; text-align: left; text-decoration: none; cursor: pointer; list-style: none; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.dr4-l summary::-webkit-details-marker { display: none; }
.dr4-a > .ico:first-child, .dr4-l summary > .ico:first-child { width: 1.6rem; height: 1.6rem; flex: none; } .dr4-a > span:not(.sr-only), .dr4-l summary > span { flex: 1; }
.dr4-a > .ico:last-of-type:not(:first-child), .dr4-l summary .ch { width: 1.05rem; height: 1.05rem; flex: none; opacity: .8; } .dr4-l summary .ch { transition: transform .25s var(--ease); } .dr4-l details[open] > summary .ch { transform: rotate(90deg); }
.dr4-a:hover, .dr4-l summary:hover { background: rgba(255,255,255,.12); }
.dr4-a.pri { background: #fff; color: #A31915; box-shadow: 0 8px 18px rgba(0,0,0,.28); } .dr4-a.pri:hover { background: #FCE5E6; transform: translateY(-1px); }
.dr4-s { list-style: none; margin: .1rem 0 .5rem 3.2rem; padding: 0; display: grid; } .dr4-s a { display: block; padding: .6rem .3rem; color: #e6eaee; text-decoration: none; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.16); } .dr4-s a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dr4-g { margin: 1.4rem 0 .5rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #b9c3ca; }
.dr4-wa { display: flex; align-items: center; gap: .8rem; min-height: 52px; padding: .4rem .9rem; border: 1.5px solid rgba(255,255,255,.7); border-radius: 10px; color: #fff; text-decoration: none; font-weight: 700; transition: background-color .2s, color .2s; } .dr4-wa .ico { width: 1.5rem; height: 1.5rem; flex: none; } .dr4-wa:hover { background: #fff; color: #1C2429; }
.drawer4 .social { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: .25rem; margin: 1rem 0 0; padding: 0; list-style: none; } .drawer4 .social a { min-width: 0; min-height: 0; } .drawer4 .social .soc { background: transparent; border: 1.5px solid rgba(255,255,255,.8); color: #fff; width: 36px; height: 36px; transition: background-color .2s, color .2s; } .drawer4 .social .soc svg { width: 56%; height: 56%; } .drawer4 .social a:hover .soc { background: #fff; color: #1C2429; }
.drawer4 :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
html.hc .dr4-a.pri { background: #ffe600; color: #000; } html.hc .dr4-a:hover, html.hc .dr4-l summary:hover { background: #fff; color: #000; }
/* En pantallas medianas y pequeñas la pestaña vertical pasa a un botón redondo abajo a la izquierda (no tapa el contenido del banner) */
@media (max-width: 1100px) { .mtab4 { top: auto; bottom: clamp(14px, 2vw, 28px); left: clamp(12px, 2vw, 24px); transform: none; width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; } .mtab4 b { display: none; } .mtab4 .ico { width: 1.6rem; height: 1.6rem; } .mtab4:hover, .mtab4:focus-visible { width: 52px; } html.hc .mtab4 { border-left: 2px solid #fff; } }
@media (prefers-reduced-motion: reduce) { dialog.drawer4[open] { animation: none; } .mtab4, .dr4-a, .dr4-l summary, .dr4-l summary .ch, .dr4-x, .dr4-wa { transition: none; } }
/* <<< FIN MENÚ LATERAL */

/* >>> AJUSTES RESPONSIVE (2026-11-22): pausa del banner fuera del buscador en móvil, texto del buscador con puntos suspensivos, objetivos táctiles de 44 px y selectores que no se salen */
@media (max-width: 720px) { .hv-p { bottom: -3.2rem; } .tiles4 { margin-top: -56px; } }
.hero4 .gs-f input { text-overflow: ellipsis; }
@media (max-width: 480px) { .hero4 .gs-f input { font-size: 1rem; } }
@media (max-width: 1024px) { .cecbar .btn { min-height: 44px; } .ncar4 .c-ctrl button { min-height: 44px; } }
.sels { max-width: 100%; } .sels select { max-width: 100%; min-width: 0; }
/* Móvil: fila 1 = logo + accesibilidad; fila 2 = «Portal de transparencia» y «Mesa de partes virtual» a partes iguales */
@media (max-width: 720px) {
  .top4 { gap: .8rem; }
  .top4-r { display: contents; }
  .top4 .brand { order: 1; }
  .acc4 { order: 2; margin-left: auto; width: 48px; height: 48px; flex: none; }
  .top4::after { content: ""; order: 2; flex: 0 0 100%; height: 0; }
  .pb { order: 3; flex: 1 1 calc(50% - .4rem); min-width: 0; min-height: 52px; padding: .35rem .8rem; gap: .5rem; line-height: 1.15; }
  .top4-r .pb span:not(.sr-only) { flex: 1; font-size: .86rem; }
  .pb > .ico:first-child { width: 1.15rem; height: 1.15rem; flex: none; }
}
@media (max-width: 380px) { .pb { padding-inline: .6rem; gap: .4rem; } .top4-r .pb span:not(.sr-only) { font-size: .82rem; } .pb .ico:last-child { display: none; } }
@media (max-width: 340px) { .pb > .ico:first-child { display: none; } .top4-r .pb span:not(.sr-only) { overflow-wrap: normal; word-break: normal; hyphens: none; } }
/* <<< FIN AJUSTES RESPONSIVE */

/* >>> MENÚ LATERAL · TEMA CLARO (2026-11-22): panel blanco con acentos rojos, para que se distinga del banner y del pie oscuros. Para volver al panel oscuro: borrar este bloque y en x4.js usar de nuevo logo-white-h.png en la cabecera del panel (clase dr4-logo). Ver propuestas-v3/LEEME.md */
dialog.drawer4 { background: #fff; color: #1C2429; box-shadow: 8px 0 40px rgba(0,0,0,.4); }
dialog.drawer4::backdrop { background: rgba(10,14,16,.55); }
.dr4-h { border-bottom-color: #e3e5e8; }
.dr4-x { border-color: #b9bec4; color: #1C2429; } .dr4-x:hover { background: #A31915; border-color: #A31915; color: #fff; }
.dr4-a, .dr4-l summary { color: #1C2429; }
.dr4-a > .ico:first-child, .dr4-l summary > .ico:first-child { color: #A31915; }
.dr4-a > .ico:last-of-type:not(:first-child), .dr4-l summary .ch { color: #5b636b; opacity: 1; }
.dr4-a:hover, .dr4-l summary:hover { background: #FCE5E6; }
.dr4-a.pri { background: #A31915; color: #fff; box-shadow: 0 8px 18px rgba(163,25,21,.3); } .dr4-a.pri > .ico, .dr4-a.pri > .ico:first-child, .dr4-a.pri > .ico:last-of-type:not(:first-child) { color: #fff; } .dr4-a.pri:hover { background: #7d1210; }
.dr4-s a { color: #3a434b; border-bottom-color: #e6e8eb; } .dr4-s a:hover { color: #A31915; }
.dr4-g { color: #5b636b; border-top-color: #e3e5e8; }
.dr4-wa { border-color: #A31915; color: #A31915; } .dr4-wa:hover { background: #A31915; color: #fff; }
.drawer4 .social .soc { border-color: #A31915; color: #A31915; } .drawer4 .social a:hover .soc { background: #A31915; color: #fff; }
.drawer4 :focus-visible { outline-color: #A31915; }
html.hc dialog.drawer4 { color: #fff; } html.hc .dr4-h { border-bottom-color: #fff; } html.hc .dr4-x { border-color: #fff; color: #fff; }
html.hc .dr4-a, html.hc .dr4-l summary { color: #fff; } html.hc .dr4-a > .ico, html.hc .dr4-l summary > .ico { color: #ffe600; } html.hc .dr4-a:hover, html.hc .dr4-l summary:hover { background: #fff; color: #000; } html.hc .dr4-a:hover > .ico, html.hc .dr4-l summary:hover > .ico { color: #000; }
html.hc .dr4-s a { color: #fff; border-bottom-color: #fff; } html.hc .dr4-g { color: #fff; border-top-color: #fff; } html.hc .dr4-wa { border-color: #fff; color: #fff; } html.hc .dr4-wa:hover { background: #ffe600; color: #000; } html.hc .drawer4 .social .soc { border-color: #fff; color: #fff; } html.hc .drawer4 :focus-visible { outline-color: #ffe600; }
/* <<< FIN TEMA CLARO */
