/* JUMAPAC Cortazar | Cuenta Pública 2026
   Estilos aislados para reproducir la imagen de referencia aprobada.
   Este archivo debe cargarse DESPUÉS de los CSS originales. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --jp-navy: #103d73;
  --jp-navy-deep: #0c315f;
  --jp-orange: #ff7518;
  --jp-orange-light: #ff9d2f;
  --jp-orange-dark: #ee5c0b;
  --jp-text: #233f60;
  --jp-pale: #eef3f9;
}

body.cuenta-publica-page {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--jp-text);
  background: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-align: initial;
}

body.cuenta-publica-page,
body.cuenta-publica-page * {
  box-sizing: border-box;
}

body.cuenta-publica-page a {
  text-decoration: none;
}

/* ───────────────────── Navegación institucional ───────────────────── */
body.cuenta-publica-page > header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 85px;
  margin: 0;
  padding: 0 48px;
  border: 0;
  border-bottom: 1px solid rgba(13, 50, 91, .055);
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 5px 18px rgba(17, 46, 78, .055);
}

body.cuenta-publica-page > header .logo {
  display: block;
  flex: 0 0 235px;
  width: 235px;
  max-width: none;
  height: 72px;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: left center;
}

body.cuenta-publica-page > header #btn-menu {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body.cuenta-publica-page > header label.icon-menu {
  display: none;
}

body.cuenta-publica-page > header nav.menu {
  position: static;
  display: block;
  flex: 0 1 970px;
  width: 970px;
  max-width: 970px;
  margin: 0 0 0 55px;
  padding: 0;
  transform: none;
  background: transparent;
  box-shadow: none;
}

body.cuenta-publica-page > header nav.menu ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
}

body.cuenta-publica-page > header nav.menu ul li {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

body.cuenta-publica-page > header nav.menu a,
body.cuenta-publica-page > header nav.menu a:visited {
  position: relative;
  display: block;
  margin: 0;
  padding: 10px 0;
  color: #243b59;
  background: transparent;
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .015em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease;
}

body.cuenta-publica-page > header nav.menu a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--jp-orange);
  transition: width .18s ease;
}

body.cuenta-publica-page > header nav.menu a:hover,
body.cuenta-publica-page > header nav.menu a:focus-visible {
  color: var(--jp-orange-dark);
  outline: none;
}

body.cuenta-publica-page > header nav.menu a:hover::after,
body.cuenta-publica-page > header nav.menu a:focus-visible::after {
  width: 100%;
}

/* ───────────────────────── Banner Cuenta Pública ───────────────────── */
body.cuenta-publica-page #banner.jp-hero {
  position: relative;
  display: block;
  width: 100%;
  height: 262px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(ellipse at 12% 90%, rgba(240, 244, 249, .95), transparent 48%),
    linear-gradient(100deg, #fff 0%, #fff 47%, #fffaf4 100%);
}

body.cuenta-publica-page #banner.jp-hero .jp-hero-art {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 54.43%;
  height: 100%;
  background-image: url('../imagenes/encabezados/cuentapublica.svg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 100% 100%;
}

body.cuenta-publica-page #banner.jp-hero .jp-hero-copy {
  position: absolute;
  top: 0;
  left: max(4.95%, calc((100% - 1384px) / 2));
  width: min(620px, 47%);
  height: 100%;
  padding: 0;
  text-align: left;
}

body.cuenta-publica-page #banner.jp-hero .jp-hero-accent {
  position: absolute;
  top: 89px;
  left: 0;
  display: block;
  width: 112px;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff9c2e 0%, #ff7818 100%);
}

body.cuenta-publica-page #banner.jp-hero h1 {
  position: absolute;
  top: 111px;
  left: 0;
  display: block;
  margin: 0;
  padding: 0;
  color: var(--jp-navy);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(58px, 5.15vw, 80px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.02;
  white-space: nowrap;
  text-align: left;
}

body.cuenta-publica-page #banner.jp-hero h1 strong {
  color: #f56b12;
  font-weight: 900;
}

body.cuenta-publica-page #banner.jp-hero .jp-hero-tagline {
  position: absolute;
  top: 195px;
  left: 0;
  margin: 0;
  padding: 0;
  color: #405a78;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.25;
  white-space: nowrap;
  text-align: left;
}

/* ───────────────────── Fondo y contenido financiero ────────────────── */
body.cuenta-publica-page main {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 25px 0 49px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(241, 245, 250, .70), transparent 52%),
    linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

body.cuenta-publica-page main::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 8px;
  left: -245px;
  width: 485px;
  height: 590px;
  border: 1px solid rgba(245, 130, 32, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(245, 130, 32, .045),
    0 0 0 84px rgba(245, 130, 32, .027),
    0 0 0 126px rgba(245, 130, 32, .018);
  pointer-events: none;
}

body.cuenta-publica-page main::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 250px;
  left: -177px;
  width: 375px;
  height: 375px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, .25);
  pointer-events: none;
}

body.cuenta-publica-page main > .container {
  position: relative;
  z-index: 1;
  display: block;
  width: min(1065px, calc(100% - 40px));
  max-width: 1065px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

body.cuenta-publica-page .heading-primary {
  position: relative;
  display: block;
  margin: 0 0 16px;
  padding: 0 0 14px;
  color: var(--jp-navy);
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(30px, 2.75vw, 42px);
  font-weight: 600;
  letter-spacing: .012em;
  line-height: 1.16;
  text-align: center;
  text-transform: uppercase;
}

body.cuenta-publica-page .heading-primary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 110px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff9a2c, #f36b12);
  transform: translateX(-50%);
}

/* Contenedor de acordeones */
/* Respeta el estado inicial cerrado y la clase que actualiza el acordeón existente. */
body.cuenta-publica-page .accordionItem.is-collapsed[aria-hidden="true"] {
  display: none;
}

body.cuenta-publica-page .accordion {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

body.cuenta-publica-page .accordion > dl {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.cuenta-publica-page .accordion > dl > dt {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.cuenta-publica-page .accordion > dl > dt:last-child {
  margin-bottom: 0;
}

/* Botón principal: círculo + divisor + texto + flecha circular */
body.cuenta-publica-page .accordion > dl > dt > a.accordion-title,
body.cuenta-publica-page .accordion > dl > dt > a.accordion-title:visited {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 67px;
  margin: 0;
  padding: 10px 86px 10px 135px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background-color: #f77b1a;
  background-image:
    linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)) 96px center / 1px 44px no-repeat,
    linear-gradient(105deg, #ff922b 0%, #ff7f20 48%, #f15d10 100%);
  box-shadow: 0 9px 17px rgba(205, 91, 18, .14);
  color: #fff !important;
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: .006em;
  line-height: 1.18;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* Círculo naranja claro y signo más blanco */
body.cuenta-publica-page .accordion > dl > dt > a.accordion-title::before {
  content: '+';
  position: absolute;
  top: 50%;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin: 0;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 181, 61, .58);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

/* Círculo blanco con chevrón naranja */
body.cuenta-publica-page .accordion > dl > dt > a.accordion-title::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  display: block;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 9 7 7 7-7' fill='none' stroke='%23f47718' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px 17px;
  transform: translateY(-50%);
  transition: transform .2s ease;
}

body.cuenta-publica-page .accordion > dl > dt > a.accordion-title:hover,
body.cuenta-publica-page .accordion > dl > dt > a.accordion-title:focus-visible {
  filter: saturate(1.05) brightness(1.02);
  box-shadow: 0 12px 20px rgba(205, 91, 18, .20);
  outline: 3px solid rgba(245, 130, 32, .18);
  outline-offset: 2px;
  transform: translateY(-1px);
}

body.cuenta-publica-page .accordion > dl > dt > a.accordion-title[aria-expanded="true"] {
  background-image:
    linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)) 96px center / 1px 44px no-repeat,
    linear-gradient(105deg, #f98721 0%, #f36f16 48%, #e9570d 100%);
}

body.cuenta-publica-page .accordion > dl > dt > a.accordion-title[aria-expanded="true"]::before {
  content: '−';
  padding-bottom: 7px;
  font-size: 33px;
}

body.cuenta-publica-page .accordion > dl > dt > a.accordion-title[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Subapartados y paneles de documentos: no se alteran sus enlaces */
body.cuenta-publica-page .accordion .accordion-content {
  color: var(--jp-text);
  background: #fff;
  border: 1px solid #f4dfce;
  border-radius: 0 0 13px 13px;
  box-shadow: 0 8px 18px rgba(16, 61, 115, .055);
}

body.cuenta-publica-page .accordion dd.accordion-content {
  margin: -1px 0 14px;
  padding: 13px 17px 14px;
}

body.cuenta-publica-page .accordion .accordion-content p {
  margin: 0;
  padding: 9px 8px;
  border-bottom: 1px solid #f2e8df;
  color: #314d6b;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
}

body.cuenta-publica-page .accordion .accordion-content p:last-child {
  border-bottom: 0;
}

body.cuenta-publica-page .accordion .accordion-content a:not(.accordion-title) {
  color: var(--jp-navy);
  font-weight: 700;
  text-decoration: none;
}

body.cuenta-publica-page .accordion .accordion-content a:not(.accordion-title):hover {
  color: var(--jp-orange-dark);
  text-decoration: underline;
}

body.cuenta-publica-page .accordion .accordion-content img {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 0 5px 0 0;
  padding: 0;
  object-fit: contain;
  vertical-align: middle;
}

body.cuenta-publica-page .accordion .accordion-content ul {
  margin: 10px 0 7px;
  padding: 0;
  list-style: none;
}

body.cuenta-publica-page .accordion .accordion-content ul > a.accordion-title {
  position: relative;
  display: block;
  margin: 8px 0;
  padding: 12px 16px 12px 43px;
  border: 1px solid #f5d8c0;
  border-left: 4px solid var(--jp-orange);
  border-radius: 8px;
  background: #fff3e8;
  color: var(--jp-navy) !important;
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}

body.cuenta-publica-page .accordion .accordion-content ul > a.accordion-title::before {
  content: '+';
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--jp-orange-dark);
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  transform: translateY(-50%);
}

body.cuenta-publica-page .accordion .accordion-content li.accordion-content {
  margin: 0 0 12px;
  padding: 8px 13px;
  background: #fff;
  border: 1px solid #f4e6dc;
  border-left: 3px solid #ffad62;
  border-radius: 0 0 9px 9px;
  box-shadow: none;
}

/* Dirección institucional en franja inferior */
body.cuenta-publica-page .direccion {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 83px;
  margin: 0;
  padding: 14px 20px;
  border: 0;
  background: #e9eef6;
  color: var(--jp-navy-deep);
  text-align: center;
}

body.cuenta-publica-page .direccion p {
  margin: 0;
  padding: 0;
  color: var(--jp-navy-deep);
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
}

body.cuenta-publica-page .direccion p:first-child {
  position: relative;
  padding-left: 32px;
}

body.cuenta-publica-page .direccion p:first-child::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 29px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath fill='%23f47718' d='M12 1C5.9 1 1 5.9 1 12c0 8.1 11 19 11 19s11-10.9 11-19C23 5.9 18.1 1 12 1z'/%3E%3Ccircle cx='12' cy='12' r='4.2' fill='white'/%3E%3C/svg%3E");
  transform: translateY(-50%);
}

/* La referencia visual aprobada muestra solamente la dirección en esta franja.
   El teléfono se conserva en el HTML original, pero queda fuera de esta vista. */
body.cuenta-publica-page .direccion p:nth-child(2) {
  display: none;
}

body.cuenta-publica-page > footer {
  margin: 0;
  padding: 12px 16px;
  background: #f58220;
  color: #fff;
  text-align: center;
}

body.cuenta-publica-page > footer p {
  margin: 0;
  color: #fff;
  font-size: 12px;
}

/* ───────────────────────── Adaptación responsive ────────────────────── */
@media (max-width: 1350px) and (min-width: 761px) {
  body.cuenta-publica-page > header {
    padding-right: 28px;
    padding-left: 28px;
  }
  body.cuenta-publica-page > header .logo {
    flex-basis: 205px;
    width: 205px;
  }
  body.cuenta-publica-page > header nav.menu {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    margin-left: 28px;
  }
  body.cuenta-publica-page > header nav.menu a {
    font-size: 14px;
  }
}

@media (max-width: 980px) and (min-width: 761px) {
  body.cuenta-publica-page > header .logo {
    flex-basis: 170px;
    width: 170px;
  }
  body.cuenta-publica-page > header nav.menu {
    margin-left: 15px;
  }
  body.cuenta-publica-page > header nav.menu ul {
    gap: 8px;
  }
  body.cuenta-publica-page > header nav.menu a {
    font-size: 12px;
  }
  body.cuenta-publica-page #banner.jp-hero .jp-hero-copy {
    left: 4%;
    width: 54%;
  }
  body.cuenta-publica-page #banner.jp-hero h1 {
    font-size: clamp(49px, 6.2vw, 62px);
  }
  body.cuenta-publica-page #banner.jp-hero .jp-hero-tagline {
    font-size: 18px;
  }
}

@media (max-width: 760px) {
  body.cuenta-publica-page > header {
    height: 74px;
    justify-content: space-between;
    padding: 0 18px;
  }
  body.cuenta-publica-page > header .logo {
    flex: 0 0 178px;
    width: 178px;
    max-width: 68vw;
    height: 64px;
  }
  body.cuenta-publica-page > header label.icon-menu {
    display: block;
    margin: 0 3px 0 auto;
    color: var(--jp-navy);
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
  }
  body.cuenta-publica-page > header nav.menu {
    position: absolute;
    top: 74px;
    left: 0;
    z-index: 110;
    display: block;
    width: min(340px, 88vw);
    max-width: 88vw;
    margin: 0;
    padding: 8px;
    border: 1px solid #e8edf3;
    border-radius: 0 0 14px 0;
    background: #fff;
    box-shadow: 0 15px 28px rgba(16, 61, 115, .16);
    transform: translateX(-110%);
    transition: transform .22s ease;
  }
  body.cuenta-publica-page > header #btn-menu:checked ~ nav.menu {
    transform: translateX(0);
  }
  body.cuenta-publica-page > header nav.menu ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }
  body.cuenta-publica-page > header nav.menu ul li {
    width: 100%;
  }
  body.cuenta-publica-page > header nav.menu a {
    padding: 13px 15px;
    border-bottom: 1px solid #f0f2f5;
    color: #263e5d;
    font-size: 15px;
    text-align: left;
  }
  body.cuenta-publica-page #banner.jp-hero {
    height: 190px;
    border-radius: 0 0 18px 18px;
  }
  body.cuenta-publica-page #banner.jp-hero .jp-hero-art {
    width: 61%;
    opacity: .72;
  }
  body.cuenta-publica-page #banner.jp-hero .jp-hero-copy {
    left: 22px;
    width: 70%;
  }
  body.cuenta-publica-page #banner.jp-hero .jp-hero-accent {
    top: 39px;
    width: 78px;
    height: 5px;
  }
  body.cuenta-publica-page #banner.jp-hero h1 {
    top: 64px;
    font-size: clamp(38px, 9.2vw, 58px);
    letter-spacing: -.06em;
  }
  body.cuenta-publica-page #banner.jp-hero .jp-hero-tagline {
    top: 126px;
    max-width: 85%;
    font-size: clamp(12px, 3vw, 16px);
    white-space: normal;
  }
  body.cuenta-publica-page main {
    padding: 23px 0 32px;
  }
  body.cuenta-publica-page main > .container {
    width: calc(100% - 28px);
  }
  body.cuenta-publica-page .heading-primary {
    margin-bottom: 17px;
    padding-bottom: 12px;
    font-size: clamp(25px, 6.3vw, 34px);
  }
  body.cuenta-publica-page .heading-primary::after {
    width: 80px;
    height: 5px;
  }
  body.cuenta-publica-page .accordion > dl > dt {
    margin-bottom: 8px;
  }
  body.cuenta-publica-page .accordion > dl > dt > a.accordion-title,
  body.cuenta-publica-page .accordion > dl > dt > a.accordion-title:visited {
    min-height: 62px;
    padding: 9px 57px 9px 82px;
    border-radius: 11px;
    background-image:
      linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)) 60px center / 1px 40px no-repeat,
      linear-gradient(105deg, #ff922b 0%, #ff7f20 48%, #f15d10 100%);
    font-size: clamp(16px, 4.2vw, 20px);
  }
  body.cuenta-publica-page .accordion > dl > dt > a.accordion-title::before {
    left: 12px;
    width: 38px;
    height: 38px;
    font-size: 30px;
  }
  body.cuenta-publica-page .accordion > dl > dt > a.accordion-title::after {
    right: 10px;
    width: 36px;
    height: 36px;
    background-size: 15px 15px;
  }
  body.cuenta-publica-page .accordion > dl > dt > a.accordion-title[aria-expanded="true"]::before {
    font-size: 29px;
  }
  body.cuenta-publica-page .accordion dd.accordion-content {
    padding: 9px;
  }
  body.cuenta-publica-page .accordion .accordion-content p {
    font-size: 12px;
  }
  body.cuenta-publica-page .accordion .accordion-content img {
    width: 21px;
    height: 21px;
  }
  body.cuenta-publica-page .direccion {
    min-height: 74px;
    padding: 12px 15px;
  }
  body.cuenta-publica-page .direccion p {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cuenta-publica-page *,
  body.cuenta-publica-page *::before,
  body.cuenta-publica-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
