.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 3px;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), #fde047);
  box-shadow: 0 1px 2px rgba(255, 170, 0, 0.3);
}

.time {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26, 58, 107, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 20px 25px -5px rgba(26, 58, 107, 0.3);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 800;
}

.time svg {
  width: 14px;
  height: 14px;
  color: var(--yellow);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article {
  padding-top: 3rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

.download-cta button,
.download-cta a {
  padding: 0.65rem 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.accessibility {
  margin-bottom: 2rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 18px 35px rgba(26, 58, 107, 0.15);
}

.accessibility__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 1rem;
  font-size: 0.9rem;
  font-weight: 900;
}

.accessibility__text {
  flex: 1;
}

.accessibility__text span {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.accessibility__text h2 {
  margin-top: 0.2rem;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.25;
}

.accessibility__text p {
  margin-top: 0.35rem;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.accessibility__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.accessibility__actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  font-size: 11px;
  font-weight: 900;
}

#readArticle {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}

#readArticle.is-paused {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.accessibility__actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.accessibility__speed {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.accessibility__speed label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.accessibility__speed input[type="range"] {
  width: 60px;
  accent-color: var(--yellow);
}

.accessibility__speed span {
  font-size: 11px;
  font-weight: 900;
  color: var(--yellow);
  min-width: 28px;
}

.indicator {
  margin-bottom: 2rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(26, 58, 107, 0.03);
  border: 1px solid rgba(26, 58, 107, 0.06);
  border-radius: 12px;
}

.indicator span {
  color: rgba(26, 58, 107, 0.55);
  font-size: 11px;
  font-weight: 800;
}

.indicator small {
  margin-left: 0.45rem;
  color: rgba(26, 58, 107, 0.35);
  font-size: 11px;
  font-weight: 700;
}

#dots {
  display: flex;
  gap: 0.25rem;
}

#dots button {
  width: 1.5rem;
  height: 0.375rem;
  background: var(--gray-200);
  border-radius: 999px;
  transition: 0.25s;
}

#dots button.is-active {
  background: var(--yellow);
}

#dots button.is-visited {
  background: rgba(26, 58, 107, 0.2);
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.share {
  margin-bottom: 2.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: rgba(249, 250, 251, 0.8);
  border: 1px solid var(--gray-100);
  border-radius: 1rem;
}

.share span {
  margin-right: 0.5rem;
  color: var(--gray-400);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.share a,
.share button {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 0.75rem;
  font-size: 11px;
  font-weight: 900;
}

.share button {
  margin-left: auto;
  background: #ffffff;
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
}

.sec {
  margin-bottom: 3.5rem;
}

.sec b {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(26, 58, 107, 0.3);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.25em;
}

.sec b::before {
  content: '';
  width: 2rem;
  height: 3px;
  margin-right: 0.75rem;
  display: inline-block;
  background: var(--yellow);
  border-radius: 999px;
  vertical-align: middle;
}

.sec h2 {
  margin-bottom: 1.25rem;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 900;
}

.sec h3 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 900;
}

.sec p {
  margin-bottom: 1.25rem;
  color: var(--gray-600);
  font-size: 15.5px;
  line-height: 1.9;
}

.sec strong {
  color: var(--navy);
  font-weight: 800;
}

figure {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto 3.5rem;
}

figure.narrow {
  max-width: 20rem;
}

figure img {
  width: 100%;
  height: auto;
}

figcaption {
  margin-top: 0.75rem;
  padding: 0 0.5rem;
  color: var(--gray-400);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.divider {
  height: 1px;
  margin-bottom: 2.5rem;
  background: linear-gradient(to right, transparent, var(--gray-200), transparent);
}

.reactions,
.bottom-share,
.download-cta {
  background: linear-gradient(135deg, var(--gray-50), #ffffff);
  border: 1px solid var(--gray-100);
  border-radius: 1rem;
}

.reactions {
  padding: 1.5rem;
  text-align: center;
}

.reactions h3,
.bottom-share strong,
.download-cta strong {
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 900;
}

.reactions p,
.bottom-share p,
.download-cta p {
  margin-top: 0.25rem;
  color: var(--gray-400);
  font-size: 12px;
  line-height: 1.6;
}

.continue {
  margin-top: 3rem;
  padding: 0;
  background: transparent;
  border: none;
}

.continue-reading-card {
  background: rgba(249, 250, 251, 0.5);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.continue-reading-card__title {
  font-size: 12px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.continue-reading-card__text {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.5;
}

.continue-reading-card__text span {
  display: block;
  margin-top: 0.25rem;
  font-size: 12px;
  color: var(--gray-400);
}

.reactions__list {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.reaction {
  min-width: 64px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  transition: 0.25s;
}

.reaction.is-active {
  background: rgba(255, 170, 0, 0.1);
  border-color: var(--yellow);
  box-shadow: 0 4px 8px rgba(255, 170, 0, 0.18);
  transform: scale(1.08);
}

.reaction span {
  font-size: 1.5rem;
}

.reaction small {
  color: var(--gray-400);
  font-size: 9px;
  font-weight: 800;
}

.reaction b {
  color: var(--gray-300);
  font-size: 9px;
}

.reactions__thanks {
  display: block;
  margin-top: 1rem;
  color: var(--navy);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.bottom-share {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  text-align: center;
}

.bottom-share__links {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bottom-share__links a {
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  border-radius: 0.75rem;
  font-size: 11px;
  font-weight: 800;
}

.download-cta {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.download-cta__icon {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--yellow);
  border-radius: 0.75rem;
}

.download-cta div:nth-child(2) {
  flex: 1;
}

.pagination {
  margin: 2rem 0 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination > div {
  display: flex;
  gap: 0.25rem;
}

.pagination button {
  padding: 0.65rem 0.9rem;
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  font-size: 12px;
  font-weight: 900;
}

.pagination__next {
  background: var(--navy) !important;
  color: #ffffff !important;
  border-color: var(--navy) !important;
}

.pagination__page.is-active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  z-index: 2;
  width: min(600px, 100%);
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  max-height: 90vh;
}

.modal__header {
  position: relative;
  background: var(--navy-dark);
  padding: 2rem 2rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #ffffff;
}

.modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-top: 0.25rem;
}

.modal__header-text {
  flex: 1;
  padding-right: 2rem;
}

.modal__header-tag {
  display: block;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.modal__header-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.modal__body {
  padding: 2rem;
  overflow-y: auto;
}

.modal__body-desc {
  color: var(--gray-500);
  font-size: 13px;
  margin-bottom: 1.5rem;
}

.modal__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .modal__row {
    grid-template-columns: 1fr 1fr;
  }
}

.modal__field {
  text-align: left;
}

.modal__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.modal__checkbox input {
  margin-top: 0.25rem;
  width: 16px;
  height: 16px;
  accent-color: var(--yellow);
}

.modal__checkbox label {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  cursor: pointer;
}

.modal__field label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal__dialog input,
.modal__dialog select {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: all 0.2s;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L5 5L9 1" stroke="%231A3A6B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: cover;
  pointer-events: none;
}

.modal__dialog select {
  appearance: none;
  padding-right: 2.5rem;
}

.modal__dialog input:focus,
.modal__dialog select:focus {
  outline: none;
  border-color: rgba(255, 170, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 170, 0, 0.2);
}

.modal__submit {
  width: 100%;
  height: 48px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 12px;
  font-weight: 900;
  font-size: 14px;
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modal__submit:hover {
  opacity: 0.9;
}

@media (max-width: 767px) {
  .article-head h1 {
    font-size: 1.75rem;
  }

  .article-head > p {
    font-size: 0.95rem;
  }

  .indicator small {
    display: none;
  }

  .sec h2 {
    font-size: 1.45rem;
  }

  .sec p {
    font-size: 14px;
    line-height: 1.8;
  }

  .accessibility,
  .download-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }

  .download-cta button,
  .download-cta a {
    width: 100%;
    justify-content: center;
  }

  .modal__header {
    padding: 1.5rem;
  }

  .modal__body {
    padding: 1.5rem;
  }
}
/* ============================================================================
   Contenido real de WordPress dentro de .page (the_content).
   La maqueta envolvía cada sección en .sec; el contenido de WP viene como
   elementos directos (p, h2, h3, ul, ol, blockquote, img, table). Replicamos
   la misma tipografía aplicándola directamente a los hijos de .page.
   ========================================================================== */
.page > h2,
.page .sec h2 {
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 900;
}
.page > h2:first-child { margin-top: 0; }

.page > h3 {
  margin-bottom: 1rem;
  margin-top: 2rem;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 900;
}

.page > h4 {
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.page > p {
  margin-bottom: 1.25rem;
  color: var(--gray-600);
  font-size: 15.5px;
  line-height: 1.9;
}

.page > p strong,
.page > ul strong,
.page > ol strong { color: var(--navy); font-weight: 800; }

.page > ul,
.page > ol {
  margin: 0 0 1.5rem 1.25rem;
  color: var(--gray-600);
  font-size: 15.5px;
  line-height: 1.9;
}
.page > ul > li,
.page > ol > li { margin-bottom: 0.5rem; }

.page > blockquote {
  border-left: 4px solid var(--yellow);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--gray-600);
  font-style: italic;
}

.page > figure,
.page > p > img,
.page > img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

.page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 14px;
}
.page table th,
.page table td {
  border: 1px solid var(--gray-200);
  padding: 0.6rem 0.85rem;
  text-align: left;
}
.page table th {
  background: var(--gray-50);
  color: var(--navy);
  font-weight: 800;
}
