:root {
  --color-hero: #ffecb1;
  --color-menu: #0f2b24;
  --color-blue: #082a46;
  --color-white: #ffffff;
  --color-cta-text: #f7f3ee;

  --header-h: 74px;
  --container: 1280px;

  --ease: 320ms cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 14px 28px rgba(8, 42, 70, 0.16);
  --shadow-strong: 0 20px 40px rgba(8, 42, 70, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--color-blue);
  background: #ffffff;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 64px, var(--container));
  margin: 0 auto;
}

/* -------------------------
   HEADER
------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(15, 43, 36, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 128px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color var(--ease), opacity var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 1px;
  background: rgba(255, 236, 177, 0.95);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--ease);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.main-nav a.is-active {
  color: #ffecb1;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #ffffff;
}

/* -------------------------
   HERO
------------------------- */

.hero {
  position: relative;
  overflow: visible;
  background-color: var(--color-hero);
  background-image: url("../img/hero-bg.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: clamp(780px, 100vh, 980px);
  padding-top: var(--header-h);
  z-index: 3;
}

.hero-inner {
  position: relative;
  z-index: 3;
  min-height: calc(clamp(780px, 100vh, 980px) - var(--header-h));
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
}

.hero-art {
  position: relative;
  z-index: 4;
  align-self: start;
  will-change: transform;
  margin-top: -18px;
}

.hero-art img {
  width: clamp(780px, 55vw, 1100px);
  margin-left: max(0px, -8vw);
  margin-top: 0;
  margin-bottom: -320px;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform;
}

.hero-logo {
  width: clamp(460px, 38vw, 700px);
  height: auto;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

/* -------------------------
   BUTTONS
------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  height: 54px;
  padding: 0 28px;
  border: 1.5px solid var(--color-blue);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    background-color var(--ease),
    color var(--ease),
    border-color var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #dce8f2;
  background: linear-gradient(180deg, #0a3456 0%, #082a46 100%);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: var(--shadow-strong);
}

.btn-secondary {
  color: var(--color-blue);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(8, 42, 70, 0.75);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: #ffffff;
  background: var(--color-blue);
  border-color: var(--color-blue);
  box-shadow: 0 14px 28px rgba(8, 42, 70, 0.12);
}

/* -------------------------
   CTA ROJO
------------------------- */

.hero-cta {
  position: relative;
  overflow: hidden;
  min-height: clamp(180px, 18vw, 240px);
  z-index: 2;
}

.hero-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(20, 0, 0, 0.18), rgba(20, 0, 0, 0.18)),
    url("../img/bg-red-cta01.jpg") center center / cover no-repeat;
}

.hero-cta-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}

.hero-cta-copy {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: right;
}

.hero-cta-copy p {
  margin: 0;
  text-align: center;
  color: var(--color-cta-text);
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.28vw, 1.55rem);
  line-height: 1.34;
  letter-spacing: 0.005em;
  text-wrap: balance;
  max-width: 760px;
}

.hero-cta-flower {
  position: relative;
  z-index: 2;
  will-change: transform;
}

.hero-cta-flower img {
  width: clamp(150px, 13vw, 210px);
  height: auto;
}

/* -------------------------
   PARALLAX READY
------------------------- */

.parallax {
  transform: translate3d(0, 0, 0);
}

/* -------------------------
   TABLET
------------------------- */

@media (max-width: 1100px) {
  .hero {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 26px;
  }

  .hero-content {
    order: 1;
    align-items: center;
    text-align: center;
  }

  .hero-logo {
    width: min(88vw, 600px);
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    order: 0;
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  .hero-art img {
    width: clamp(340px, 48vw, 520px);
    margin-left: 0;
    margin-bottom: -120px;
  }

  .hero-cta-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 18px;
    padding: 22px 0 24px;
  }

  .hero-cta {
    min-height: 220px;
  }
}

/* -------------------------
   MOBILE
------------------------- */

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .brand img {
    width: 116px;
  }

  .hero {
    min-height: auto;
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
  }

  .hero-inner {
    position: relative;
    min-height: 760px;
    padding-top: 24px;
    padding-bottom: 0;
  }

  .hero-content {
    position: relative;
    z-index: 5;
    margin-top: -20px;
  }

  .hero-logo {
    width: min(92vw, 500px);
  }

  .hero-actions {
    gap: 14px;
    margin-top: 24px;
  }

  .btn {
    min-width: 168px;
    height: 50px;
    padding: 0 18px;
    font-size: 0.78rem;
    letter-spacing: 0.11em;
  }

  .hero-art img {
    width: min(48vw, 190px);
    margin-bottom: -10px;
  }

  .hero-cta {
    min-height: 250px;
  }

  .hero-cta-inner {
    padding: 28px 0 28px;
  }

  .hero-cta-copy p {
    font-size: clamp(1.2rem, 4.8vw, 1.6rem);
    line-height: 1.38;
    max-width: 420px;
  }

  .hero-cta-flower img {
    width: min(38vw, 150px);
  }
}

@media (max-width: 520px) {
  .hero {
    background-position: center top;
    background-size: cover;
  }

  .hero-logo {
    width: min(94vw, 460px);
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-art img {
    width: min(44vw, 165px);
    margin-bottom: -8px;
  }

  .hero-cta {
    min-height: 230px;
  }

  .hero-cta-copy p {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
  }

  .hero-cta-flower img {
    width: min(34vw, 130px);
  }
}

/* ==========================
   PROGRAMA
========================== */

.program-section {
  position: relative;
  z-index: 10;
  overflow: hidden;
  padding: 120px 0 110px;
  background-image: url("../img/programa-bg.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 1;
  transform: none;
  visibility: visible;
}

.program-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(33, 10, 73, 0.78) 0%,
    rgba(40, 12, 84, 0.68) 35%,
    rgba(34, 10, 71, 0.45) 100%
  );
  pointer-events: none;
}

.program-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 470px) minmax(420px, 1fr);
  gap: 72px;
  align-items: center;
}

.program-copy {
  max-width: 460px;
}

.program-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8ef2b;
}

.program-title {
  margin: 0 0 22px;
  font-family: "Libre Caslon Display", serif;
  font-size: clamp(38px, 3.6vw, 56px);
  line-height: 0.9;
  color: #f7e9cf;
}

.program-text {
  margin: 0 0 18px;
  max-width: 420px;
  font-size: 20px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.program-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-width: 290px;
  padding: 18px 34px;
  background: #ff9800;
  color: #2c1862;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    box-shadow 0.35s ease;
}

.program-btn:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}

.program-carousel-area {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 720px;
}

.program-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(320px, 34vw, 500px);
  border-radius: 36px;
  overflow: hidden;
  background: #3f227b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  transition:
    transform 0.7s cubic-bezier(.22,.61,.36,1),
    opacity 0.7s cubic-bezier(.22,.61,.36,1),
    filter 0.7s cubic-bezier(.22,.61,.36,1);
}

.program-card img {
  display: block;
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.program-card-body {
  position: relative;
  padding: 34px 36px 30px;
  min-height: 160px;
  background: #3f227b;
}

.program-card-body h3 {
  margin: 0;
  font-family: "Libre Caslon Display", serif;
  font-size: clamp(34px, 2.5vw, 56px);
  line-height: 0.95;
  color: #f7f1e8;
}

.program-card-date {
  position: absolute;
  left: 34px;
  top: 438px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: #1d1245;
}

.program-date-lime {
  background: #d9f218;
}

.program-date-pink {
  background: #ff4f97;
  color: #fff;
}

.program-date-cyan {
  background: #45d6ff;
}

.program-date-orange {
  background: #ff9c2f;
}

.program-card.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: blur(0);
  z-index: 4;
  pointer-events: auto;
}

.program-card.next {
  transform: translate(-10%, -50%) scale(0.86);
  opacity: 0.35;
  filter: blur(7px);
  z-index: 2;
}

.program-card.prev {
  transform: translate(-92%, -50%) scale(0.86);
  opacity: 0.28;
  filter: blur(7px);
  z-index: 1;
}

.program-card.is-hidden-right {
  transform: translate(16%, -50%) scale(0.78);
  opacity: 0;
  filter: blur(12px);
  z-index: 0;
}

.program-card.is-hidden-left {
  transform: translate(-110%, -50%) scale(0.78);
  opacity: 0;
  filter: blur(12px);
  z-index: 0;
}

.program-nav {
  position: absolute;
  right: 40px;
  bottom: 110px;
  z-index: 8;
  display: flex;
  gap: 18px;
}

.program-arrow {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(246, 234, 204, 0.9);
  background: transparent;
  color: #f6eacc;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    opacity 0.3s ease;
}

.program-arrow span {
  font-size: 40px;
  line-height: 1;
  transform: translateY(-2px);
}

.program-arrow:hover {
  transform: translateY(-2px);
  background: rgba(246, 234, 204, 0.08);
}

.program-hint {
  display: none;
}

/* ==========================
   TABLET
========================== */

@media (max-width: 1180px) {
  .program-wrap {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .program-copy {
    max-width: 700px;
  }

  .program-carousel-area {
    min-height: 660px;
  }

  .program-carousel {
    max-width: 760px;
    height: 660px;
  }

  .program-card img {
    height: 430px;
  }

  .program-card-date {
    top: 398px;
  }

  .program-nav {
    right: 28px;
    bottom: 84px;
  }
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 767px) {
  .program-section {
    padding: 84px 0 56px;
    background-attachment: scroll;
  }

  .program-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .program-copy {
    max-width: 100%;
    position: relative;
    z-index: 3;
  }

  .program-eyebrow {
    display: inline-block;
    font-size: 13px;
    margin-bottom: 12px;
  }

  .program-title {
    font-size: clamp(40px, 9vw, 50px);
    line-height: 0.94;
    margin: 0 0 18px;
  }

  .program-text {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.45;
    margin: 0 0 18px;
  }

  .program-btn {
    display: inline-flex;
    width: 100%;
    min-width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
    margin-top: 8px;
    position: relative;
    z-index: 3;
  }

  .program-carousel-area {
    position: relative;
    z-index: 2;
    min-height: auto;
    display: block;
    margin-top: 6px;
    overflow: hidden;
  }

  .program-carousel {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px 8px;
  }

  .program-carousel::-webkit-scrollbar {
    display: none;
  }

  .program-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto;
    flex: 0 0 82%;
    width: 82%;
    max-width: 320px;
    min-width: 320px;
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition:
      transform 0.35s cubic-bezier(.22,.61,.36,1),
      box-shadow 0.35s cubic-bezier(.22,.61,.36,1);
  }

  .program-card:active {
    transform: scale(0.985) !important;
  }

  .program-card img {
    display: block;
    width: 100%;
    height: 290px;
    object-fit: cover;
  }

  .program-card-body {
    position: relative;
    padding: 22px 22px 20px;
    min-height: 116px;
  }

  .program-card-body h3 {
    margin: 0;
    font-size: clamp(26px, 6.8vw, 38px);
    line-height: 0.95;
  }

  .program-card-date {
    left: 18px;
    top: 258px;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .program-card.active,
  .program-card.next,
  .program-card.prev,
  .program-card.is-hidden-left,
  .program-card.is-hidden-right {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .program-nav,
  .program-arrow {
    display: none !important;
  }

  .program-hint {
    display: block;
    margin: 10px 0 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
  }
}


/* ==========================
   TIMELINE
========================== */

/* SECTION */
.timeline-section {
  background-color: #e2dfd9;
  background-image: url("../img/bg-texture.jpg");

  background-repeat: repeat-y; /* 👈 solo vertical */
  background-position: top center; /* centrado horizontal */
  background-size: 100% auto; /* ocupa todo el ancho */

  padding: 100px 20px;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* HEADER */
.timeline-header {
  text-align: center;
  margin-bottom: 80px;
}

.timeline-header .eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2e7d5b;
}

.timeline-header h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 42px;
  margin: 10px 0;
}

.timeline-header p {
  max-width: 600px;
  margin: 0 auto;
  color: #555;
}

/* TIMELINE */
.timeline {
  position: relative;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 3px;
  background: #b8b4ad;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ITEM */
.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;

  opacity: 0;
  transform: translate3d(0, 90px, 0) scale(0.96);
  filter: blur(8px);
  transition:
    opacity 0.9s cubic-bezier(.22, .61, .36, 1),
    transform 0.9s cubic-bezier(.22, .61, .36, 1),
    filter 0.9s cubic-bezier(.22, .61, .36, 1);
  will-change: transform, opacity, filter;
}

.timeline-item.show {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

/* CONTENT (GLASS) */
.timeline-content {
  position: relative;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  padding: 20px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease,
    background 0.5s ease;
}

.timeline-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

/* HOVER */
.timeline-content:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* IMAGE */
.timeline-content img {
  width: 100%;
  display: block;
  border-radius: 12px;
  margin-bottom: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* TEXT */
.timeline-content h3 {
  margin: 10px 0;
  font-size: 22px;
  position: relative;
  z-index: 1;
}

.timeline-content p {
  margin: 12px 0 0;
  color: #23384d;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

/* LABELS */
.timeline-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* COLORS */
.label-blue { background: #1e4a6d; }
.label-purple { background: #4a2a6a; }
.label-yellow { background: #8c6a12; }
.label-green { background: #1f5a3a; }
.label-orange { background: #8a3c12; }
.label-red { background: #7a1e1e; }

/* DOT */
.timeline-item::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  right: -7px;
  background: #fff;
  border: 3px solid #b8b4ad;
  top: 30px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  left: -7px;
  right: auto;
}

/* MOBILE */
@media (max-width: 768px) {

  .timeline-section {
    padding: 80px 16px;
  }

  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 20px;
    transform: translate3d(0, 70px, 0) scale(0.97);
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 13px;
    right: auto;
  }

  .timeline-content {
    padding: 18px;
    border-radius: 16px;
  }

  .timeline-content h3 {
    font-size: 20px;
  }
}

/* ==========================
   GALLERY
========================== */

.gallery-section {
  padding: 100px 20px;

  background-image: url("../img/galeria-bg.jpg"); /* tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gallery-container {
  column-count: 4;
  column-gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-container img {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 12px;
  display: block;
  break-inside: avoid;

  transition: transform 0.4s ease, filter 0.4s ease;
  cursor: pointer;
}

.gallery-container img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* ==========================
   HEADER (IMPORTANTE: blanco por fondo oscuro)
========================== */

.gallery-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  color: #ffffff;
}

.gallery-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.gallery-header h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;

  color: #00e9c3;
}

.gallery-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
}

/* ==========================
   LIGHTBOX
========================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* botón cerrar */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  font-family: sans-serif;
}

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

@media (max-width: 1024px) {
  .gallery-container {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .gallery-container {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    column-count: 1;
  }
}


/* ==========================
   CTA INSTITUCIONAL
========================== */

.cta-institucional {
  background: #ffffff;
  padding: 60px 20px 70px;
}

.cta-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.cta-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* LOGOS */

.cta-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.cta-logos img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.cta-logos img:hover {
  opacity: 1;
}

.program-card-tag {
  position: absolute;
  left: 34px;
  top: 438px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d1245;
}

.program-tag-lime {
  background: #d9f218;
}

.program-tag-pink {
  background: #ff4f97;
  color: #fff;
}

.program-tag-cyan {
  background: #45d6ff;
}

.program-tag-orange {
  background: #ff9c2f;
}

.program-tag-purple {
  background: #b58cff;
}

.program-tag-gold {
  background: #f2d38b;
}

.program-card-body {
  position: relative;
  padding: 34px 36px 28px;
  min-height: 210px;
  background: #3f227b;
}

.program-card-body h3 {
  margin: 0 0 14px;
  font-family: "Libre Caslon Display", serif;
  font-size: clamp(30px, 2.4vw, 50px);
  line-height: 0.95;
  color: #f7f1e8;
}

.program-card-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(247, 241, 232, 0.82);
  max-width: 90%;
}

/* ==========================
   PROGRAM CAROUSEL ARROWS
========================== */

.program-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.program-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: white;
  font-size: 18px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.25s ease;
}

.program-arrow:hover {
  background: white;
  color: #2b1c5a;
  border-color: white;
}

/* ==========================
   PROGRAM NAV POSITION FIX
========================== */

.program-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;

  position: static; /* 🔴 esto es clave */
}

/* Flechas */
.program-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: white;
  font-size: 20px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.25s ease;
}

.program-arrow:hover {
  background: white;
  color: #2b1c5a;
  border-color: white;
}

@media (max-width: 767px) {
  .program-card-tag {
    top: 240px; /* ajusta según tu imagen */
    left: 18px;
  }
}