/* =========================================================
   C-SUITE Academy — Página de diplomados
   Cargar después de css/style.css
   ========================================================= */

.diplomados-page {
  color: var(--text, #0f2340);
  background: #f4f7fa;
  font-family: var(--sans, "Montserrat", Arial, sans-serif);
}

.diplomados-page *,
.diplomados-page *::before,
.diplomados-page *::after {
  box-sizing: border-box;
}

.diplomados-page #catalogo {
  scroll-margin-top: 105px;
}

.diplomas-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold-2, #f2cd7a);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
}


/* =========================================================
   PORTADA + CATÁLOGO UNIFICADOS
   ========================================================= */

.diplomas-overview {
  position: relative;
  min-height: calc(100vh - 100px);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy, #071f3f);
}

.diplomas-overview-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.diplomas-overview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.diplomas-overview::before {
  background: linear-gradient(
    110deg,
    rgba(32, 18, 7, .55) 0%,
    rgba(83, 50, 12, .40) 42%,
    rgba(14, 30, 43, .25) 72%,
    rgba(7, 31, 63, .35) 100%
  );
}

.diplomas-overview::after {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(5, 19, 34, .35)
  );
}

.diplomas-hero {
  position: relative;
  display: grid;
  min-height: 650px;
  overflow: visible;
  color: #ffffff;
  background: transparent;
}

.diplomas-hero::before,
.diplomas-hero::after {
  content: none;
}

.diplomas-hero-content {
  display: flex;
  min-height: 650px;
  align-items: flex-start;
  padding-top: clamp(100px, 9vw, 130px);
  padding-bottom: 240px;
}

.diplomas-hero-copy {
  max-width: 760px;
}

.diplomas-hero h1 {
  max-width: 780px;
  margin: 0 0 22px;
  color: #ffffff;
  font-family: var(--serif, "DM Serif Display", Georgia, serif);
  font-size: clamp(3rem, 5.2vw, 5rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.04;
  text-wrap: balance;
}

.diplomas-hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.7;
}

.diplomas-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.diplomas-hero-actions .btn {
  min-height: 50px;
}

.diplomas-hero .btn-outline {
  color: #ffffff;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .55);
}

.diplomas-hero .btn-outline:hover {
  color: var(--navy, #071f3f);
  background: #ffffff;
  border-color: #ffffff;
}

.diplomas-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 23px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.diplomas-hero-proof li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .84);
  font-size: .8rem;
  font-weight: 600;
}

.diplomas-hero-proof svg {
  width: 17px;
  height: 17px;
  color: var(--gold-2, #f2cd7a);
  stroke-width: 1.8;
}


/* =========================================================
   CATÁLOGO
   ========================================================= */

.diploma-catalog {
  position: relative;
  z-index: 3;
  margin-top: -610px;
  padding: 0 0 clamp(74px, 7vw, 96px);
  background: transparent;
}

.diploma-catalog > .container {
  position: relative;
  padding: clamp(30px, 4vw, 48px);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, .86),
    rgba(255, 255, 255, .7)
  );
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 24px;
  box-shadow:
    0 30px 75px rgba(4, 18, 35, .3),
    inset 0 1px 0 rgba(255, 255, 255, .78);
    backdrop-filter: none;
-webkit-backdrop-filter: none;
  /* backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%); */
}

.catalog-header {
  max-width: 790px;
  margin-bottom: 25px;
}

.catalog-header .diplomas-eyebrow {
  color: #9b6b1c;
}

.catalog-header h1 {
  margin: 0 0 10px;
  color: var(--navy, #071f3f);
  font-family: var(--serif, "DM Serif Display", Georgia, serif);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.catalog-header p {
  margin: 0;
  color: var(--muted, #65738a);
  line-height: 1.65;
}

.catalog-tabs {
  display: flex;
  gap: 9px;
  padding: 8px;
  overflow-x: auto;
  background: rgba(241, 244, 248, .76);
  border: 1px solid rgba(7, 31, 63, .09);
  border-radius: 13px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scrollbar-width: thin;
}

.catalog-tabs button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 19px;
  color: #506078;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease,
    border-color .2s ease, box-shadow .2s ease;
}

.catalog-tabs button:hover {
  color: var(--navy, #071f3f);
  border-color: rgba(188, 149, 76, .65);
}

.catalog-tabs button[aria-selected="true"] {
  color: #ffffff;
  background: var(--navy, #071f3f);
  border-color: var(--navy, #071f3f);
  box-shadow: 0 8px 18px rgba(7, 31, 63, .18);
}

.catalog-panels {
  margin-top: 20px;
}

.catalog-panel[hidden] {
  display: none;
}

.catalog-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  animation: catalog-reveal .28s ease both;
}

.catalog-program {
  display: flex;
  min-width: 0;
  min-height: 245px;
  flex-direction: column;
  padding: 27px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, .84),
    rgba(249, 251, 253, .7)
  );
  border: 1px solid var(--line, #dfe5ee);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(7, 31, 63, .05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .22s ease, border-color .22s ease,
    box-shadow .22s ease;
}

.catalog-program:hover {
  transform: translateY(-3px);
  border-color: rgba(188, 149, 76, .5);
  box-shadow: 0 16px 34px rgba(7, 31, 63, .09);
}

.diploma-family {
  display: block;
  margin-bottom: 8px;
  color: #9b6b1c;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.catalog-program h3 {
  margin: 0 0 10px;
  color: var(--navy, #071f3f);
  font-family: var(--serif, "DM Serif Display", Georgia, serif);
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  font-weight: 400;
  line-height: 1.18;
}

.catalog-program-copy p {
  margin: 0;
  color: var(--muted, #65738a);
  font-size: .88rem;
  line-height: 1.65;
}

.catalog-program-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--line, #dfe5ee);
}

.diploma-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.diploma-meta span {
  display: inline-flex;
  padding: 6px 9px;
  color: #4f6078;
  background: #f1f4f7;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 650;
  white-space: nowrap;
}

.catalog-program-buttons {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.diploma-link,
.diploma-book-button,
.diploma-modal-secondary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 10px 13px;
  border-radius: 8px;
  font-family: var(--sans, "Montserrat", Arial, sans-serif);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease,
    border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.diploma-link {
  color: var(--navy, #071f3f);
  background: #ffffff;
  border: 1px solid rgba(7, 31, 63, .25);
}

.diploma-link:hover {
  color: var(--navy, #071f3f);
  background: #f4f7fa;
  border-color: var(--navy, #071f3f);
}

.diploma-book-button {
  color: var(--navy, #071f3f);
  background: linear-gradient(135deg, #e7c36f, var(--gold, #bc954c));
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(155, 107, 28, .18);
}

.diploma-book-button:hover {
  color: var(--navy, #071f3f);
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(155, 107, 28, .25);
}

.catalog-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
  padding: 25px 28px;
  background: #f7f8fb;
  border: 1px solid var(--line, #dfe5ee);
  border-left: 4px solid var(--gold, #bc954c);
  border-radius: 13px;
}

.catalog-closing > div {
  max-width: 730px;
}

.catalog-closing > div > span {
  display: block;
  margin-bottom: 5px;
  color: var(--navy, #071f3f);
  font-size: .78rem;
  font-weight: 800;
}

.catalog-closing p {
  margin: 0;
  color: var(--muted, #65738a);
  font-size: .88rem;
  line-height: 1.6;
}


/* =========================================================
   MODAL
   ========================================================= */

.diploma-modal {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--text, #0f2340);
  background: transparent;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(2, 16, 35, .32);
}

.diploma-modal::backdrop {
  background: rgba(3, 18, 39, .72);
  backdrop-filter: blur(5px);
}

.diploma-modal[open] {
  animation: diploma-modal-in .22s ease-out;
}

.diploma-modal-card {
  position: relative;
  padding: clamp(28px, 5vw, 46px);
  background:
    linear-gradient(135deg, rgba(188, 149, 76, .1), transparent 42%),
    #ffffff;
  border-top: 5px solid var(--gold, #bc954c);
}

.diploma-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: var(--navy, #071f3f);
  background: #f1f4f7;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.diploma-modal-close:hover {
  background: #e5eaf0;
}

.diploma-modal-eyebrow {
  display: block;
  max-width: calc(100% - 52px);
  margin-bottom: 10px;
  color: #9b6b1c;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.diploma-modal h2 {
  max-width: 570px;
  margin: 0 0 13px;
  color: var(--navy, #071f3f);
  font-family: var(--serif, "DM Serif Display", Georgia, serif);
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  font-weight: 400;
  line-height: 1.08;
}

#diploma-modal-description {
  margin: 0;
  color: var(--muted, #65738a);
  line-height: 1.65;
}

.diploma-modal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 18px;
}

.diploma-modal-details > div {
  padding: 16px 17px;
  background: #f5f7fa;
  border: 1px solid var(--line, #dfe5ee);
  border-radius: 11px;
}

.diploma-modal-details span,
.diploma-modal-details strong {
  display: block;
}

.diploma-modal-details span {
  margin-bottom: 5px;
  color: #758298;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.diploma-modal-details strong {
  color: var(--navy, #071f3f);
  font-size: .9rem;
  line-height: 1.4;
}

.diploma-modal-note {
  margin: 0;
  padding: 13px 15px;
  color: #5a687e;
  background: #fffaf0;
  border-left: 3px solid var(--gold, #bc954c);
  border-radius: 6px;
  font-size: .82rem;
  line-height: 1.55;
}

.diploma-modal-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
}

.diploma-modal-actions .diploma-book-button {
  min-height: 47px;
  padding-right: 20px;
  padding-left: 20px;
  font-size: .82rem;
}

.diploma-modal-secondary {
  min-height: 47px;
  color: var(--navy, #071f3f);
  background: #ffffff;
  border: 1px solid rgba(7, 31, 63, .22);
}

.diploma-modal-secondary:hover {
  background: #f4f7fa;
  border-color: var(--navy, #071f3f);
}


/* =========================================================
   ACCESIBILIDAD Y ANIMACIONES
   ========================================================= */

.diplomados-page button:focus-visible,
.diplomados-page a:focus-visible {
  outline: 3px solid rgba(242, 205, 122, .88);
  outline-offset: 3px;
}

@keyframes catalog-reveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes diploma-modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .catalog-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .diplomas-hero,
  .diplomas-hero-content {
    min-height: 620px;
  }

  .diplomas-hero-content {
    align-items: flex-end;
    padding-top: 88px;
    padding-bottom: 132px;
  }

  .diplomas-overview::before {
    background: linear-gradient(
      180deg,
      rgba(54, 35, 12, .42) 0%,
      rgba(37, 37, 35, .62) 42%,
      rgba(5, 23, 47, .9) 100%
    );
  }

  .diplomas-overview-media img {
    object-position: 62% center;
  }

  .diplomas-hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }

  .diploma-catalog {
    margin-top: -110px;
  }

 .diploma-catalog > .container {
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
}
  .catalog-program {
    min-height: auto;
  }

  .catalog-program-action,
  .catalog-closing {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-program-buttons {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .diplomas-hero,
  .diplomas-hero-content {
    min-height: 710px;
  }

  .diplomas-hero-content {
    padding-bottom: 110px;
  }

  .diploma-catalog {
    margin-top: -70px;
  }

  .diplomas-hero-actions,
  .diplomas-hero-proof,
  .catalog-program-buttons,
  .diploma-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .diplomas-hero-actions .btn,
  .catalog-closing .btn,
  .catalog-program-buttons .diploma-link,
  .catalog-program-buttons .diploma-book-button,
  .diploma-modal-actions .diploma-book-button,
  .diploma-modal-secondary {
    width: 100%;
  }

  .diplomas-hero-proof {
    align-items: flex-start;
    gap: 9px;
  }

  .catalog-program,
  .catalog-closing {
    padding: 23px;
  }

  .diploma-modal-details {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-panel,
  .diploma-modal[open] {
    animation: none;
  }
}
