:root {
  --azul: #151f43;
  --dorado: #c5a24a;
  --gris: #f4f4f4;
  --gris-oscuro: #797878;
  --rojo: #b22222;
  --dorado-claro: #e0c878;
  --fuente: "Montserrat", sans-serif;
}

/* =========================
   NOVENA SAN AGUSTÍN 2026
   ========================= */
.novena-modal {
  --novena-blue: #172b68;
  --novena-blue-soft: #33439a;
  --novena-red: #df111d;
  --novena-orange: #f28a00;
  --novena-ink: #20243a;
  --novena-muted: #6d7180;
  --novena-line: #dfe2ea;
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.novena-modal[hidden] {
  display: none;
}

.novena-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.novena-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(10, 23, 57, 0.9), rgba(45, 24, 49, 0.82)),
    rgba(9, 16, 37, 0.78);
  backdrop-filter: blur(8px);
}

.novena-dialog {
  position: relative;
  width: min(1180px, 100%);
  height: min(800px, calc(100vh - 48px));
  max-height: 800px;
  overflow: hidden;
  color: var(--novena-ink);
  background:
    radial-gradient(circle at 4% 4%, rgba(242, 138, 0, 0.08), transparent 24%),
    #fff;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(3, 10, 30, 0.42);
  transform: translateY(18px) scale(0.985);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.novena-modal.is-open .novena-dialog {
  transform: translateY(0) scale(1);
}

.novena-dialog__header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 28px;
  border-bottom: 1px solid #eceef3;
  background: rgba(255, 255, 255, 0.92);
}

.novena-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--novena-blue);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.novena-brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.novena-brand__mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--novena-red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.novena-brand__mark svg path:nth-child(2) {
  stroke: var(--novena-blue-soft);
  stroke-width: 1.5;
}

.novena-brand__mark svg path:last-child {
  stroke: var(--novena-orange);
}

.novena-icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e4eb;
  border-radius: 50%;
  color: var(--novena-blue);
  background: #fff;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.novena-icon-button:hover {
  color: var(--novena-red);
  border-color: #f0b8bc;
  background: #fff7f7;
  transform: rotate(4deg);
}

.novena-icon-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.novena-dialog__body {
  height: calc(100% - 76px);
  min-height: 0;
  display: grid;
  grid-template-columns: 280px 222px minmax(400px, 1fr);
}

.novena-intro,
.novena-path,
.novena-viewer {
  min-height: 0;
}

.novena-intro {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 34px 28px 28px;
  overflow-y: auto;
  border-right: 1px solid var(--novena-line);
}

.novena-intro h2 {
  max-width: 230px;
  margin: 0;
  color: var(--novena-blue);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.25rem, 3vw, 3.25rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.novena-ornament {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 210px;
  margin: 20px 0 17px;
  color: var(--novena-orange);
}

.novena-ornament span {
  width: 74px;
  height: 1px;
  background: currentColor;
}

.novena-ornament i {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-style: normal;
  line-height: 1;
}

.novena-intro #novena-description {
  max-width: 230px;
  margin: 0;
  color: #525665;
  font-size: 0.88rem;
  line-height: 1.7;
}

.novena-today {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.novena-today__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--novena-orange);
  border-radius: 50%;
  color: var(--novena-orange);
}

.novena-today__icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.novena-today strong {
  display: block;
  margin: 1px 0 5px;
  color: #d87400;
  font-size: 0.92rem;
  line-height: 1.25;
}

.novena-today p {
  margin: 0;
  color: var(--novena-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.novena-intro blockquote {
  margin: 0;
  padding: 15px 0 0 17px;
  border-top: 1px solid var(--novena-line);
  border-left: 2px solid var(--novena-orange);
  color: #575b6a;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.03rem;
  font-style: italic;
  line-height: 1.35;
}

.novena-prayers {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.novena-prayer {
  min-height: 58px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d9dce5;
  border-radius: 11px;
  color: var(--novena-blue);
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.novena-prayer:hover,
.novena-prayer.is-selected {
  border-color: #8e9ad0;
  background: #f5f7ff;
  transform: translateX(2px);
}

.novena-prayer svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.novena-prayer span {
  font-family: var(--fuente);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.novena-prayer small {
  display: block;
  margin-bottom: 2px;
  color: #8a8e9b;
  font-size: 0.63rem;
  font-weight: 500;
}

.novena-path {
  padding: 22px 18px 20px 22px;
  overflow-y: auto;
  border-right: 1px solid var(--novena-line);
  background: linear-gradient(180deg, #fff, #fafbfe);
}

.novena-path__heading {
  margin: 0 0 9px 9px;
  color: #8a8e9d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.novena-path ol {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.novena-path ol::before {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 26px;
  width: 1px;
  background: #cfd4e5;
}

.novena-day {
  position: relative;
}

.novena-day__button {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 4px 0;
  border: 0;
  border-radius: 12px;
  color: var(--novena-blue);
  text-align: left;
  background: transparent;
  cursor: pointer;
  font-family: var(--fuente);
  transition: background 160ms ease, transform 160ms ease;
}

.novena-day__button:not(:disabled):hover {
  background: #f0f3ff;
  transform: translateX(2px);
}

.novena-day__button.is-selected {
  background: #eef2ff;
}

.novena-day__button:disabled {
  color: #9296a3;
  cursor: not-allowed;
}

.novena-day__number {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-left: 5px;
  border: 1.5px solid #8491c7;
  border-radius: 50%;
  color: var(--novena-blue);
  font-size: 0.92rem;
  font-weight: 700;
  background: #fff;
  box-shadow: 0 0 0 4px #fff;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.novena-day__button:disabled .novena-day__number {
  border-color: #c8ccd7;
  color: #999daa;
  background: #f7f8fa;
}

.novena-day__button.is-current .novena-day__number,
.novena-day__button[aria-current="step"] .novena-day__number {
  border-color: var(--novena-orange);
  color: #fff;
  background: var(--novena-blue);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(242, 138, 0, 0.35);
}

.novena-day__copy {
  min-width: 0;
}

.novena-day__copy strong {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  font-size: 0.76rem;
  line-height: 1.2;
}

.novena-day__copy span {
  display: -webkit-box;
  overflow: hidden;
  color: #656978;
  font-size: 0.62rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.novena-day__button:disabled .novena-day__copy span {
  display: none;
}

.novena-day__lock {
  width: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.novena-day__date {
  color: #8a8e9a;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.novena-day__date b {
  display: block;
  color: var(--novena-orange);
  font-size: 0.7rem;
}

.novena-viewer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 26px 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23, 43, 104, 0.035), transparent 20%),
    #fff;
}

.novena-viewer__topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
}

.novena-viewer__topline span {
  display: block;
  margin-bottom: 3px;
  color: var(--novena-orange);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.novena-viewer__topline strong {
  display: block;
  overflow: hidden;
  max-width: 420px;
  color: var(--novena-blue);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.novena-viewer__topline .novena-viewer__date {
  flex: 0 0 auto;
  margin: 0 0 3px;
  color: #8b8e99;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}

.novena-flyer {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  outline: 1px solid #e0e2e9;
  outline-offset: -1px;
  background:
    linear-gradient(135deg, rgba(23, 43, 104, 0.95), rgba(72, 36, 52, 0.92) 55%, rgba(223, 17, 29, 0.9));
  box-shadow: 0 18px 42px rgba(20, 29, 67, 0.16);
  cursor: zoom-in;
}

.novena-flyer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: repeating-linear-gradient(110deg, transparent 0 6px, rgba(255, 255, 255, 0.22) 7px);
  pointer-events: none;
}

.novena-flyer img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.novena-flyer__zoom {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  font-size: 0.67rem;
  font-weight: 600;
  background: rgba(15, 27, 65, 0.82);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.novena-flyer:hover .novena-flyer__zoom,
.novena-flyer:focus-visible .novena-flyer__zoom {
  opacity: 1;
  transform: translateY(0);
}

.novena-flyer__zoom svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.novena-viewer__actions {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(190px, 1fr);
  gap: 12px;
}

.novena-secondary-action,
.novena-primary-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 9px;
  font-family: var(--fuente);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.novena-secondary-action {
  border: 1.5px solid #8c96c7;
  color: var(--novena-blue);
  background: #fff;
}

.novena-primary-action {
  border: 0;
  color: #fff;
  background: linear-gradient(105deg, var(--novena-blue), #263d91);
  box-shadow: 0 8px 20px rgba(23, 43, 104, 0.22);
}

.novena-secondary-action:hover,
.novena-primary-action:hover {
  transform: translateY(-1px);
}

.novena-primary-action:hover {
  box-shadow: 0 12px 25px rgba(23, 43, 104, 0.3);
}

.novena-primary-action svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.novena-launcher {
  position: fixed;
  z-index: 1200;
  left: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: 42px 1fr 22px;
  gap: 11px;
  align-items: center;
  min-width: 230px;
  min-height: 70px;
  padding: 9px 14px 9px 10px;
  border: 1.5px solid var(--dorado);
  border-radius: 999px;
  color: #192c68;
  text-align: left;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(18, 31, 70, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.novena-launcher[hidden] {
  display: none;
}

.novena-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 34px rgba(18, 31, 70, 0.24);
}

.novena-launcher__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.6rem;
  background: linear-gradient(140deg, #df111d, #a70f27);
}

.novena-launcher span:nth-child(2) {
  display: grid;
}

.novena-launcher strong {
  font-size: 0.78rem;
  line-height: 1.2;
}

.novena-launcher small {
  margin-top: 2px;
  color: #d87400;
  font-size: 0.65rem;
  font-style: italic;
}

.novena-launcher > svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body.novena-is-open {
  overflow: hidden;
}

.novena-modal button:focus-visible,
.novena-modal a:focus-visible,
.novena-launcher:focus-visible {
  outline: 3px solid rgba(242, 138, 0, 0.55);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .novena-dialog__body {
    grid-template-columns: 262px 190px minmax(340px, 1fr);
  }

  .novena-intro {
    padding-inline: 23px;
  }

  .novena-intro blockquote {
    display: none;
  }

  .novena-viewer {
    padding-inline: 20px;
  }
}

@media (max-width: 860px) {
  .novena-modal {
    padding: 0;
  }

  .novena-dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .novena-dialog__header {
    position: sticky;
    top: 0;
    z-index: 5;
    height: 68px;
    padding-inline: 18px 14px;
  }

  .novena-dialog__body {
    height: calc(100% - 68px);
    display: block;
    overflow-y: auto;
  }

  .novena-intro {
    display: block;
    padding: 28px 22px 22px;
    overflow: visible;
    text-align: center;
    border: 0;
  }

  .novena-intro h2,
  .novena-intro #novena-description {
    max-width: 470px;
    margin-inline: auto;
  }

  .novena-intro h2 {
    font-size: 2.6rem;
  }

  .novena-ornament {
    justify-content: center;
    margin-inline: auto;
  }

  .novena-today {
    max-width: 430px;
    margin: 24px auto 0;
    text-align: left;
  }

  .novena-intro blockquote {
    display: none;
  }

  .novena-viewer {
    min-height: 670px;
    padding: 12px 18px 20px;
    overflow: visible;
  }

  .novena-flyer {
    min-height: 520px;
  }

  .novena-path {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    width: 100%;
    max-height: none;
    padding: 13px 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-top: 1px solid var(--novena-line);
    border-bottom: 1px solid var(--novena-line);
    box-shadow: none;
    transition: none;
    scrollbar-width: none;
  }

  .novena-path::-webkit-scrollbar {
    display: none;
  }

  .novena-path__heading {
    margin: 0 18px 7px;
  }

  .novena-path ol {
    display: flex;
    gap: 0;
    width: max-content;
    padding: 0 14px;
  }

  .novena-path ol::before {
    top: 27px;
    right: 35px;
    bottom: auto;
    left: 35px;
    width: auto;
    height: 1px;
  }

  .novena-day {
    width: 82px;
  }

  .novena-day__button {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: start;
    min-height: 100px;
    gap: 5px;
    padding: 4px;
    text-align: center;
  }

  .novena-day__button:not(:disabled):hover {
    transform: translateY(-2px);
  }

  .novena-day__number {
    margin: 0;
  }

  .novena-day__copy {
    display: none;
  }

  .novena-day__date {
    position: absolute;
    top: 57px;
  }

  .novena-prayers {
    grid-template-columns: 1fr 1fr;
    max-width: 570px;
    margin: 18px auto 0;
  }

  .novena-viewer::after {
    content: "";
    display: block;
  }
}

@media (max-height: 760px) and (min-width: 861px) {
  .novena-intro {
    gap: 18px;
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .novena-intro blockquote {
    display: none;
  }

  .novena-prayer {
    min-height: 52px;
  }
}

@media (max-width: 520px) {
  .novena-brand {
    font-size: 1.25rem;
  }

  .novena-brand__mark {
    width: 32px;
    height: 32px;
  }

  .novena-icon-button {
    width: 39px;
    height: 39px;
  }

  .novena-intro {
    padding: 23px 18px 18px;
  }

  .novena-intro h2 {
    font-size: 2.3rem;
  }

  .novena-ornament {
    margin-block: 14px;
  }

  .novena-intro #novena-description {
    max-width: 340px;
    font-size: 0.79rem;
    line-height: 1.55;
  }

  .novena-today {
    margin-top: 20px;
  }

  .novena-viewer {
    min-height: 600px;
    padding-inline: 12px;
  }

  .novena-viewer__topline {
    padding-inline: 4px;
  }

  .novena-viewer__topline strong {
    max-width: 260px;
    font-size: 1.12rem;
  }

  .novena-viewer__topline .novena-viewer__date {
    display: none;
  }

  .novena-flyer {
    min-height: 450px;
    border-radius: 11px;
  }

  .novena-viewer__actions {
    grid-template-columns: 1fr;
  }

  .novena-secondary-action {
    display: none;
  }

  .novena-primary-action {
    min-height: 52px;
  }

  .novena-flyer__zoom {
    opacity: 1;
    transform: none;
  }

  .novena-launcher {
    left: 12px;
    bottom: 12px;
    min-width: 0;
    min-height: 56px;
    grid-template-columns: 36px 1fr 18px;
    padding-block: 7px;
  }

  .novena-launcher__mark {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .novena-modal,
  .novena-dialog,
  .novena-modal *,
  .novena-launcher {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--fuente);
  color: #333;
  line-height: 1.6;
  padding-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: white;
  border-bottom: 3px solid var(--dorado);
  position: relative;
  /* For absolute positioning of mobile menu */
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  /* Slightly more padding */
  position: relative;
  /* Anchor for absolute elements */
}

.logo img {
  max-height: 65px;
  /* Slightly larger logo */
}

/* Desktop Nav */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  /* More space between links */
}

nav a {
  text-decoration: none;
  color: var(--azul);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
  text-transform: uppercase;
  /* Professional touch */
  letter-spacing: 0.5px;
}

nav a:hover {
  color: var(--dorado);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px 0;
  border-top: 3px solid var(--dorado);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--azul);
  font-size: 0.9rem;
  text-transform: none;
  /* Keep sub-items simpler */
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f4f4f4;
  color: var(--dorado);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--azul);
  cursor: pointer;
  transition: color 0.3s;
  width: 40px;
  /* Explicit width */
  height: 40px;
  /* Explicit height */
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hamburger:hover {
  color: var(--dorado);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    /* Show on mobile with flex */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    /* Super high z-index */
    color: black !important;
    /* Force black color */
    background: rgba(255, 0, 0, 0.1);
    /* Temporary debug background */
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 3px solid var(--dorado);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 999;
  }

  nav.active {
    max-height: 400px;
    /* Expand menu */
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  nav li {
    border-bottom: 1px solid #eee;
  }

  nav li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
    padding: 15px 20px;
    text-align: center;
  }

  .site-header .container {
    padding: 0 20px;
    /* Restore padding on mobile */
  }

  /* Mobile Dropdown */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
    width: 100%;
    padding-left: 20px;
    border-top: none;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* =========================
   WELCOME HERO (Static)
   ========================= */
.welcome-hero {
  width: 100%;
  background: white;
  text-align: center;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: cover;
}

.welcome-text {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.welcome-text h1 {
  font-size: 2.8rem;
  color: var(--azul);
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.intro-text,
.closing-text {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 40px;
}

.quote-container {
  margin: 30px 0;
  padding: 25px;
  background-color: #f9f9f9;
  border-left: 4px solid var(--dorado);
  border-radius: 4px;
  position: relative;
}

.welcome-text .quote {
  font-size: 1.6rem;
  font-style: italic;
  color: var(--azul);
  font-family: "Georgia", serif;
  margin-bottom: 10px;
  font-weight: 700;
}

.quote-context {
  font-size: 1rem;
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
  font-family: "Georgia", serif;
}

.welcome-text .sub-quote {
  font-size: 0.9rem;
  color: var(--dorado);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Botón genérico */
.btn {
  background: var(--dorado);
  color: var(--azul);
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #e2c66a;
}

/* Tarjetas principales */
.main-cards {
  background: #fff;
  padding: 60px 0;
}

.main-cards .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.highlight {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.highlight:hover {
  transform: translateY(-5px);
}

.highlight-title {
  background: var(--rojo);
  color: white;
  text-align: center;
  padding: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.highlight img {
  width: 100%;
  display: block;
}

/* Novedades */
.news {
  background: white;
  /* Changed from dorado-claro to white */
  padding: 80px 0;
}

.news h2 {
  /* color handled by group rule with .section-parroquias .section-title or defined here */
  /* Re-defining explicitly here just in case, but let's check hierarchy. 
     I added .news h2 to the previous block.
     But I need to REMOVE the old rule here to avoid conflict or just update it.
  */
  color: white;
  /* Overwriting prior var(--azul) */
  margin-bottom: 50px;
  font-size: 2.2rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Button in News section needs to contrast with Gold background */
.news .btn {
  background: white;
  color: var(--azul);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news .btn:hover {
  background: var(--azul);
  color: white;
}

/* Grid Container */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* News Card */
.news-item {
  display: flex;
  flex-direction: column;
  /* Vertical layout */
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  /* Equal height cards */
}

.news-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.news-item img {
  width: 100%;
  height: 220px;
  /* Fixed height for consistency */
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover img {
  transform: scale(1.05);
}

.news-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  /* Flexbox for aligning the button at the bottom if needed */
  flex-direction: column;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  color: var(--dorado);
  border-radius: 0;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 0;
}

.more:hover {
  background: none;
  color: var(--azul);
  transform: translateX(5px);
}

.card i {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--azul);
}

.card:hover i {
  color: white;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablets medianas */
@media (max-width: 992px) {
  .hero {
    min-height: 380px;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

/* Celulares grandes */
@media (max-width: 768px) {
  .hero {
    min-height: 320px;
  }

  .hero-text {
    max-width: 90%;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {
  .hero {
    min-height: 270px;
  }

  .hero-text h1 {
    font-size: 1.3rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }
}

/* NAV RESPONSIVE */
@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 10px 15px;
  }
}

/* NEWS RESPONSIVE */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }

  .news-item img {
    width: 100%;
    height: auto;
  }

  .news-content {
    padding: 15px;
  }
}

/* BOTÓN MÁS RESPONSIVE */
@media (max-width: 480px) {
  .more {
    position: static;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* HAMBURGUESA */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--azul);
  cursor: pointer;
}

/* Mostrar hamburguesa solo en móviles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-left: auto;
    background: none;
    border: none;
  }

  nav.nav-closed ul {
    display: none;
  }

  nav.nav-open ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    width: 100%;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-inner {
    flex-wrap: wrap;
    align-items: center;
  }
}

/* === RED AGUSTINIANA (SECCIONES) === */
.section-parroquias {
  background: white;
  padding: 70px 0;
  color: var(--azul);
}

.section-colegios {
  background: white;
  /* "El blanco que ya usamos" */
  padding: 70px 0;
  color: var(--azul);
}

/* Adjust main section title for Gold background */
.section-parroquias .section-title,
.news h2 {
  /* Applying distinct style to News Title as well */
  text-align: center;
  color: var(--azul);
  /* Blue title on White */
  font-size: 2.2rem;
  margin-bottom: 60px;
  font-weight: 700;
  text-shadow: none;
}

/* Subtítulos */
.subtitulo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  margin: 70px 0 35px;
}

.subtitulo h3 {
  color: var(--rojo);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Line styling */
/* Line styling */
.section-parroquias .subtitulo .line,
.section-colegios .subtitulo .line {
  height: 6px;
  width: 90%;
  background: var(--dorado);
  display: block;
}

.grid-red {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Fila superior y fila inferior */
.grid-red .fila {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}

/* Última fila centrada (cuando hay 2 tarjetas) */
.grid-red .fila:last-child {
  justify-content: space-around;
  padding: 0 40px;
}

/* === Tarjeta base === */
.card-red {
  position: relative;
  flex: 1;
  min-width: 250px;
  height: 260px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  /* Shadow is key for White on White */
  overflow: hidden;
  perspective: 1000px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Specific styles by section */

/* Parroquias & Colegios Cards -> BOTH WHITE NOW (Unified "Same Style") */
.section-parroquias .card-red,
.section-colegios .card-red {
  background: white;
}

.section-parroquias .card-red .front,
.section-colegios .card-red .front {
  background: white;
}

.section-parroquias .card-red .front h4,
.section-colegios .card-red .front h4 {
  color: var(--azul);
}

.section-parroquias .card-red .front p,
.section-colegios .card-red .front p {
  color: #555;
}

/* === GENERAL CARD HOVER & BACK (Shared) === */
.card-red:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.front {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  transition: all 0.4s ease;
}

.front img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.front .info {
  padding: 15px;
  text-align: center;
}

.front h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.front p {
  font-size: 0.9rem;
}

/* === BACK (animación tipo flip adaptada) === */
.back {
  position: absolute;
  inset: 0;
  background: var(--azul);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  transform: rotateY(90deg) scale(-1);
  opacity: 0;
  transition: all 0.5s ease;
}

.back h4 {
  color: var(--dorado);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.back p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: white;
}

/* === ANIMACIÓN === */
.card-red:hover .front {
  transform: rotateY(-90deg);
  opacity: 0;
}

.card-red:hover .back {
  transform: rotateY(0deg) scale(1);
  opacity: 1;
}

/* ==== RESPONSIVE ==== */

@media (max-width: 992px) {
  .grid-red .fila {
    justify-content: center;
    gap: 20px;
  }

  .grid-red .card-red {
    flex: 1 1 calc(45% - 20px);
    /* 2 columnas */
    max-width: 45%;
  }

  .grid-red .fila:last-child {
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 600px) {
  .grid-red .card-red {
    flex: 1 1 100%;
    /* 1 columna */
    max-width: 100%;
  }

  .grid-red .fila {
    justify-content: center;
  }
}

/* === ÍCONOS EN EL REVERSO === */
.back .icons {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dorado);
  color: var(--azul);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.icon:hover {
  background: white;
  color: var(--rojo);
  transform: scale(1.1);
}

/* Colores personalizados por tipo (opcional) */
.icon.whatsapp:hover {
  color: #25d366;
}

.icon.maps:hover {
  color: #ea4335;
}

.icon.web:hover {
  color: var(--azul);
}

ul.social-icons {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 0;
}

.icon-content {
  position: relative;
}

.icon-content .tooltip {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background-color: var(--azul);
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}

.icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #fff;
  color: var(--azul);
  transition: all 0.3s ease-in-out;
}

.icon-content a svg {
  width: 24px;
  height: 24px;
  z-index: 1;
}

.icon-content a .filled {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  z-index: 0;
}

/* Hover animation */
.icon-content a:hover .filled {
  height: 100%;
}

/* Color logic */
.icon-content a[data-social="whatsapp"] .filled,
.icon-content a[data-social="whatsapp"] ~ .tooltip {
  background-color: #128c7e;
}

.icon-content a[data-social="maps"] .filled,
.icon-content a[data-social="maps"] ~ .tooltip {
  background-color: #ea4335;
}

.icon-content a[data-social="web"] .filled,
.icon-content a[data-social="web"] ~ .tooltip {
  background-color: var(--dorado);
}

.icon-content a[data-social="instagram"] .filled,
.icon-content a[data-social="instagram"] ~ .tooltip {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.icon-content a[data-social="facebook"] .filled,
.icon-content a[data-social="facebook"] ~ .tooltip {
  background-color: #1877f2;
}

/* Change icon color when filled */
.icon-content a:hover {
  color: white;
  box-shadow: 3px 2px 45px 0px rgba(0, 0, 0, 0.15);
}

/* 🔧 Arreglo de footer tras las tarjetas animadas */
/* ==== FOOTER ==== */
.footer {
  background-color: var(--azul);
  color: #fff;
  width: 100%;
  padding: 60px 0 30px;
  text-align: center;
  position: relative;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.footer-col {
  flex: 1 1 300px;
  min-width: 250px;
}

.footer-logo {
  width: 120px;
  margin-bottom: 15px;
}

.footer h4 {
  color: var(--dorado);
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.footer p,
.footer a {
  color: #eaeaea;
  font-size: 0.9rem;
  line-height: 1.6;
  text-decoration: none;
}

.footer a:hover {
  color: var(--dorado);
}

/* Línea inferior */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #ccc;
}

/* Social icons — mismo efecto que tarjetas */
.footer .social-icons {
  justify-content: center;
  gap: 18px;
  margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ==== ESTILO NOTICIA JUVENIL ==== */
body {
  font-family: "Poppins", sans-serif;
}

/* HERO PARALLAX */
.noticia-hero {
  position: relative;
  height: 70vh;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
  filter: brightness(0.6);
}

.noticia-container {
  width: min(100% - 40px, 850px);
  margin: auto;
  line-height: 1.8;
  color: #333;
  font-size: 1.05rem;
}

.bloque {
  margin-top: 50px;
}

.bloque h3 {
  font-size: 1.4rem;
  color: #152043;
  margin-bottom: 15px;
  border-left: 4px solid #c6a44f;
  padding-left: 12px;
}

.bloque.destacado {
  background: #f9fafc;
  border-left: 5px solid #c6a44f;
  padding: 25px 30px;
  border-radius: 8px;
}

blockquote {
  font-style: italic;
  color: #152043;
  background: #f0f3f9;
  border-left: 4px solid #c6a44f;
  padding: 15px 20px;
  margin: 25px 0;
  border-radius: 4px;
}

.lineas {
  list-style: none;
  padding-left: 0;
}

.lineas li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.lineas li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #c6a44f;
  font-weight: bold;
}

/* BOTÓN VOLVER */
.btn-volver {
  display: inline-block;
  margin-top: 60px;
  background: #152043;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-volver:hover {
  background: #c6a44f;
  color: #152043;
  transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content {
    padding: 15px 25px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(100% - 40px, 800px);
  max-width: 800px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.noticia-hero .hero-content h1,
.noticia-hero .hero-content h2,
.noticia-hero .hero-content .fecha {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero-mobile-break {
  display: none;
}

@media (max-width: 600px) {
  .hero-mobile-break {
    display: block;
  }
}

@media (max-width: 480px) {
  .noticia-hero {
    min-height: 560px;
  }

  .noticia-hero .hero-content {
    width: calc(100% - 32px);
    padding: 12px 0;
  }

  .noticia-hero .hero-content h1 {
    font-size: 1.65rem;
    line-height: 1.18;
  }

  .noticia-hero .hero-content h2 {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .noticia-container {
    width: calc(100% - 32px);
    font-size: 1rem;
  }
}

.timeline-section {
  padding: 60px 0 80px;
  background: #fff;
}

.timeline {
  position: relative;
  margin: 40px auto 0;
  padding: 20px 0;
}

/* SVG Path Container */
.timeline-path-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Click through */
  z-index: 0;
  /* Behind content */
}

#timeline-path {
  fill: none;
  stroke: var(--dorado);
  stroke-width: 3;
  stroke-dasharray: 10, 5;
  /* Dashed line for a "path" look */
  opacity: 0.6;
}

/* Línea vertical central ELIMINADA para usar SVG zigzag */
.timeline::before {
  display: none;
}

/* Item base */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  z-index: 1;
  /* Above SVG */

  /* Animation Initial State */
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Puntos en la línea */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 30px;
  /* Center at 40px (30 + 10) */
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--dorado);
  box-shadow: 0 0 0 4px rgba(197, 162, 74, 0.2);
  z-index: 2;
}

/* Posicionamiento de puntos para Zigzag (separados del centro) */
.timeline-item.left::before {
  right: 30px;
  /* Center at 40px from right edge */
}

.timeline-item.right::before {
  left: 30px;
  /* Center at 40px from left edge */
}

/* Tarjeta de contenido */
.timeline-content {
  background: var(--gris);
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--dorado);
}

.timeline-item.right .timeline-content {
  border-left: none;
  border-right: 4px solid var(--dorado);
}

.timeline-label {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 4px;
}

.timeline-content h2 {
  font-size: 1.2rem;
  color: var(--azul);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

/* Último párrafo sin margen extra */
.timeline-content p:last-child {
  margin-bottom: 0;
}

/* ============================
   RESPONSIVE TIMELINE
   ============================ */

@media (max-width: 900px) {
  /* En móvil, volvemos a una línea más recta o simple */
  #timeline-path {
    stroke-width: 2;
    stroke-dasharray: 5, 5;
  }

  .timeline-item {
    width: 100%;
    padding: 18px 20px 18px 60px;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item::before {
    left: 16px;
    /* Center at 26px to match JS */
    right: auto;
  }

  .timeline-item.left::before {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
  }

  .lineas li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #c6a44f;
    font-weight: bold;
  }

  /* BOTÓN VOLVER */
  .btn-volver {
    display: inline-block;
    margin-top: 60px;
    background: #152043;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .btn-volver:hover {
    background: #c6a44f;
    color: #152043;
    transform: translateY(-3px);
  }

  /* RESPONSIVE */
  @media (max-width: 768px) {
    .hero-content h1 {
      font-size: 2rem;
    }

    .hero-content {
      padding: 15px 25px;
    }
  }

  .timeline-section {
    padding: 60px 0 80px;
    background: #fff;
  }

  .timeline {
    position: relative;
    margin: 40px auto 0;
    padding: 20px 0;
  }

  /* SVG Path Container */
  .timeline-path-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Click through */
    z-index: 0;
    /* Behind content */
  }

  #timeline-path {
    fill: none;
    stroke: var(--dorado);
    stroke-width: 3;
    stroke-dasharray: 10, 5;
    /* Dashed line for a "path" look */
    opacity: 0.6;
  }

  /* Línea vertical central ELIMINADA para usar SVG zigzag */
  .timeline::before {
    display: none;
  }

  /* Item base */
  .timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    z-index: 1;
    /* Above SVG */
  }

  .timeline-item.left {
    left: 0;
    text-align: right;
  }

  .timeline-item.right {
    left: 50%;
    text-align: left;
  }

  /* Puntos en la línea */
  .timeline-item::before {
    content: "";
    position: absolute;
    top: 30px;
    /* Center at 40px (30 + 10) */
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--dorado);
    box-shadow: 0 0 0 4px rgba(197, 162, 74, 0.2);
    z-index: 2;
  }

  /* Posicionamiento de puntos para Zigzag (separados del centro) */
  .timeline-item.left::before {
    right: 30px;
    /* Center at 40px from right edge */
  }

  .timeline-item.right::before {
    left: 30px;
    /* Center at 40px from left edge */
  }

  /* Tarjeta de contenido */
  .timeline-content {
    background: var(--gris);
    border-radius: 10px;
    padding: 18px 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    border-left: 4px solid var(--dorado);
  }

  .timeline-item.right .timeline-content {
    border-left: none;
    border-right: 4px solid var(--dorado);
  }

  .timeline-label {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dorado);
    margin-bottom: 4px;
  }

  .timeline-content h2 {
    font-size: 1.2rem;
    color: var(--azul);
    margin-bottom: 8px;
  }

  .timeline-content p {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  /* Último párrafo sin margen extra */
  .timeline-content p:last-child {
    margin-bottom: 0;
  }

  /* ============================
   RESPONSIVE TIMELINE (Redesign Mobile/Tablet)
   ============================ */

  @media (max-width: 900px) {
    /* Ocultar la línea SVG compleja en móvil */
    .timeline-path-svg {
      display: none;
    }

    /* Crear línea recta CSS simple a la izquierda */
    .timeline {
      position: relative;
    }

    .timeline::before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 20px; /* Posición de la línea */
      width: 4px;
      background: var(--dorado);
      display: block; /* Forzar display block */
      opacity: 0.3;
      border-radius: 2px;
    }

    /* Resetear items para que ocupen todo el ancho y se alineen a la derecha de la línea */
    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
      width: 100%;
      left: 0;
      text-align: left;
      padding: 10px 0 30px 50px; /* Gap a la izquierda para la línea */
      opacity: 1 !important; /* Sin animación de fade in */
      transform: none !important;
      transition: none !important;
    }

    /* Posicionar los puntos (dots) sobre la línea CSS */
    .timeline-item::before,
    .timeline-item.left::before,
    .timeline-item.right::before {
      left: 13px; /* Centrado en la línea de 20px -> 20 + 2 - 7(radio) = 15 aprox. Ajuste visual: 13px */
      right: auto;
      top: 25px; /* Alinear con primera línea de texto o título */
      margin: 0;
      z-index: 5;
    }

    /* Estilo uniforme para las tarjetas de contenido */
    .timeline-content {
      border-left: 4px solid var(--dorado);
      border-right: none;
      /* Opcional: añadir una flechita CSS si quieres un estilo "burbuja de chat", pero simple es mejor */
    }

    .timeline-item.right .timeline-content {
      border-right: none;
      border-left: 4px solid var(--dorado);
    }

    /* Ajuste de botón Volver si aplica */
    .btn-volver {
      display: inline-block;
      margin-top: 30px;
    }
  }

  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
  }
}

/* === NOTICIA LEON XIV === */
.noticia-meta {
  margin: 20px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
}

.noticia-meta .pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: #f0f3f9;
  font-weight: 500;
}

.noticia-meta .pill.time {
  background: #152043;
  color: #fff;
}

.noticia-meta .pill.update {
  background: #f9f0d5;
  color: #8a6b1f;
}

.noticia-highlight {
  margin: 35px 0;
  padding: 22px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #152043, #1f2b5a);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.noticia-highlight h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.noticia-highlight p {
  font-size: 0.95rem;
  opacity: 0.95;
}

.noticia-galeria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 12px;
}

.noticia-galeria figure {
  margin: 0;
  min-height: 300px;
  overflow: hidden;
  border-radius: 12px;
  background: #eef0f5;
  box-shadow: 0 10px 25px rgba(21, 32, 67, 0.12);
}

.noticia-galeria figure:first-child {
  grid-column: 1 / -1;
  min-height: 440px;
}

.noticia-galeria img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.noticia-video {
  margin: 34px 0 10px;
  padding: 18px;
  border-radius: 14px;
  background: #152043;
  box-shadow: 0 12px 30px rgba(21, 32, 67, 0.22);
}

.noticia-video video {
  display: block;
  width: 100%;
  max-height: 75vh;
  border-radius: 9px;
  background: #090d1c;
}

.noticia-firma {
  margin-top: 34px;
  color: #152043;
  font-weight: 600;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  background: #fff;
  color: #152043;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .noticia-highlight {
    padding: 18px 18px;
  }

  .noticia-galeria {
    grid-template-columns: 1fr;
  }

  .noticia-galeria figure:first-child {
    grid-column: auto;
  }

  .noticia-galeria figure,
  .noticia-galeria figure:first-child {
    min-height: 280px;
  }

  .noticia-video {
    padding: 10px;
  }
}

/* =========================
   PASTORAL PREMIUM DESIGN
   ========================= */

.section-pastoral-premium {
  position: relative;
  background: #fdfbf7; /* Light creamy background */
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  overflow: hidden;
  z-index: 1;
}

/* Background Animated Element - Layer 1 */
.section-pastoral-premium::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(197, 162, 74, 0.15) 0%,
    transparent 60%
  );
  animation: floatMove 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

/* Background Animated Element - Layer 2 (New for more movement) */
.section-pastoral-premium::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -30%;
  width: 150%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(21, 31, 67, 0.08) 0%,
    transparent 70%
  ); /* Subtle blue */
  animation: floatMoveReverse 25s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

@keyframes floatMove {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(50px, 50px) rotate(10deg);
  }
}

@keyframes floatMoveReverse {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-60px, -40px) rotate(-5deg);
  }
}

.pastoral-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.pastoral-title {
  font-size: 3rem;
  color: var(--azul); /* Changed to Blue for contrast on light bg */
  text-align: center;
  margin-bottom: 60px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  /* Removed heavy dark shadow, added light elegant one */
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pastoral-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Premium Card Style */
.card-premium {
  position: relative;
  width: 380px;
  height: 550px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: #1a1a1a;
  border: 1px solid rgba(197, 162, 74, 0.2);
  cursor: pointer;
}

.card-premium:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--dorado);
  box-shadow: 0 20px 50px rgba(197, 162, 74, 0.25);
}

.card-premium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: brightness(0.8);
}

.card-premium:hover img {
  transform: scale(1.15);
  filter: brightness(0.6);
}

/* Content Overlay */
.card-premium .content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 30px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 10%,
    rgba(0, 0, 0, 0.6) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  transition: all 0.4s ease;
}

.card-premium h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.card-premium p {
  color: #ddd;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
}

/* Hover State for Text */
.card-premium:hover h3 {
  transform: translateY(0);
  color: var(--dorado);
}

.card-premium:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* Action Button/Link */
.premium-link {
  display: inline-block;
  color: var(--dorado);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.2s;
}

.card-premium:hover .premium-link {
  opacity: 1;
  transform: translateY(0);
}

.premium-link i {
  margin-left: 5px;
  transition: transform 0.3s;
}

.premium-link:hover i {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 900px) {
  .pastoral-grid {
    flex-direction: column;
    align-items: center;
  }

  .card-premium {
    width: 100%;
    max-width: 450px;
    height: 400px;
  }

  .pastoral-title {
    font-size: 2.2rem;
  }

  /* On mobile, show text always partially */
  .card-premium p {
    opacity: 1;
    transform: translateY(0);
    display: none;
    /* Hide paragraph on small mobile to save space, or keep it */
  }

  .card-premium:hover p {
    display: block;
  }

  .card-premium h3 {
    transform: translateY(0);
  }
}

/* =========================================
   LIBRARY SHELVES (New Section)
   ========================================= */

.library-section {
  background: #fdfbf7;
  padding: 60px 0 100px;
  overflow: hidden;
}

.bookshelf {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.shelf-row {
  display: flex;
  flex-direction: column;
  position: relative;
}

.shelf-board {
  height: 20px;
  background: #5d4037;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  position: relative;
  z-index: 2;
}

.shelf-info {
  margin-bottom: 10px;
  padding-left: 20px;
}

.shelf-info h3 {
  color: var(--azul);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shelf-info h3 i {
  color: var(--dorado);
}

.shelf-info p {
  color: #666;
  font-size: 0.95rem;
  margin-top: 5px;
  max-width: 600px;
}

.shelf-books {
  display: flex;
  flex-direction: column;
  /* Stack vertically! */
  align-items: center;
  /* Center the pile */
  justify-content: flex-end;
  gap: 0;
  padding: 0 20px;
  /* Ensure the pile sits on the board */
  margin-bottom: 0px;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  /* Constrain pile width */
  margin-left: auto;
  margin-right: auto;
  perspective: 1000px;
  /* For 3D feel */
}

.book {
  position: relative;
  flex: 0 0 auto;
  /* Book Spine Width (horizontal length visually) */
  width: 70%;
  /* Base width relative to container */
  max-width: 400px;
  min-width: 250px;

  /* Thickness */
  height: 40px;

  background: var(--azul);
  /* Rounded spine facing viewer */
  border-radius: 4px;

  /* Spine Texture */
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 20%,
    rgba(0, 0, 0, 0) 80%,
    rgba(0, 0, 0, 0.2) 100%
  );

  /* Deep shadow below each book to separate them in the stack */
  box-shadow:
    0 1px 0px rgba(255, 255, 255, 0.1) inset,
    /* Top edge light */ 0 5px 10px rgba(0, 0, 0, 0.35);
  /* Drop shadow on book below */

  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center text on the spine */
  text-align: center;

  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: "Montserrat", sans-serif;

  /* Reset border */
  border: none;

  border-left: 3px solid rgba(255, 255, 255, 0.1);
  border-right: 3px solid rgba(255, 255, 255, 0.1);

  margin-bottom: -4px;
  /* Slight overlap to tighten stack */
}

/* Organic Variations: Height, Color, Tilt, Margin */

/* Stack Variations: Vary width, color, and x-offset for pile realism */

/* Decrease local Z-index to try and layer correctly? 
   Actually, standard stacking context means later elements are on top.
   So shadow of Book 1 is covered by Book 2. 
   We need negative margins or explicit Z-indices if we want top books to cast shadow on bottom ones.
   Applying decreasing z-index for first 10 items.
*/
.book:nth-child(1) {
  z-index: 20;
}

.book:nth-child(2) {
  z-index: 19;
}

.book:nth-child(3) {
  z-index: 18;
}

.book:nth-child(4) {
  z-index: 17;
}

.book:nth-child(5) {
  z-index: 16;
}

.book:nth-child(6) {
  z-index: 15;
}

.book:nth-child(7) {
  z-index: 14;
}

.book:nth-child(8) {
  z-index: 13;
}

.book:nth-child(9) {
  z-index: 12;
}

.book:nth-child(10) {
  z-index: 11;
}

.book:nth-child(5n + 1) {
  width: 90%;
  background-color: #3e2723;
  transform: translateX(-5px) rotate(-0.5deg);
}

.book:nth-child(5n + 2) {
  width: 95%;
  background-color: #263238;
  transform: translateX(4px) rotate(0.5deg);
}

.book:nth-child(5n + 3) {
  width: 85%;
  background-color: #4a1414;
  transform: translateX(-2px) rotate(-0.2deg);
}

.book:nth-child(5n + 4) {
  width: 92%;
  background-color: #1b3a28;
  transform: translateX(6px) rotate(0.4deg);
}

.book:nth-child(5n + 5) {
  width: 88%;
  background-color: #424242;
  transform: translateX(0px) rotate(0deg);
}

.book.gold {
  background-color: var(--dorado);
  color: var(--azul);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.book span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.book:hover {
  transform: translateX(20px) scale(1.05) !important;
  z-index: 100 !important;
  box-shadow:
    -10px 10px 20px rgba(0, 0, 0, 0.4),
    0 0 5px rgba(255, 255, 255, 0.2);
}

.book:hover span {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.book:hover span {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Tooltip is less necessary if text is readable, but we keep it for truncated text */
.book::after {
  content: attr(data-title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  margin-bottom: 8px;
  z-index: 20;
}

.book:hover::after {
  opacity: 1;
}

@media (max-width: 600px) {
  .shelf-books {
    padding: 0 10px;
    width: 100%;
  }

  .book {
    width: 95% !important;
    /* Nearly full width */
    height: 45px !important;
    font-size: 0.85rem;
    margin-bottom: -2px;
  }
}

/* =========================
   NEW FEATURED BOOKS SECTION
   ========================= */

.featured-books-grid {
  display: flex;
  justify-content: center;
  /* Centered row by default */
  flex-wrap: wrap;
  /* Wrap if screen is too small */
  gap: 40px;
  /* Space between items */
  margin-top: 50px;
  padding-bottom: 50px;
}

/* On strictly desktop, we want a row. Flex wrap handles smaller screens. */

.book-card-featured {
  /* Box model */
  flex: 1;
  min-width: 200px;
  max-width: 25%;
  /* Target for 4 in a row */
  display: flex;
  flex-direction: column;
  background: transparent;
  perspective: 1000px;
}

/* Book Cover Styling */
.book-cover {
  position: relative;
  width: 100%;
  height: 380px;
  /* Taller to match "Book Format" ratio */
  /* Or use aspect-ratio if supported, but height ensures uniformity */
  box-shadow:
    -4px 0 0 rgba(0, 0, 0, 0.2) inset,
    /* Spine inner shadow */ 5px 8px 20px rgba(0, 0, 0, 0.3);
  /* Drop shadow */
  border-radius: 2px 6px 6px 2px;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  background: #fff;
  cursor: pointer;
}

/* Spine gradient overlay */
.book-cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 15px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover Effects */
.book-card-featured:hover .book-cover {
  transform: translateY(-10px) rotateY(-5deg);
  box-shadow:
    -4px 0 0 rgba(0, 0, 0, 0.2) inset,
    10px 20px 30px rgba(0, 0, 0, 0.35);
}

/* Text Content */
.book-info {
  margin-top: 25px;
  text-align: center;
}

.book-info h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.book-subtitle {
  font-size: 0.9rem;
  color: var(--rojo);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.book-info p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  padding: 0 10px;
}

/* Responsive */
@media (max-width: 1200px) {
  .featured-books-grid {
    justify-content: space-around;
  }
}

@media (max-width: 768px) {
  .book-card-featured {
    width: 100%;
    max-width: 320px;
    margin-bottom: 40px;
  }
}
/* =========================
   CONTACT PAGE STYLES (MODERN)
   ========================= */

.contact-hero {
  background: linear-gradient(135deg, var(--azul) 0%, #0a1128 100%);
  color: white;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("img/pattern.png"); /* If you had one, otherwise optional opacity texture */
  opacity: 0.1;
  pointer-events: none;
}

.contact-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -1px;
  background: linear-gradient(to right, #fff, #e0c878);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-hero p {
  font-size: 1.3rem;
  color: #e0e0e0;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

.contact-section {
  padding: 100px 0;
  background: #f4f6f8;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

/* Contact Info Side */
.contact-info h2 {
  color: var(--azul);
  font-size: 2.2rem;
  margin-bottom: 25px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.contact-info h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--dorado);
  margin-top: 10px;
  border-radius: 2px;
}

.contact-desc {
  color: #666;
  margin-bottom: 50px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 35px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Reduced icon size */
.contact-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dorado);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.info-item:hover .contact-icon svg {
  transform: scale(1.1);
}

.info-text h3 {
  font-size: 1rem;
  color: #888;
  margin-bottom: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-text p {
  color: var(--azul);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.info-text a {
  color: var(--azul);
  text-decoration: none;
  transition: color 0.3s;
}

.info-text a:hover {
  color: var(--dorado);
}

.social-connect {
  margin-top: 50px;
}

.social-connect h3 {
  font-size: 1.2rem;
  color: var(--azul);
  margin-bottom: 20px;
  font-weight: 700;
}

/* Reusing .social-icons from footer but ensuring visibility on light background */
.contact-socials {
  justify-content: flex-start; /* Align left to match content */
  padding: 0;
  gap: 15px;
  margin: 0; /* Clear default margins */
}

.contact-socials .icon-content {
  margin: 0;
}

.contact-socials a {
  color: var(--azul); /* Start blue on white bg */
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white; /* Ensure bg is white */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-socials a:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* The .filled and other animations are inherited from footer CSS .social-icons */

/* Contact Form Side */
.contact-form-wrapper {
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--dorado), var(--rojo));
}

.contact-form-wrapper h2 {
  color: var(--azul);
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 30px;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-family: var(--fuente);
  font-size: 1rem;
  background: #fcfcfc;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--dorado);
  background: white;
  outline: none;
  box-shadow: 0 0 15px rgba(197, 162, 74, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--azul) 0%, #1e2a5a 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 10px 20px rgba(21, 31, 67, 0.2);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #1e2a5a 0%, var(--azul) 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(21, 31, 67, 0.3);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-hero h1 {
    font-size: 2.5rem;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .contact-info {
    order: 1;
  }
  .contact-form-wrapper {
    padding: 30px;
  }
}

/* =========================================
   PASTORAL VOCACIONAL Y PÁGINAS INTERNAS
   ========================================= */

/* Hero "Pequeño" para páginas internas */
/* NOTE: .pastoral-hero is OUTSIDE .section-pastoral-page, so it remains unscoped. */
.pastoral-hero {
  position: relative;
  height: 400px; /* Altura contenida */
  background:
    linear-gradient(rgba(21, 31, 67, 0.8), rgba(21, 31, 67, 0.7)),
    url("imagenes/pastoral.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Efecto parallax suave */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: -80px; /* Para que la tarjeta "flote" encima */
  padding-top: 60px; /* Compensar header fijo */
}

.pastoral-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.pastoral-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
  font-weight: 300;
}

/* Sección Contenedora (Efecto Papel Flotante) */
.section-pastoral-page {
  padding-bottom: 80px;
  background: var(--gris); /* Fondo suave detrás de la tarjeta */
}

.section-pastoral-page .pastoral-page-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); /* Sombra elegante */
  padding: 60px 80px;
  position: relative;
  z-index: 10;
  margin-top: 0; /* Ya usamos margin negativo en el hero, pero aquí aseguramos flujo */
}

/* Tipografía Interna */
.section-pastoral-page .pastoral-title {
  font-size: 2.2rem;
  color: var(--azul);
  margin-bottom: 25px;
  font-weight: 700;
  text-align: center;
}

.section-pastoral-page .pastoral-subtitle {
  font-size: 1.8rem;
  color: var(--dorado);
  margin-top: 50px;
  margin-bottom: 30px;
  font-weight: 600;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-pastoral-page .pastoral-subtitle::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--azul);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-pastoral-page .pastoral-page-card p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center; /* Centrar textos introductorios */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Grillas de Características/Pasos */
.section-pastoral-page .pastoral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.section-pastoral-page .pastoral-grid-search {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-pastoral-page .pastoral-feature {
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.section-pastoral-page .pastoral-feature:hover {
  transform: translateY(-5px); /* Flotar */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-color: var(--dorado-claro);
}

.section-pastoral-page .pastoral-feature-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 162, 74, 0.12);
  color: var(--dorado);
  box-shadow: inset 0 0 0 1px rgba(197, 162, 74, 0.2);
}

.section-pastoral-page .pastoral-feature-icon i {
  font-size: 1.8rem;
}

.section-pastoral-page .pastoral-feature-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-pastoral-page .pastoral-feature h4 {
  color: var(--azul);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.section-pastoral-page .pastoral-feature p {
  font-size: 0.95rem;
  text-align: center; /* Forzar centro */
  margin-bottom: 0;
}

/* Cita Destacada */
.section-pastoral-page .pastoral-quote {
  margin: 60px 0;
  padding: 40px;
  background: linear-gradient(to right, #f9f9f9, #fff);
  border-left: 5px solid var(--rojo);
  font-size: 1.4rem;
  font-style: italic;
  font-family: "Georgia", serif;
  color: #333;
  text-align: center;
  border-radius: 0 8px 8px 0;
}

.section-pastoral-page .pastoral-quote span {
  display: block;
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--azul);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Imagen decorativa central */
.section-pastoral-page .pastoral-image {
  margin: 50px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-pastoral-page .pastoral-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Lista de Etapas */
.section-pastoral-page .pastoral-stage-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 30px auto;
}

.section-pastoral-page .pastoral-stage-item {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1.05rem;
}

.section-pastoral-page .pastoral-stage-item::before {
  content: "\f058"; /* Icono check circle fontawesome */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--dorado);
  font-size: 1.2rem;
  margin-top: 3px;
}

.section-pastoral-page .pastoral-stage-item strong {
  color: var(--azul);
  font-weight: 700;
}

/* Grid Steps (Números o Iconos grandes) */
.section-pastoral-page .pastoral-grid-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-pastoral-page .pastoral-grid-steps .pastoral-feature {
  background: var(--azul);
  color: white;
  border: none;
}

.section-pastoral-page .pastoral-grid-steps .pastoral-feature-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--dorado-claro);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.section-pastoral-page .pastoral-grid-steps .pastoral-feature h4 {
  color: white;
}

.section-pastoral-page .pastoral-grid-steps .pastoral-feature p {
  color: rgba(255, 255, 255, 0.8);
}

.section-pastoral-page .pastoral-grid-steps .pastoral-feature:hover {
  transform: translateY(-5px) scale(1.02);
  background: #1e2a5a; /* Un poco más claro */
}

/* Preguntas Frecuentes (FAQ) */
.section-pastoral-page .pastoral-faq {
  max-width: 800px;
  margin: 0 auto;
}

.section-pastoral-page .pastoral-faq-item {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.section-pastoral-page .pastoral-faq-item[open] {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: var(--dorado);
}

.section-pastoral-page .pastoral-faq-item summary {
  padding: 20px;
  font-weight: 600;
  color: var(--azul);
  cursor: pointer;
  list-style: none; /* Quitar flecha default */
  position: relative;
  padding-right: 50px;
  background: #fdfdfd;
}

.section-pastoral-page .pastoral-faq-item summary::-webkit-details-marker {
  display: none;
}

.section-pastoral-page .pastoral-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--dorado);
  transition: transform 0.3s;
}

.section-pastoral-page .pastoral-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.section-pastoral-page .pastoral-faq-item p {
  padding: 0 20px 20px;
  margin-top: 0;
  text-align: left; /* Alinear texto FAQ a la izq */
  color: #666;
  font-size: 0.95rem;
}

/* CTA */
.section-pastoral-page .pastoral-cta {
  margin-top: 80px;
  padding: 50px;
  background: linear-gradient(135deg, var(--azul), #2a3b75);
  border-radius: 12px;
  text-align: center;
  color: white;
  box-shadow: 0 10px 30px rgba(21, 31, 67, 0.25);
}

.section-pastoral-page .pastoral-cta h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 15px;
}

.section-pastoral-page .pastoral-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.section-pastoral-page .pastoral-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.section-pastoral-page .pastoral-actions .btn {
  padding: 15px 30px;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section-pastoral-page .pastoral-actions .btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.section-pastoral-page .pastoral-actions .btn-secondary:hover {
  background: white;
  color: var(--azul);
  border-color: white;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .section-pastoral-page .pastoral-page-card {
    padding: 40px 20px;
    margin-top: 0; /* Reset */
    border-radius: 0; /* Full width en movil */
  }

  .pastoral-hero h1 {
    font-size: 2.2rem;
  }

  .section-pastoral-page {
    padding-bottom: 0;
    background: white;
  } /* Seamless en móvil */

  .pastoral-hero {
    height: 300px;
    margin-bottom: 0;
  }

  .section-pastoral-page .pastoral-quote {
    font-size: 1.1rem;
    padding: 30px;
  }

  .section-pastoral-page .pastoral-actions {
    flex-direction: column;
  }

  .section-pastoral-page .pastoral-grid-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .section-pastoral-page .pastoral-grid-search {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   PASTORAL PARROQUIAL
   ========================================= */

/* Hero background modifier */
.pastoral-hero.parroquial-bg {
  background-image:
    linear-gradient(rgba(21, 31, 67, 0.8), rgba(21, 31, 67, 0.7)),
    url("imagenes/sana.png");
}

/* 3-column grid modifier */
.section-pastoral-page .pastoral-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Parish List Grid */
.section-pastoral-page .pastoral-parish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Parish Card */
.section-pastoral-page .pastoral-parish {
  background: white;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--azul);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.section-pastoral-page .pastoral-parish:hover {
  transform: translateX(5px);
  border-left-color: var(--dorado);
}

.section-pastoral-page .pastoral-parish h4 {
  color: var(--azul);
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start; /* Ensure left align */
}

.section-pastoral-page .pastoral-parish h4 i {
  color: var(--dorado);
  font-size: 1.2rem;
  margin: 0; /* Override pastoral feature style */
  background: none;
  width: auto;
  height: auto;
}

.section-pastoral-page .pastoral-parish p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 5px;
  text-align: left; /* Override centered default if inherited */
  max-width: 100%;
}

/* Muted text utility */
.section-pastoral-page .pastoral-muted {
  color: #999 !important;
  font-size: 0.9rem !important;
  font-style: italic;
  margin-top: 5px;
  text-align: center;
}

.section-pastoral-page .pastoral-parish .pastoral-muted {
  text-align: left;
}
