/* =========================================================
   IPESSE — OMP 3.5
   Diseño base + Hero editorial en paleta institucional vino
   ========================================================= */

:root {
  --apcsh-navy: #7B1A25;
  --apcsh-navy-dark: #4F0F18;
  --apcsh-blue: #9A3340;
  --apcsh-text: #2F2627;
  --apcsh-muted: #756769;
  --apcsh-border: #E9DFE1;
  --apcsh-soft: #F8F3F4;
  --apcsh-cream: #F3ECE8;
}

/* ---------- BASE ---------- */
html,
body {
  background: #fff;
}

body {
  color: var(--apcsh-text);
}

.pkp_structure_page {
  background: #fff;
}

/* ---------- CABECERA ---------- */
.pkp_structure_head {
  background: #fff;
  border-bottom: 1px solid var(--apcsh-border);
  box-shadow: 0 2px 12px rgba(123, 26, 37, 0.04);
}

.pkp_head_wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.pkp_site_name_wrapper {
  background: #fff;
  padding-top: 18px;
  padding-bottom: 12px;
}

.pkp_site_name {
  text-align: left;
}

.pkp_site_name img {
  display: block;
  width: auto;
  height: auto;
  max-width: 205px;
  max-height: 100px;
  object-fit: contain;
}

/* ---------- NAVEGACIÓN ---------- */
.pkp_navigation_primary_row {
  background: #fff;
  border-top: 1px solid #f1f3f5;
}

.pkp_navigation_primary_wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

#navigationPrimary {
  display: flex;
  align-items: center;
  gap: 30px;
}

#navigationPrimary > li > a {
  color: var(--apcsh-navy);
  font-weight: 600;
  text-decoration: none;
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}

#navigationPrimary > li:hover > a,
#navigationPrimary > li:focus-within > a {
  color: var(--apcsh-navy-dark);
  border-bottom-color: var(--apcsh-navy);
}

#navigationPrimary ul {
  background: #fff;
  border: 1px solid var(--apcsh-border);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(95, 22, 31, 0.12);
}

#navigationPrimary ul li a {
  color: var(--apcsh-text);
  padding: 12px 16px;
  text-decoration: none;
}

#navigationPrimary ul li a:hover,
#navigationPrimary ul li a:focus {
  color: var(--apcsh-navy);
  background: var(--apcsh-soft);
}

.pkp_navigation_search_wrapper a,
.pkp_navigation_search_wrapper .pkp_search {
  color: var(--apcsh-navy);
  font-weight: 600;
}

.pkp_navigation_user_wrapper a {
  color: var(--apcsh-navy);
}

/* ---------- CONTENEDOR PRINCIPAL ---------- */
.pkp_structure_content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  background: #fff;
}

.pkp_structure_main {
  width: 100%;
  max-width: none;
  padding: 0 !important;
  border: 0 !important;
}

.pkp_structure_main::before,
.pkp_structure_main::after {
  display: none !important;
}

/* Quitar separaciones excesivas en portada */
.pkp_page_index .pkp_structure_content,
.pkp_page_index_site .pkp_structure_content {
  padding-top: 0;
}

.pkp_page_index .pkp_structure_main,
.pkp_page_index_site .pkp_structure_main {
  padding-top: 0 !important;
}

/* ---------- HERO APCSH ---------- */
.apcsh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  min-height: 420px;
  margin: 28px 0 46px;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(248,250,252,.98) 0%, rgba(244,247,250,.98) 52%, rgba(231,238,244,.96) 100%);
  border: 1px solid #e2e7eb;
  box-shadow: 0 16px 40px rgba(123, 26, 37, 0.07);
}

.apcsh-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 56px;
}

.apcsh-hero__eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--apcsh-navy);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.apcsh-hero h1 {
  max-width: 690px;
  margin: 0 0 20px;
  color: var(--apcsh-navy-dark);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.025em;
}

.apcsh-hero__content > p {
  max-width: 650px;
  margin: 0 0 28px;
  color: #455564;
  font-size: 16px;
  line-height: 1.72;
}

.apcsh-hero__button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 46px;
  padding: 0 22px;
  background: var(--apcsh-navy);
  color: #fff !important;
  border: 1px solid var(--apcsh-navy);
  border-radius: 2px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .18s ease, transform .18s ease;
}

.apcsh-hero__button:hover,
.apcsh-hero__button:focus {
  background: var(--apcsh-navy-dark);
  transform: translateY(-1px);
}

/* Bloque visual derecho */
.apcsh-hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px 48px 42px;
  background:
    radial-gradient(circle at 75% 20%, rgba(255,255,255,.95), rgba(255,255,255,0) 36%),
    linear-gradient(145deg, #E7D9DB 0%, #F7F1F2 42%, #D8C5C8 100%);
}

.apcsh-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(123,26,37,.03) 1px, transparent 1px),
    linear-gradient(rgba(123,26,37,.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* "Libros" apilados construidos con CSS */
.apcsh-hero__words {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 360px);
  margin-left: auto;
  gap: 7px;
  transform: rotate(-1.5deg);
}

.apcsh-hero__words span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 2px 7px 7px 2px;
  box-shadow: 0 8px 18px rgba(20, 43, 63, 0.12);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 17px;
  letter-spacing: .08em;
}

.apcsh-hero__words span:nth-child(1) {
  width: 88%;
  margin-left: 6%;
  background: #7B1A25;
  color: #fff;
}

.apcsh-hero__words span:nth-child(2) {
  width: 94%;
  background: #e4d8c5;
  color: #443b31;
}

.apcsh-hero__words span:nth-child(3) {
  width: 84%;
  margin-left: 10%;
  background: #5B2228;
  color: #fff;
}

.apcsh-hero__words span:nth-child(4) {
  width: 91%;
  margin-left: 3%;
  background: #7A675F;
  color: #fff;
}

.apcsh-hero__words span:nth-child(5) {
  width: 87%;
  margin-left: 8%;
  background: #e7e2d7;
  color: #3f4851;
}

.apcsh-hero__visual > p {
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin: 30px 0 0 auto;
  color: var(--apcsh-navy);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 21px;
  line-height: 1.4;
  font-style: italic;
  text-align: right;
}

.apcsh-hero__visual > p::before {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin: 0 0 12px auto;
  background: var(--apcsh-navy);
}

/* ---------- PIE ---------- */
.pkp_structure_footer_wrapper {
  margin-top: 48px;
  background: var(--apcsh-navy);
  border-top: 0;
}

.pkp_structure_footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 28px;
  color: #fff;
}

.pkp_footer_content,
.pkp_footer_content p,
.pkp_footer_content a {
  color: #fff;
}

.pkp_brand_footer {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.18);
}

.pkp_brand_footer img {
  max-width: 135px;
  opacity: .9;
  filter: brightness(0) invert(1);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .pkp_head_wrapper,
  .pkp_structure_content,
  .pkp_structure_footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pkp_site_name img {
    max-width: 170px;
    max-height: 85px;
  }

  #navigationPrimary {
    gap: 12px;
  }

  .apcsh-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .apcsh-hero__content {
    padding: 42px 34px;
  }

  .apcsh-hero__visual {
    min-height: 330px;
    padding: 38px 34px;
  }
}

@media (max-width: 600px) {
  .pkp_structure_content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .pkp_site_name img {
    max-width: 150px;
  }

  .apcsh-hero {
    margin-top: 18px;
  }

  .apcsh-hero__content {
    padding: 34px 24px;
  }

  .apcsh-hero h1 {
    font-size: 34px;
  }

  .apcsh-hero__visual {
    min-height: 290px;
    padding: 32px 24px;
  }

  .apcsh-hero__words span {
    min-height: 42px;
    font-size: 14px;
  }
}


/* =========================================================
   IPESSE — Ajustes v4
   Hero con imagen real + logo más visible
   ========================================================= */

/* Logo institucional */
.pkp_site_name img {
  max-width: 245px;
  max-height: 120px;
}

/* Hero: columna visual con imagen */
.apcsh-hero__visual--image {
  padding: 0;
  min-height: 100%;
  background: #f4eeee;
  overflow: hidden;
}

.apcsh-hero__visual--image::before {
  display: none;
}

.apcsh-hero__visual--image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

/* En portada, dar algo más de presencia al hero */
.apcsh-hero {
  min-height: 470px;
}

.apcsh-hero__content {
  padding: 58px 58px;
}

/* Evitar reglas anteriores del bloque derecho */
.apcsh-hero__visual--image .apcsh-hero__words,
.apcsh-hero__visual--image > p {
  display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .pkp_site_name img {
    max-width: 205px;
    max-height: 105px;
  }

  .apcsh-hero {
    min-height: 0;
  }

  .apcsh-hero__visual--image img {
    min-height: 340px;
  }
}

@media (max-width: 600px) {
  .pkp_site_name img {
    max-width: 180px;
  }

  .apcsh-hero__content {
    padding: 34px 24px;
  }

  .apcsh-hero__visual--image img {
    min-height: 260px;
  }
}


/* =========================================================
   IPESSE — Ajustes v5
   Sección Series y colecciones
   ========================================================= */

.ipesse-collections {
  margin: 0 0 64px;
  padding: 18px 0 0;
}

.ipesse-section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.ipesse-section-heading > span {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--apcsh-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ipesse-section-heading h2 {
  margin: 0 0 10px;
  color: var(--apcsh-navy-dark);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.ipesse-section-heading p {
  margin: 0;
  color: var(--apcsh-muted);
  font-size: 15px;
  line-height: 1.65;
}

.ipesse-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ipesse-collection-card {
  background: #fff;
  border: 1px solid var(--apcsh-border);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(95, 22, 31, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ipesse-collection-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 26, 37, .30);
  box-shadow: 0 16px 34px rgba(95, 22, 31, 0.10);
}

.ipesse-collection-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
}

.ipesse-collection-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--apcsh-soft);
}

.ipesse-collection-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.ipesse-collection-card:hover .ipesse-collection-image img {
  transform: scale(1.025);
}

.ipesse-collection-content {
  padding: 20px 20px 22px;
}

.ipesse-collection-content h3 {
  margin: 0 0 8px;
  color: var(--apcsh-navy-dark);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 21px;
  line-height: 1.25;
}

.ipesse-collection-content p {
  min-height: 72px;
  margin: 0 0 16px;
  color: var(--apcsh-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ipesse-collection-content span {
  color: var(--apcsh-navy);
  font-weight: 700;
  font-size: 14px;
}

.ipesse-section-link {
  margin-top: 24px;
  text-align: right;
}

.ipesse-section-link a {
  color: var(--apcsh-navy);
  font-weight: 700;
  text-decoration: none;
}

.ipesse-section-link a:hover,
.ipesse-section-link a:focus {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .ipesse-collections-grid {
    grid-template-columns: 1fr;
  }

  .ipesse-collection-content p {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .ipesse-collections {
    margin-bottom: 44px;
  }

  .ipesse-section-heading {
    margin-bottom: 22px;
  }

  .ipesse-section-link {
    text-align: left;
  }
}


/* =========================================================
   IPESSE — Ajustes v6
   Mostrar completas las imágenes de Series y colecciones
   ========================================================= */

/* Las imágenes fueron generadas en formato vertical (aprox. 3:4).
   Se muestran completas, sin recortes. */
.ipesse-collection-image {
  aspect-ratio: 3 / 4;
  padding: 10px;
  background: #f7f2f1;
}

.ipesse-collection-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f7f2f1;
}

/* Mantener tarjetas equilibradas */
.ipesse-collection-card {
  display: flex;
  flex-direction: column;
}

.ipesse-collection-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ipesse-collection-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ipesse-collection-content span {
  margin-top: auto;
}

/* En escritorio, evitar que las tarjetas crezcan demasiado */
@media (min-width: 901px) {
  .ipesse-collections-grid {
    align-items: stretch;
  }

  .ipesse-collection-image {
    max-height: 430px;
  }
}


/* =========================================================
   IPESSE — Ajustes v7
   Bloque Publica con IPESSE
   ========================================================= */

.ipesse-authors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 8px 0 72px;
  overflow: hidden;
  background: #f7f2f1;
  border: 1px solid var(--apcsh-border);
  box-shadow: 0 14px 34px rgba(95, 22, 31, 0.06);
}

.ipesse-authors__image {
  min-height: 420px;
  background: #efe6e4;
  overflow: hidden;
}

.ipesse-authors__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.ipesse-authors__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 54px;
}

.ipesse-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--apcsh-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ipesse-authors__content h2 {
  margin: 0 0 18px;
  color: var(--apcsh-navy-dark);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
}

.ipesse-authors__content p {
  margin: 0 0 14px;
  color: var(--apcsh-muted);
  font-size: 15px;
  line-height: 1.7;
}

.ipesse-authors__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 14px;
}

.ipesse-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  background: var(--apcsh-navy);
  color: #fff !important;
  border: 1px solid var(--apcsh-navy);
  border-radius: 2px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .18s ease, transform .18s ease;
}

.ipesse-btn-primary:hover,
.ipesse-btn-primary:focus {
  background: var(--apcsh-navy-dark);
  transform: translateY(-1px);
}

.ipesse-btn-link {
  color: var(--apcsh-navy);
  font-weight: 700;
  text-decoration: none;
}

.ipesse-btn-link:hover,
.ipesse-btn-link:focus {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .ipesse-authors {
    grid-template-columns: 1fr;
  }

  .ipesse-authors__image,
  .ipesse-authors__image img {
    min-height: 330px;
  }

  .ipesse-authors__content {
    padding: 40px 34px;
  }
}

@media (max-width: 600px) {
  .ipesse-authors {
    margin-bottom: 52px;
  }

  .ipesse-authors__image,
  .ipesse-authors__image img {
    min-height: 260px;
  }

  .ipesse-authors__content {
    padding: 32px 24px;
  }

  .ipesse-authors__actions {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   IPESSE — Ajustes v8
   Franja Conocimiento con impacto
   ========================================================= */

.ipesse-strengths {
  margin: 0 0 72px;
  padding: 46px 34px 38px;
  background: #fbf8f7;
  border-top: 1px solid var(--apcsh-border);
  border-bottom: 1px solid var(--apcsh-border);
}

.ipesse-section-heading--center {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.ipesse-strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--apcsh-border);
  border-bottom: 1px solid var(--apcsh-border);
}

.ipesse-strength {
  position: relative;
  padding: 28px 24px 26px;
}

.ipesse-strength + .ipesse-strength {
  border-left: 1px solid var(--apcsh-border);
}

.ipesse-strength__icon {
  margin-bottom: 16px;
  color: var(--apcsh-navy);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.ipesse-strength h3 {
  margin: 0 0 10px;
  color: var(--apcsh-navy-dark);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 19px;
  line-height: 1.3;
}

.ipesse-strength p {
  margin: 0;
  color: var(--apcsh-muted);
  font-size: 13.5px;
  line-height: 1.65;
}

@media (max-width: 1000px) {
  .ipesse-strengths-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipesse-strength:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--apcsh-border);
  }

  .ipesse-strength:nth-child(4) {
    border-top: 1px solid var(--apcsh-border);
  }
}

@media (max-width: 600px) {
  .ipesse-strengths {
    padding: 36px 20px 28px;
    margin-bottom: 52px;
  }

  .ipesse-strengths-grid {
    grid-template-columns: 1fr;
  }

  .ipesse-strength + .ipesse-strength {
    border-left: 0;
    border-top: 1px solid var(--apcsh-border);
  }

  .ipesse-strength {
    padding: 24px 6px;
  }
}


/* =========================================================
   IPESSE — Ajustes v9
   Cabecera y menú principal
   ========================================================= */

/* Quitar el aspecto de barra azul del tema y mantener identidad IPESSE */
.pkp_structure_head {
  background: #fff !important;
  border-top: 0 !important;
  border-bottom: 1px solid #eadfe1 !important;
  box-shadow: 0 2px 12px rgba(79, 15, 24, 0.04);
}

/* Contenedor superior */
.pkp_head_wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 18px;
}

/* Logo */
.pkp_site_name {
  margin: 0 0 16px !important;
}

.pkp_site_name img {
  max-width: 230px !important;
  max-height: 125px !important;
  width: auto !important;
  height: auto !important;
}

/* Fila principal del menú */
.pkp_site_nav_menu {
  border-top: 1px solid #f0e7e8;
}

.pkp_navigation_primary_wrapper {
  display: flex;
  align-items: center;
  min-height: 64px;
}

/* Navegación principal */
.pkp_navigation_primary {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
}

.pkp_navigation_primary > li {
  position: relative;
  margin: 0 !important;
}

.pkp_navigation_primary > li > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 20px !important;
  color: #6f1822 !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  letter-spacing: .01em;
  transition: color .18s ease, background .18s ease;
}

/* Línea de énfasis al pasar el mouse */
.pkp_navigation_primary > li > a::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 3px;
  background: #7b1a25;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.pkp_navigation_primary > li:hover > a,
.pkp_navigation_primary > li:focus-within > a {
  color: #4f0f18 !important;
  background: #fbf7f7;
}

.pkp_navigation_primary > li:hover > a::after,
.pkp_navigation_primary > li:focus-within > a::after {
  transform: scaleX(1);
}

/* Dropdown Editorial */
.pkp_navigation_primary ul {
  min-width: 235px !important;
  padding: 8px 0 !important;
  background: #fff !important;
  border: 1px solid #eadfe1 !important;
  border-radius: 4px !important;
  box-shadow: 0 14px 34px rgba(79, 15, 24, .14) !important;
}

.pkp_navigation_primary ul li {
  margin: 0 !important;
}

.pkp_navigation_primary ul a {
  display: block !important;
  padding: 12px 18px !important;
  color: #3b3032 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  border-left: 3px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
  color: #7b1a25 !important;
  background: #f8f1f2 !important;
  border-left-color: #7b1a25;
}

/* Buscador del extremo derecho */
.pkp_search {
  margin-left: auto !important;
}

.pkp_search_desktop {
  margin-left: auto !important;
}

.pkp_search_desktop a {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px !important;
  color: #7b1a25 !important;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid #eadfe1;
  border-radius: 3px;
  background: #fff;
  transition: background .18s ease, border-color .18s ease;
}

.pkp_search_desktop a:hover,
.pkp_search_desktop a:focus {
  background: #f8f1f2;
  border-color: #cfaeb3;
}

/* Navegación de usuario superior: discreta */
.pkp_navigation_user {
  font-size: 12px;
}

.pkp_navigation_user a {
  color: #6f1822 !important;
}

/* Ajuste general del ancho de cabecera */
.pkp_head_wrapper,
.pkp_navigation_primary_wrapper {
  max-width: 1180px;
}

/* Responsive */
@media (max-width: 900px) {
  .pkp_head_wrapper {
    padding: 14px 18px 0;
  }

  .pkp_site_name img {
    max-width: 190px !important;
  }

  .pkp_navigation_primary_wrapper {
    min-height: 56px;
  }

  .pkp_navigation_primary > li > a {
    min-height: 56px;
    padding: 0 13px !important;
    font-size: 14px;
  }

  .pkp_navigation_primary > li > a::after {
    left: 13px;
    right: 13px;
  }
}

@media (max-width: 600px) {
  .pkp_site_nav_menu {
    border-top: 0;
  }

  .pkp_navigation_primary {
    display: block !important;
  }

  .pkp_navigation_primary > li > a {
    min-height: 48px;
    padding: 0 12px !important;
  }

  .pkp_navigation_primary ul {
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}


/* =========================================================
   IPESSE — Ajustes v10
   Menú vino + corrección de búsqueda
   ========================================================= */

/* Barra completa del menú */
.pkp_site_nav_menu,
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary {
  background: #7B1A25 !important;
}

/* Extender el fondo del menú de lado a lado dentro de la cabecera */
.pkp_site_nav_menu {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* Quitar fondos blancos heredados del tema */
.pkp_navigation_primary_wrapper {
  max-width: none !important;
  width: 100% !important;
  padding-left: calc((100% - 1180px) / 2) !important;
  padding-right: calc((100% - 1180px) / 2) !important;
  box-sizing: border-box !important;
}

/* Enlaces principales */
.pkp_navigation_primary > li > a,
.pkp_navigation_primary > li > a:link,
.pkp_navigation_primary > li > a:visited {
  color: #FFFFFF !important;
  background: transparent !important;
  min-height: 58px !important;
  padding: 0 22px !important;
  display: flex !important;
  align-items: center !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Hover de enlaces principales */
.pkp_navigation_primary > li:hover > a,
.pkp_navigation_primary > li:focus-within > a,
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
  color: #FFFFFF !important;
  background: #5B111A !important;
}

/* Línea inferior clara en hover */
.pkp_navigation_primary > li > a::after {
  background: #F3E7E8 !important;
  bottom: 0 !important;
}

/* Dropdown */
.pkp_navigation_primary ul {
  background: #FFFFFF !important;
  border: 1px solid #E5D7D9 !important;
  box-shadow: 0 14px 32px rgba(79, 15, 24, .18) !important;
}

.pkp_navigation_primary ul a,
.pkp_navigation_primary ul a:link,
.pkp_navigation_primary ul a:visited {
  color: #3B3032 !important;
  background: #FFFFFF !important;
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
  color: #7B1A25 !important;
  background: #F8F1F2 !important;
  border-left-color: #7B1A25 !important;
}

/* Búsqueda: mantenerla visible siempre */
.pkp_search_desktop,
.pkp_search {
  background: transparent !important;
}

.pkp_search_desktop a,
.pkp_search_desktop a:link,
.pkp_search_desktop a:visited,
.pkp_search a,
.pkp_search a:link,
.pkp_search a:visited {
  color: #FFFFFF !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 58px !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Corrige el problema de texto blanco sobre fondo blanco en hover */
.pkp_search_desktop a:hover,
.pkp_search_desktop a:focus,
.pkp_search a:hover,
.pkp_search a:focus {
  color: #FFFFFF !important;
  background: #5B111A !important;
}

/* Icono de búsqueda */
.pkp_search_desktop .fa,
.pkp_search_desktop [class*="fa-"],
.pkp_search .fa,
.pkp_search [class*="fa-"] {
  color: #FFFFFF !important;
}

/* Si OMP pone el buscador en un contenedor separado, forzar el mismo color */
.pkp_navigation_search_wrapper,
.pkp_search_desktop {
  background: #7B1A25 !important;
}

/* Ajuste móvil */
@media (max-width: 900px) {
  .pkp_navigation_primary_wrapper {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .pkp_navigation_primary > li > a,
  .pkp_search_desktop a,
  .pkp_search a {
    min-height: 52px !important;
  }
}

@media (max-width: 600px) {
  .pkp_navigation_primary_wrapper {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .pkp_navigation_primary,
  .pkp_navigation_primary ul {
    background: #7B1A25 !important;
  }

  .pkp_navigation_primary ul a,
  .pkp_navigation_primary ul a:link,
  .pkp_navigation_primary ul a:visited {
    color: #FFFFFF !important;
    background: #6B1620 !important;
    border-left-color: transparent !important;
  }

  .pkp_navigation_primary ul a:hover,
  .pkp_navigation_primary ul a:focus {
    color: #FFFFFF !important;
    background: #4F0F18 !important;
  }
}


/* =========================================================
   IPESSE — v16
   CABECERA FINAL SIMPLE
   - Logo centrado
   - Menú vino compacto
   - Flecha visible en Editorial
   - Buscar vuelve a la derecha del menú
   ========================================================= */

/* ---------- CABECERA BLANCA ---------- */
.pkp_structure_head {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.pkp_head_wrapper {
  position: relative !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 22px 18px 0 !important;
  box-sizing: border-box !important;
}

/* Logo centrado */
.pkp_site_name_wrapper {
  width: 100% !important;
  min-height: 118px !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.pkp_site_name {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

.pkp_site_name a.is_img {
  display: inline-block !important;
}

.pkp_site_name img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 225px !important;
  max-height: 110px !important;
  margin: 0 auto !important;
}

/* Usuario arriba a la derecha, sin interferir con el logo */
.pkp_navigation_user_wrapper {
  position: absolute !important;
  top: 14px !important;
  right: 18px !important;
  z-index: 30 !important;
  margin: 0 !important;
  background: transparent !important;
}

.pkp_navigation_user {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.pkp_navigation_user > li > a,
.pkp_navigation_user > li > a:link,
.pkp_navigation_user > li > a:visited {
  color: #7b1a25 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* ---------- BARRA DEL MENÚ ---------- */
.pkp_site_nav_menu {
  position: static !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  padding: 0 !important;
  background: #7b1a25 !important;
  border: 0 !important;
  box-shadow: 0 2px 8px rgba(79, 15, 24, .10) !important;
}

.pkp_navigation_primary_row {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 18px !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

.pkp_navigation_primary_wrapper {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

/* Menú más compacto */
.pkp_navigation_primary {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.pkp_navigation_primary > li {
  position: relative !important;
  margin: 0 !important;
}

.pkp_navigation_primary > li > a,
.pkp_navigation_primary > li > a:link,
.pkp_navigation_primary > li > a:visited {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  color: #ffffff !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.pkp_navigation_primary > li:hover > a,
.pkp_navigation_primary > li:focus-within > a,
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
  color: #ffffff !important;
  background: #591119 !important;
}

/* Quitar cualquier subrayado decorativo anterior */
.pkp_navigation_primary > li > a::after {
  display: none !important;
}

/* Flecha de Editorial: el único ítem principal que tiene submenú */
#navigationPrimary > li:has(> ul) > a::after {
  content: "▾" !important;
  display: inline-block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: -1px 0 0 1px !important;
  background: none !important;
  color: #ffffff !important;
  font-size: 12px !important;
  line-height: 1 !important;
  transform: none !important;
}

/* Fallback por el orden actual: Editorial es el tercer elemento */
#navigationPrimary > li:nth-child(3) > a::after {
  content: "▾" !important;
  display: inline-block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: -1px 0 0 1px !important;
  background: none !important;
  color: #ffffff !important;
  font-size: 12px !important;
  line-height: 1 !important;
  transform: none !important;
}

/* ---------- BUSCAR: vuelve a su lugar nativo a la derecha ---------- */
.pkp_navigation_search_wrapper {
  position: static !important;
  transform: none !important;
  width: auto !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
}

.pkp_navigation_search_wrapper .pkp_search,
.pkp_navigation_search_wrapper .pkp_search:link,
.pkp_navigation_search_wrapper .pkp_search:visited {
  position: static !important;
  transform: none !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.pkp_navigation_search_wrapper .pkp_search::after {
  content: none !important;
  display: none !important;
}

.pkp_navigation_search_wrapper .pkp_search .fa {
  color: #ffffff !important;
  font-size: 14px !important;
}

.pkp_navigation_search_wrapper .pkp_search:hover,
.pkp_navigation_search_wrapper .pkp_search:focus {
  color: #ffffff !important;
  background: #591119 !important;
}

/* ---------- DROPDOWN EDITORIAL ---------- */
.pkp_navigation_primary > li > ul {
  min-width: 220px !important;
  padding: 6px 0 !important;
  background: #ffffff !important;
  border: 1px solid #eadfe1 !important;
  border-top: 3px solid #7b1a25 !important;
  border-radius: 0 0 4px 4px !important;
  box-shadow: 0 12px 28px rgba(79, 15, 24, .16) !important;
}

.pkp_navigation_primary > li > ul a,
.pkp_navigation_primary > li > ul a:link,
.pkp_navigation_primary > li > ul a:visited {
  display: block !important;
  padding: 10px 16px !important;
  color: #3d3234 !important;
  background: #ffffff !important;
  border-left: 3px solid transparent !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.pkp_navigation_primary > li > ul a:hover,
.pkp_navigation_primary > li > ul a:focus {
  color: #7b1a25 !important;
  background: #f8f1f2 !important;
  border-left-color: #7b1a25 !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .pkp_site_name_wrapper {
    min-height: 102px !important;
  }

  .pkp_site_name img {
    max-width: 200px !important;
    max-height: 96px !important;
  }

  .pkp_navigation_primary > li > a {
    padding: 0 11px !important;
    font-size: 12px !important;
  }

  .pkp_navigation_search_wrapper .pkp_search {
    padding: 0 11px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 600px) {
  .pkp_head_wrapper {
    padding: 16px 14px 0 !important;
  }

  .pkp_site_name_wrapper {
    min-height: 88px !important;
    padding-bottom: 12px !important;
  }

  .pkp_site_name img {
    max-width: 175px !important;
  }

  .pkp_navigation_user_wrapper {
    top: 8px !important;
    right: 10px !important;
  }

  .pkp_site_nav_menu {
    width: calc(100% + 28px) !important;
    margin-left: -14px !important;
  }

  .pkp_navigation_primary_row {
    padding: 0 10px !important;
  }

  .pkp_navigation_primary_wrapper {
    display: block !important;
  }

  .pkp_navigation_primary {
    display: block !important;
    width: 100% !important;
  }

  .pkp_navigation_primary > li > a {
    min-height: 44px !important;
    padding: 0 12px !important;
  }

  .pkp_navigation_search_wrapper {
    margin-left: 0 !important;
  }

  .pkp_navigation_search_wrapper .pkp_search {
    width: 100% !important;
    justify-content: flex-start !important;
    min-height: 44px !important;
    padding: 0 12px !important;
  }

  .pkp_navigation_primary > li > ul {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    box-shadow: none !important;
  }
}


/* =========================================================
   IPESSE — v17
   Corrección final del menú:
   - recuperar el triángulo nativo de OMP
   - evitar doble indicador
   - limpiar el "doble fondo" del desplegable
   ========================================================= */

/* Ocultar cualquier pseudo-indicador en enlaces SIN submenú */
#navigationPrimary > li > a:not([aria-haspopup])::after {
  content: none !important;
  display: none !important;
}

/* Recuperar el triángulo nativo de OMP en Editorial.
   OMP usa [aria-haspopup]::after con bordes CSS. */
#navigationPrimary > li > a[aria-haspopup]::after {
  content: "" !important;
  position: relative !important;
  display: inline-block !important;

  width: 0 !important;
  height: 0 !important;
  margin-left: 7px !important;

  border-top: 5px solid #ffffff !important;
  border-right: 5px solid transparent !important;
  border-left: 5px solid transparent !important;
  border-bottom: 0 !important;

  background: transparent !important;
  color: transparent !important;
  vertical-align: middle !important;
  transform: none !important;
  overflow: hidden !important;
}

/* Mantener el triángulo visible también durante hover/focus */
#navigationPrimary > li:hover > a[aria-haspopup]::after,
#navigationPrimary > li:focus-within > a[aria-haspopup]::after {
  border-top-color: #ffffff !important;
}

/* Limpiar el desplegable. OMP aplica un translate3d al hover;
   aquí lo alineamos directamente debajo del botón Editorial. */
#navigationPrimary > li:hover > ul,
#navigationPrimary > li:focus-within > ul {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  transform: none !important;
  will-change: auto !important;
}

/* Evitar cualquier pseudo-elemento heredado que parezca
   una segunda caja blanca detrás del menú. */
#navigationPrimary > li > ul::before,
#navigationPrimary > li > ul::after {
  content: none !important;
  display: none !important;
}

/* Una sola caja para el desplegable */
#navigationPrimary > li > ul {
  margin: 0 !important;
  padding: 6px 0 !important;
  background: #ffffff !important;
  border: 1px solid #eadfe1 !important;
  border-top: 3px solid #7b1a25 !important;
  border-radius: 0 0 4px 4px !important;
  box-shadow: 0 10px 24px rgba(79, 15, 24, .14) !important;
  overflow: visible !important;
}

/* Eliminar márgenes heredados de los enlaces internos */
#navigationPrimary > li > ul > li,
#navigationPrimary > li > ul > li > a {
  margin: 0 !important;
}


/* =========================================================
   IPESSE — v21
   SLIDER AUTOMÁTICO CSS — 2 DIAPOSITIVAS
   Usa 2_slider.jpg y 3_slider.jpg
   Sin :target para evitar que el carrusel se quede detenido.
   ========================================================= */

.page_homepage .additional_content .ipesse-slider {
  position: relative;
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  margin-bottom: 52px !important;
  overflow: hidden;
  background: #111;
  border: 0 !important;
  box-shadow: none !important;
}

.ipesse-slider__viewport {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  background: #111;
}

.ipesse-slider__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  opacity: 0;
  visibility: visible !important;
  pointer-events: none;
  transform: scale(1.012);
  background: #111;
}

/* 12 segundos por ciclo: 6 s aprox. cada slide */
.ipesse-slider__slide--1 {
  animation: ipesseAutoSlide1 12s infinite ease-in-out;
}

.ipesse-slider__slide--2 {
  animation: ipesseAutoSlide2 12s infinite ease-in-out;
}

@keyframes ipesseAutoSlide1 {
  0%, 46% {
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    transform: scale(1);
  }
  50%, 96% {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transform: scale(1.012);
  }
  100% {
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    transform: scale(1);
  }
}

@keyframes ipesseAutoSlide2 {
  0%, 46% {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transform: scale(1.012);
  }
  50%, 96% {
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transform: scale(1.012);
  }
}

/* Imagen */
.ipesse-slider__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #222;
}

.ipesse-slider__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

/* Capa oscura */
.ipesse-slider__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(11, 13, 15, .76) 0%,
      rgba(11, 13, 15, .63) 34%,
      rgba(11, 13, 15, .37) 65%,
      rgba(11, 13, 15, .20) 100%
    );
}

/* Contenido */
.ipesse-slider__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1180px, calc(100% - 100px));
  min-height: 520px;
  margin: 0 auto;
  padding: 56px 70px;
  box-sizing: border-box;
  background: transparent !important;
}

.ipesse-slider__content > * {
  max-width: 650px;
}

.ipesse-slider__eyebrow {
  display: block;
  margin: 0 0 16px;
  color: #f3e6e8 !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .20em;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.ipesse-slider__content h1,
.ipesse-slider__content h2 {
  margin: 0 0 18px;
  color: #fff !important;
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(39px, 4.1vw, 62px);
  font-weight: 700;
  line-height: 1.06;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}

.ipesse-slider__content h2 {
  font-size: clamp(38px, 3.8vw, 58px);
}

.ipesse-slider__content p {
  margin: 0 0 27px;
  color: rgba(255,255,255,.93) !important;
  font-size: 16px;
  line-height: 1.7;
  text-shadow: 0 1px 5px rgba(0,0,0,.30);
}

.ipesse-slider__button,
.ipesse-slider__button:link,
.ipesse-slider__button:visited {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-height: 48px;
  padding: 0 23px;
  color: #fff !important;
  background: #8f1d2a;
  border: 1px solid #8f1d2a;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(31,8,12,.18);
}

.ipesse-slider__button:hover,
.ipesse-slider__button:focus {
  color: #fff !important;
  background: #68131d;
  border-color: #68131d;
}

/* En esta versión CSS automática ocultamos las flechas,
   porque no usamos JS ni :target (eso era lo que detenía el slider). */
.ipesse-slider__arrow {
  display: none !important;
}

/* Indicadores automáticos */
.ipesse-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}

.ipesse-slider__dot {
  display: block;
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 50%;
  pointer-events: none;
}

.ipesse-slider__dot--1 {
  animation: ipesseAutoDot1 12s infinite ease-in-out;
}

.ipesse-slider__dot--2 {
  animation: ipesseAutoDot2 12s infinite ease-in-out;
}

@keyframes ipesseAutoDot1 {
  0%, 46%, 100% {
    width: 28px;
    background: #fff;
    border-color: #fff;
    border-radius: 999px;
  }
  50%, 96% {
    width: 10px;
    background: rgba(255,255,255,.48);
    border-color: rgba(255,255,255,.68);
    border-radius: 50%;
  }
}

@keyframes ipesseAutoDot2 {
  0%, 46%, 100% {
    width: 10px;
    background: rgba(255,255,255,.48);
    border-color: rgba(255,255,255,.68);
    border-radius: 50%;
  }
  50%, 96% {
    width: 28px;
    background: #fff;
    border-color: #fff;
    border-radius: 999px;
  }
}

@media (max-width: 1000px) {
  .ipesse-slider__viewport,
  .ipesse-slider__slide,
  .ipesse-slider__media img {
    min-height: 480px;
  }

  .ipesse-slider__content {
    width: calc(100% - 70px);
    min-height: 480px;
    padding: 46px 52px;
  }
}

@media (max-width: 650px) {
  .page_homepage .additional_content .ipesse-slider {
    margin-bottom: 40px !important;
  }

  .ipesse-slider__viewport,
  .ipesse-slider__slide,
  .ipesse-slider__media img {
    min-height: 570px;
  }

  .ipesse-slider__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(12,13,15,.54) 0%,
        rgba(12,13,15,.70) 55%,
        rgba(12,13,15,.84) 100%
      );
  }

  .ipesse-slider__content {
    width: 100%;
    min-height: 570px;
    padding: 58px 42px 72px;
    justify-content: flex-end;
  }

  .ipesse-slider__content h1,
  .ipesse-slider__content h2 {
    font-size: 34px;
  }

  .ipesse-slider__content p {
    font-size: 15px;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ipesse-slider__slide--1,
  .ipesse-slider__slide--2,
  .ipesse-slider__dot--1,
  .ipesse-slider__dot--2 {
    animation: none !important;
  }

  .ipesse-slider__slide--1 {
    opacity: 1 !important;
    z-index: 3 !important;
  }

  .ipesse-slider__slide--2 {
    opacity: 0 !important;
    z-index: 1 !important;
  }
}


/* =========================================================
   IPESSE — v22
   ÚLTIMAS PUBLICACIONES
   - Aviso temporal mientras el catálogo está vacío
   - Se oculta automáticamente cuando OMP renderiza libros
   - La lista nativa de OMP se coloca debajo del slider
   ========================================================= */

/* Convertimos la portada en un flujo ordenable.
   additional_content no crea una caja propia, así sus secciones
   pueden intercalarse con la lista nativa de monografías de OMP. */
.page_homepage {
  display: flex !important;
  flex-direction: column !important;
}

.page_homepage > .additional_content {
  display: contents !important;
}

/* Orden de la portada */
.page_homepage .ipesse-slider {
  order: 10;
}

.page_homepage .ipesse-latest-empty {
  order: 20;
}

.page_homepage > .cmp_monographs_list {
  order: 30;
}

.page_homepage .ipesse-latest-more {
  order: 40;
}

.page_homepage .ipesse-collections {
  order: 50;
}

.page_homepage .ipesse-authors {
  order: 60;
}

.page_homepage .ipesse-strengths {
  order: 70;
}

.page_homepage > .obj_announcements_summary,
.page_homepage > .cmp_announcements {
  order: 80;
}

/* =========================================================
   ESTADO VACÍO
   ========================================================= */

.ipesse-latest-empty {
  width: min(1180px, calc(100% - 40px));
  margin: 4px auto 18px;
  padding: 0;
  box-sizing: border-box;
}

.ipesse-latest-empty__heading {
  margin-bottom: 22px;
}

.ipesse-latest-empty__kicker {
  display: block;
  margin-bottom: 5px;
  color: #7b1a25;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ipesse-latest-empty h2 {
  margin: 0 0 7px;
  color: #5b111a;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 32px;
  line-height: 1.2;
}

.ipesse-latest-empty__heading p {
  max-width: 700px;
  margin: 0;
  color: #756a6c;
  font-size: 14px;
  line-height: 1.6;
}

.ipesse-latest-empty__message {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 108px;
  padding: 24px 28px;
  background: #fbf8f7;
  border: 1px solid #eadfe1;
  border-left: 4px solid #7b1a25;
  box-sizing: border-box;
}

.ipesse-latest-empty__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b1a25;
  background: #f3e7e9;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.ipesse-latest-empty__message strong {
  display: block;
  margin-bottom: 4px;
  color: #4f0f18;
  font-size: 15px;
}

.ipesse-latest-empty__message p {
  margin: 0;
  color: #716668;
  font-size: 13.5px;
  line-height: 1.55;
}

/* En cuanto OMP genere una lista nativa de libros,
   desaparecerá el aviso temporal automáticamente. */
.page_homepage:has(> .cmp_monographs_list) .ipesse-latest-empty {
  display: none !important;
}

/* =========================================================
   LISTA NATIVA DE OMP CUANDO EXISTAN PUBLICACIONES
   ========================================================= */

.page_homepage > .cmp_monographs_list {
  width: min(1180px, calc(100% - 40px)) !important;
  margin: 4px auto 18px !important;
  padding: 0 !important;
  box-sizing: border-box !important;

  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px 22px !important;

  border: 0 !important;
}

/* El título ocupa toda la fila */
.page_homepage > .cmp_monographs_list > .title {
  grid-column: 1 / -1 !important;
  margin: 0 0 2px !important;
  padding: 0 0 13px !important;
  color: #5b111a !important;
  border-bottom: 1px solid #eadfe1 !important;
  font-family: "Noto Serif", Georgia, serif !important;
  font-size: 0 !important;
  line-height: 1.2 !important;
}

/* Sustituimos visualmente el texto nativo por el rótulo solicitado */
.page_homepage > .cmp_monographs_list > .title::after {
  content: "Últimas publicaciones";
  font-size: 32px;
  font-weight: 700;
}

/* OMP agrupa de dos en dos; visualmente disolvemos esas filas */
.page_homepage > .cmp_monographs_list > .row {
  display: contents !important;
}

/* Cada libro */
.page_homepage > .cmp_monographs_list .obj_monograph_summary {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  border: 0 !important;
  background: transparent !important;
}

/* Portada */
.page_homepage > .cmp_monographs_list .obj_monograph_summary .cover {
  display: block !important;
  width: 100% !important;
  margin: 0 0 13px !important;
  padding: 0 !important;
  overflow: hidden;
  background: #f5f1f0;
  border: 1px solid #eee4e5;
  aspect-ratio: 0.70;
}

.page_homepage > .cmp_monographs_list .obj_monograph_summary .cover img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transition: transform .22s ease;
}

.page_homepage > .cmp_monographs_list .obj_monograph_summary .cover:hover img {
  transform: scale(1.025);
}

/* Título */
.page_homepage > .cmp_monographs_list .obj_monograph_summary .title {
  margin: 0 0 5px !important;
  padding: 0 !important;
  color: #4f0f18 !important;
  font-family: "Noto Serif", Georgia, serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.page_homepage > .cmp_monographs_list .obj_monograph_summary .title a {
  color: #4f0f18 !important;
  text-decoration: none !important;
}

.page_homepage > .cmp_monographs_list .obj_monograph_summary .title a:hover {
  color: #8f1d2a !important;
}

/* Autor y fecha */
.page_homepage > .cmp_monographs_list .obj_monograph_summary .author,
.page_homepage > .cmp_monographs_list .obj_monograph_summary .date,
.page_homepage > .cmp_monographs_list .obj_monograph_summary .seriesPosition {
  margin: 0 0 3px !important;
  color: #807476 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

/* =========================================================
   ENLACE AL CATÁLOGO
   ========================================================= */

.ipesse-latest-more {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 54px;
  text-align: right;
  box-sizing: border-box;
}

.ipesse-latest-more a {
  color: #7b1a25 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.ipesse-latest-more a:hover,
.ipesse-latest-more a:focus {
  color: #4f0f18 !important;
  text-decoration: underline !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .page_homepage > .cmp_monographs_list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .ipesse-latest-empty,
  .page_homepage > .cmp_monographs_list,
  .ipesse-latest-more {
    width: calc(100% - 28px) !important;
  }

  .ipesse-latest-empty h2,
  .page_homepage > .cmp_monographs_list > .title::after {
    font-size: 27px;
  }

  .ipesse-latest-empty__message {
    align-items: flex-start;
    padding: 20px;
  }

  .page_homepage > .cmp_monographs_list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 14px !important;
  }
}


/* =========================================================
   IPESSE — v23
   Identificación y registro editorial: DOI + ISBN
   ========================================================= */

.page_homepage .ipesse-standards {
  order: 75;
}

.ipesse-standards {
  width: min(1180px, calc(100% - 40px));
  margin: 4px auto 58px;
  box-sizing: border-box;
}

.ipesse-standards__heading {
  position: relative;
  margin-bottom: 26px;
  text-align: center;
}

.ipesse-standards__heading::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #eadfe1;
  z-index: 0;
}

.ipesse-standards__heading h2 {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0;
  padding: 0 24px;
  color: #5b111a;
  background: #fff;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 31px;
  line-height: 1.2;
}

.ipesse-standards__heading p {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 9px auto 0;
  color: #7b7072;
  background: #fff;
  font-size: 13.5px;
  line-height: 1.55;
}

.ipesse-standards__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 330px));
  justify-content: center;
  gap: 24px;
}

.ipesse-standard-card {
  min-height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #fff;
  border: 1px solid #ded2d4;
  box-sizing: border-box;
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.ipesse-standard-card:hover {
  transform: translateY(-2px);
  border-color: #c7aeb2;
  box-shadow: 0 8px 20px rgba(79, 15, 24, .07);
}

.ipesse-standard-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 170px;
  max-height: 88px;
  object-fit: contain;
}

.ipesse-standard-card--doi img {
  max-width: 112px;
  max-height: 86px;
}

.ipesse-standard-card--isbn img {
  max-width: 150px;
  max-height: 72px;
}

@media (max-width: 650px) {
  .ipesse-standards {
    width: calc(100% - 28px);
    margin-bottom: 42px;
  }

  .ipesse-standards__heading h2 {
    padding: 0 14px;
    font-size: 27px;
  }

  .ipesse-standards__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ipesse-standard-card {
    min-height: 145px;
  }
}


/* =========================================================
   IPESSE — v24
   FOOTER INSTITUCIONAL
   - Logo blanco transparente
   - Información en columnas
   - Redes sociales
   - Mantiene la marca OMP/PKP en una franja inferior discreta
   ========================================================= */

.pkp_structure_footer_wrapper {
  margin-top: 0 !important;
  background: #7b1a25 !important;
  border-top: 0 !important;
}

.pkp_structure_footer {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

/* Contenido editable del footer */
.pkp_footer_content {
  padding: 52px 0 34px !important;
  color: rgba(255,255,255,.92) !important;
  background: transparent !important;
}

/* Reiniciar márgenes heredados de OMP */
.pkp_footer_content p {
  margin: 0 !important;
}

.ipesse-footer {
  width: 100%;
}

.ipesse-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.25fr .9fr;
  gap: 56px;
  align-items: start;
}

/* Marca */
.ipesse-footer__brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 205px;
  max-height: 88px;
  margin: 0 0 20px;
  object-fit: contain;
}

.ipesse-footer__tagline {
  max-width: 300px;
  margin: 0 0 24px !important;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.65;
}

/* Títulos */
.ipesse-footer__title {
  display: block;
  margin: 3px 0 17px;
  color: #f1dadd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Datos de contacto */
.ipesse-footer__contact {
  display: grid;
  gap: 13px;
}

.ipesse-footer__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(255,255,255,.94);
  font-size: 14px;
  line-height: 1.55;
}

.ipesse-footer__item .fa {
  width: 24px;
  padding-top: 3px;
  color: #f1dadd;
  font-size: 16px;
  text-align: center;
}

.ipesse-footer__item a,
.ipesse-footer__item a:link,
.ipesse-footer__item a:visited {
  color: #fff !important;
  text-decoration: none !important;
}

.ipesse-footer__item a:hover,
.ipesse-footer__item a:focus {
  color: #f1dadd !important;
  text-decoration: underline !important;
}

/* Redes */
.ipesse-footer__social {
  display: flex;
  gap: 10px;
}

.ipesse-footer__social a,
.ipesse-footer__social a:link,
.ipesse-footer__social a:visited {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #fff !important;
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;

  font-size: 17px;
  text-decoration: none !important;

  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.ipesse-footer__social a:hover,
.ipesse-footer__social a:focus {
  color: #7b1a25 !important;
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

/* Horario */
.ipesse-footer__hours {
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.7;
}

/* Franja inferior propia */
.ipesse-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-top: 38px;
  padding-top: 22px;

  border-top: 1px solid rgba(255,255,255,.18);
}

.ipesse-footer__copyright {
  color: rgba(255,255,255,.83);
  font-size: 12.5px;
  line-height: 1.5;
}

.ipesse-footer__institution {
  color: rgba(255,255,255,.65);
  font-size: 12px;
  text-align: right;
}

/* Marca OMP/PKP nativa: compacta y discreta */
.pkp_brand_footer {
  width: 100% !important;
  margin: 0 !important;
  padding: 18px 0 26px !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  text-align: right !important;
  background: transparent !important;
}

.pkp_brand_footer a {
  display: inline-block !important;
  opacity: .72;
  transition: opacity .18s ease;
}

.pkp_brand_footer a:hover,
.pkp_brand_footer a:focus {
  opacity: 1;
}

.pkp_brand_footer img {
  width: auto !important;
  height: auto !important;
  max-width: 108px !important;
  max-height: 48px !important;
  filter: brightness(0) invert(1);
  opacity: .9;
}

/* Evitar el gran espacio del footer predeterminado */
.pkp_structure_footer_wrapper,
.pkp_structure_footer,
.pkp_footer_content,
.pkp_brand_footer {
  min-height: 0 !important;
}

/* Tablet */
@media (max-width: 900px) {
  .ipesse-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 42px;
  }

  .ipesse-footer__hours-column {
    grid-column: 1 / -1;
  }
}

/* Móvil */
@media (max-width: 600px) {
  .pkp_structure_footer {
    padding: 0 18px !important;
  }

  .pkp_footer_content {
    padding: 38px 0 28px !important;
  }

  .ipesse-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ipesse-footer__hours-column {
    grid-column: auto;
  }

  .ipesse-footer__brand img {
    max-width: 180px;
  }

  .ipesse-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 30px;
  }

  .ipesse-footer__institution {
    text-align: left;
  }

  .pkp_brand_footer {
    text-align: left !important;
  }
}


/* =========================================================
   IPESSE — v25
   CORRECCIÓN FOOTER
   - Iconos mediante CSS/FontAwesome (el editor OMP elimina <i>)
   - Evita cortes de dirección, correo y teléfono
   - Mejora proporciones de columnas
   ========================================================= */

/* Columnas más equilibradas */
.ipesse-footer__grid {
  grid-template-columns:
    minmax(260px, 1fr)
    minmax(390px, 1.35fr)
    minmax(245px, .85fr) !important;
  gap: 64px !important;
}

/* Contacto: el icono ahora se genera con ::before */
.ipesse-footer__item {
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  width: 100% !important;
}

/* Ya no dependemos de <i>, que OMP puede eliminar */
.ipesse-footer__item .fa {
  display: none !important;
}

.ipesse-footer__item::before {
  display: block;
  width: 26px;
  padding-top: 2px;
  color: #f1dadd;
  font-family: FontAwesome;
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: auto;
}

/* Iconos SVG-equivalentes de Font Awesome */
.ipesse-footer__item--location::before {
  content: "\f041"; /* map-marker */
}

.ipesse-footer__item--email::before {
  content: "\f003"; /* envelope */
}

.ipesse-footer__item--phone::before {
  content: "\f095"; /* phone */
}

/* Evitar que el contenido caiga en una columna de 24 px */
.ipesse-footer__item > span,
.ipesse-footer__item > a {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ipesse-footer__item--email > a,
.ipesse-footer__item--phone > a {
  white-space: nowrap !important;
}

/* Redes: iconos generados en CSS para que no desaparezcan */
.ipesse-footer__social a {
  position: relative;
}

.ipesse-footer__social a .fa {
  display: none !important;
}

.ipesse-footer__social a::before {
  color: currentColor;
  font-family: FontAwesome;
  font-size: 18px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: auto;
}

.ipesse-footer__social-facebook::before {
  content: "\f09a"; /* facebook */
}

.ipesse-footer__social-youtube::before {
  content: "\f16a"; /* youtube-play */
}

/* Logo */
.ipesse-footer__brand img {
  max-width: 230px !important;
  max-height: 105px !important;
  background: transparent !important;
}

/* Contacto con aire suficiente */
.ipesse-footer__contact {
  width: 100% !important;
  max-width: 480px !important;
}

/* Horario */
.ipesse-footer__hours {
  white-space: normal !important;
}

/* Tablet */
@media (max-width: 1000px) {
  .ipesse-footer__grid {
    grid-template-columns: 1fr 1.15fr !important;
    gap: 40px !important;
  }

  .ipesse-footer__hours-column {
    grid-column: 1 / -1 !important;
  }
}

/* Móvil */
@media (max-width: 650px) {
  .ipesse-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .ipesse-footer__hours-column {
    grid-column: auto !important;
  }

  .ipesse-footer__item--email > a,
  .ipesse-footer__item--phone > a {
    white-space: normal !important;
  }
}


/* =========================================================
   IPESSE — v26
   CORRECCIÓN:
   - elimina scroll horizontal
   - recupera Facebook y YouTube sin depender de <i> vacíos
   ========================================================= */

/* El slider usa ancho completo; evitamos que 100vw + scrollbar
   genere desbordamiento horizontal en algunos navegadores. */
html,
body,
.pkp_structure_page {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Asegurar que elementos full-width no aumenten el ancho real */
.pkp_site_nav_menu,
.page_homepage .additional_content .ipesse-slider {
  box-sizing: border-box !important;
}

/* Redes sociales: los enlaces ya NO deben quedar vacíos */
.ipesse-footer__social {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 4px !important;
}

.ipesse-footer__social a,
.ipesse-footer__social a:link,
.ipesse-footer__social a:visited {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  color: #ffffff !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.58) !important;
  border-radius: 50% !important;

  text-decoration: none !important;
  box-sizing: border-box !important;
}

/* Cancelar pseudo-iconos anteriores para no duplicar */
.ipesse-footer__social a::before {
  content: none !important;
  display: none !important;
}

/* Icono real basado en texto seguro para el editor OMP */
.ipesse-footer__social-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;

  color: inherit !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  pointer-events: none !important;
}

/* Facebook */
.ipesse-footer__social-facebook .ipesse-footer__social-icon {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
}

/* YouTube: triángulo más pequeño y centrado */
.ipesse-footer__social-youtube .ipesse-footer__social-icon {
  font-size: 17px !important;
  transform: translateX(1px);
}

/* Hover */
.ipesse-footer__social a:hover,
.ipesse-footer__social a:focus {
  color: #7b1a25 !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
}

/* Evitar posibles desbordes del footer */
.ipesse-footer,
.ipesse-footer__grid,
.ipesse-footer__brand,
.ipesse-footer__contact,
.ipesse-footer__hours-column,
.ipesse-footer__bottom {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 600px) {
  html,
  body,
  .pkp_structure_page {
    overflow-x: hidden !important;
  }
}


/* =========================================================
   IPESSE — v27
   CORRECCIÓN RESPONSIVE DE CABECERA / MENÚ
   - El menú de usuario vuelve a la posición nativa de OMP
   - Registrarse / Entrar visibles en tamaños intermedios
   - En móvil se recupera el botón de menú de OMP
   - Menú principal + menú de usuario aparecen dentro del panel móvil
   ========================================================= */

/* =========================================================
   MENÚ DE USUARIO — NO REUBICARLO PERSONALIZADAMENTE
   Base móvil/tablet: queda dentro del nav como OMP lo genera
   ========================================================= */
.pkp_navigation_user_wrapper {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  text-align: inherit !important;
  background: transparent !important;
  z-index: auto !important;
}

.pkp_navigation_user {
  background: transparent !important;
}

/* =========================================================
   ESCRITORIO — restaurar ubicación nativa del menú de usuario
   ========================================================= */
@media (min-width: 992px) {

  /* El tema OMP coloca el menú de usuario arriba y centrado */
  .pkp_navigation_user_wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    padding: 0 16px !important;
    margin: 0 !important;
    text-align: right !important;
    z-index: 1000 !important;
  }

  .pkp_navigation_user {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  .pkp_navigation_user > li {
    display: inline-block !important;
  }

  .pkp_navigation_user > li > a,
  .pkp_navigation_user > li > a:link,
  .pkp_navigation_user > li > a:visited {
    display: inline-block !important;
    padding: 7px 8px !important;
    color: #7b1a25 !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
  }

  .pkp_navigation_user > li > a:hover,
  .pkp_navigation_user > li > a:focus {
    color: #4f0f18 !important;
    background: transparent !important;
    text-decoration: underline !important;
  }

  /* En escritorio OMP oculta el botón hamburguesa */
  .pkp_site_nav_toggle {
    display: none !important;
  }
}

/* =========================================================
   TABLET Y MÓVIL — recuperar comportamiento nativo OMP
   ========================================================= */
@media (max-width: 991px) {

  .pkp_structure_head {
    position: relative !important;
    z-index: 100 !important;
  }

  .pkp_head_wrapper {
    position: relative !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Cabecera móvil con espacio para botón + logo */
  .pkp_site_name_wrapper {
    position: relative !important;
    width: 100% !important;
    height: 88px !important;
    min-height: 88px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
  }

  .pkp_site_name {
    position: static !important;
    width: auto !important;
    max-width: calc(100% - 110px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .pkp_site_name img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 165px !important;
    max-height: 72px !important;
    margin: 0 auto !important;
  }

  /* Botón nativo de OMP visible */
  .pkp_site_nav_toggle {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 14px !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10002 !important;

    color: #7b1a25 !important;
    background: #ffffff !important;
    border: 1px solid #dccbce !important;
    border-radius: 3px !important;
    box-shadow: none !important;
  }

  /* El texto accesible sigue existiendo, pero mostramos un icono visual */
  .pkp_site_nav_toggle span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .pkp_site_nav_toggle::before {
    content: "\2630" !important;
    display: block !important;
    color: #7b1a25 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 25px !important;
    font-weight: 400 !important;
    line-height: 42px !important;
    text-align: center !important;
  }

  /* Panel móvil: vuelve a comportarse como navegación de OMP */
  .pkp_site_nav_menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 16px 18px 18px !important;
    box-sizing: border-box !important;

    background: #ffffff !important;
    border-top: 1px solid #eadfe1 !important;
    border-bottom: 1px solid #eadfe1 !important;
    box-shadow: 0 12px 24px rgba(79, 15, 24, .12) !important;

    z-index: 9999 !important;
  }

  .pkp_navigation_primary_row,
  .pkp_navigation_primary_wrapper {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .pkp_navigation_primary {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    text-align: left !important;
  }

  .pkp_navigation_primary > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0e6e8 !important;
  }

  .pkp_navigation_primary > li:last-child {
    border-bottom: 0 !important;
  }

  .pkp_navigation_primary > li > a,
  .pkp_navigation_primary > li > a:link,
  .pkp_navigation_primary > li > a:visited {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 4px !important;
    box-sizing: border-box !important;

    color: #7b1a25 !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    white-space: normal !important;
  }

  .pkp_navigation_primary > li > a:hover,
  .pkp_navigation_primary > li > a:focus {
    color: #4f0f18 !important;
    background: #fbf7f7 !important;
  }

  /* Flecha de submenú visible en móvil */
  #navigationPrimary > li > a[aria-haspopup]::after {
    content: "" !important;
    display: inline-block !important;
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    margin-left: 8px !important;

    border-top: 5px solid #7b1a25 !important;
    border-right: 5px solid transparent !important;
    border-left: 5px solid transparent !important;
    border-bottom: 0 !important;

    background: transparent !important;
    transform: none !important;
  }

  /* Dropdown en móvil: no debe quedar flotando fuera de pantalla */
  #navigationPrimary > li > ul,
  .pkp_navigation_primary .dropdown-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px 0 8px 12px !important;

    background: #fbf8f8 !important;
    border: 0 !important;
    border-left: 2px solid #d9bdc1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  #navigationPrimary > li > ul a,
  .pkp_navigation_primary .dropdown-menu a {
    padding: 9px 10px !important;
    color: #5f1a23 !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 13px !important;
  }

  /* Buscador dentro del mismo panel móvil */
  .pkp_navigation_search_wrapper {
    float: none !important;
    width: 100% !important;
    margin: 14px 0 0 !important;
    padding: 14px 0 0 !important;
    border-top: 1px solid #eadfe1 !important;
    background: transparent !important;
  }

  .pkp_navigation_search_wrapper .pkp_search,
  .pkp_navigation_search_wrapper .pkp_search:link,
  .pkp_navigation_search_wrapper .pkp_search:visited {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 8px 4px !important;

    color: #7b1a25 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  .pkp_navigation_search_wrapper .pkp_search .fa {
    color: #7b1a25 !important;
  }

  /* Menú Registrarse / Entrar dentro del panel móvil */
  .pkp_navigation_user_wrapper {
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    text-align: left !important;
    background: transparent !important;
    z-index: auto !important;
  }

  .pkp_navigation_user,
  .pkp_navigation_user.pkp_navigation_user {
    display: block !important;
    width: 100% !important;
    margin: 14px 0 0 !important;
    padding: 14px 0 0 !important;
    border-top: 1px solid #eadfe1 !important;
    text-align: left !important;
    background: transparent !important;
  }

  .pkp_navigation_user > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .pkp_navigation_user > li > a,
  .pkp_navigation_user > li > a:link,
  .pkp_navigation_user > li > a:visited {
    display: block !important;
    width: 100% !important;
    padding: 9px 4px !important;

    color: #7b1a25 !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
  }

  .pkp_navigation_user > li > a:hover,
  .pkp_navigation_user > li > a:focus {
    color: #4f0f18 !important;
    background: #fbf7f7 !important;
  }

  /* Dropdown del usuario dentro del panel móvil */
  .pkp_navigation_user > li > ul {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px 0 6px 12px !important;
    background: #fbf8f8 !important;
    border: 0 !important;
    border-left: 2px solid #d9bdc1 !important;
    box-shadow: none !important;
  }

  .pkp_navigation_user > li > ul a {
    color: #5f1a23 !important;
    background: transparent !important;
    padding: 8px 10px !important;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .pkp_site_name_wrapper {
    height: 80px !important;
    min-height: 80px !important;
  }

  .pkp_site_name img {
    max-width: 145px !important;
    max-height: 64px !important;
  }

  .pkp_site_nav_toggle {
    left: 10px !important;
    width: 40px !important;
    height: 40px !important;
  }

  .pkp_site_nav_toggle::before {
    font-size: 23px !important;
    line-height: 38px !important;
  }

  .pkp_site_nav_menu {
    padding: 14px !important;
  }
}
