/*
Theme Name: SIMEL
Theme URI: https://simel.facso.unsj.edu.ar/
Author: Sistema de Información del Mercado Laboral (SIMEL)
Description: Tema a medida para el Sistema de Información del Mercado Laboral Argentino (SIMEL). Portada de una sola página con secciones ancladas (SIMEL, Centros, Jornadas, Revista, Noticias, Contacto), tipos de contenido propios para centros, actividades y números de revista, y páginas internas para noticias. Sin dependencias ni compilación.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simel
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Paleta institucional, tomada del logo SIMEL */
  --simel-verde: #67964e;
  --simel-naranja: #ee7822;
  --simel-rojo: #a12521;
  --simel-azul: #005d8b;
  --simel-violeta: #643983;
  --simel-oliva: #cdc12b;

  --simel-negro: #231f20;
  --simel-gris: #58585a;
  --simel-gris-claro: #ddd;
  --simel-fondo: #fafafa;

  --simel-acento: var(--simel-rojo);
  --simel-ancho: 1200px;
}

/* ==========================================================================
   2. Reset y base
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  color: var(--simel-negro);
  background: var(--simel-fondo);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--simel-acento);
  font-weight: 600;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

p {
  hyphens: auto;
}

/* Visible solo para lectores de pantalla, salvo al recibir foco */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  top: 8px;
  left: 8px;
  z-index: 300;
  display: block;
  padding: 12px 20px;
  background: #fff;
  color: var(--simel-negro);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

:focus-visible {
  outline: 2px solid var(--simel-azul);
  outline-offset: 2px;
}

/* ==========================================================================
   3. Cabecera y navegación
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 6%;
  background: #fff;
  border-bottom: 1px solid var(--simel-gris-claro);
}

/* Franja con los seis colores del logo, bajo la cabecera */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--simel-verde) 0 16.66%,
    var(--simel-naranja) 16.66% 33.32%,
    var(--simel-rojo) 33.32% 49.98%,
    var(--simel-azul) 49.98% 66.64%,
    var(--simel-violeta) 66.64% 83.3%,
    var(--simel-oliva) 83.3% 100%
  );
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  height: 60px;
  width: auto;
}

.site-logo .site-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--simel-negro);
  text-decoration: none;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
}

.main-navigation a {
  position: relative;
  display: inline-block;
  margin-left: 20px;
  padding-bottom: 4px;
  color: var(--simel-negro);
  font-weight: 400;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--simel-acento);
  transition: right 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--simel-acento);
  text-decoration: none;
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
  right: 0;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--simel-negro);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 860px) {
  .burger {
    display: flex;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    padding: 20px 0;
    background: #fff;
    border-top: 1px solid var(--simel-gris-claro);
  }

  .main-navigation.show {
    display: flex;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  .main-navigation a {
    margin-left: 0;
  }

  .main-navigation a::after {
    left: 0;
  }
}

/* ==========================================================================
   4. Carrusel de portada
   ========================================================================== */

.carrusel {
  position: relative;
  width: 100%;
  height: calc(100vh - 200px);
  min-height: 380px;
  overflow: hidden;
  background: var(--simel-negro);
}

.carrusel .slides {
  height: 100%;
}

.carrusel .slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
}

.carrusel .slide.active {
  display: block;
}

.carrusel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-texto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: min(86%, 760px);
  padding: 22px 26px;
  background: rgba(35, 31, 32, 0.74);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.6;
  text-align: left;
  border-left: 5px solid var(--simel-naranja);
}

.hero-texto p {
  margin-bottom: 0.6em;
}

.hero-texto p:last-child {
  margin-bottom: 0;
}

.credito-imagen {
  position: absolute;
  right: 15px;
  bottom: 15px;
  z-index: 10;
  padding: 3px 6px;
  background: rgba(35, 31, 32, 0.7);
  color: #fff;
  font-size: 0.65rem;
}

.credito-imagen a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

/* Controles */
.carrusel-nav {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  gap: 8px;
}

.carrusel-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  cursor: pointer;
}

.carrusel-dot[aria-current="true"] {
  background: var(--simel-naranja);
  border-color: var(--simel-naranja);
}

.carrusel .prev,
.carrusel .next {
  position: absolute;
  top: 50%;
  z-index: 25;
  transform: translateY(-50%);
  padding: 10px 15px;
  background: rgba(35, 31, 32, 0.4);
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.carrusel .prev:hover,
.carrusel .next:hover {
  background: rgba(35, 31, 32, 0.75);
}

.carrusel .prev {
  left: 12px;
}

.carrusel .next {
  right: 12px;
}

.separa {
  width: 100%;
  height: 50px;
  background: #fff;
}

/* ==========================================================================
   5. Secciones
   ========================================================================== */

.seccion {
  padding: 60px 12%;
  margin-top: 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  scroll-margin-top: 110px;
  text-align: justify;
}

.seccion:first-of-type {
  margin-top: 0;
}

.seccion > .contenedor {
  max-width: var(--simel-ancho);
  margin: 0 auto;
}

.seccion p + p,
.seccion p + h2,
.seccion p + h3 {
  margin-top: 1.1em;
}

.titulo-seccion {
  margin-bottom: 14px;
  color: var(--simel-negro);
  font-size: 1em;
  font-weight: 200;
  font-variant: all-petite-caps;
  letter-spacing: 0.8em;
  text-align: center;
  text-indent: 0.8em; /* compensa el espaciado de la última letra */
}

/* Regla corta de seis colores bajo cada título */
.titulo-seccion::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(
    to right,
    var(--simel-verde) 0 16.66%,
    var(--simel-naranja) 16.66% 33.32%,
    var(--simel-rojo) 33.32% 49.98%,
    var(--simel-azul) 49.98% 66.64%,
    var(--simel-violeta) 66.64% 83.3%,
    var(--simel-oliva) 83.3% 100%
  );
}

.subtitulo-seccion {
  margin: 40px 0 20px;
  font-size: 1em;
  font-weight: 300;
  font-variant: all-petite-caps;
  letter-spacing: 0.4em;
  text-align: center;
}

.seccion-intro {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: justify;
}

.vacio {
  padding: 30px;
  background: var(--simel-fondo);
  border: 1px dashed var(--simel-gris-claro);
  color: var(--simel-gris);
  text-align: center;
}

@media (max-width: 860px) {
  .seccion {
    padding: 45px 7%;
  }
}

/* ==========================================================================
   6. Centros
   ========================================================================== */

.region {
  margin-bottom: 45px;
}

.region:last-child {
  margin-bottom: 0;
}

.region-titulo {
  margin-bottom: 18px;
  padding-bottom: 6px;
  font-size: 0.95em;
  font-weight: 400;
  font-variant: all-petite-caps;
  letter-spacing: 0.25em;
  border-bottom: 1px solid var(--simel-gris-claro);
}

.grid-centros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.centro {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  background: #fff;
  border: 1px solid var(--simel-gris-claro);
  border-top: 4px solid var(--centro-color, var(--simel-verde));
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}

.centro:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Un color del logo por región, en el orden en que se declaran */
.grid-centros .centro:nth-child(6n + 1) { --centro-color: var(--simel-verde); }
.grid-centros .centro:nth-child(6n + 2) { --centro-color: var(--simel-naranja); }
.grid-centros .centro:nth-child(6n + 3) { --centro-color: var(--simel-rojo); }
.grid-centros .centro:nth-child(6n + 4) { --centro-color: var(--simel-azul); }
.grid-centros .centro:nth-child(6n + 5) { --centro-color: var(--simel-violeta); }
.grid-centros .centro:nth-child(6n + 6) { --centro-color: var(--simel-oliva); }

.centro-sigla {
  margin-bottom: 4px;
  color: var(--centro-color, var(--simel-verde));
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.centro h3 {
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.centro .centro-logo {
  width: 100%;
  max-width: 130px;
  height: 70px;
  margin-bottom: 14px;
  object-fit: contain;
  object-position: left center;
}

.centro-datos {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.centro-datos > div {
  margin-bottom: 7px;
}

.centro-datos .etiqueta {
  display: block;
  color: var(--simel-gris);
  font-size: 0.72rem;
  font-variant: all-petite-caps;
  letter-spacing: 0.12em;
}

.centro-datos .referente {
  font-weight: 600;
}

.centro-pie {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.8rem;
}

.centro-pie a {
  font-weight: 600;
  word-break: break-word;
}

.centro-direccion {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dotted var(--simel-gris-claro);
  color: var(--simel-gris);
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.5;
}

/* ==========================================================================
   7. Actividades (jornadas, foros, eventos)
   ========================================================================== */

.grid-actividades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch;
  justify-content: center;
}

.actividad {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--simel-gris-claro);
  border-top: 4px solid var(--ficha-solido, var(--simel-verde));
  text-align: center;
  transition: transform 0.2s;
}

.actividad:hover {
  transform: translateY(-5px);
}

.actividad > img {
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) contrast(1.1);
}

/* Sin imagen cargada, una franja del color de la tarjeta en lugar de un
   bloque alto y vacío. */
.actividad .sin-imagen {
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: 90px;
  background: var(--ficha-solido, var(--simel-verde));
}

.ficha {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px;
  overflow: hidden;
  text-align: left;
}

.ficha::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ficha-color);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.ficha > * {
  position: relative;
  z-index: 1;
}

/* Ciclo de seis colores del logo. El tinte va suave para que el texto se
   lea sobre los seis por igual; el color pleno queda en la franja y en la
   fecha. */
.grid-actividades .actividad:nth-child(6n + 1) { --ficha-color: rgba(103, 150, 78, 0.16); --ficha-solido: var(--simel-verde); }
.grid-actividades .actividad:nth-child(6n + 2) { --ficha-color: rgba(238, 120, 34, 0.16); --ficha-solido: var(--simel-naranja); }
.grid-actividades .actividad:nth-child(6n + 3) { --ficha-color: rgba(161, 37, 33, 0.16); --ficha-solido: var(--simel-rojo); }
.grid-actividades .actividad:nth-child(6n + 4) { --ficha-color: rgba(0, 93, 139, 0.16); --ficha-solido: var(--simel-azul); }
.grid-actividades .actividad:nth-child(6n + 5) { --ficha-color: rgba(100, 57, 131, 0.16); --ficha-solido: var(--simel-violeta); }
.grid-actividades .actividad:nth-child(6n + 6) { --ficha-color: rgba(205, 193, 43, 0.16); --ficha-solido: var(--simel-oliva); }

.actividad .fecha {
  margin-bottom: 8px;
  color: var(--ficha-solido, var(--simel-verde));
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.actividad h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
  line-height: 1.3;
}

.actividad .sede {
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.actividad-descripcion {
  position: relative;
  max-height: 3.8em;
  overflow: hidden;
  font-size: 0.93rem;
  line-height: 1.4;
}

.actividad-descripcion .texto-fade {
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.actividad-descripcion.expandida {
  max-height: none;
}

.actividad-descripcion.expandida .texto-fade {
  -webkit-mask-image: none;
  mask-image: none;
}

.ver-mas {
  align-self: flex-start;
  margin-top: 10px;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.actividad-enlace {
  margin-top: 8px;
  font-size: 0.85rem;
}

.actividad-enlace a {
  color: var(--simel-negro);
}

/* ==========================================================================
   8. Revista
   ========================================================================== */

.revista-destacado {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--simel-fondo);
  border-left: 5px solid var(--simel-violeta);
}

.revista-destacado .tapa {
  flex: 0 0 180px;
  max-width: 180px;
}

.revista-destacado .tapa img {
  display: block;
  width: 100%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.revista-destacado .detalle {
  flex: 1 1 320px;
}

.revista-destacado h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.revista-meta {
  margin-bottom: 12px;
  color: var(--simel-gris);
  font-size: 0.85rem;
  font-variant: all-petite-caps;
  letter-spacing: 0.12em;
}

.grid-numeros {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 24px;
}

.numero {
  text-align: center;
}

.numero img {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.numero a:hover img {
  transform: translateY(-4px);
}

.numero .sin-tapa {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  margin-bottom: 10px;
  background: var(--simel-violeta);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
}

.numero h3 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.numero .anio {
  color: var(--simel-gris);
  font-size: 0.78rem;
}

.boton {
  display: inline-block;
  padding: 11px 22px;
  background: #fff;
  border: 1px solid var(--simel-negro);
  color: var(--simel-negro);
  font: inherit;
  font-size: 0.8em;
  font-weight: 400;
  font-variant: all-petite-caps;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.boton:hover,
.boton:focus {
  background: var(--simel-negro);
  color: #fff;
  text-decoration: none;
}

.centrado {
  margin-top: 28px;
  text-align: center;
}

/* ==========================================================================
   9. Noticias
   ========================================================================== */

.grid-noticias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
}

.noticia {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--simel-gris-claro);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}

.noticia:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.noticia img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.noticia .cuerpo {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.noticia .fecha {
  margin-bottom: 6px;
  color: var(--simel-gris);
  font-size: 0.76rem;
  font-variant: all-petite-caps;
  letter-spacing: 0.12em;
}

.noticia h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.noticia h3 a {
  color: var(--simel-negro);
  font-weight: 600;
}

.noticia h3 a:hover {
  color: var(--simel-acento);
}

.noticia .resumen {
  flex: 1;
  font-size: 0.9rem;
}

.noticia .seguir {
  margin-top: 12px;
  font-size: 0.85rem;
}

/* ==========================================================================
   10. Contacto
   ========================================================================== */

.contacto-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.contacto-datos {
  flex: 1 1 260px;
  font-size: 0.95rem;
}

.contacto-datos h3 {
  margin-bottom: 10px;
  font-size: 0.95em;
  font-variant: all-petite-caps;
  letter-spacing: 0.2em;
}

.form-contacto {
  position: relative;
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

.form-contacto label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-contacto input,
.form-contacto textarea {
  width: 100%;
  padding: 11px;
  background: #fff;
  border: 1px solid #ccc;
  font: inherit;
  font-size: 0.95rem;
}

.form-contacto input:focus,
.form-contacto textarea:focus {
  border-color: var(--simel-azul);
}

.form-contacto button {
  align-self: flex-start;
  padding: 12px 26px;
  background: var(--simel-negro);
  border: none;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
}

.form-contacto button:hover {
  background: var(--simel-verde);
}

/* Trampa antispam: fuera de pantalla para personas, visible para robots */
.form-contacto .campo-trampa {
  position: absolute;
  left: -9999px;
}

.aviso {
  padding: 12px 16px;
  font-size: 0.9rem;
}

.aviso-ok {
  background: rgba(103, 150, 78, 0.15);
  border-left: 4px solid var(--simel-verde);
}

.aviso-error {
  background: rgba(161, 37, 33, 0.12);
  border-left: 4px solid var(--simel-rojo);
}

/* ==========================================================================
   11. Páginas internas y entradas
   ========================================================================== */

.pagina-cabecera {
  padding: 50px 12% 0;
  background: #fff;
}

.pagina-cabecera .contenedor {
  max-width: var(--simel-ancho);
  margin: 0 auto;
}

.migas {
  margin-bottom: 14px;
  color: var(--simel-gris);
  font-size: 0.82rem;
}

.migas a {
  color: var(--simel-gris);
  font-weight: 400;
}

.contenido-entrada {
  font-size: 1rem;
}

.contenido-entrada h2 {
  margin: 1.4em 0 0.5em;
  font-size: 1.3rem;
}

.contenido-entrada h3 {
  margin: 1.2em 0 0.4em;
  font-size: 1.1rem;
}

.contenido-entrada ul,
.contenido-entrada ol {
  margin: 1em 0 1em 1.4em;
}

.contenido-entrada li {
  margin-bottom: 0.35em;
}

.contenido-entrada blockquote {
  margin: 1.2em 0;
  padding: 10px 20px;
  border-left: 4px solid var(--simel-naranja);
  color: var(--simel-gris);
  font-style: italic;
}

.contenido-entrada img,
.contenido-entrada iframe {
  max-width: 100%;
  height: auto;
}

.contenido-entrada table {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.contenido-entrada th,
.contenido-entrada td {
  padding: 8px 10px;
  border: 1px solid var(--simel-gris-claro);
  text-align: left;
}

.entrada-destacada img {
  width: 100%;
  max-height: 420px;
  margin-bottom: 24px;
  object-fit: cover;
}

.paginacion {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
}

.paginacion .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--simel-gris-claro);
  color: var(--simel-negro);
  font-weight: 400;
  text-decoration: none;
}

.paginacion .page-numbers.current,
.paginacion .page-numbers:hover {
  background: var(--simel-negro);
  border-color: var(--simel-negro);
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   12. Pie de página
   ========================================================================== */

.site-footer {
  padding: 34px 6%;
  background: #f1f1f1;
  color: var(--simel-gris);
  font-size: 0.9rem;
  text-align: center;
  border-top: 3px solid var(--simel-verde);
}

.site-footer .logos-pie {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.site-footer .logos-pie img {
  max-height: 54px;
  width: auto;
}

.site-footer .credito {
  margin-top: 10px;
  font-size: 0.78rem;
}

.volver-arriba {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: none;
  width: 42px;
  height: 42px;
  background: var(--simel-negro);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.volver-arriba:hover {
  background: var(--simel-verde);
  opacity: 1;
}

.volver-arriba.visible {
  display: block;
}

/* ==========================================================================
   13. Clases de alineación de WordPress
   ========================================================================== */

.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin: 1em auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  color: var(--simel-gris);
  font-size: 0.82rem;
  text-align: center;
}

.sticky,
.gallery-caption,
.bypostauthor {
  display: block;
}

/* Ajustes puntuales de las páginas internas */
.meta-centrada {
  text-align: center;
}

.grid-suelto {
  margin-top: 30px;
}
