p {
  font-size: 1rem !important;
}

.banner {
  width: 100%;
  height: 620px;
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 50px;
}

/* Mensaje rector */
.rector-img {
  width: 267px;
  height: 267px;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(10%, 30%);
}

.mensaje-card {
  padding-bottom: 8rem;
  position: relative;
  background-image: url('https://www.cetys.mx/wp-content/uploads/2026/07/anillos_fondo.webp');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.mensaje-card-inner {
  background-color: #F1F1F1;
}

@media (max-width: 1200px) {
  .rector-img {
    transform: translate(5%, 40%);
  }
}

@media (max-width: 992px) {
  .rector-img {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 576px) {
  .rector-img {
    position: static;
    display: block;
    margin: 2rem auto 0;
    transform: none;
  }

  .mensaje-card {
    margin-bottom: 2rem;
  }
}

/* Semana aniversario / countdown */
#semana-aniversario {
  background-color: #2C2C2C;
}

:root {
  --yellow: #FFDB00;
  --white: #ffffff;
}

.rings-section {
  border-radius: 6px;
  padding: 44px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rings-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.ring-item {
  width: 100px;
}

.ring-item svg {
  width: 100px;
  height: 100px;
  display: block;
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 6;
}

.ring-fill {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 6;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 4px rgba(255, 219, 0, 0.5));
}

.ring-num {
  fill: #fff;
  font-size: 23px;
  font-weight: 700;
  font-family: inherit;
}

.ring-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .rings-section {
    padding: 32px 16px;
  }

  .ring-item {
    width: 80px;
  }

  .ring-item svg {
    width: 80px;
    height: 80px;
  }

  .ring-num {
    font-size: 18px;
  }
}

/* Eventos */
.eventos-fondo {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
}

.agenda-shell {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.fondo-evento-agenda {
  background-color: #f5f5f57d;
}

.events-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 28px 4px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  flex: 1;
  min-width: 0;
}

.events-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.events-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #2c2c2c;
  background: #fff;
  color: #2c2c2c;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.events-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.events-page-indicator {
  min-width: 44px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: #2c2c2c;
}

.chip {
  border: 1.5px solid #2c2c2c;
  background: transparent;
  color: #2c2c2c;
  font-size: .78rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: .15s ease;
}

.chip.active {
  background: #2c2c2c;
  color: #f4bf1e;
}

.agenda-list {
  padding: 6px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.evento-item-placeholder {
  display: block;
}

.evento-item-placeholder .event-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: default;
  min-height: 84px;
  padding: 0;
}

.evento-item-placeholder .event-card::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(44, 44, 44, 0.04) 0%, rgba(44, 44, 44, 0.08) 50%, rgba(44, 44, 44, 0.04) 100%);
}

.event-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #fafaf8;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: .15s ease;
}

.event-card:hover {
  background: #fbe08f;
  border-color: #f4bf1e;
}

.day-badge {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.day-badge .num {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.05rem;
  color: #2c2c2c;
}

.badge-mxl {
  background: conic-gradient(#f4bf1e 0deg 180deg, #2c2c2c 180deg 360deg);
}

.badge-tij {
  background: conic-gradient(#4a4a4a 0deg 140deg, #f4bf1e 140deg 320deg, #a9a9a9 320deg 360deg);
}

.badge-ens {
  background: conic-gradient(#a9a9a9 0deg 90deg, #f4bf1e 90deg 200deg, #2c2c2c 200deg 360deg);
}

.event-info {
  flex: 1;
  min-width: 0;
}

.event-info .etitle {
  font-weight: 700;
  font-size: .94rem;
  color: #1a1a1a;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.event-info .emeta {
  font-size: .78rem;
  color: #6b6b6b;
  margin-top: 2px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.campus-tag {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2c2c2c;
  color: #f4bf1e;
}

.add-btn {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2c2c2c;
  color: #f4bf1e;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card.past-event {
  background: #111;
  color: #fff;
  border-color: #444;
}

.event-card.past-event .etitle,
.event-card.past-event .emeta,
.event-card.past-event .campus-tag {
  color: #fff;
}

.event-card.past-event .day-badge .num {
  background: #fff;
  color: #111;
}

/* Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item button {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.75);
}

.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
  z-index: 2;
}

.gallery-zoom-icon svg {
  width: 36px;
  height: 36px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.gallery-item:hover .gallery-zoom-icon {
  transform: translate(-50%, -50%) scale(1.15);
}

.modal-gallery-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 80vh;
}

/* Institución que transforma */
.institucion-que-transforma {
  background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), var(--bg-image) center/cover no-repeat;
}

.cifras-egresados-imagen {
  width: 100%;
  height: 300px;
  object-fit: contain;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #informacion-actividades .informacion-actividades-formulario-bg {
    opacity: 0.28;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Información actividades */
#informacion-actividades .titulo-contacto {
  width: 600px;
  margin: auto;
}


#informacion-actividades .informacion-actividades-imagen {
  min-height: 320px;
  background-image: var(--bg-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#informacion-actividades .informacion-actividades-formulario {
  position: relative;
  background-color: #0a0a0a;
  color: #fff;
  overflow: hidden;
}

#informacion-actividades .informacion-actividades-formulario-bg {
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

#informacion-actividades .informacion-actividades-formulario-content {
  position: relative;
  z-index: 1;
}

.wpcf7 input[type="submit"] {
  background-color: #FFDD00 !important;
  color: #000 !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  width: 50% !important;
}

@media (max-width: 576px) {
  .agenda-shell {
    max-width: 100%;
  }

  .filters {
    padding: 16px 16px 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: none;
  }

  .agenda-list {
    padding: 4px 16px 24px;
    gap: 10px;
  }

  .event-card {
    padding: 12px;
    gap: 12px;
    border-radius: 12px;
  }

  .day-badge {
    width: 46px;
    height: 46px;
  }

  .day-badge .num {
    width: 32px;
    height: 32px;
    font-size: .9rem;
  }

  .event-info .etitle {
    font-size: .86rem;
    white-space: normal;
  }

  .event-info .emeta {
    flex-wrap: wrap;
    gap: 6px;
    font-size: .72rem;
  }
}