/**
 * custom.css
 * Tema personalizado permanente para Actas Peruanas de AnestesiologÃ­a
 * Color institucional: #13544e
 * Fondo temÃ¡tico suave: #eaf3f1
 */

/* ======== COLORES BASE ======== */
:root {
  --color-principal: #13544e;
  --color-acento: #1c7d71;
  --color-fondo: #eaf3f1;
  --color-texto: #222;
  --color-texto-suave: #555;
}

/* ======== ESTRUCTURA GENERAL ======== */
body {
  background-color: var(--color-fondo);
  color: var(--color-texto);
  font-family: "Noto Sans", "Roboto", sans-serif;
  line-height: 1.6;
}

/* ======== ENCABEZADO / CABECERA ======== */
.pkp_structure_head {
  background-color: var(--color-principal) !important;
  border-bottom: 3px solid var(--color-acento);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pkp_site_name a,
.pkp_site_name .is_text {
  color: #fff !important;
  font-weight: 700;
}

/* ======== MENÃš DE NAVEGACIÃ“N ======== */
.pkp_navigation_primary {
  background-color: #eaf3f1 !important;
  border-top: 3px solid var(--color-principal);
  border-bottom: 3px solid var(--color-principal);
  text-align: center;
  padding: 0.4em 0;
}

.pkp_navigation_primary > li {
  display: inline-block;
  margin: 0 10px;
}

.pkp_navigation_primary > li > a {
  color: var(--color-principal) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: 0.3s;
  border-bottom: 2px solid transparent;
  padding: 0.5em 0.8em;
  border-radius: 6px;
}

.pkp_navigation_primary > li > a:hover {
  background-color: var(--color-principal);
  color: #fff !important;
  border-color: var(--color-acento);
}

/* ======== ENLACES ======== */
a {
  color: var(--color-principal);
  transition: color 0.3s;
}

a:hover {
  color: var(--color-acento);
}

/* ======== BOTONES ======== */
.pkp_button,
.pkp_page_index .cmp_button,
.cmp_button {
  background-color: var(--color-principal) !important;
  border: none;
  color: #fff !important;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.pkp_button:hover,
.cmp_button:hover {
  background-color: var(--color-acento) !important;
}

/* ======== FOOTER ======== */
.pkp_structure_footer {
  background-color: var(--color-principal) !important;
  color: #fff !important;
  padding: 2em 0;
  text-align: center;
}

.pkp_structure_footer a {
  color: #fff !important;
  text-decoration: underline;
}

.pkp_structure_footer a:hover {
  color: #dff7f1 !important;
}

/* ======== TITULOS ======== */
h1, h2, h3, h4, h5 {
  color: var(--color-principal);
  font-weight: 700;
}

/* ======== TABLAS ======== */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
  background-color: #ffffff;
}

th {
  background-color: var(--color-principal);
  color: #fff;
  padding: 0.5em;
}

td {
  border: 1px solid #ddd;
  padding: 0.5em;
}

/* ======== BARRA LATERAL ======== */
.pkp_structure_sidebar {
  background-color: #eaf3f1;
  border: 1px solid #cddedb;
  border-radius: 6px;
  padding: 1em;
}

.pkp_structure_sidebar h2 {
  color: var(--color-principal);
  border-bottom: 2px solid var(--color-acento);
  padding-bottom: 0.3em;
}

/* ======== IMAGEN PRINCIPAL Y SECCIÃ“N DEL NÃšMERO ======== */
.homepage-image-behind-issue {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border: 4px solid var(--color-acento);
  border-radius: 10px;
  margin-bottom: 30px;
}

.container-homepage-issue {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  border: 2px dashed var(--color-acento);
}

/* ======== TÃTULOS DEL NÃšMERO ======== */
.homepage-issue-current,
.homepage-issue-identifier,
.homepage-issue-published {
  color: var(--color-principal) !important;
  text-shadow: none !important;
  text-align: center;
}

/* ======== AJUSTES MÃ“VILES ======== */
@media (max-width: 768px) {
  .pkp_navigation_primary > li {
    display: block;
    margin: 5px 0;
  }

  .pkp_structure_footer {
    font-size: 0.9em;
  }
}

/* ======== SELLO PERMANENTE ======== */
body::after {
  content: "â€¢ Actas Peruanas de AnestesiologÃ­a";
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: var(--color-principal);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  opacity: 0.9;
  z-index: 9999;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* ===== Barra superior de contacto ===== */
.barra-contacto {
  background-color: #13544e;
  color: #fff;
  text-align: center;
  padding: 6px 0;
  font-size: 14px;
  font-family: "Noto Sans", sans-serif;
}
.barra-contacto a {
  color: #dff7f1;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
}
.barra-contacto a:hover {
  text-decoration: underline;
}

/* ======== CABECERA PERSONALIZADA HEADER.TPL ======== */
.main-header {
  background-color: var(--color-fondo) !important;
  padding: 10px 0;
}

/* ======== POPUP PUBLICITARIO ======== */
.popup-anuncio {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.popup-anuncio.mostrar {
  display: flex;
  animation: aparecer 0.4s ease;
}

.popup-contenido {
  background: #ffffff;
  color: #222;
  max-width: 400px;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border-top: 6px solid var(--color-principal);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  position: relative;
}

.popup-contenido h2 {
  color: var(--color-principal);
  margin-bottom: 10px;
}

.popup-boton {
  display: inline-block;
  background: var(--color-principal);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 10px;
  transition: 0.3s;
}

.popup-boton:hover {
  background: var(--color-acento);
}

.popup-cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #333;
}

@keyframes aparecer {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* ======== SECCIÃ“N DESCRIPCIÃ“N DEL NÃšMERO ======== */
.page-issue-description-wrapper {
  background-color: #1b7895 !important;
  color: #ffffff !important;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* TÃ­tulo dentro de la descripciÃ³n */
.page-issue-description .h2 {
  color: #ffffff !important;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Texto del pÃ¡rrafo */
.page-issue-description p {
  color: #ffffff !important;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

/* Imagen de portada */
.page-issue-cover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-issue-cover:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}


/* ======== SECCIÃ“N DESCRIPCIÃ“N DEL Home ======== */
.homepage-issue-description-wrapper {
  background-color: #eaf3f1 !important;
  color: #000000 !important;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* TÃ­tulo dentro de la descripciÃ³n */
.homepage-issue-description .h2 {
  color: #146b58 !important;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Texto del pÃ¡rrafo */
.homepage-issue-description p {
  color: #000000 !important;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

.homepage-issue-description-more {
  background-color: #eaf3f1 !important;
}
.homepage-issue-description:after {
height: 0px;
}


/* Imagen de portada */
.homepage-issue-cover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.homepage-issue-cover:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

//
.navbar-logo img {
        max-height: 110px !important;
    }

/**
 * custom.css
 * Tema personalizado permanente para Actas Peruanas de AnestesiologÃ­a
 * Color institucional: #13544e
 * Fondo temÃ¡tico suave: #eaf3f1
 */

/* ======== COLORES BASE ======== */
:root {
  --color-principal: #13544e;
  --color-acento: #1c7d71;
  --color-fondo: #eaf3f1;
  --color-texto: #222;
  --color-texto-suave: #555;
}

/* ======== ESTRUCTURA GENERAL ======== */
body {
  background-color: var(--color-fondo);
  color: var(--color-texto);
  font-family: "Noto Sans", "Roboto", sans-serif;
  line-height: 1.6;
}

/* ======== ENCABEZADO / CABECERA ======== */
.pkp_structure_head {
  background-color: var(--color-principal) !important;
  border-bottom: 3px solid var(--color-acento);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pkp_site_name a,
.pkp_site_name .is_text {
  color: #fff !important;
  font-weight: 700;
}

/* ======== MENÃš DE NAVEGACIÃ“N ======== */
.pkp_navigation_primary {
  background-color: #eaf3f1 !important;
  border-top: 3px solid var(--color-principal);
  border-bottom: 3px solid var(--color-principal);
  text-align: center;
  padding: 0.4em 0;
}

.pkp_navigation_primary > li {
  display: inline-block;
  margin: 0 10px;
}

.pkp_navigation_primary > li > a {
  color: var(--color-principal) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: 0.3s;
  border-bottom: 2px solid transparent;
  padding: 0.5em 0.8em;
  border-radius: 6px;
}

.pkp_navigation_primary > li > a:hover {
  background-color: var(--color-principal);
  color: #fff !important;
  border-color: var(--color-acento);
}

/* ======== ENLACES ======== */
a {
  color: var(--color-principal);
  transition: color 0.3s;
}

a:hover {
  color: var(--color-acento);
}

/* ======== BOTONES ======== */
.pkp_button,
.pkp_page_index .cmp_button,
.cmp_button {
  background-color: var(--color-principal) !important;
  border: none;
  color: #fff !important;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.pkp_button:hover,
.cmp_button:hover {
  background-color: var(--color-acento) !important;
}

/* ======== FOOTER ======== */
.pkp_structure_footer {
  background-color: var(--color-principal) !important;
  color: #fff !important;
  padding: 2em 0;
  text-align: center;
}

.pkp_structure_footer a {
  color: #fff !important;
  text-decoration: underline;
}

.pkp_structure_footer a:hover {
  color: #dff7f1 !important;
}

/* ======== TITULOS ======== */
h1, h2, h3, h4, h5 {
  color: var(--color-principal);
  font-weight: 700;
}

/* ======== TABLAS ======== */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
  background-color: #ffffff;
}

th {
  background-color: var(--color-principal);
  color: #fff;
  padding: 0.5em;
}

td {
  border: 1px solid #ddd;
  padding: 0.5em;
}

/* ======== BARRA LATERAL ======== */
.pkp_structure_sidebar {
  background-color: #eaf3f1;
  border: 1px solid #cddedb;
  border-radius: 6px;
  padding: 1em;
}

.pkp_structure_sidebar h2 {
  color: var(--color-principal);
  border-bottom: 2px solid var(--color-acento);
  padding-bottom: 0.3em;
}

/* ======== IMAGEN PRINCIPAL Y SECCIÃ“N DEL NÃšMERO ======== */
.homepage-image-behind-issue {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border: 4px solid var(--color-acento);
  border-radius: 10px;
  margin-bottom: 30px;
}

.container-homepage-issue {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  border: 2px dashed var(--color-acento);
}

/* ======== TÃTULOS DEL NÃšMERO ======== */
.homepage-issue-current,
.homepage-issue-identifier,
.homepage-issue-published {
  color: var(--color-principal) !important;
  text-shadow: none !important;
  text-align: center;
}

/* ======== AJUSTES MÃ“VILES ======== */
@media (max-width: 768px) {
  .pkp_navigation_primary > li {
    display: block;
    margin: 5px 0;
  }

  .pkp_structure_footer {
    font-size: 0.9em;
  }
}

/* ======== SELLO PERMANENTE ======== */
body::after {
  content: "â€¢ Actas Peruanas de AnestesiologÃ­a";
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: var(--color-principal);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  opacity: 0.9;
  z-index: 9999;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* ===== Barra superior de contacto ===== */
.barra-contacto {
  background-color: #13544e;
  color: #fff;
  text-align: center;
  padding: 6px 0;
  font-size: 14px;
  font-family: "Noto Sans", sans-serif;
}
.barra-contacto a {
  color: #dff7f1;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
}
.barra-contacto a:hover {
  text-decoration: underline;
}

/* ======== CABECERA PERSONALIZADA HEADER.TPL ======== */
.main-header {
  background-color: var(--color-fondo) !important;
  padding: 10px 0;
}

/* ======== POPUP PUBLICITARIO ======== */
.popup-anuncio {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.popup-anuncio.mostrar {
  display: flex;
  animation: aparecer 0.4s ease;
}

.popup-contenido {
  background: #ffffff;
  color: #222;
  max-width: 400px;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border-top: 6px solid var(--color-principal);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  position: relative;
}

.popup-contenido h2 {
  color: var(--color-principal);
  margin-bottom: 10px;
}

.popup-boton {
  display: inline-block;
  background: var(--color-principal);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 10px;
  transition: 0.3s;
}

.popup-boton:hover {
  background: var(--color-acento);
}

.popup-cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #333;
}

@keyframes aparecer {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* ======== SECCIÃ“N DESCRIPCIÃ“N DEL NÃšMERO ======== */
.page-issue-description-wrapper {
  background-color: #1b7895 !important;
  color: #ffffff !important;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* TÃ­tulo dentro de la descripciÃ³n */
.page-issue-description .h2 {
  color: #ffffff !important;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Texto del pÃ¡rrafo */
.page-issue-description p {
  color: #ffffff !important;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

/* Imagen de portada */
.page-issue-cover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-issue-cover:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}


/* ======== SECCIÃ“N DESCRIPCIÃ“N DEL Home ======== */
.homepage-issue-description-wrapper {
  background-color: #eaf3f1 !important;
  color: #000000 !important;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* TÃ­tulo dentro de la descripciÃ³n */
.homepage-issue-description .h2 {
  color: #146b58 !important;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Texto del pÃ¡rrafo */
.homepage-issue-description p {
  color: #000000 !important;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

.homepage-issue-description-more {
  background-color: #eaf3f1 !important;
}
.homepage-issue-description:after {
height: 0px;
}


/* Imagen de portada */
.homepage-issue-cover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.homepage-issue-cover:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

//
.navbar-logo img {
        max-height: 110px !important;
    }

.article-details-abstract p {
    text-align: justify !important;
    line-height: 1.6;
}