/* ==========================================================================
   Vista Individual de Actualidad / Convocatorias / Eventos
   Alineado a la maqueta de referencia de REDELAE (Instrument Serif & Archivo)
   ========================================================================== */

:root {
  --magenta: #E2005D;
  --magenta-2: #C30A66;
  --amarillo: #FFD21E;
  --cian: #22D3DB;
  --violeta: #762577;
  --cobalto: #42378F;
  --indigo: #333C96;
  --tinta: #1C0E2E;
  --papel: #FFF8FB;
  --papel-2: #F4E8F0;
  --texto: #453a52;
  --linea: rgba(28, 14, 46, .14);
  --linea-o: rgba(255, 248, 251, .28);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Archivo", system-ui, sans-serif;
  --grad: linear-gradient(150deg, #E10A7D 0%, #7A1E9C 60%, #3A2AB0 100%);
}

.act-single-entry {
  background: var(--papel, #FFF8FB);
  color: var(--tinta, #1C0E2E);
  font-family: var(--sans, "Archivo", system-ui, sans-serif);
}

/* PAGE HEADER con degradado + formas */
.act-single-entry .fhero {
  position: relative;
  background: var(--grad);
  color: #fff;
  overflow: hidden;
  padding: calc(70px + clamp(1.8rem, 3.5vh, 2.8rem)) 0 clamp(2.4rem, 6vh, 3.6rem);
}

body.admin-bar .act-single-entry .fhero {
  padding-top: calc(102px + clamp(1.8rem, 3.5vh, 2.8rem));
}

.act-single-entry .fhero .wrap {
  position: relative;
  z-index: 3;
}

/* Miga de Pan */
.act-single-entry .crumb {
  font-size: .82rem;
  color: #ffd9ee;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.act-single-entry .crumb a {
  color: #ffd9ee;
  text-decoration: none;
  transition: color 0.15s;
}

.act-single-entry .crumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.act-single-entry .crumb span {
  color: #fff;
}

/* Píldoras / Tags de Metadatos antes del Título */
.act-single-entry .ftags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: .2rem 0 1.2rem;
  align-items: center;
}

.act-single-entry .ftags span {
  font-size: .74rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .26);
  padding: .3rem .75rem;
  border-radius: 999px;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
}

/* Título Principal */
.act-single-entry .fhero h1 {
  font-family: var(--serif, "Instrument Serif", Georgia, serif);
  font-weight: 400;
  line-height: .98;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin: .2rem 0 0;
  color: #fff;
  max-width: 28ch;
  padding-right: clamp(0px, 12vw, 200px);
  box-sizing: border-box;
}

/* Formas Decorativas de Marca en Header */
.act-single-entry .ph-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.act-single-entry .ph-shapes .hs {
  position: absolute;
  display: block;
}

.act-single-entry .hs-almena {
  right: 5%;
  top: -6%;
  width: clamp(60px, 7vw, 100px);
  opacity: .9;
}

.act-single-entry .hs-campana {
  right: 12%;
  bottom: -18%;
  width: clamp(70px, 8vw, 120px);
  opacity: .85;
}

.act-single-entry .hs-circ {
  right: 3%;
  top: 46%;
  width: clamp(30px, 3.4vw, 52px);
  opacity: .9;
}

@media(max-width: 760px) {
  .act-single-entry .hs-campana,
  .act-single-entry .hs-circ {
    display: none;
  }
  .act-single-entry .hs-almena {
    right: 5%;
    opacity: .7;
  }
}

/* CUERPO DEL ARTÍCULO (Centrado, sin cuadro de datos) */
.act-single-body {
  padding: clamp(2.4rem, 6vh, 4rem) 0 4.5rem;
}

.act-single-container {
  max-width: 84ch;
  margin: 0;
}

/* Imagen de Portada / Destacada */
.act-single-container .imgtop {
  max-width: 72ch;
  border: 1px solid var(--linea, rgba(28, 14, 46, .14));
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.2rem;
  box-shadow: 0 8px 30px rgba(28, 14, 46, .06);
  background: #fff;
}

.act-single-container .imgtop .tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--papel-2, #F4E8F0);
}

.act-single-container .imgtop.is-event-img .tile {
  padding: clamp(1.5rem, 3.5vw, 2.8rem);
  background: #fff;
}

.act-single-container .imgtop .tile img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.act-single-container .imgtop.is-event-img .tile img {
  border-radius: 8px;
  object-fit: contain;
}

/* Bloque Editorial / Textos */
.act-single-container .block {
  margin-bottom: 2rem;
}

.act-single-container .block .act-article-content {
  font-family: var(--sans, "Archivo", system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--texto, #453a52);
  -webkit-font-smoothing: antialiased;
}

.act-single-container .block .act-article-content p {
  color: var(--texto, #453a52);
  max-width: 72ch;
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 1.4rem;
}

.act-single-container .block .act-article-content h2 {
  font-family: var(--serif, "Instrument Serif", Georgia, serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: .7rem;
  margin-top: 2rem;
  color: var(--tinta, #1C0E2E);
  line-height: 1.2;
}

.act-single-container .block .act-article-content h3 {
  font-family: var(--serif, "Instrument Serif", Georgia, serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: .6rem;
  margin-top: 1.8rem;
  color: var(--tinta, #1C0E2E);
  line-height: 1.25;
}

.act-single-container .block .act-article-content a {
  color: var(--magenta, #E2005D);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.act-single-container .block .act-article-content a:hover {
  color: var(--magenta-2, #C30A66);
}

.act-single-container .block .act-article-content ul,
.act-single-container .block .act-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
  color: var(--texto, #453a52);
}

.act-single-container .block .act-article-content li {
  margin-bottom: .4rem;
  line-height: 1.65;
}

.act-single-container .block .act-article-content blockquote {
  border-left: 3px solid var(--magenta, #E2005D);
  padding-left: 1.4rem;
  margin: 1.8rem 0;
  font-family: var(--serif, "Instrument Serif", Georgia, serif);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--tinta, #1C0E2E);
  font-style: italic;
}

.act-single-container .block .act-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 6px 20px rgba(28, 14, 46, .08);
  display: block;
}

.act-single-container .block .act-article-content figure {
  margin: 1.8rem 0;
}

.act-single-container .block .act-article-content figure img {
  margin: 0;
}

.act-single-container .block .act-article-content figcaption {
  font-size: .82rem;
  color: #8a85a0;
  margin-top: .5rem;
  font-style: italic;
}

.act-single-container .block .act-article-content hr {
  border: 0;
  border-top: 1px solid var(--linea, rgba(28, 14, 46, .14));
  margin: 2.2rem 0;
}

/* Botón Enlace Externo / Postulación */
.btn-external {
  background: var(--magenta, #E2005D);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(225, 10, 125, .25);
  transition: transform .2s, background .2s;
}

.btn-external:hover {
  background: var(--magenta-2, #C30A66);
  transform: translateY(-2px);
  color: #fff;
}

/* Botón Volver */
.act-single-container .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.6rem;
  font-size: .84rem;
  color: var(--magenta, #E2005D);
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s;
}

.act-single-container .back:hover {
  transform: translateX(-3px);
  text-decoration: underline;
}
