/* portal-club.css */

html.portal-ipad main.home { display: block; padding: 0; margin: 0; gap: 0; }
html.portal-ipad main.home > :not(.portal-despa) { display: none !important; }
html:not(.portal-ipad) .portal-despa { display: none; }
html.portal-ipad body:has(> main.home) > .franja-club { display: none; }
.portal-despa { --alto-pantalla-sel: calc(100vh / var(--escala-sitio, 1) - 9.8rem - 18px); }

.portal-despa .wid__app--tabla { background: linear-gradient(180deg, #ffd166, #e0a21b); color: #111; }

.portal-despa .mail__texto > p:first-child { margin-top: 0; }
.portal-despa .mail__texto .sub__note { color: rgb(255 255 255 / 0.6); font-size: var(--fs-sm); }
.portal-despa .mail__texto strong { color: #fff; }
.portal-despa .mail__texto .cfed strong { color: inherit; }
.pd__firma { margin: 4px 0 12px; font-size: var(--fs-sm); color: rgb(255 255 255 / 0.6); line-height: 1.5; }
.pd__firma b { color: rgb(255 255 255 / 0.9); }
.pd__acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pd__gestion { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / 0.08); }
.pd__gestion .mail__filtro { display: inline-flex; align-items: center; gap: 5px; background: rgb(255 255 255 / 0.07); }
.pd__gestion .mail__filtro .i { width: 13px; height: 13px; }
.portal-despa .mail__ops { margin: 12px 0; }
.portal-despa .lector__respondido { margin: 12px 0; padding: 12px 14px; border-radius: 14px; border: 0; background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); color: #fff; }
.portal-despa .mail__leer > .mail__vacio { margin: auto; }
.portal-despa .mail__cuerpo .cfed { font-size: 15px; }



.pd__escudo { object-fit: contain; flex: none; }



main.home .dia { display: grid; flex-direction: row; min-height: 76px; max-height: none; }
@media (min-width: 761px) {
  html[data-fondo] main.home > section.col:not(.tarjeta) { background-color: transparent !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.pd-boton { all: unset; touch-action: manipulation; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  color: rgb(255 255 255 / 0.8); background: rgb(255 255 255 / 0.07); }
.pd-boton:disabled { cursor: default; opacity: 0.35; }
@media (hover: hover) { .pd-boton:not(:disabled):hover { color: #fff; background: rgb(255 255 255 / 0.16); } }
.pd-boton:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pd-esc { object-fit: contain; flex: none; width: 22px; height: 22px; }
.portal-despa .marca { display: inline-grid; place-items: center; min-width: 3rem; height: 1.6rem; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 5px;
  font-size: var(--fs-md); font-weight: 800; font-style: normal; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text-primary); white-space: nowrap; }
.portal-despa .marca--g { border-color: var(--verde-400); color: var(--verde-300); }
.portal-despa .marca--p { border-color: var(--danger); color: var(--clay-300); }
.portal-despa .marca--pend { border-color: color-mix(in srgb, var(--accent) 70%, transparent); color: var(--accent-texto); font-size: var(--fs-2xs); }

.pd-mail__cab { flex-wrap: wrap; row-gap: 8px; }
.pd-mail__cab .wid__badge { margin-left: 0; }
.pd-mail .mail__filtro { flex: none; white-space: nowrap; }
.pd-mail__cab .mail__filtros { margin-left: auto; }
.pd-mail__herr { display: inline-flex; gap: 4px; }
.pd-mail__buscar { display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 0 12px; height: 36px; border-radius: 999px; background: rgb(255 255 255 / 0.08); color: rgb(255 255 255 / 0.6); }
.pd-mail__buscar input { all: unset; touch-action: manipulation; flex: 1; min-width: 0; font-size: var(--fs-sm); color: #fff; }
.pd-mail__buscar:focus-within { box-shadow: inset 0 0 0 1px var(--accent); }
.pd-mail .mail { grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1.3fr); }
.pd-mail__dia { padding: 10px 10px 4px; color: rgb(255 255 255 / 0.5); list-style: none; }
.pd-mail__dia:first-child { padding-top: 4px; }
.pd-mail .mail__linea b { font-weight: 600; color: rgb(255 255 255 / 0.75); }
.pd-mail .mail__item--nuevo .mail__linea b { color: #fff; }
.pd-mail__estrella { flex: none; width: 13px; height: 13px; color: #ffd166; }
.pd-mail .mail__cuerpo { max-width: 50rem; }
.pd-mail__volver { display: none; }
@media (max-width: 1100px) {
  .pd-mail .mail { grid-template-columns: minmax(0, 1fr); }
  .pd-mail .mail__lista { max-height: none; }
  .pd-mail--leyendo .mail__lista { display: none; }
  .pd-mail:not(.pd-mail--leyendo) .mail__leer { display: none; }
  .pd-mail__volver { all: unset; touch-action: manipulation; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; margin: 10px 14px 0; padding: 5px 12px 5px 8px;
    border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; color: #fff; background: rgb(255 255 255 / 0.1); align-self: start; }
  .pd-mail__cab .mail__filtros { margin-left: 0; order: 3; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .pd-mail__herr { margin-left: auto; }
}

.pd-cal { flex: 1; min-height: 0; display: grid; gap: 12px;
  grid-template-columns: minmax(0, 1fr) clamp(19rem, 25vw, 24rem); grid-template-rows: auto minmax(0, 1fr); }
.pd-cal > .wid { animation-delay: calc(var(--i, 0) * var(--mov-desfase)); }

.pd-cal > .pd-cal__franja { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; padding: 10px 16px; }
.pd-cal__tit { margin: 0; flex: none; font-size: var(--fs-lg); font-weight: 800; color: #fff; white-space: nowrap; }
.pd-cal__meses { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(var(--meses, 12), minmax(0, 1fr)); grid-template-rows: auto auto; gap: 4px; }
.pd-cal__tramo { grid-row: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding-right: 6px;
  font-size: var(--fs-2xs); font-weight: 800; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); line-height: 1.2; }
.pd-cal__tramo > span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-cal__tramo::after { content: ''; flex: 1 1 10px; min-width: 10px; height: 1px; background: rgb(255 255 255 / 0.18); }
.pd-cal__tramo--hoy { color: var(--accent-texto); }
.pd-cal__tramo--hoy::after { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.pd-cal__tramo--uno { justify-content: center; padding-right: 0; letter-spacing: 0.02em; font-stretch: var(--wd-condensed); }
.pd-cal__tramo--uno::after { display: none; }
.pd-cal__m { all: unset; touch-action: manipulation; box-sizing: border-box; cursor: pointer; grid-row: 2; min-width: 0; display: grid; justify-items: center; align-content: start; gap: 4px;
  padding: 5px 2px 6px; border-radius: 9px; background: rgb(255 255 255 / 0.05);
  font-size: var(--fs-2xs); font-weight: 800; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-secondary); line-height: 1.2; }
.pd-cal__m--hoy { color: #fff; box-shadow: inset 0 -2px 0 rgb(255 255 255 / 0.45); }
.pd-cal__m--on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-texto); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
@media (hover: hover) { .pd-cal__m:not(.pd-cal__m--on):hover { background: rgb(255 255 255 / 0.12); color: #fff; } }
.pd-cal__m:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pd-cal__puntos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; min-height: 5px; max-width: 100%; padding-inline: 2px; }
.pd-cal__punto { width: 5px; height: 5px; border-radius: 50%; background: rgb(255 255 255 / 0.6); }
.pd-cal__punto--copa { background: #ff9f5a; }
.pd-cal__punto--amistoso { background: rgb(255 255 255 / 0.28); }
.pd-cal__datos { flex: none; display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.pd-cal__datos li { display: grid; align-content: center; gap: 2px; min-width: 0; padding: 0 var(--sp-6); border-left: 1px solid rgb(255 255 255 / 0.1); }
.pd-cal__datos li:first-child { border-left: 0; }
.pd-cal__datos b { display: flex; align-items: baseline; gap: 4px; font-size: var(--fs-md); font-weight: 800; color: #fff; white-space: nowrap; }
.pd-cal__datos b small { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.pd-cal__boton { all: unset; touch-action: manipulation; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; color: var(--accent-texto); border-radius: 4px; }
.pd-cal__boton .i { width: 14px; height: 14px; flex: none; }
@media (hover: hover) { .pd-cal__boton:hover { color: #fff; } }
.pd-cal__boton:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-cal__acento { color: var(--accent-texto); }

.pd-cal > .pd-cal__mes { padding: 12px 14px; gap: 8px; }
.pd-cal__cab { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pd-cal__cab h3 { margin: 0; font-size: var(--fs-xl); font-weight: 800; color: #fff; white-space: nowrap; }
.pd-cal__chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 2px 10px; border-radius: var(--r-pill); font-size: var(--fs-2xs); font-weight: 800;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-cal__chip::before { content: ''; flex: none; width: 12px; height: 4px; border-radius: 2px; background: var(--accent); }
.pd-cal__grilla { flex: 1; min-height: 0; display: grid; gap: 5px; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(var(--semanas, 5), minmax(0, 1fr)); }
.pd-cal__sem { text-align: center; font-size: var(--fs-2xs); font-weight: 800; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.pd-cal__d { all: unset; touch-action: manipulation; box-sizing: border-box; cursor: pointer; position: relative; min-width: 0; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px; padding: 5px 6px 9px; border-radius: 10px; background: rgb(255 255 255 / 0.045); color: var(--text-secondary); }
.pd-cal__d--fuera { opacity: 0.4; }
.pd-cal__d--elegido { background: rgb(255 255 255 / 0.13); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.55); }
.pd-cal__d--hoy { box-shadow: inset 0 0 0 2px var(--accent); }
@media (hover: hover) { .pd-cal__d:not(.pd-cal__d--elegido):hover { background: rgb(255 255 255 / 0.09); } }
.pd-cal__d:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pd-cal__d--mercado::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: color-mix(in srgb, var(--accent) 60%, transparent); }
.pd-cal__d--cierra::after { right: 8px; border-radius: 0 3px 3px 0; background: var(--accent); }
.pd-cal__num { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: var(--fs-2xs); line-height: 1.25; }
.pd-cal__num b { flex: none; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.pd-cal__num em { flex: none; font-style: normal; font-weight: 800; color: var(--accent-texto); }
.pd-cal__d--hoy .pd-cal__num b { color: var(--accent-texto); }
.pd-cal__hito-i { flex: none; display: inline-grid; color: var(--warn); }
.pd-cal__hito-i .i, .pd-cal__hito .i { width: 14px; height: 14px; }
.pd-cal__rot-mercado { margin-left: auto; min-width: 0; font-weight: 800; color: var(--accent-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-cal__hito { display: flex; align-items: flex-start; gap: 5px; min-width: 0; font-size: var(--fs-2xs); font-weight: 600; line-height: 1.25; color: var(--text-secondary); }
.pd-cal__hito .i { flex: none; color: var(--warn); margin-top: 1px; }
.pd-cal__hito > span { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-cal__libre { font-size: var(--fs-2xs); font-weight: 600; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-ficha { position: relative; min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 7px; row-gap: 1px; align-items: center;
  padding: 5px 7px; border-radius: 8px; background: rgb(255 255 255 / 0.07); }
.pd-ficha > .pd-esc { grid-row: 1 / 3; width: 22px; height: 22px; }
.pd-ficha__rival { min-width: 0; font-size: var(--fs-xs); font-weight: 700; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-ficha--copa .pd-ficha__rival { padding-right: 14px; }
.pd-ficha__pie { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: var(--fs-2xs); font-weight: 700; line-height: 1.2; color: var(--text-muted); white-space: nowrap; }
.pd-ficha__pie .i { flex: none; width: 13px; height: 13px; color: var(--text-secondary); }
.pd-ficha__pie > span { flex: none; font-variant-numeric: tabular-nums; }
.pd-ficha__hora--tel { display: none; }
.pd-ficha__res { font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.pd-ficha__res--g { color: var(--verde-300); }
.pd-ficha__res--p { color: var(--clay-300); }
.pd-cal__num-pie { display: none; margin-left: auto; flex: none; font-size: inherit; align-items: center; gap: 4px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.pd-cal__num-pie .i { width: 13px; height: 13px; color: var(--text-secondary); }
.pd-ficha__copa { position: absolute; top: 3px; right: 4px; width: 14px; height: 20px; object-fit: contain; }

.pd-cal > .pd-cal__lado { padding: 0; }
.pd-cal__solapas { display: flex; gap: 4px; margin: 12px 14px 0; padding: 3px; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.06); }
.pd-cal__solapa { all: unset; touch-action: manipulation; box-sizing: border-box; cursor: pointer; flex: 1 1 auto; min-width: 0; padding: 5px 8px; border-radius: var(--r-pill); text-align: center;
  font-size: var(--fs-2xs); font-weight: 700; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-cal__solapa[aria-selected='true'] { background: var(--accent); color: var(--text-on-accent); }
@media (hover: hover) { .pd-cal__solapa[aria-selected='false']:hover { color: #fff; background: rgb(255 255 255 / 0.08); } }
.pd-cal__solapa:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pd-cal__lado-cuerpo { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 12px 16px 14px; display: flex; flex-direction: column; }
.pd-cal__lado-cuerpo--lista { display: block; }
.pd-dia { flex: 1 0 auto; display: flex; flex-direction: column; gap: 10px; }
.pd-dia p { margin: 0; }
.pd-dia__rot { color: var(--text-muted); }
.pd-dia__duelo { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 4px; }
.pd-dia__duelo .pd-esc { width: 64px; height: 64px; }
.pd-dia__duelo em { font-style: normal; font-size: var(--fs-lg); font-weight: 900; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pd-dia__res { font-size: var(--fs-xl) !important; color: #fff !important; }
.pd-dia__res--g { color: var(--verde-300) !important; }
.pd-dia__res--p { color: var(--clay-300) !important; }
.pd-dia__rival { margin: 0; display: flex; justify-content: center; align-items: center; gap: 8px; text-align: center; font-size: var(--fs-xl); font-weight: 800; font-stretch: var(--wd-condensed); color: #fff; text-wrap: balance; line-height: 1.15; }
.pd-dia__rival > .pd-esc { display: none; width: 28px; height: 28px; }
.pd-dia__filas { margin: 0; display: grid; }
.pd-dia__filas > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.pd-dia__filas dt { flex: none; margin: 0; }
.pd-dia__filas dd { margin: 0; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; text-align: right; font-size: var(--fs-md); font-weight: 700; color: #fff; text-wrap: balance; }
.pd-dia__filas dd .marca { min-width: 2.6rem; height: 1.5rem; font-size: var(--fs-md); }
.pd-dia__pen { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.pd-dia__lado--l { color: var(--verde-300) !important; }
.pd-dia__lado--v { color: var(--azul-300) !important; }
.pd-dia__filas dd.pd-cal__acento { color: var(--accent-texto); }
.pd-dia__hitos { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pd-dia__hitos li { display: flex; gap: 8px; align-items: flex-start; }
.pd-dia__hitos .i { flex: none; color: var(--warn); margin-top: 2px; }
.pd-dia__hitos span { display: grid; min-width: 0; }
.pd-dia__hitos b { font-size: var(--fs-md); font-weight: 700; color: #fff; }
.pd-dia__hitos small { font-size: var(--fs-xs); color: var(--text-muted); }
.pd-dia__nada .dia__linea { font-size: var(--fs-md); line-height: 1.45; color: rgb(255 255 255 / 0.85); }
.pd-dia__nada .dia__linea strong { color: #fff; }
.pd-dia .dia__nota { font-size: var(--fs-xs); line-height: 1.45; color: var(--text-muted); }
.pd-dia__acc { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.pd-dia__acc .action { width: 100%; justify-content: center; }

.pd-cal__marca { flex: none; display: inline-grid; }
.pd-cal__marca .i { width: 13px; height: 13px; }
.pd-cal__marca--gente { color: var(--azul-300); }
.pd-cal__marca--rota { color: var(--accent-texto); }
.pd-gente { display: grid; gap: 6px; }
.pd-gente__cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.pd-gente__tit { margin: 0; }
.pd-gente__cab .pd-dia__rota { flex: none; gap: 6px; }
.pd-gente__lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pd-gente__fila { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.pd-gente__i { color: var(--azul-300); }
.pd-gente__quien { display: grid; min-width: 0; line-height: 1.25; }
.pd-gente__quien b { font-size: var(--fs-md); font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-gente__quien small { font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-gente__mas { all: unset; touch-action: manipulation; cursor: pointer; padding-left: 24px; font-size: var(--fs-xs); font-weight: 700; color: var(--accent-texto); border-radius: 4px; }
@media (hover: hover) { .pd-gente__mas:hover { color: #fff; } }
.pd-gente__mas:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-dia__rota[aria-pressed='true'] { color: var(--accent-texto); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
@media (min-width: 1101px) and (max-height: 1000px) {
  .pd-dia:has(.pd-gente__lista) .pd-dia__duelo { display: none; }
  .pd-dia:has(.pd-gente__lista) .pd-dia__rival { font-size: var(--fs-lg); justify-content: flex-start; text-align: left; }
  .pd-dia:has(.pd-gente__lista) .pd-dia__rival > .pd-esc { display: block; }
}
@media (min-width: 1101px) and (max-height: 800px) {
  .pd-gente__quien { display: flex; align-items: baseline; gap: 6px; }
  .pd-gente__quien b { flex: 0 1 auto; max-width: 55%; }
  .pd-gente__quien small { flex: 1 1 0; min-width: 0; }
  .pd-dia:has(.pd-gente__lista) .pd-dia__filas { grid-template-columns: minmax(0, 1fr); }
  .pd-dia:has(.pd-gente__lista) .pd-dia__filas dd { flex: 1 1 0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-dia:has(.pd-gente__lista) .pd-dia__filas dd .i { display: inline-block; vertical-align: -2px; margin-right: 4px; }
  .pd-dia:has(.pd-gente__lista) { gap: 5px; }
  .pd-dia__acc .action { min-width: 0; padding-inline: 9px; }
  .pd-dia:has(.pd-gente__lista) .pd-dia__filas > div { padding: 4px 0; }
}

@media (min-width: 1101px) and (max-height: 800px) {
  .pd-cal { gap: 10px; }
  .pd-cal > .pd-cal__franja { padding: 7px 14px; }
  .pd-cal__m { padding: 3px 2px 4px; gap: 3px; }
  .pd-cal > .pd-cal__mes { padding: 8px 12px 10px; gap: 6px; }
  .pd-cal__cab h3 { font-size: var(--fs-lg); }
  .pd-cal__grilla { gap: 4px; }
  .pd-cal__d { padding: 4px 5px 6px; gap: 2px; }
  .pd-ficha { padding: 3px 6px; }
  .pd-cal__solapas { margin-top: 10px; }
  .pd-cal__lado-cuerpo { padding: 10px 14px 12px; }
  .pd-dia { gap: 7px; }
  .pd-dia__duelo { display: none; }
  .pd-dia__rival { font-size: var(--fs-lg); justify-content: flex-start; text-align: left; }
  .pd-dia__rival > .pd-esc { display: block; }
  .pd-dia__filas > div { padding: 5px 0; }
  .pd-dia__acc { flex-direction: row; flex-wrap: wrap; }
  .pd-dia__acc .action { flex: 1 1 8rem; width: auto; }
  .pd-cal__grilla--seis .pd-cal__num-pie { display: inline-flex; }
  .pd-cal__grilla--seis .pd-cal__num em { display: none; }
  .pd-cal__grilla--seis .pd-ficha { padding: 2px 5px; grid-template-columns: 18px minmax(0, 1fr); column-gap: 5px; }
  .pd-cal__grilla--seis .pd-ficha > .pd-esc { grid-row: auto; width: 18px; height: 18px; }
  .pd-cal__grilla--seis .pd-ficha__pie { display: none; }
  .pd-cal__grilla--seis .pd-ficha__copa { top: 2px; width: 12px; height: 16px; }
}

@media (max-width: 1100px) {
  .pd-cal { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .pd-cal > .pd-cal__franja { flex-wrap: wrap; row-gap: 10px; }
  .pd-cal__meses { flex-basis: 100%; order: 2; }
  .pd-cal__datos { order: 3; flex-wrap: wrap; }
  .pd-cal__grilla { grid-template-rows: auto; grid-auto-rows: minmax(4.5rem, auto); }
  .pd-cal__lado-cuerpo { overflow: visible; }
}
@media (max-width: 760px) {
  .pd-cal > .pd-cal__franja { padding: 10px 12px; }
  .pd-cal__meses { position: relative; grid-template-columns: repeat(var(--meses, 12), 3.6rem); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 2px; }
  .pd-cal__meses::-webkit-scrollbar { display: none; }
  .pd-cal__datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; width: 100%; }
  .pd-cal__datos li { padding: 0; border-left: 0; }
  .pd-cal__datos li:nth-child(even) { padding-left: 14px; border-left: 1px solid rgb(255 255 255 / 0.1); }
  .pd-cal > .pd-cal__mes { padding: 10px 8px; }
  .pd-cal__cab { flex-wrap: wrap; row-gap: 4px; }
  .pd-cal__cab h3 { font-size: var(--fs-lg); }
  .pd-cal__grilla { gap: 3px; grid-auto-rows: minmax(3.75rem, auto); }
  .pd-cal__d { padding: 4px 2px 7px; gap: 3px; align-items: center; }
  .pd-cal__num { justify-content: center; }
  .pd-cal__num em, .pd-cal__rot-mercado, .pd-cal__libre, .pd-cal__hito > span { display: none; }
  .pd-ficha { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 0; background: none; row-gap: 2px; }
  .pd-ficha > .pd-esc { grid-row: auto; }
  .pd-ficha__rival, .pd-ficha__pie .i, .pd-ficha__que { display: none; }
  .pd-ficha__hora--tel { display: inline; }
  .pd-ficha__copa { top: -2px; right: -1px; width: 10px; height: 14px; }
  .pd-cal__hito { justify-content: center; }
  .pd-cal__num { flex-wrap: wrap; column-gap: 3px; row-gap: 1px; }
  .pd-cal__marca .i { width: 12px; height: 12px; }
}

.pd-ag__filtros { margin-bottom: 6px; }
.pd-ag__eco { margin: 0 0 4px; }
.pd-ag__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pd-ag__lista .pd-mail__dia { padding-left: 4px; }
.pd-ag { all: unset; touch-action: manipulation; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 4.6rem 22px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 10px; font-size: var(--fs-sm); }
.pd-ag__dia { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.pd-ag__marca { display: grid; place-items: center; color: var(--warn); }
.pd-ag__que { display: grid; min-width: 0; }
.pd-ag__que b { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-ag__que small { color: var(--text-muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-ag__hora { font-size: var(--fs-xs); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.pd-ag--hito .pd-ag__que b { color: var(--text-secondary); }
.pd-ag--hoy { box-shadow: inset 3px 0 0 var(--accent); }
.pd-ag--elegido { background: color-mix(in srgb, var(--accent) 16%, transparent); }
@media (hover: hover) { .pd-ag:not(.pd-ag--elegido):hover { background: rgb(255 255 255 / 0.07); } }
.pd-ag:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }


.portal-despa.pd-quieto :not(.mail__decide, .mail__op-ir), .portal-despa.pd-quieto *::before, .portal-despa.pd-quieto *::after { animation: none !important; }
.portal-despa[data-vista='calendario'] .pd-cal > .wid { animation: none; }

.mail__ops--llama { border-radius: var(--r-lg); animation: ops-llama 1.6s var(--ease-entrada) both; }
@keyframes ops-llama {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  30% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 35%, transparent); }
  100% { box-shadow: 0 0 0 16px transparent; }
}
@media (prefers-reduced-motion: reduce) { .mail__ops--llama { animation: none; outline: 2px solid var(--accent); outline-offset: 4px; } }


.portal-despa .ipad,
.prs .ipad {
  --marco: 12px;
  position: relative;
  width: 100%;
  margin-inline: auto;
  padding: var(--marco);
  border-radius: 46px;
  background: #050506;
  box-shadow:
    0 0 0 1.5px #5d6168,
    0 0 0 3px #1c1e22,
    0 0 0 4px rgb(255 255 255 / 0.08),
    0 40px 80px -20px rgb(0 0 0 / 0.75),
    0 18px 36px -18px rgb(0 0 0 / 0.6),
    inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.portal-despa .ipad::before,
.prs .ipad::before {
  content: '';
  position: absolute;
  top: calc(var(--marco) / 2 - 3px);
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3b4a63, #0a0d14 60%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06);
}
.portal-despa .ipad__pantalla,
.prs .ipad__pantalla { border-radius: 30px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.9); }
@media (max-width: 760px) {
  .portal-despa .ipad, .prs .ipad { --marco: 8px; width: 100%; border-radius: 30px; }
  .portal-despa .ipad__pantalla, .prs .ipad__pantalla { border-radius: 22px; }
}

.pd-leertodo { appearance: none; margin: 0; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; flex: none;
  transition: background 160ms ease, color 160ms ease; }
.pd-leertodo:disabled { cursor: default; opacity: 0.4; }
.pd-leertodo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wid--correo > .wid__cab .pd-leertodo { margin-left: 8px; }
@media (max-width: 600px) { .pd-leertodo span { display: none; } .pd-leertodo { width: var(--pas-s); padding: 0; justify-content: center; } }

.pd-fin__nota { margin: 0; font-size: var(--fs-sm); line-height: 1.45; color: rgb(255 255 255 / 0.8); }
.pd-fin__nota--carta { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgb(255 255 255 / 0.06); }

html.en-modo-club :is(.dpu .label, .dpu-forma em, .dpu-cara .label, .dpu-vf__dia, .dpu .dpu-item__dec, .dpu-ops__cab b, .dpu-tabla th, .dpu-col .dpu-reto__txt .label, .dpu-col .edf-pd__txt .label, .dpu-reto__txt .label) { font-size: var(--fs-2xs); }
html.en-modo-club .dpu .dpu-item__dec { line-height: 1.3; }
html.en-modo-club :is(.dpu-cab > b, .dpu-duelo__lado b, .dpu-band__tit, .dpu-col .dpu-reto__txt b, .dpu-band .mail__texto, .dpu-band .mail__cuerpo > p) { font-size: var(--fs-md); }
html.en-modo-club .dpu-reto__txt { font-size: var(--fs-xs); }
html.en-modo-club :is(.dpu-sigue__tit, .dpu-duelo__vs em, .dpu-termo > b, .mail__leer > .mail__tit, .dpu-band .mail__tit, .dpu-descenso__n) { font-size: var(--fs-xl); }
@media (max-width: 760px) {
  html.en-modo-club :is(.dpu-sigue__tit, .dpu-duelo__vs em, .dpu-band .mail__tit) { font-size: var(--fs-lg); }
  html.en-modo-club :is(.dpu-sigue__txt, .dpu-duelo__lado b) { font-size: var(--fs-sm); }
}

/* escenas-con-foto.css */

.ecf { --ecf-a: var(--accent); --ecf-b: var(--accent); }

.ecf-banda {
  position: relative;
  isolation: isolate;
  min-height: 15rem;
  align-items: flex-end;
  padding-top: 72px;
  color: #fff;
  background: none;
  overflow: hidden;
}
.ecf-banda > :not(.ecf__fotos) { position: relative; z-index: 1; }
.ecf-banda :is([class$='__titulo'], [class$='__club'], [class$='__eco']) { color: #fff; text-shadow: 0 2px 14px rgb(0 0 0 / 0.55); }
.ecf-banda img:not(.ecf__foto) { filter: drop-shadow(0 6px 18px rgb(0 0 0 / 0.5)); }

.ecf__fotos { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0b0d12; }
.ecf__foto {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1400ms var(--ease);
}
.ecf__foto--on { opacity: 1; animation: ecf-acerca 10s linear both; }
@keyframes ecf-acerca { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.ecf__fotos::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(112deg, color-mix(in srgb, var(--ecf-b) 80%, transparent) 0 7%, transparent 7.4%),
    linear-gradient(180deg, rgb(8 10 14 / 0.15) 0%, rgb(8 10 14 / 0.35) 45%, rgb(8 10 14 / 0.88) 100%),
    linear-gradient(200deg, transparent 40%, color-mix(in srgb, var(--ecf-a) 45%, transparent) 100%);
}
.ecf--descenso .ecf__foto { filter: saturate(0.55) brightness(0.85); }

.ecf-cab {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; gap: var(--sp-5);
  min-height: 13rem;
  margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-5);
  padding: 72px var(--sp-6) var(--sp-5);
  border-radius: var(--r-md) var(--r-md) 0 0;
  color: #fff;
}
.ecf-cab > :not(.ecf__fotos) { position: relative; z-index: 1; }
.ecf-cab__marco { display: grid; place-items: center; flex: none; }
.ecf-cab__marco::before {
  content: ''; position: absolute; inset: -42% -78%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgb(8 10 14 / 0.82), rgb(8 10 14 / 0.62) 45%, rgb(8 10 14 / 0.25) 75%, rgb(8 10 14 / 0) 100%);
}
.ecf-cab__escudo {
  --halo: 1.4px;
  width: 72px; height: 72px; object-fit: contain; flex: none;
  filter: var(--halo-filtro, ) var(--escudo-sobre-foto) drop-shadow(0 6px 18px rgb(0 0 0 / 0.5));
}
.ecf-cab__id { display: grid; gap: 4px; min-width: 0; }
.ecf-cab__club { font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: rgb(255 255 255 / 0.85); }
.ecf-cab .dialogo__titulo { margin: 0; font-size: var(--fs-3xl); font-weight: 800; font-stretch: var(--wd-condensed); line-height: 1; color: #fff; text-shadow: 0 2px 14px rgb(0 0 0 / 0.55); }

@media (max-width: 560px) {
  .ecf-banda { min-height: 12rem; padding-top: 56px; }
  .ecf-cab { min-height: 10rem; padding-top: 56px; }
  .ecf-cab__escudo { width: 52px; height: 52px; }
  .ecf-cab .dialogo__titulo { font-size: var(--fs-2xl); }
}
@media (prefers-reduced-motion: reduce) {
  .ecf__foto--on { animation: none; }
}

/* directo.css */
.drc {
  width: min(720px, calc(100vw - 2 * var(--sp-6)));
  max-height: calc(100dvh - 2 * var(--sp-6));
  overflow: hidden;
  padding: var(--sp-9) var(--sp-9) var(--sp-8);
  flex-direction: column; align-items: stretch; gap: var(--sp-6);
  text-align: center;
}
.drc[open] { display: flex; }
.drc .drc__torneo { margin: 0; padding-inline: 48px; text-align: center; }

.drc__marcador {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-8);
  padding: var(--sp-7) 0; border-block: 1px solid var(--line-hairline);
}
.drc__lado { display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); min-width: 0; text-align: center; }
.drc__lado b { color: var(--text-primary); font-size: var(--fs-lg); hyphens: auto; overflow-wrap: break-word; }
.drc__escudo { width: 88px; height: 88px; }
.drc__cifra {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
  font-size: var(--fs-editorial); font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; line-height: 1;
}
.drc__num { display: flex; align-items: center; white-space: nowrap; letter-spacing: -0.02em; }
.drc__num i { margin-inline: var(--sp-5); font-style: normal; opacity: 0.5; }
.drc__cifra small { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.drc__veredicto {
  padding: var(--sp-2) var(--sp-5); border-radius: var(--r-pill);
  font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3;
  color: var(--text-secondary); background: rgb(255 255 255 / 0.08);
}
.drc__marcador--g .drc__num { color: var(--good); }
.drc__marcador--p .drc__num { color: var(--danger); }
.drc__marcador--g .drc__veredicto { color: var(--good); background: color-mix(in srgb, var(--good) 16%, transparent); }
.drc__marcador--p .drc__veredicto { color: var(--danger); background: color-mix(in srgb, var(--danger) 16%, transparent); }

.drc__goles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); margin-top: calc(-1 * var(--sp-3)); font-size: var(--fs-md); }
.drc__goles ul { margin: 0; padding: 0; list-style: none; text-align: center; }
.drc__gol { padding-block: var(--sp-1); color: var(--text-muted); }
.drc__gol--mio b { color: var(--text-primary); font-weight: 600; }
.drc__min { font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; }
.drc__sin-goles { margin: 0; color: var(--text-muted); }

.drc__datos { display: flex; justify-content: center; gap: var(--sp-5); }
.drc__dato {
  flex: 0 1 240px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-6); border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line-hairline);
}
.drc__dato b { color: var(--text-primary); font-size: var(--fs-lg); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drc__dato small { font-size: var(--fs-xs); color: var(--text-muted); }

.drc__resumen, .drc__nota, .drc__viene { margin: 0; text-align: center; }
.drc__resumen { color: var(--text-secondary); font-size: var(--fs-md); }
.drc__nota { font-size: var(--fs-2xs); color: var(--text-muted); }
.drc__viene { font-size: var(--fs-sm); color: var(--text-secondary); }
.drc__viene .label { margin-right: var(--sp-3); }
.drc__viene b { color: var(--text-primary); }
.drc__otros { font-size: var(--fs-sm); }
.drc__otros .label { margin: 0 0 var(--sp-2); }
.drc__otros ul { margin: 0; padding: 0; list-style: none; text-align: center; }

.drc .dialogo__pie { flex-wrap: nowrap; justify-content: center; gap: var(--sp-5); margin-top: var(--sp-2); }
.drc .dialogo__pie .action { flex: 0 1 260px; min-width: 0; min-height: 44px; justify-content: center; text-align: center; }

@media (max-width: 520px) {
  .drc { padding: var(--sp-8) var(--sp-5) var(--sp-6); gap: var(--sp-5); }
  .drc__marcador { gap: var(--sp-4) var(--sp-3); padding: var(--sp-6) 0 var(--sp-5); }
  .drc__cifra { display: contents; }
  .drc__num { grid-column: 2; grid-row: 1; font-size: var(--fs-3xl); font-weight: 800; }
  .drc__num i { margin-inline: var(--sp-3); }
  .drc__cifra small, .drc__veredicto { grid-column: 1 / -1; justify-self: center; }
  .drc__escudo { width: 64px; height: 64px; }
  .drc__lado { grid-row: 1; }
  .drc__lado b { font-size: var(--fs-sm); hyphens: manual; }
  .drc__goles { gap: var(--sp-5); font-size: var(--fs-sm); }
  .drc__datos { gap: var(--sp-4); }
  .drc__dato { padding: var(--sp-4) var(--sp-4); }
  .drc__dato b { font-size: var(--fs-md); }
  .drc .dialogo__pie { flex-direction: column; gap: var(--sp-4); }
  .drc .dialogo__pie .action { flex: none; width: 100%; }
  .drc .dialogo__pie [data-drc='otro'], .drc .dialogo__pie [data-drc='freno'] { order: -1; }
}

@media (max-height: 800px) and (min-width: 521px) {
  .drc { padding-block: var(--sp-8) var(--sp-7); gap: var(--sp-5); }
  .drc__marcador { padding: var(--sp-5) 0; }
  .drc__escudo { width: 72px; height: 72px; }
}
@media (max-width: 360px), (max-height: 640px) {
  .drc { gap: var(--sp-3); }
  .drc__marcador { padding: var(--sp-3) 0; gap: var(--sp-3); }
  .drc__lado b { font-size: var(--fs-2xs); }
  .drc__escudo { width: 40px; height: 40px; }
  .drc__cifra { font-size: var(--fs-3xl); }
  .drc__goles, .drc__resumen { font-size: var(--fs-xs); }
}

@keyframes drc-entra { from { opacity: 0; translate: 0 var(--mov-distancia, 12px); } }
@keyframes drc-golpe { from { opacity: 0; scale: 0.6; } 60% { opacity: 1; scale: 1.08; } }
.drc:not([data-quieto]) > [style*='--i'] {
  animation: drc-entra var(--mov-pieza, 460ms) var(--mov-curva, ease-out) both;
  animation-delay: calc(120ms + var(--i) * 70ms);
}
.drc:not([data-quieto]) .drc__num {
  animation: drc-golpe 520ms var(--mov-curva, ease-out) both;
  animation-delay: 260ms;
}
@media (prefers-reduced-motion: reduce) {
  .drc > [style*='--i'], .drc .drc__num { animation: none !important; }
}
.drc[data-quieto], .drc[data-quieto]::backdrop { animation: none; transition: none; }

.action--directo { gap: var(--sp-2); white-space: nowrap; }
.action--directo .i { opacity: 1; }
.dpu-partido__pie:has(.action--directo) > .action { flex: 1 1 0; min-width: 0; padding-inline: var(--sp-3); }
.dpu-partido__pie:has(.action--directo) .dpu-luego { display: none; }
.dpu-partido__pie .action--directo .i { display: none; }
.dpu-partido__pie :is(.action, .btn).action--directo:not(.tapa__ir, .tapa__puertas .btn, .escena__accion):has(> .i:first-child:not(:last-child) + span:last-child) { padding-inline: var(--sp-3); }
.dpu-partido__pie :is(.action, .btn).action--directo:not(.tapa__ir, .tapa__puertas .btn, .escena__accion):has(> .i:first-child:not(:last-child) + span:last-child)::after { content: none; }
.dpu-partido__pie:has(.action--directo) > .action { justify-content: center; text-align: center; }
.drc__escudo.drc__bandera { height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px var(--line-strong); }
@media (max-width: 760px) {
  .dpu-partido__pie:has(.action--directo) { gap: var(--sp-3); }
  .dpu-partido__pie:has(.action--directo) > .action { padding-inline: var(--sp-2); font-size: var(--fs-sm); }
  .dpu-partido__pie :is(.action, .btn).action--directo:not(.tapa__ir, .tapa__puertas .btn, .escena__accion):has(> .i:first-child:not(:last-child) + span:last-child) { padding-inline: var(--sp-2); }
}

