/* Plantilla Edición · CSS extra (requiere css/edutic.css). Colores por data-country en <body>. */
.pg-edicion { display: flex; flex-direction: column; gap: 2.75rem; padding-bottom: 3.5rem; }
.pg-edicion__ph { height: 460px; display: block; }

/* Hero */
.pg-edicion .edu-hero__body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: stretch; padding: 2.25rem 2.5rem; }
.pg-edicion .edu-hero__body.pg-edicion__slide { min-height: 0; }
.pg-edicion .edu-hero__body > .d-flex.flex-column { justify-content: center; }
.pg-edicion .edu-hero__body > * { min-width: 0; }
/* Pantallas medianas: la foto cede ancho en vez de salirse (y baja de alto con ella) */
@media (max-width: 1199.98px) { .pg-edicion .edu-hero__body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem 2rem; } }
.pg-edicion__slide { min-height: 412px; }
/* Diapositivas de organizaciones: título y subtítulo arriba, logos a todo el ancho debajo. */
.pg-edicion__slide--split { display: flex; flex-direction: column; gap: 1.75rem; padding: 2.5rem 2.5rem 2.25rem; }
.pg-edicion__flag { font-size: 1.5rem; line-height: 1; }
.pg-edicion__pill-past { background: #fff; color: var(--edu-text); border: 1px solid var(--edu-accent-line); }
.pg-edicion__lema { font-size: 1.25rem; line-height: 1.3; color: var(--edu-accent-text); }
/* Diapositiva de la edición: título y descripción más chicos, para que quepan la descripción de event y los botones */
.pg-edicion .edu-hero h1.edu-h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; }
.pg-edicion .edu-hero .edu-lead { font-size: .9375rem; line-height: 1.55; }
/* Descripción con el formato de event (párrafos, negritas, listas, enlaces) */
.pg-edicion__desc > * { margin: 0 0 .6rem; }
.pg-edicion__desc > :last-child { margin-bottom: 0; }
.pg-edicion__desc strong, .pg-edicion__desc b { color: var(--edu-ink); font-weight: 700; }
.pg-edicion__desc ul, .pg-edicion__desc ol { padding-left: 1.25rem; }
.pg-edicion__desc a { color: var(--edu-accent-text); text-decoration: underline; text-underline-offset: 2px; }
.pg-edicion__media { height: auto; min-height: 260px; max-height: 400px; align-self: stretch; }
/* Diapositiva de la edición en dos filas: 1) datos y foto · 2) colaboradores y botones */
.pg-edicion__fila2 { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--edu-accent-line, var(--edu-border)); }
.pg-edicion__fila2 .pg-edicion__logos--inline { grid-template-columns: repeat(4, 112px); max-width: none; }
.pg-edicion__fila2 .pg-edicion__org { height: 56px; }
@media (max-width: 767.98px) { .pg-edicion__fila2 .pg-edicion__logos--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pg-edicion__fila2 > .d-flex:last-child { margin-left: 0; } }
.pg-edicion__fila2 > .d-flex:last-child { margin-left: auto; }
.pg-edicion__media--vacia { display: grid; place-items: center; background: #e6e8e6; color: #5c6560; font-size: .875rem; font-weight: 600; text-align: center; padding: 1.5rem; }
.pg-edicion__imgnote { font-size: .6875rem; font-weight: 600; color: var(--edu-text-2); }
.pg-edicion__controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .875rem .5rem 0; }
.pg-edicion__controls .carousel-indicators { margin: 0; }
@media (max-width: 991.98px) {
  .pg-edicion .edu-hero__body, .pg-edicion__slide--split { grid-template-columns: 1fr; padding: 1.75rem 1.25rem; gap: 1.5rem; }
  .pg-edicion__media { height: 240px; }
  .pg-edicion__slide { min-height: 0; }
}

/* Logos de texto (organizaciones y auspiciadores) */
.pg-edicion__logos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .625rem; }
.pg-edicion__logos span { height: 52px; padding: 0 .625rem; background: #fff; border: 1px solid var(--edu-border); border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .75rem; font-weight: 800; color: var(--edu-text); }
.pg-edicion__org a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: inherit; text-decoration: none; }
/* Los logos de event son cuadrados con margen propio: se recortan al centro para que llenen la caja. */
.pg-edicion__logos .pg-edicion__org { height: 76px; padding: .25rem 1rem; overflow: hidden; }
.pg-edicion__org img { width: 100%; height: 100%; object-fit: cover; transform: scale(.92); }
.pg-edicion__logos.pg-edicion__logos--inline { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 540px; }
.pg-edicion__logos--inline .pg-edicion__org { height: 64px; }
@media (max-width: 1199.98px) { .pg-edicion__logos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .pg-edicion__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .pg-edicion__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-edicion__k { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--edu-muted); }
.pg-edicion__intro { font-size: .9375rem; line-height: 1.6; color: var(--edu-text); max-width: 620px; }
.pg-edicion__empty { font-size: .875rem; color: var(--edu-muted); }

/* Datos clave */
.pg-edicion__facts { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: .75rem; align-items: start; background: #fff; border: 1px solid var(--edu-border); border-radius: 16px; padding: .5rem; }
.pg-edicion__fact { display: flex; flex-direction: row; align-items: baseline; gap: .75rem; padding: 1rem 1.25rem; border-left: 3px solid var(--edu-accent); white-space: nowrap; }
.pg-edicion__fact b { font-size: .9375rem; line-height: 1.4; color: var(--edu-ink); }
.pg-edicion__video { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; min-width: 0; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.pg-edicion__fact--video { position: relative; height: 4.625rem; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: #1c2416; }
.pg-edicion__fact--video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-edicion__video-t { font-size: .8125rem; font-weight: 700; line-height: 1.3; color: var(--edu-ink); }
.pg-edicion__fact-play { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; font-size: 1.35rem; }
.pg-edicion__video:hover .pg-edicion__fact-play, .pg-edicion__video:focus-visible .pg-edicion__fact-play { background: var(--edu-green, #4F7A12); }
.pg-edicion__visor .modal-content { overflow: hidden; }
.pg-edicion__visor .modal-title { font-weight: 700; }
.pg-edicion__visor video, .pg-edicion__visor iframe { width: 100%; height: 100%; border: 0; background: #000; }
@media (max-width: 991.98px) { .pg-edicion__facts { grid-template-columns: auto minmax(0, 1fr); } }
@media (max-width: 575.98px) {
  .pg-edicion__facts { grid-template-columns: 1fr; }
  .pg-edicion__fact { flex-wrap: wrap; white-space: normal; }
}

/* Programa */
.pg-edicion__program { display: flex; flex-direction: column; }
.pg-edicion__day { display: grid; grid-template-columns: 220px 1fr; gap: 1.75rem; padding: 1.375rem 0; border-top: 1px solid var(--edu-border); }
.pg-edicion__day-d { font-family: var(--edu-font-cond); font-size: 1.5rem; color: var(--edu-ink); }
.pg-edicion__day-a { font-size: .75rem; color: var(--edu-muted); }
.pg-edicion__session { display: grid; grid-template-columns: 1fr 260px; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--edu-border-2); }
.pg-edicion__session-t { font-size: .875rem; font-weight: 600; color: var(--edu-ink); }
.pg-edicion__session-w { font-size: .8125rem; color: var(--edu-text); }
@media (max-width: 767.98px) {
  .pg-edicion__day { grid-template-columns: 1fr; gap: .75rem; }
  .pg-edicion__session { grid-template-columns: 1fr; gap: .25rem; }
}

/* Temas */
.pg-edicion__tema { padding: .4375rem .8125rem; background: var(--edu-accent-soft); border: 1px solid var(--edu-accent-line); border-radius: 999px; font-size: .8125rem; font-weight: 600; color: var(--edu-text-2); }

/* Galería */
.pg-edicion__sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.pg-edicion__ghosts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.pg-edicion__ghosts div { height: 160px; border-radius: var(--edu-radius); background: var(--edu-accent-soft); border: 1px dashed var(--edu-accent-line); }
@media (max-width: 575.98px) { .pg-edicion__ghosts { grid-template-columns: repeat(2, 1fr); } .pg-edicion__ghosts div { height: 110px; } }

/* Otras ediciones */
.pg-edicion__others { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.pg-edicion__other { display: flex; flex-direction: column; gap: 2px; padding: .875rem 1.125rem; background: #fff; border: 1px solid var(--edu-border); border-radius: 12px; text-decoration: none; }
.pg-edicion__other:hover { border-color: var(--edu-accent); }
.pg-edicion__other-y { font-family: var(--edu-font-cond); font-size: 1.125rem; color: var(--edu-accent-text); }
.pg-edicion__other-n { font-size: .8125rem; font-weight: 600; color: var(--edu-ink); }
.pg-edicion__other-l { font-size: .6875rem; color: var(--edu-muted); }
@media (max-width: 991.98px) { .pg-edicion__others { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .pg-edicion__others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pg-edicion__band-t { font-weight: 900; }

/* Aviso de ficha en migración */
.pg-edicion .pg-edicion__migra { margin: 0 0 1.5rem; background: var(--edu-accent-soft); border: 1px solid var(--edu-accent-line); color: var(--edu-text-2); border-radius: 12px; font-size: .875rem; }
.pg-edicion .pg-edicion__migra i { color: var(--edu-accent-text); }

.pg-edicion__flag .edu-flag { margin: 0; width: 24px; }
@media (max-width: 575.98px) { .pg-edicion__logos.pg-edicion__logos--inline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Formulario de auspicio al final de la ficha */
html { scroll-behavior: smooth; }
.pg-edicion__form { box-shadow: 0 16px 36px rgba(0, 0, 0, .06); }

/* Franjas de organizaciones: logos a todo el ancho, una por grupo */
.pg-edicion__franja { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 1.75rem; background: var(--edu-accent-soft); border: 1px solid var(--edu-border); border-radius: 16px; }
@media (max-width: 575.98px) { .pg-edicion__franja { padding: 1.25rem 1rem; } }

/* Eventos hijos de la edición (Curso, Summit, Congreso…): una columna por evento, centrada, con el tipo como encabezado */
.pg-edicion__hijos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.pg-edicion__hijo { display: flex; flex-direction: column; align-items: center; gap: .375rem; min-width: 0; padding: 1.5rem 1.25rem; text-align: center; background: #fff; border: 1px solid var(--edu-border); border-top: 3px solid var(--edu-accent); border-radius: 14px; }
.pg-edicion__hijo-t { margin: 0; font-family: var(--edu-font-cond); font-size: 1.25rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--edu-ink); }
.pg-edicion__hijo-sub { margin: 0; font-size: .8125rem; color: var(--edu-text); }
.pg-edicion__hijo-f { margin: 0; font-size: 1rem; font-weight: 700; color: var(--edu-accent-text); }
.pg-edicion__hijo-m { margin: 0; font-size: .8125rem; line-height: 1.4; color: var(--edu-text); }
.pg-edicion__hijo-m .bi { margin-right: .3rem; color: var(--edu-accent-text); }
.pg-edicion__hijo-m a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pg-edicion__hijo-m a:hover { color: var(--edu-accent-text); }
.pg-edicion__hijo-p { margin: .25rem 0 0; font-size: .875rem; font-weight: 800; color: var(--edu-ink); }
.pg-edicion__hijo-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: auto; padding-top: .75rem; }
.pg-edicion__hijo-cta:empty { display: none; }

/* Barra de ponentes (al azar) y su modal con la lista completa */
.pg-edicion__ponentes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.pg-edicion__pcard { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.pg-edicion__pcard[hidden] { display: none; }
.pg-edicion__pfoto { width: min(100%, 104px); aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: #E6E9EC; }
.pg-edicion__pfoto--ini { display: flex; align-items: center; justify-content: center; font-size: 1.375rem; font-weight: 800; color: var(--edu-text); }
.pg-edicion__pn { font-size: .8125rem; line-height: 1.3; color: var(--edu-ink); overflow-wrap: anywhere; }
.pg-edicion__pn .edu-flag { margin: 0 .4em 0 0; width: 16px; vertical-align: -1px; }
.pg-edicion__pr { font-size: .6875rem; line-height: 1.35; color: var(--edu-muted); }
.pg-edicion__po { font-size: .6875rem; font-weight: 700; text-transform: uppercase; color: var(--edu-text); overflow-wrap: anywhere; }
.pg-edicion__po a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pg-edicion__ponentes--modal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* En la lista completa las fotos son más grandes y llevan el cargo */
.pg-edicion__ponentes--modal .pg-edicion__pfoto { width: min(100%, 168px); }
.pg-edicion__ponentes--modal .pg-edicion__pfoto--ini { font-size: 2rem; }
.pg-edicion__ponentes--modal { gap: 1.5rem 1rem; }
@media (max-width: 991.98px) { .pg-edicion__ponentes { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pg-edicion__ponentes--modal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .pg-edicion__ponentes { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pg-edicion__ponentes--modal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .pg-edicion__ponentes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Congreso online: logotipo a color en lugar de la bandera */
.pg-edicion__congreso-logo { height: 3rem; width: auto; max-width: 100%; display: block; }
@media (max-width: 575.98px) { .pg-edicion__congreso-logo { height: 2.25rem; } }
