/* Fase 2, 2026-11-18: ajustes visuales sobre el estilo existente (arena, navy, naranja; Bricolage + Figtree) */

/* Etiquetas sobre los títulos: en tono de frase, sin mayúsculas sostenidas */
.eyebrow, .l-kicker { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.l-facts dt { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.site-footer h4 { text-transform: none; letter-spacing: 0; font-family: var(--f-display); font-size: .95rem; font-weight: 700; }

/* Botones: la etiqueta nunca subrayada */
.btn, .btn:hover, .btn:focus-visible { text-decoration: none; }

/* Selector ES/EN con área táctil cómoda */
.lang-switch a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }

/* "Imagen ilustrativa" legible */
.ai-tag { font-size: .72rem; letter-spacing: .04em; }
.v-ilu { font-size: .78rem; }

/* Nota informativa: arena con borde completo, como el resto de tarjetas */
.note { background: #F1E9DB; border: 1px solid #E3D6BF; box-shadow: none; border-radius: 18px; padding: 1.1rem 1.3rem; color: var(--fg); }

/* Tarjetas del Foro: mismo lenguaje que las tarjetas arena del sitio */
.foro-card { border: 1px solid #E8DFCF; border-radius: 28px 40px 32px 36px; box-shadow: none; }
.foro-card::before { display: none; }
.foro-card:hover { box-shadow: var(--shadow-hi); }

/* Pestañas de Actualidad con su descriptor */
.v-tab small { display: block; font: 500 .74rem/1.2 var(--f-body); opacity: .78; margin-top: 2px; }
.v-tab { text-align: center; line-height: 1.15; }

/* Nuestras líneas: tarjetas menos anidadas */
.l-facts div { background: none; padding: 12px 0 0; border-radius: 0; border-top: 1px solid #E8DFCF; }
@media (max-width: 860px) {
  .l-line { padding: 26px 20px 26px 26px; gap: 18px; }
  .l-line h2 { font-size: 1.9rem; }
  .l-facts { gap: 12px; }
}

/* Barra fija de rutas (Participa y páginas con índice de anclas) */
.anchor-bar { position: sticky; top: 76px; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.anchor-bar .wrap { padding-block: 10px; }
.anchor-bar .anchor-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-block: 2px; }
.anchor-bar .anchor-nav::-webkit-scrollbar { display: none; }
.anchor-bar .anchor-nav a { flex: 0 0 auto; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.anchor-bar .anchor-nav a[aria-current="true"] { background: var(--navy, #0B2245); border-color: var(--navy, #0B2245); color: #FFFFFF; }
.actor, section[id], article[id] { scroll-margin-top: var(--anchor-offset, 150px); }

/* Cabeceras de páginas internas: la imagen no ocupa toda la primera pantalla en el celular */
@media (max-width: 820px) {
  .page-head.has-media .head-media { aspect-ratio: auto; height: 220px; }
  .page-head.has-media .head-media .ph, .page-head.has-media .head-media img { height: 100%; }
  .page-head.has-media .head-media img { width: 100%; object-fit: cover; }
}

/* Inicio en el celular: tarjetas que se deslizan y una sola columna del Foro */
@media (max-width: 820px) {
  .v-ini .v-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding-bottom: 10px; scrollbar-width: none; }
  .v-ini .v-cards::-webkit-scrollbar { display: none; }
  .v-ini .v-card { scroll-snap-align: start; }
  .foro-home .foro-list > :nth-child(n+2) { display: none; }
}

/* Pie de página plegable en el celular */
.ft-toggle { all: unset; font: inherit; color: inherit; }
@media (max-width: 600px) {
  .site-footer .cols { gap: 0; }
  .site-footer .cols > .stack { margin-bottom: 18px; }
  .site-footer .cols > div:not(.stack) { border-top: 1px solid var(--band-line); }
  .site-footer .cols > div:not(.stack) h4 { margin: 0; }
  .ft-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; cursor: pointer; }
  .ft-toggle::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
  .ft-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
  .ft-toggle:focus-visible { outline: 2px solid var(--contour-hi, #F9A21B); outline-offset: 2px; border-radius: 4px; }
  .site-footer .js-ft ul { display: none; padding-bottom: 14px; }
  .site-footer .js-ft.is-open ul { display: flex; animation: ft-in .22s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes ft-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Mapa minero: en pantallas táctiles el mapa no atrapa el scroll hasta que se toca */
.mm-touch { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 800; border: 0; border-radius: 999px; padding: .6rem 1rem; background: #0B2245; color: #FFFFFF; font: 600 .9rem var(--f-body); box-shadow: 0 8px 22px -10px rgba(11, 34, 69, .7); cursor: pointer; }
.mm-touch[hidden] { display: none; }

/* Respuesta al toque: los elementos pulsables se hunden un poco */
.btn, .v-pill, .anchor-nav a, .cm-col, .route, .v-card, .mcr-actor, .lang-switch a { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .btn:active, .v-pill:active, .anchor-nav a:active, .lang-switch a:active { transform: scale(.97); transition: transform .08s ease-out; }
  .cm-col:active, .route:active, .v-card:active, .mcr-actor:active { transform: scale(.985); transition: transform .08s ease-out; }
}

/* Transición suave entre páginas (navegadores compatibles) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .16s ease-in both; }
  ::view-transition-new(root) { animation: vt-in .24s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
/* Foro: sin la franja de colores superior */
.foro-card-strip { display: none; }
.foro-card.foro-card-rv::before { display: none; }

/* Aviso temporal del webinar QA/QC, 2026-11-25 */
.aw-bar { position: relative; z-index: 5; background: #0B2245; color: #fff; font-family: "Figtree", sans-serif; font-size: .92rem; line-height: 1.35; }
.aw-wrap { max-width: 1200px; margin: 0 auto; padding: .55rem 3rem .55rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem 1rem; text-align: center; }
.aw-tag { color: #F9A21B; font-weight: 700; }
.aw-date { opacity: .85; }
.aw-btn { background: #C9500F; color: #fff; border-radius: 999px; padding: .3rem .95rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.aw-btn:hover, .aw-btn:focus-visible { background: #AD450C; color: #fff; }
.aw-x { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 1.35rem; line-height: 1; cursor: pointer; opacity: .75; padding: .3rem .4rem; }
.aw-x:hover, .aw-x:focus-visible { opacity: 1; }
@media (max-width: 640px) { .aw-txt { display: none; } .aw-bar { font-size: .86rem; } }
.aw-past { max-width: 860px; margin: 1.5rem auto; padding: 1rem 1.25rem; border-radius: 18px; background: #F1E9DB; color: #0B2245; text-align: center; font-weight: 500; }
.aw-off { opacity: .55; pointer-events: none; }
/* Textos justificados, 2026-11-25 (v2, sin partir palabras) */
.ctmc-tj { text-align: justify; text-justify: inter-word; -webkit-hyphens: manual; hyphens: manual; }