@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --verde-oscuro: #00733E;
  --verde-medio: #2E8B57;
  --amarillo: #FFC300;
  --morado: #320C71;
  --coral: #E8623A;
  --azul-marino: #1A2A4A;
  --azul-cielo: #4B93FF;
  --azul-footer: #2D569C;
  --blanco: #FFFFFF;
  --gris-claro: #F5F5F5;
  --texto: #1A1A2E;
  --font-titulo: 'Poppins', 'Segoe UI', sans-serif;
  --font-cuerpo: 'Inter', 'Helvetica Neue', sans-serif;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-cuerpo);
  color: var(--texto);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--morado);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  transition: top .3s;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  padding: 10px 20px;
}

.header-left {
  display: flex;
  align-items: center;
}

/*texto de aírantes*/
.amarillo-font {
  color: var(--amarillo);
  font-weight: bold;
}

/* Escudos pegados */
.escudos {
  display: flex;
  align-items: center;
  gap: 0;
  /* sin espacio */
}

.escudos img {
  height: 60px;
  width: auto;
  display: block;
}

/* Logo separado */
.logo-macoo img {
  height: 60px;
  width: auto;
  margin-left: 8px;
}

/* ══════════════════ GLASSMORPHISM ══════════════════ */
.glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-white {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-green {
  background: rgba(27, 107, 58, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.glass-purple {
  background: rgba(61, 26, 110, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* ══════════════════ HEADER ══════════════════ */


.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-institucional {
  display: flex;
  gap: 6px;
}

.logo-institucional .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}

.logo-uabc {
  background: var(--verde-oscuro);
}

.logo-iio {
  background: var(--coral);
}

.logo-macoo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-macoo span {
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--morado);
}

.logo-macoo .logo-net {
  width: 44px;
  height: 44px;
}

.logo-macoo .logo-net svg {
  width: 100%;
  height: 100%;
}

/* ══════════════════ FIXED NAV BUTTONS ══════════════════ */
.fixed-nav-btns {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.btn-menu {
  background: var(--morado);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border: none;
  border-radius: 50px 50px 0px 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: .95rem;
  font-family: var(--font-titulo);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(61, 26, 110, 0.35);
  min-width: 140px;
  text-align: center;
}

.btn-menu:hover {
  background: #5a2d9e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 26, 110, 0.45);
}

.btn-aplica {
  background: var(--amarillo);
  color: var(--morado);
  border: none;
  padding: 14px 36px;
  border: none;
  border-radius: 50px 50px 0px 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: .95rem;
  font-family: var(--font-titulo);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 195, 0, 0.35);
  min-width: 140px;
  text-align: center;
}

.btn-aplica:hover {
  background: #e6b000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 195, 0, 0.45);
}

/* ══════════════════ DRAWER ══════════════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.drawer {
  position: fixed;
  top: 0;
  left: -340px;
  width: 320px;
  height: 100vh;
  height: 100dvh;
  background: #e0e0e0;
  z-index: 201;
  transition: left .35s cubic-bezier(.4, 0, .2, 1);
  padding: 0;
  overflow-y: auto;
  box-shadow: 4px 0 30px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
}

.drawer.open {
  left: 0;
}

/* Drawer header: logo + close */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px 20px;
  background: #fff;
  border-bottom: none;
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--texto);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 6px;
}

.drawer-close:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Navigation links */
.drawer-nav {
  padding: 16px 0 32px;
  flex: 1;
}

.drawer-link {
  display: block;
  padding: 18px 28px;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--morado);
  transition: background .2s, color .2s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.drawer-link:hover {
  background: rgba(50, 12, 113, 0.08);
  color: var(--morado);
}

.drawer-link.active {
  background: rgba(50, 12, 113, 0.12);
  color: var(--morado);
}

/* Collapsible group */
.drawer-group {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.drawer-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--morado);
  text-align: left;
  transition: background .2s;
}

.drawer-group-toggle:hover {
  background: rgba(50, 12, 113, 0.08);
}

.drawer-group-toggle.active {
  background: rgba(50, 12, 113, 0.12);
}

.drawer-toggle-icon {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--morado);
  min-width: 20px;
  text-align: center;
  transition: transform .25s ease;
  line-height: 1;
}

/* Submenu (hidden by default) */
.drawer-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s cubic-bezier(.4, 0, .2, 1), padding .3s ease;
  background: rgba(0, 0, 0, 0.03);
}

.drawer-submenu.open {
  max-height: 200px;
}

.drawer-sub-link {
  display: block;
  padding: 14px 28px 14px 48px;
  font-family: var(--font-cuerpo);
  font-weight: 500;
  font-size: .95rem;
  color: var(--morado);
  text-decoration: none;
  transition: background .2s, color .2s;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.drawer-sub-link:hover {
  background: rgba(50, 12, 113, 0.08);
}

.drawer-sub-link.active {
  background: rgba(50, 12, 113, 0.14);
  font-weight: 600;
}


/* ══════════════════ HERO ══════════════════ */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  overflow: hidden;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-gradient {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 420px;
  flex-shrink: 0;
}

.hero-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 40px;
  border-radius: var(--radius);
  /*box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);*/
}

.hero-card h1,
.hero-card h2 {
  font-family: var(--font-titulo);
  color: var(--morado);
  margin-bottom: 14px;
  font-size: 1.6rem;
  line-height: 1.3;
}

.hero-card h2.morado {
  color: var(--morado);
}

.hero-card p {
  font-size: .95rem;
  line-height: 1.65;
  color: #333;
}

.hero-images {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-images img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.hero-img-placeholder {
  border-radius: var(--radius);
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

/* ══════════════════ HERO PLAN DE ESTUDIO ══════════════════ */
.hero-plan {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 20px 20px;
  position: relative;
}

.hero-plan-img {
  flex: 0 0 55%;
  max-width: 55%;
  position: relative;
  z-index: 1;
}

.hero-plan-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

.hero-plan-card {
  position: relative;
  z-index: 2;
  margin-left: -60px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  padding: 36px 38px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  max-width: 480px;

}

.hero-plan-card h2 {
  font-family: var(--font-titulo);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--morado) !important;
  margin-bottom: 14px;
  line-height: 1.3;
}

.hero-plan-card p {
  font-size: .93rem;
  line-height: 1.7;
  color: #333;
}

@media (max-width: 768px) {
  .hero-plan {
    flex-direction: column;
    gap: 0;
  }

  .hero-plan-img {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero-plan-card {
    margin-left: 0;
    margin-top: -30px;
    max-width: 90%;
    align-self: center;
  }
}

/* ══════════════════ BUTTONS ══════════════════ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: .95rem;
  transition: var(--transition);
}

.btn-verde {
  background: var(--verde-oscuro);
  color: #fff;
  border: none;
  border-radius: 50px 50px 50px 0px;
}

.btn-verde:hover {
  background: var(--verde-medio);
  transform: translateY(-1px);
}

.btn-amarillo {
  background: var(--morado);
  color: var(--blanco);
  border: none;
  border-radius: 50px 50px 50px 0px;
}

.btn-amarillo:hover {
  background: #290241;
  transform: translateY(-1px);
}

/* ══════════════════ SECTIONS ══════════════════ */
.section-padding {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;

}

.section-title {
  font-family: var(--font-titulo);
  font-size: 1.8rem;
  color: var(--morado);
  margin-bottom: 24px;
}

.section-title.verde {
  color: var(--blanco);
}


.section-title.morado {
  color: var(--morado);
}

/* Objetivo */
.objetivo-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 400px;
}

.objetivo-img-container {
  width: 75%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.objetivo-img-container img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

.objetivo-glass-card {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 38px 36px;
  max-width: 420px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.objetivo-glass-card p {
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 0.93rem;
  color: #222;
}


/* Banner morado */
.banner-morado {
  background: var(--morado);
  color: #fff;
  padding: 40px 20px;
}

.banner-morado .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.banner-morado h3 {
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  min-width: 160px;
}

.banner-morado p {
  line-height: 1.7;
  font-size: .95rem;
  flex: 1;
}

/* LGAC */
.lgac-section {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.lgac-cards {
  display: flex;
  gap: 16px;
  flex: 1;
  min-width: 280px;
}

.lgac-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  flex: 1;
  transition: var(--transition);
}

.lgac-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

.lgac-card .card-img {
  height: 140px;
}

.lgac-card p {
  padding: 16px;
  font-size: .9rem;
  font-weight: 600;
}

.lgac-text {
  flex: 1;
  min-width: 280px;
}

.lgac-text h3 {
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.lgac-text p {
  line-height: 1.6;
}

/* Quick cards */
.quick-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quick-card {
  border-radius: 20px;
  padding: 30px 28px 64px;
  position: relative;
  min-height: 200px;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.quick-card h3 {
  font-family: var(--font-titulo);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.quick-card p {
  font-size: .9rem;
  line-height: 1.65;
  opacity: 0.92;
  max-width: 85%;
}

.quick-card .card-icon {
  position: absolute;
  top: 24px;
  right: 24px;
}

.quick-card .card-icon-img {
  width: 44px;
  height: 44px;
  opacity: 0.55;
  filter: brightness(0) invert(1);
}

.quick-card .arrow-link {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.quick-card .arrow-link .arrow-icon {
  width: 16px;
  height: 16px;
}

.quick-card .arrow-link:hover {
  transform: scale(1.1);
}

.quick-card.green {
  background: #007B3E;
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 123, 62, 0.2);
}

.quick-card.green .arrow-link {
  background: #005A2C;
}

.quick-card.blue {
  background: #5A9EF5;
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(90, 158, 245, 0.2);
}

.quick-card.blue .arrow-link {
  background: #3D7ED8;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.photo-grid .photo-item {
  border-radius: var(--radius);
  min-height: 180px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.photo-grid .photo-item:hover {
  transform: scale(1.02);
}

/* Video */
.video-placeholder {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;

  border-radius: var(--radius);
  overflow: hidden;

  /* 🔥 proporción video */
  aspect-ratio: 16 / 9;

  box-shadow: var(--shadow-card);
}

/* Imagen del video */
.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botón play (ajustado a tu estilo glass) */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 60px;
  height: 60px;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);

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

  /* 🔥 quitamos animación */
  transition: none;
}

/* 📱 móvil */
@media (max-width: 768px) {
  .video-placeholder {
    max-width: 100%;
  }

  .play-btn {
    width: 55px;
    height: 55px;
  }

  .play-btn svg {
    width: 22px;
    height: 22px;
  }
}

.play-btn {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: var(--transition);
  cursor: pointer;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-btn svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* ══════════════════ HERO EGRESO ══════════════════ */
.hero-egreso {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 60px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: auto;
  position: relative;
  overflow: visible;
}

.hero-egreso-left {
  flex: 1;
  min-width: 0;
  max-width: 480px;
  position: relative;
  z-index: 2;
}

.hero-egreso-title {
  font-family: var(--font-titulo);
  font-size: 2rem;
  font-weight: 800;
  color: var(--morado);
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-egreso-card {
  background: rgba(245, 245, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-left: 30px;
}

.hero-egreso-card p {
  font-size: .93rem;
  line-height: 1.7;
  color: #333;
  margin: 0;
}

.hero-egreso-img {
  flex: 1;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-egreso-img img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .hero-egreso {
    flex-direction: column;
    padding: 30px 16px;
    gap: 24px;
  }

  .hero-egreso-left {
    max-width: 100%;
  }

  .hero-egreso-card {
    margin-left: 0;
  }

  .hero-egreso-img {
    max-width: 100%;
  }

  .hero-egreso-title {
    font-size: 1.6rem;
  }
}

/* ══════════════════ PERFIL EGRESO ══════════════════ */
.banner-verde {
  background: var(--verde-oscuro);
  color: #fff;
  padding: 40px 20px;
}

.banner-verde .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.banner-verde h3 {
  font-family: var(--font-titulo);
  font-size: 1.4rem;
  min-width: 180px;
}

.banner-verde p {
  line-height: 1.7;
  flex: 1;
}

.competencias-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.competencias-sidebar-title {
  font-family: var(--font-titulo);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--morado);
  min-width: 160px;
  max-width: 180px;
  flex-shrink: 0;
  padding-top: 160px;
}

.competencias-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
}

.competencia-card {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.competencia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.competencia-card .icon {
  width: 60px;
  height: 60px;
  background: var(--amarillo);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.competencia-card .icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.competencia-card .icon img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.competencia-card h4 {
  font-family: var(--font-titulo);
  margin-bottom: 10px;
  color: var(--morado);
}

.competencia-card p {
  font-size: .88rem;
  line-height: 1.6;
  color: #555;
}

/* Perfil Egreso Split Layout */
.perfil-egreso-split {
  display: flex;
  gap: 0;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  min-height: 480px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.perfil-egreso-imagen {
  flex: 1;
  position: relative;
  min-width: 0;
}

.perfil-egreso-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.perfil-egreso-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
}

.perfil-egreso-caption p {
  font-size: .95rem;
  line-height: 1.5;
  margin: 0;
}

.perfil-egreso-texto {
  flex: 1;
  background: rgba(245, 245, 245, 0.95);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.perfil-egreso-texto h3 {
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  color: var(--morado);
  margin-bottom: 20px;
  font-weight: 700;
}

.perfil-egreso-texto p {
  line-height: 1.7;
  font-size: .93rem;
  color: #333;
}

@media (max-width: 768px) {
  .competencias-layout {
    flex-direction: column;
    gap: 20px;
  }

  .competencias-sidebar-title {
    max-width: 100%;
  }

  .perfil-egreso-split {
    flex-direction: column;
    min-height: auto;
  }

  .perfil-egreso-imagen {
    min-height: 300px;
  }
}

.oportunidades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.oportunidad-card {
  background: var(--morado);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}



.oportunidad-card:hover {
  transform: translateY(-3px);
  background: rgba(61, 26, 110, 0.95);
}

.oportunidad-card-yellow {
  background: var(--amarillo);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--morado);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.oportunidad-card-yellow:hover {
  transform: translateY(-3px);
  background: #ba8f01;
}

.oportunidad-card .num {
  font-family: var(--font-titulo);
  font-size: 2rem;
  font-weight: 800;
  opacity: .6;
  margin-bottom: 8px;
}

.oportunidad-card-yellow .num-yellow {
  font-family: var(--font-titulo);
  font-size: 2rem;
  font-weight: 800;
  opacity: .6;
  margin-bottom: 8px;
}

.oportunidad-card p {
  font-size: .88rem;
  line-height: 1.5;
}

/* ══════════════════ HERO ASPIRANTES ══════════════════ */
.hero-aspirantes-img {
  position: relative;
  width: 100%;
  min-height: 50vh;
  overflow: hidden;
}

.hero-aspirantes-img .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-aspirantes-img .hero-bg-gradient {
  width: 100%;
  height: 100%;
}

.hero-aspirantes-card-wrapper {
  position: relative;
  z-index: 3;
  max-width: 380px;
  margin-top: -80px;
  padding: 0 0 0 40px;
}

.hero-aspirantes-card-wrapper .hero-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 30px 28px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-aspirantes-card-wrapper .hero-card h1 {
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--morado);
}

.hero-aspirantes-card-wrapper .hero-card p {
  font-size: .88rem;
  line-height: 1.55;
  color: #222;
}

@media (max-width: 768px) {
  .hero-aspirantes-img {
    min-height: 35vh;
  }

  .hero-aspirantes-card-wrapper {
    max-width: 100%;
    margin-top: -60px;
    padding: 0 16px;
  }
}

/* ══════════════════ ASPIRANTES ══════════════════ */
.steps-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 20px;
  text-align: center;
}

.step-item {
  max-width: 160px;
}

.step-item .step-num {
  font-family: var(--font-titulo);
  font-size: 1.2rem;
  color: var(--morado);
  font-weight: 700;
}

.step-item .step-icon {
  width: 60px;
  height: 60px;
  margin: 12px auto;
  background: rgba(245, 245, 245, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item .step-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--morado);
}

.step-item .step-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.step-item .step-label {
  font-weight: 600;
  font-size: .85rem;
}

.banner-convocatoria {
  background: var(--amarillo);
  padding: 30px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 650px;
  width: 100%;
  margin: 30px auto;
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.3);
  box-sizing: border-box;
  overflow: hidden;
}

.banner-convocatoria h3 {
  font-family: var(--font-titulo);
  font-size: 2rem;
  color: var(--morado);
  text-transform: uppercase;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.convocatoria-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

.requisitos-card {
  background: var(--verde-oscuro);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(27, 107, 58, 0.2);
}

.requisitos-card h3 {
  font-family: var(--font-titulo);
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-align: center;
}

.requisitos-card ol {
  padding-left: 20px;
}

.requisitos-card li {
  margin-bottom: 14px;
  line-height: 1.6;
  font-size: .93rem;
}

.requisitos-card a {
  color: var(--amarillo);
  text-decoration: underline;
}

/* ══════════════════ PLAN DE ESTUDIO ══════════════════ */
.table-section {
  margin-bottom: 30px;
}

.table-section h3 {
  font-family: var(--font-titulo);
  font-size: 1.1rem;
  background: var(--morado);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.table-section h3.verde-bg {
  background: var(--verde-oscuro);
}

.study-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.study-table .sub-header td {
  background: var(--gris-claro);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.study-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
  font-size: .93rem;
}

.study-table td:last-child {
  text-align: center;
  width: 60px;
  font-weight: 600;
}

/* ══════════════════ PROFESORADO ══════════════════ */
.profesorado-bg {
  background: url('img-profesor/tortuga.png') center/cover no-repeat;
  padding: 60px 20px;
  position: relative;
}

.profesorado-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 42, 74, 0.55);
}

.prof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.prof-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 20px 48px 20px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: #fff;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.prof-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.prof-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titulo);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.prof-info {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.prof-info h4 {
  font-family: var(--font-titulo);
  margin-bottom: 6px;
  font-size: 1rem;
  white-space: normal;
  word-break: break-word;
}

.prof-info p {
  font-size: .82rem;
  opacity: .8;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.prof-info p a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.prof-link {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto);
  font-size: .8rem;
  transition: var(--transition);
}

.prof-link:hover {
  transform: scale(1.1);
}

.prof-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.prof-link-icon {

  width: 20px;
  height: 20px;
}

/* ══════════════════ PROFESSOR MODAL ══════════════════ */
.prof-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.prof-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.prof-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 92vw;
  height: 100vh;
  background: #fff;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}

.prof-modal.open {
  transform: translateX(0);
}

/* Header */
.prof-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.prof-modal-logo {
  height: 36px;
  width: auto;
}

.prof-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #555;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  line-height: 1;
}

.prof-modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #222;
}

/* Body */
.prof-modal-body {
  padding: 24px 22px 40px;
  flex: 1;
}

/* Name at top */
.prof-modal-name-top {
  text-align: center;
  font-family: var(--font-titulo);
  font-size: 1.15rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 20px;
}

/* Photo */
.prof-modal-photo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.prof-modal-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(100, 50, 180, 0.15);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* Contact block */
.prof-modal-contact {
  margin-bottom: 28px;
}

.prof-modal-fullname {
  font-family: var(--font-titulo);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--morado);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.prof-modal-fullname svg {
  flex-shrink: 0;
  color: var(--morado);
}

.prof-modal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #333;
}

.prof-modal-row svg {
  flex-shrink: 0;
  color: var(--morado);
}

.prof-modal-ext {
  margin-left: 12px;
  font-weight: 600;
  color: #555;
}

.prof-modal-row a {
  color: var(--morado);
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
  transition: var(--transition);
}

.prof-modal-row a:hover {
  text-decoration: underline;
}

/* Additional info */
.prof-modal-additional {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 20px;
}

.prof-modal-additional h4 {
  font-family: var(--font-titulo);
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  text-align: center;
}

.prof-modal-field {
  margin-bottom: 12px;
}

.prof-modal-label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.prof-modal-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
}

.prof-modal-link {
  display: block;
  font-size: 0.82rem;
  color: var(--morado);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  transition: var(--transition);
}

.prof-modal-link:hover {
  text-decoration: underline;
  color: #5a1fa0;
}

/* Scrollbar in modal */
.prof-modal::-webkit-scrollbar {
  width: 6px;
}

.prof-modal::-webkit-scrollbar-track {
  background: transparent;
}

.prof-modal::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}

.prof-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.22);
}

/* Mobile modal */
@media (max-width: 480px) {
  .prof-modal {
    width: 100vw;
    max-width: 100vw;
  }

  .prof-modal-photo {
    width: 110px;
    height: 110px;
  }
}

/* ══════════════════ ESTUDIANTES ══════════════════ */
.coming-soon {
  text-align: center;
  padding: 100px 20px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.coming-soon h2 {
  font-family: var(--font-titulo);
  font-size: 2.5rem;
  color: var(--coral);
  animation: pulse 2s ease-in-out infinite;
}

.coming-soon p {
  font-size: 1.2rem;
  color: var(--coral);
  font-weight: 600;
  margin-top: 10px;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .7;
    transform: scale(1.03);
  }
}

/* ══════════════════ RUTA CRITICA ══════════════════ */
.accordion-item {
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.accordion-header {
  background: var(--verde-oscuro);
  color: #fff;
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-titulo);
  font-size: 1.1rem;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--verde-medio);
}

.chevron {
  transition: transform .3s;
  font-size: 1.2rem;
}

.chevron.rotated {
  transform: rotate(180deg);
}

.accordion-content {
  background: var(--amarillo);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.accordion-content.open {
  max-height: 300px;
}

.accordion-content ul {
  padding: 20px 24px 20px 44px;
  list-style: disc;
}

.accordion-content li {
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: .93rem;
}

/* (old divulgacion block removed — styles are in the newer section below) */

/* ══════════════════ FOOTER ══════════════════ */
.site-footer {
  background: var(--azul-footer);
  color: #fff;
  padding: 50px 20px 30px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img-inicio/fondo-marino.png') center bottom / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.site-footer>* {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-col h4 {
  font-family: var(--font-titulo);
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--amarillo);
}

.footer-col p,
.footer-col li,
.footer-col a {
  font-size: .88rem;
  line-height: 1.7;
  opacity: .85;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--amarillo);
}

.footer-col ul {
  list-style: disc;
  padding-left: 18px;
}

.footer-map {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  margin-top: 12px;
  border: none;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link.fb {
  background: #1877F2;
}

.social-link.ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.yt {
  background: #FF0000;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .8rem;
  opacity: .6;
}

/* ══════════════════ FLOATING BTNS ══════════════════ */
.floating-btns {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn.email {
  background: var(--verde-oscuro);
}

.float-btn.scroll-top {
  background: var(--azul-marino);
}

.float-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* ══════════════════ IMAGE PLACEHOLDERS ══════════════════ */
.img-ocean {
  background: linear-gradient(135deg, #0077B6, #00B4D8, #90E0EF);
}

.img-costa {
  background: linear-gradient(135deg, #1B6B3A, #2E8B57, #52B788);
}

.img-marino {
  background: linear-gradient(135deg, #023E8A, #0077B6, #48CAE4);
}

.img-sunset {
  background: linear-gradient(135deg, #E8623A, #F5A623, #FFD166);
}

.img-deep {
  background: linear-gradient(135deg, #03045E, #0077B6, #00B4D8);
}

.img-rocky {
  background: linear-gradient(135deg, #4A4E69, #9A8C98, #C9ADA7);
}

.img-sub {
  background: linear-gradient(135deg, #0B6623, #228B22, #50C878);
}

[data-label]::after {
  content: attr(data-label);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, .85);
  font-size: .8rem;
  font-style: italic;
  text-align: center;
  padding: .5rem;
}

/* ══════════════════ DIVULGACION — HERO TOP (dark) ══════════════════ */
.divulgacion-hero-top {
  background: #ffff;
  padding: 60px 20px 80px;
}

.divulgacion-hero-top-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.divulgacion-hero-img-wrapper {
  flex: 0 0 58%;
  max-width: 58%;
  position: relative;
  z-index: 1;
}

.divulgacion-hero-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.divulgacion-hero-card {
  position: relative;
  z-index: 2;
  margin-left: -80px;
  margin-top: 60px;
  background: rgba(200, 200, 200, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 36px 38px;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.divulgacion-hero-card h1 {
  font-family: var(--font-titulo);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--morado);
  margin-bottom: 14px;
  line-height: 1.3;
}

.divulgacion-hero-card p {
  font-size: .93rem;
  line-height: 1.65;
  color: #222;
}

@media (max-width: 768px) {
  .divulgacion-hero-top {
    padding: 30px 16px 50px;
  }

  .divulgacion-hero-top-inner {
    flex-direction: column;
  }

  .divulgacion-hero-img-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .divulgacion-hero-card {
    margin-left: 0;
    margin-top: -40px;
    max-width: 90%;
    align-self: flex-end;
  }
}

/* ══════════════════ DIVULGACION — HERO BOTTOM (purple) ══════════════════ */
.divulgacion-hero-bottom {
  background: var(--morado);
  padding: 60px 20px;
}

.divulgacion-hero-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
}

.divulgacion-hero-text {
  flex: 1;
  min-width: 0;
}

.divulgacion-hero-text h2 {
  font-family: var(--font-titulo);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
}

.divulgacion-hero-text p {
  font-size: .93rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.divulgacion-hero-img2-wrapper {
  flex: 0 0 45%;
  max-width: 45%;
}

.divulgacion-hero-img2-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .divulgacion-hero-bottom {
    padding: 40px 16px;
  }

  .divulgacion-hero-bottom-inner {
    flex-direction: column;
    gap: 30px;
  }

  .divulgacion-hero-img2-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .divulgacion-hero-text h2 {
    font-size: 1.4rem;
  }
}

/* ══════════════════ DIVULGACION — SEMINARIO CARDS ══════════════════ */
.seminario-card {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin-bottom: 40px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: var(--transition);
}

.seminario-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.seminario-card--reverse {
  flex-direction: row-reverse;
}

.sem-img {
  position: relative;
  flex: 0 0 280px;
  max-width: 280px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.sem-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.sem-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--verde-oscuro);
  color: #fff;
  padding: 6px 18px;
  border-radius: 6px;
  font-family: var(--font-titulo);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .3px;
  z-index: 2;
}

.sem-label--coral {
  background: var(--coral);
}

.sem-label--teal {
  background: #2BA89D;
}

.sem-body {
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.sem-badge {
  display: inline-block;
  font-family: var(--font-titulo);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--morado);
}

.sem-subbadge {
  display: inline-block;
  background: var(--verde-oscuro);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  width: fit-content;
}

.sem-subbadge--coral {
  background: var(--coral);
}

.sem-subbadge--teal {
  background: #2BA89D;
}

.sem-body p {
  font-size: .88rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

.sem-body .btn {
  align-self: flex-start;
  width: fit-content;
  font-size: .82rem !important;
  padding: 7px 18px !important;
}

/* ══════════════════ DIVULGACION — MASONRY GRID ══════════════════ */
.masonry-grid {
  columns: 5;
  column-gap: 14px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.masonry-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.masonry-item .label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  border-radius: 0 0 12px 12px;
}

/* ══════════════════ DIVULGACION — LIGHTBOX MODAL ══════════════════ */
.divulgacion-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s cubic-bezier(.4, 0, .2, 1), visibility .35s;
}

.divulgacion-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  transform: scale(0.92);
  opacity: 0;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), opacity .35s ease;
}

.divulgacion-lightbox.active .lightbox-content img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, transform .25s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, transform .25s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.12);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Lightbox loading spinner */
.lightbox-content img.loading {
  opacity: 0.3;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .lightbox-content {
    max-width: 95vw;
  }

  .lightbox-content img {
    border-radius: 10px;
  }

  .lightbox-counter {
    bottom: 16px;
    padding: 6px 16px;
    font-size: 0.78rem;
  }
}

/* ══════════════════ RESPONSIVE ══════════════════ */
@media(max-width:1024px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-images {
    max-width: 100%;
  }

  .competencias-grid {
    grid-template-columns: 1fr;
  }

  .oportunidades-grid {
    grid-template-columns: 1fr 1fr;
  }

  .prof-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .masonry-grid {
    columns: 3;
  }
}

@media(max-width:768px) {


  /* Logo separado */
  .logo-macoo img {
    height: 35px;
    width: auto;
    margin-left: 8px;
  }

  .escudos img {
    height: 50px;
    width: auto;
    display: block;
  }

  .hero {
    min-height: 50vh;
    padding: 20px 16px;
  }


  .hero-card h1,
  .hero-card h2 {
    font-size: 1.3rem;

  }

  .section-padding {
    padding: 40px 16px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .quick-cards {
    grid-template-columns: 1fr;
  }

  .objetivo-hero {
    min-height: 320px;
    margin: 20px 12px;
    border-radius: 18px;
  }

  .objetivo-content {
    padding: 28px 20px;
  }

  .objetivo-glass-card {
    max-width: 100%;
    padding: 26px 22px;
  }

  .objetivo-glass-card p {
    font-size: 0.88rem;
  }

  .banner-morado .inner,
  .banner-verde .inner {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .oportunidades-grid {
    grid-template-columns: 1fr;
  }

  .lgac-section {
    flex-direction: column;
  }

  .lgac-cards {
    flex-direction: column;
  }

  .steps-row {
    gap: 16px;
  }

  .masonry-grid {
    columns: 2;
  }

  .seminario-card,
  .seminario-card--reverse {
    flex-direction: column;
  }

  .sem-img {
    flex: 0 0 auto;
    max-width: 100%;
    height: auto;
    min-height: 200px;
  }

  .sem-img img {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fixed-nav-btns {
    top: 12px;
    right: 12px;
  }

  .btn-menu,
  .btn-aplica {
    padding: 10px 20px;
    font-size: .85rem;
    border: none;
    border-radius: 20px 20px 0px 20px;
  }

  /* ── Profesorado cards móvil ── */
  .profesorado-bg {
    padding: 40px 12px;
  }

  .prof-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 100%;
  }

  .prof-card {
    padding: 16px 44px 16px 16px;
    gap: 12px;
  }

  .prof-avatar-img {
    width: 60px;
    height: 60px;
  }

  .prof-info h4 {
    font-size: .92rem;
  }

  .prof-info p {
    font-size: .78rem;
  }

  .prof-link {
    width: 28px;
    height: 28px;
    bottom: 10px;
    right: 10px;
  }

  .prof-link-icon {
    width: 16px;
    height: 16px;
  }
}

@media(max-width:480px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .masonry-grid {
    columns: 2;
  }

  .coming-soon h2 {
    font-size: 1.8rem;
  }
}

/* ══════════════════ ASPIRANTES — RESPONSIVE MÓVIL ══════════════════ */
@media(max-width:768px) {
  .banner-convocatoria {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
    text-align: center;
    margin: 20px 16px;
    max-width: calc(100% - 32px);
  }

  .banner-convocatoria h3 {
    font-size: 1.5rem;
  }

  .convocatoria-icon {
    width: 48px;
    height: 48px;
  }

  .requisitos-card {
    padding: 24px 18px;
  }

  .requisitos-card ol {
    padding-left: 16px;
  }

  .requisitos-card li {
    font-size: .88rem;
  }
}

@media(max-width:480px) {
  .banner-convocatoria h3 {
    font-size: 1.3rem;
  }

  .steps-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    justify-items: center;
    padding: 24px 12px;
  }

  .step-item {
    max-width: 100%;
    width: 100%;
  }
}