:root {
  --gutter: clamp(1.2rem, 6vw, 7.5rem);
  --aire: clamp(4rem, 7vw, 7.5rem);
  font: 100%/1.5 var(--forteral-fuente);
  color: var(--forteral-tinta);
  background: var(--forteral-noche);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.cabecera, .portada, .informe, .pie { --forteral-foco-actual: var(--forteral-foco-oscuro); }
.marco { max-width: 96rem; margin-inline: auto; padding-inline: var(--gutter); }
.salto { position: fixed; inset: .5rem auto auto .5rem; z-index: 5; transform: translateY(-160%); padding: .65rem 1rem; background: white; color: var(--forteral-tinta); }
.salto:not(:focus) { clip-path: inset(50%); }
.salto:focus { transform: none; }
.cabecera { background: var(--forteral-noche); color: #eeebf5; border-bottom: 1px solid #34313e; }
.cabecera-interior { display: flex; align-items: center; gap: clamp(1.25rem, 3.5vw, 3.75rem); min-height: 5.3rem; }
.marca { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.cabecera .marca img { width: clamp(8.2rem, 11vw, 11.5rem); }
.navegacion { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.7rem); margin-left: auto; }
.navegacion a, .privado, .pie-superior > a:last-child { display: inline-flex; align-items: center; min-height: 44px; }
.navegacion a, .privado { font-size: .9375rem; }
.navegacion .enlace-evaluacion { padding: .35em .8em; background: var(--forteral-lavanda); color: var(--forteral-tinta); border-radius: 3px; }
.navegacion .enlace-evaluacion:hover { background: var(--forteral-lavanda-suave); text-decoration: none; }
.privado { gap: .55rem; padding-inline-start: clamp(1rem, 2.3vw, 2.2rem); color: var(--forteral-lavanda); position: relative; }
.privado::before { content: ""; position: absolute; height: 18px; width: 1px; left: 0; top: calc(50% - 9px); background: #4a435d; }
.navegacion a:hover, .privado:hover, .pie a:hover { text-decoration: underline; text-underline-offset: .24em; }
.portada { position: relative; isolation: isolate; overflow: hidden; background: #0c0b16; color: var(--forteral-claro); }
.portada-interior { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; min-height: clamp(32rem, 43vw, 45rem); }
.portada-texto { position: relative; z-index: 1; padding-block: clamp(4.7rem, 7.6vw, 8.6rem); }
h1, h2, h3 { font-weight: 400; overflow-wrap: anywhere; hyphens: auto; }
h1 { font-size: clamp(3.5rem, 6.65vw, 6.85rem); line-height: .97; letter-spacing: -.063em; overflow-wrap: normal; hyphens: manual; }
h1 span { color: var(--forteral-lavanda); }
.portada-texto p { max-width: 34ch; margin-block: 1.65rem 1.6rem; font-size: clamp(1.08rem, 1.5vw, 1.5rem); line-height: 1.48; color: #dedbe7; }
.enlace-claro { display: inline-flex; align-items: center; min-height: 46px; padding: .65rem 1.35rem; color: var(--forteral-tinta); background: var(--forteral-lavanda); border-radius: 3px; font-weight: 700; }
.enlace-claro:hover { background: var(--forteral-lavanda-suave); }
.portada-arte { align-self: stretch; position: relative; min-width: 0; margin-right: calc(-1 * var(--gutter)); }
.portada-pieza, .portada-arte picture, .portada-pieza canvas { display: block; position: absolute; inset: 0; }
.portada-pieza canvas, .portada-arte img { width: 100%; height: 100%; }
.portada-arte img { object-fit: contain; }
.portada-pieza:has(canvas[data-relieve="listo"]) picture { visibility: hidden; }
.portada-arte::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,#0c0b16,transparent 10%,transparent 96%,#0c0b16); }
.portada-movimiento { display: none; }
@media (prefers-reduced-motion: reduce) {
  .portada-arte[data-animable] .portada-movimiento {
    display: block;
    position: absolute;
    z-index: 1;
    bottom: .25rem;
    right: var(--gutter);
    color: var(--forteral-lavanda-suave);
    background: var(--forteral-noche);
  }
  .portada-movimiento summary {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding-inline: .75rem;
    font-size: .875rem;
    list-style: none;
    text-decoration: underline;
    text-underline-offset: .22em;
    cursor: pointer;
  }
  .portada-movimiento summary::-webkit-details-marker { display: none; }
  .portada-movimiento:not([open]) summary span:last-child, .portada-movimiento[open] summary span:first-child { display: none; }
}
.seccion { padding-block: var(--aire); scroll-margin-top: 1rem; }
.seccion h2 { font-size: clamp(2.35rem, 4.65vw, 5rem); letter-spacing: -.053em; line-height: 1.02; }
.servicios { background: var(--forteral-papel); }
.informe p { margin-top: 1.2rem; max-width: 35ch; font-size: clamp(1.08rem,1.25vw,1.32rem); line-height: 1.52; }
.instruccion-servicios { margin: .85rem 0 clamp(1.6rem,3.2vw,3rem); font-size: clamp(1.05rem,1.3vw,1.28rem); color: var(--forteral-secundario); }
.entrada-servicio summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.55rem; padding: .9rem .65rem; border-top: 1px solid var(--forteral-borde); font-size: clamp(1.05rem,1.6vw,1.48rem); line-height: 1.32; letter-spacing: -.025em; cursor: pointer; }
.entrada-servicio summary::-webkit-details-marker { display: none; }
.entrada-servicio summary::after { content: ""; flex: none; width: .52rem; height: .52rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.entrada-servicio[open] summary { border-color: var(--forteral-violeta); color: var(--forteral-violeta); font-weight: 700; }
.entrada-servicio[open] summary::after { transform: rotate(225deg); }
.entrada-servicio summary:focus-visible { outline-offset: -3px; }
.ficha-servicio { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.4rem,3.5vw,3.7rem); background: #221c34; color: var(--forteral-claro); }
.ficha-servicio h3 { max-width: min(100%,16ch); font-size: clamp(1.85rem,3.4vw,3.85rem); line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
.ficha-servicio p { max-width: 46ch; margin-top: 1rem; color: #e1dcec; font-size: clamp(1rem,1.15vw,1.16rem); line-height: 1.52; }
.ficha-servicio .decision-servicio { width: 100%; margin-top: clamp(1.4rem,2.4vw,2.4rem); padding-top: .85rem; border-top: 1px solid #665779; }
.decision-servicio strong { display: block; margin-bottom: .4rem; font-size: .92rem; color: var(--forteral-lavanda); }
@media (hover: hover) and (pointer: fine) {
  .entrada-servicio summary:hover { background: #ece8f3; }
}
@media (min-width: 881px) {
  @supports selector(details::details-content) {
    .opciones-servicio { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); column-gap: clamp(1.8rem,5vw,5rem); }
    .opciones-servicio:not(:has([open]))::after { content: ""; grid-column: 2; grid-row: 1 / span 6; background: #101025 url("assets/forteral.svg") center / 5rem auto no-repeat; }
    .entrada-servicio { display: contents; }
    .entrada-servicio summary { grid-column: 1; }
    .entrada-servicio:last-child summary { border-bottom: 1px solid var(--forteral-borde); }
    .entrada-servicio[open]::details-content { display: contents; }
    .entrada-servicio:not([open])::details-content { display: none; }
    .entrada-servicio[open] .ficha-servicio { grid-column: 2; grid-row: 1 / span 6; }
  }
}
.sectores { background: #eae7ef; }
.sectores h2 { margin-bottom: clamp(1.8rem, 3.4vw, 3.6rem); }
.sectores-lista { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.4rem,3.5vw,3.8rem); }
.sectores article img { width: 100%; aspect-ratio: 2.27; object-fit: cover; }
.sectores article > div { padding-top: 1.2rem; }
.sectores h3 { font-size: clamp(1.7rem,2.8vw,3rem); line-height: 1.1; letter-spacing: -.045em; }
.sectores p { margin-top: .65rem; max-width: 52ch; color: var(--forteral-secundario); line-height: 1.55; }
.enlace-sector {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  margin-top: .6rem;
  color: var(--forteral-violeta);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}
.enlace-sector::after {
  content: "";
  flex: none;
  width: .48em;
  height: .48em;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.enlace-sector:hover { text-decoration-thickness: 2px; }
.informe { background: #221c34; color: #f8f5ff; }
.informe-interior { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: clamp(2rem,7vw,7.5rem); }
.informe p { max-width: 48ch; color: #dfd9ed; }
.informe .enlace-informe { margin-top: 1.7rem; }
.informe-lector { container: lector / inline-size; min-inline-size: 0; margin: 0; padding: 0; border: 0; color: var(--forteral-tinta); background: var(--forteral-papel); }
.informe-oculto { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.informe-selector { display: grid; position: relative; grid-template-columns: repeat(3,minmax(0,1fr)); }
.informe-selector label { display: grid; place-content: center; min-height: 3.25rem; padding: .45rem .2rem; color: var(--forteral-secundario); background: #e8e4ef; border-bottom: 3px solid transparent; font-size: clamp(.875rem,1.2vw,1rem); cursor: pointer; }
.informe-selector input:checked + label { border-color: var(--forteral-violeta); color: var(--forteral-violeta); background: var(--forteral-papel); font-weight: 700; }
.informe-selector input:focus-visible + label { outline: 3px solid var(--forteral-foco); outline-offset: -6px; }
.informe-paneles { grid-column: 1 / -1; display: grid; }
.informe-panel { grid-area: 1 / 1; min-width: 0; visibility: hidden; padding: clamp(1.25rem,3.2vw,3.3rem); }
#vista-afectacion:checked ~ .informe-paneles #resultado-afectacion,
#vista-recuperacion:checked ~ .informe-paneles #resultado-recuperacion,
#vista-pendientes:checked ~ .informe-paneles #resultado-pendientes { visibility: visible; }
.informe-panel h3 { font-weight: 700; line-height: 1.22; font-size: clamp(1.25rem,2.1vw,1.9rem); letter-spacing: -.035em; }
.informe .informe-panel p { max-width: 48ch; margin-top: 1rem; color: var(--forteral-secundario); font-size: 1rem; line-height: 1.48; }
.informe-estados { margin-top: 1rem; }
.informe-estados > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; padding: .65rem 0; border-bottom: 1px solid var(--forteral-borde); }
.informe-estados dd { display: flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 700; color: var(--forteral-violeta); }
.informe-estados dd::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; border: 2px solid currentColor; }
.informe-estados > div:last-child dd::before { border-radius: 0; height: .19rem; border: 0; background: currentColor; }
.informe-cifra { color: var(--forteral-violeta); margin-top: .65rem; font-size: clamp(3rem,5vw,5rem); line-height: 1.02; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.informe-cifra span { font-size: clamp(1.05rem,1.8vw,1.5rem); letter-spacing: -.02em; }
.informe-escala,.informe-folios { margin-top: 1rem; }
.informe-escala { height: .65rem; border: 1px solid var(--forteral-violeta); }
.informe-escala i { display: block; width: 88.3333%; height: 100%; background: var(--forteral-violeta); }
.informe-folios { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 3px; }
.informe-folios i { border: 1px solid var(--forteral-violeta); height: .8rem; background: var(--forteral-violeta); }
.informe-folios i:last-child { background: transparent; }
.informe-extremos { display: flex; justify-content: space-between; gap: .75rem; margin-top: .35rem; color: var(--forteral-secundario); font-size: .875rem; }
@container lector (max-width: 17em) {
  .informe-selector { grid-template-columns: minmax(0,1fr); }
  .informe-selector label { justify-content: start; min-height: 44px; padding: .4rem .9rem; }
  .informe-panel { padding: 1rem .85rem; overflow-wrap: anywhere; }
  .informe-extremos { flex-wrap: wrap; gap: .25rem .75rem; }
}
@media (min-width: 681px) and (max-width: 850px) {
  .informe-interior { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 2rem; }
  .informe-panel { padding: 1.25rem; }
}
@media (forced-colors: active) {
  .informe-selector label,.informe-estados dd::before { border: 1px solid ButtonText; }
  .informe-selector input:checked + label { border-bottom: 3px solid Highlight; }
  .informe-selector input:focus-visible + label { outline-color: Highlight; }
  .informe-escala i,.informe-folios i:not(:last-child) { forced-color-adjust: none; background: Highlight; }
}
.enlace-informe { position: relative; overflow: hidden; max-width: 100%; min-height: 3.5rem; padding: .6rem min(1.25rem,4vw); border: 1px solid #9b86c5; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; font-weight: 700; }
.enlace-informe:hover { background: #352848; border-color: var(--forteral-lavanda); }
.enlace-informe span { margin-left: .55rem; font-size: .8rem; font-weight: 400; color: #d9c8ff; }
.enlace-informe svg { color: var(--forteral-lavanda); }
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .enlace-informe::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 45%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 19%, rgb(196 179 255 / .12) 46%, rgb(235 226 255 / .25) 51%, transparent 74%);
    transform: translateX(-125%);
  }
  .enlace-informe:focus-visible::after { animation: reflejo-informe 620ms ease-out; }
  @media (hover: hover) and (pointer: fine) {
    .enlace-informe:hover::after { animation: reflejo-informe 620ms ease-out; }
  }
  @keyframes reflejo-informe {
    from { transform: translateX(-125%); }
    to { transform: translateX(245%); }
  }
}
.contacto { background: var(--forteral-claro); }
.contacto-interior { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(2rem,7vw,7.5rem); align-items: start; }
.contacto-intro h2 { max-width: 11ch; }
.contacto-intro p { max-width: 35ch; margin-top: 1.15rem; color: var(--forteral-secundario); font-size: clamp(1.08rem,1.3vw,1.32rem); }
.contacto-formulario { container: consulta / inline-size; min-width: 0; border-top: 2px solid var(--forteral-violeta); padding-top: 1.25rem; color-scheme: light; }
.contacto-campos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.15rem 1.35rem; }
.contacto-campos label { display: flex; flex-direction: column; gap: .36rem; font-weight: 700; }
.contacto-campos :is(input,select,textarea) { min-width: 0; width: 100%; min-height: 44px; padding: .65rem .7rem; border: 1px solid #857d91; border-radius: 2px; background: white; color: var(--forteral-tinta); font: inherit; font-weight: 400; }
.contacto-campos :user-invalid { border: 2px dashed #90304c; }
.contacto-campos textarea { resize: vertical; }
.campo-mensaje { grid-column: 1 / -1; }
.contacto-formulario p { color: var(--forteral-secundario); font-size: .9375rem; }
.contacto-formulario #ayuda-mensaje { margin-top: .45rem; }
.contacto-aviso { margin-block: 1.2rem .95rem; }
.contacto-aviso a { color: var(--forteral-violeta); text-decoration: underline; text-underline-offset: .2em; }
.contacto-formulario button { max-width: 100%; min-height: 46px; padding: .67rem 1.25rem; border: 1px solid transparent; border-radius: 3px; font: inherit; font-weight: 700; cursor: pointer; color: white; background: var(--forteral-violeta); }
.contacto-formulario button:hover { background: var(--forteral-tinta); }
@container consulta (max-width: 27em) {
  .contacto-campos { grid-template-columns: minmax(0,1fr); }
}
.pie { color: #cdc9d7; background: var(--forteral-noche); padding-block: clamp(2rem,3vw,3.5rem); }
.pie-superior { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.3rem; padding-bottom: 1.05rem; border-bottom: 1px solid #33303e; }
.pie-superior .marca img { width: 9rem; }
.pie-superior > a:last-child, .pie p a { color: var(--forteral-lavanda-suave); text-decoration: underline; text-underline-offset: .2em; }
.pie p { max-width: 92ch; font-size: .9rem; line-height: 1.58; }
.pie p + p { margin-top: .45rem; }
@media (max-width: 55em) {
  .contacto-interior { grid-template-columns: minmax(0,1fr); gap: 1.85rem; }
  .contacto-intro h2 { max-width: none; }
  .contacto-intro p { max-width: 48ch; }
  .portada-interior { min-height: 29rem; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); }
  .portada-texto h1 { font-size: clamp(3.3rem, 7.5vw, 4.5rem); }
}
@media (max-width: 42.5em) {
  :root { --gutter: min(6vw,clamp(1.15rem,5.4vw,2.1rem)); --aire: clamp(3.3rem,8.5vw,4.5rem); }
  .cabecera-interior { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 0; padding-top: .55rem; }
  .cabecera .marca { justify-self: start; max-width: 92%; }
  .privado { grid-column: 2; grid-row: 1; justify-self: end; max-width: 100%; padding: 0; }
  .privado svg { flex: none; }
  .privado::before { display: none; }
  .navegacion { grid-column: 1/-1; grid-row: 2; flex-wrap: wrap; justify-content: space-between; margin: .1rem 0 0; gap: 0 .8rem; }
  .navegacion a { font-size: .9rem; }
  .portada-interior { grid-template-columns: minmax(0,1fr); min-height: 0; padding-block: 2.15rem 2.45rem; }
  .portada-texto { display: contents; }
  .portada-texto h1 { grid-row: 1; font-size: clamp(2rem,max(14vw,.75rem + 9.5vw),4.3rem); line-height: .98; }
  .portada-texto p { grid-row: 3; max-width: 44ch; font-size: 1.08rem; margin-block: 0 1.25rem; }
  .portada-texto .enlace-claro { grid-row: 4; justify-self: start; }
  .portada-arte { grid-row: 2; height: clamp(11rem,56vw,19.5rem); margin-inline: calc(-1 * var(--gutter)); }
  .portada-arte::after { background: linear-gradient(0deg,#0c0b16,transparent 12%,transparent 90%,#0c0b16); }
  .sectores-lista { grid-template-columns: 1fr; gap: 2.45rem; }
  .sectores article img { aspect-ratio: 2.05; }
  .sectores article > div { padding-top: .95rem; }
  .informe-interior { grid-template-columns: minmax(0,1fr); gap: 1.55rem; }
  .enlace-informe { justify-self: start; }
  .pie-superior { flex-wrap: wrap; }
  .pie-superior .marca img { width: 7.4rem; }
}
@media (max-width: 19em) {
  .navegacion { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .navegacion .enlace-evaluacion { grid-column: 1/-1; justify-content: center; }
}
@media (forced-colors: active) {
  .enlace-claro, .enlace-informe { border: 1px solid ButtonText; }
}
