/*
Theme Name: SEMER Child
Theme URI: https://generatepress.com
Template: generatepress
Author: Carlos Eduardo Olvera
Author URI: https://github.com/1carloso1
Description: GeneratePress is a lightweight WordPress theme built with a focus on speed and usability...
Tags: two-columns,three-columns,one-column,right-sidebar,left-sidebar,footer-widgets,blog,e-commerce,flexible-header,full-width-template,buddypress,custom-header,custom-background,custom-menu,custom-colors,sticky-post,threaded-comments,translation-ready,rtl-language-support,featured-images,theme-options
Version: 3.6.1.1789082907
Updated: 2026-09-10 23:28:27
*/

/* NOTA: fondo header/footer (#0B1B33) y texto de nav (#FFFFFF)
   están en Personalizar > Colores, no aquí. Si cambia la paleta,
   actualizar en ambos lugares. */

/* ============================
   VARIABLES / TOKENS DE MARCA
   ============================ */
:root {
  --semer-azul-profundo: #0B1B33;
  --semer-azul-uaz: #16407A;
  --semer-oro: #C9A227;
  --semer-fondo-claro: #F5F6F8;
  --semer-font-heading: 'Space Grotesk', sans-serif;
  --semer-font-body: 'Inter', sans-serif;
  --logo-mask: url('http://semer.uaz.edu.mx/wp-content/uploads/2026/09/Logo_UAZ_Azul_2-scaled.png');
}

/* ============================
   BASE / TIPOGRAFÍA
   ============================ */
body {
  font-family: var(--semer-font-body);
  background-color: var(--semer-fondo-claro);
  color: #14161A;
}

h1, h2, h3, h4 {
  font-family: var(--semer-font-heading);
  font-weight: 700;
  color: var(--semer-azul-profundo);
}

a { color: var(--semer-azul-uaz); }

/* ============================
   HEADER
   ============================ */
.site-logo img {
  filter: brightness(0) invert(1);
}

.site-logo {
  position: relative;
  transition: transform 0.2s ease;
}

.site-logo img {
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}

.site-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: var(--semer-oro);
  -webkit-mask-image: var(--logo-mask);
  mask-image: var(--logo-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  transform: translateY(-4px);
}

.site-logo:hover img {
  opacity: 0;
}

.site-logo:hover::after {
  opacity: 1;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.main-navigation .children a {
  background-color: #FFFFFF !important;
  color: var(--semer-azul-profundo) !important;
  padding: 10px 20px !important;
  border-left: 3px solid transparent !important;
  transition: border-left-color 0.15s ease !important;
}

.main-navigation .children a:hover {
  border-left-color: var(--semer-oro) !important;
}

.main-navigation .children {
  border: 1px solid #E2E5EA !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(11, 27, 51, 0.15) !important;
  padding: 8px 0 !important;
}
.inside-header {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   BOTONES
   ============================ */
.btn-primario {
  background-color: var(--semer-oro);
  text-decoration: none !important;
  color: #1A1400;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--semer-font-body);
  font-weight: 500;
}

a.generate-back-to-top {
  background-color: var(--semer-oro) !important;
  color: #1A1400 !important;
  border-radius: 50% !important;
}

a.generate-back-to-top:hover {
  background-color: var(--semer-azul-uaz) !important;
  color: #FFFFFF !important;
}

/* ============================
   FOOTER
   ============================ */
.semer-social-icons {
  display: flex;
  gap: 14px;
}
.semer-social-icons a { color: #FFFFFF; }

.site-footer .footer-widgets-container .inside-footer-widgets {
  display: flex !important;
  justify-content: space-between !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

/* ============================
   RESPONSIVE / MOBILE (≤768px)
   ============================ */
@media (max-width: 768px) {
  /* Header */
  .site-logo img {
    max-width: min(310px, 85vw);
    height: auto;
  }

  .inside-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .main-navigation {
    margin-top: 10px;
  }

  /* Footer — antes decía "grid-template-columns", pero el
     contenedor es flex, no grid. Corregido: */
  .inside-footer-widgets {
    flex-direction: column !important;
    text-align: center;
    gap: 24px;
  }

  .inside-footer-widgets > .widget:last-child {
    text-align: center;
  }

  .semer-social-icons {
    justify-content: center;
  }
}

/* ============================
   HERO (tarjeta oscura)
   ============================ */
.hero-card {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: var(--semer-azul-uaz);
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  padding-top: 30px;
  padding-bottom: 15px;
  margin-top: 0;
  margin-bottom: 32px;
}
.hero-card h1, .hero-card h2 {
  color: #FFFFFF;
}
.hero-card p {
  color: #D7DEE8;
}

.hero-card h1, .hero-card h2, .hero-card p {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}
.entry-content > .hero-card:first-child {
  margin-top: 0px;
}

/* ============================
   TARJETAS (reutilizable)
   ============================ */
.card-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.card {
  flex: 1;
  min-width: 260px;
  background-color: #FFFFFF;
  border: 1px solid #E2E5EA;
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(11, 27, 51, 0.12);
}
.card h3 {
  margin-top: 0;
  color: var(--semer-azul-profundo);
}
.card p {
  color: #3A3F47;
}

@media (max-width: 768px) {
  .card-grid {
    flex-direction: column;
  }
}
.track-icon {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
  display: block;
}
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.topic-tags span {
  font-family: var(--semer-font-body);
  font-size: 12px;
  background: var(--semer-fondo-claro);
  color: var(--semer-azul-uaz);
  border: 1px solid #E2E5EA;
  border-radius: 999px;
  padding: 4px 10px;
}
.stat-card {
  text-align: center;
}
.stat-card .stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  color: var(--semer-azul-profundo);
  display: block;
  margin-bottom: 4px;
}
.stat-card .stat-label {
  font-size: 13px;
  color: #3A3F47;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
/* ============================
   TÍTULO DE PÁGINA (oculto)
   ============================ */
.entry-header {
  display: none;
}
.site-content {
  padding-top: 0 !important;
}
.entry-content:not(:first-child),
.entry-summary:not(:first-child),
.page-content:not(:first-child) {
  margin-top: 0 !important;
}
/* ============================
   INTERACCIÓN DE BOTONES
   ============================ */
.btn-primario {
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primario:hover {
  background-color: var(--semer-azul-uaz);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 27, 51, 0.25);
}

.btn-primario:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ============================
   BANNER DE PÁGINA
   ============================ */
.banner-image {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: block;
  border-radius: 0;
  margin-bottom: 0px;
}
.entry-content .banner-image {
  margin-top: 0 !important;
}
/* ============================
   GALERÍA DE PÓSTERS
   ============================ */
.wp-block-gallery {
  margin-bottom: 40px;
}
/* En el grupo GALERÍA DE PÓSTERS, agrégalo junto a lo que ya tienes ahí */
.wp-block-gallery .wp-block-image img {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-gallery .wp-block-image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(11, 27, 51, 0.12);
}

.semer-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 51, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 40px;
  cursor: zoom-out;
}
.semer-lightbox-overlay.active {
  display: flex;
}
.semer-lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.semer-lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #FFFFFF;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--semer-font-body);
}
.semer-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #FFFFFF;
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 16px;
  user-select: none;
  transition: color 0.15s ease;
}
.semer-lightbox-arrow:hover {
  color: var(--semer-oro);
}
.semer-lightbox-prev { left: 16px; }
.semer-lightbox-next { right: 16px; }
/* ============================
   MARQUEE INSTITUCIONES
   ============================ */
.partners-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.partners-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: partners-scroll 25s linear infinite;
}

.partner-item {
  white-space: nowrap;
  background-color: #FFFFFF;
  border: 1px solid #E2E5EA;
  border-radius: 8px;
  padding: 14px 24px;
  color: var(--semer-azul-profundo);
  font-weight: 500;
}

@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  background-color: #FFFFFF;
  border: 1px solid #E2E5EA;
  border-radius: 8px;
  padding: 16px 24px;
}

.partner-item img {
  height: 100px;
  width: auto;
}

.partner-name {
  font-size: 13px;
  color: var(--semer-azul-profundo);
  font-weight: 500;
}

/* ============================
   TECH: FUENTE MONO (datos técnicos)
   ============================ */
.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95em;
}

/* ============================
   TECH: DIVISOR DE CIRCUITO
   ============================ */
.tech-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 48px 0;
}
.tech-divider::before,
.tech-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--semer-azul-uaz);
  opacity: 0.25;
}
.tech-divider span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--semer-oro);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

/* ============================
   TECH: LISTA TIPO CIRCUITO
   ============================ */
.node-list {
  list-style: none;
  padding-left: 0;
}
.node-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
}
.node-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--semer-azul-uaz);
}
.node-list li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 16px;
  bottom: -14px;
  width: 1px;
  background: #E2E5EA;
}
.node-list li:last-child::after {
  display: none;
}