:root {
  /* Dynamic Fallbacks */
  --ueee-brand: #5b2386;
  --ueee-accent: #f4b740;
  
  /* Modern Colors & Tokens */
  --ueee-dark: #12071d;
  --ueee-dark-card: #1c0e2c;
  --ueee-light: #faf8fc;
  --ueee-text-main: #332144;
  --ueee-text-muted: #6b537e;
  --ueee-whatsapp: #25d366;
  --ueee-whatsapp-dark: #20ba56;
  
  /* Shadows & Glassmorphism */
  --ueee-shadow-sm: 0 4px 12px color-mix(in srgb, var(--ueee-brand) 3%, transparent);
  --ueee-shadow-md: 0 12px 32px -8px color-mix(in srgb, var(--ueee-brand) 8%, transparent);
  --ueee-shadow-lg: 0 24px 48px -12px color-mix(in srgb, var(--ueee-brand) 16%, transparent);
  --ueee-shadow-hover: 0 32px 64px -16px color-mix(in srgb, var(--ueee-brand) 24%, transparent);
  --ueee-glass-bg: rgba(255, 255, 255, 0.75);
  --ueee-glass-border: color-mix(in srgb, var(--ueee-brand) 8%, transparent);
  
  /* Transitions & Borders */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-lg: 20px;
  --border-radius-md: 14px;
  --border-radius-sm: 8px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ueee-light);
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ueee-brand) 18%, transparent);
  border-radius: 5px;
  border: 2px solid var(--ueee-light);
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--ueee-brand) 35%, transparent);
}

* { 
  box-sizing: border-box; 
  transition: var(--transition-fast);
}

html { 
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  color: var(--ueee-text-main);
  background: #fff;
  font-family: "Plus Jakarta Sans", "Trebuchet MS", Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Outfit", sans-serif;
  color: var(--ueee-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 100;
  background: #fff;
  padding: .65rem 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--ueee-brand);
  font-weight: 700;
}

.skip-link:focus { 
  top: 1rem; 
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--ueee-glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--ueee-shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 96px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--ueee-brand);
}

.brand img { 
  width: 250px; 
  max-height: 68px; 
  object-fit: contain; 
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.02));
}

.brand:hover img {
  transform: scale(1.02);
}

.brand span { 
  display: none; 
}

/* Navigation */
.primary-nav .menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li { 
  position: relative; 
}

.primary-nav a {
  display: block;
  padding: 10px 18px;
  border-radius: 20px;
  color: var(--ueee-text-main);
  font-size: .88rem;
  font-weight: var(--ueee-menu-fw, 700);
  text-transform: var(--ueee-menu-tt, uppercase);
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav .current-menu-item > a {
  color: var(--ueee-brand);
  background: color-mix(in srgb, var(--ueee-brand) 6%, transparent);
}

/* Submenus Styling & Chevron Indicators */
.primary-nav .menu-item-has-children > a,
.primary-nav .page_item_has_children > a {
  padding-right: 32px;
  position: relative;
}

.primary-nav .menu-item-has-children > a::after,
.primary-nav .page_item_has_children > a::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 4.5px;
  background-color: currentColor;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: transform 0.25s ease;
  opacity: 0.8;
}

.primary-nav .menu-item-has-children:hover > a::after,
.primary-nav .page_item_has_children:hover > a::after {
  transform: translateY(-50%) rotate(180deg);
}

.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: block;
  visibility: hidden;
  pointer-events: none;
  width: 240px;
  margin-top: 12px;
  padding: 8px;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(91, 35, 134, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px -5px rgba(91, 35, 134, 0.12), 0 4px 12px -2px rgba(91, 35, 134, 0.05);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 1000;
}

.primary-nav .sub-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 16px;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

/* Level 2 & Level 3 Dropdowns (Standard Navigation) */
.primary-nav .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 10px;
  transform: translateX(12px);
}

.primary-nav .sub-menu li:hover > .sub-menu,
.primary-nav .sub-menu li:focus-within > .sub-menu {
  transform: translateX(0);
}

/* Arrow indicator to the right for nested submenu children */
.primary-nav .sub-menu .menu-item-has-children > a::after,
.primary-nav .sub-menu .page_item_has_children > a::after {
  clip-path: polygon(0 0, 0 100%, 100% 50%) !important;
  width: 5px !important;
  height: 8px !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.primary-nav .sub-menu .menu-item-has-children:hover > a::after,
.primary-nav .sub-menu .page_item_has_children:hover > a::after {
  transform: translateY(-50%) scale(1.1) !important;
}

/* Bridge for side-opening menus to prevent cursor gaps */
.primary-nav .sub-menu .sub-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -16px;
  width: 16px;
  height: 100%;
}

.primary-nav .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ueee-text-main);
  text-transform: var(--ueee-menu-tt, none);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: normal;
  transition: all 0.2s ease;
  background: transparent;
}

.primary-nav .sub-menu a:hover {
  background: color-mix(in srgb, var(--ueee-brand) 6%, transparent);
  color: var(--ueee-brand);
  transform: translateX(4px);
}

/* Menu Toggle Mobile */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--ueee-brand);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--ueee-brand) 25%, transparent);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero-slider {
  min-height: calc(90vh - 96px);
  position: relative;
  overflow: hidden;
  background: var(--ueee-dark);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(90vh - 96px);
}

.slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  padding: 120px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.06);
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ueee-slide-overlay) 0%, color-mix(in srgb, var(--ueee-slide-overlay) 65%, transparent) 60%, transparent 100%);
  z-index: 1;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 2;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  color: #fff;
  z-index: 3;
}

.kicker {
  margin: 0 0 .4rem;
  color: var(--ueee-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  font-family: "Outfit", sans-serif;
}

.slide h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-weight: 900;
}

.slide p:not(.kicker) {
  max-width: 720px;
  margin: 1.5rem 0 2.5rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Animations for slide content */
.slide.active .kicker {
  animation: slideUpIn 0.8s 0.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}
.slide.active h1 {
  animation: slideUpIn 0.8s 0.35s forwards cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}
.slide.active p:not(.kicker) {
  animation: slideUpIn 0.8s 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}
.slide.active .button {
  animation: slideUpIn 0.8s 0.65s forwards cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.slider-arrow:hover {
  background: var(--ueee-accent);
  color: var(--ueee-dark);
  border-color: var(--ueee-accent);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 20px rgba(244, 183, 64, 0.3);
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
}

.slider-arrow.prev {
  left: 24px;
}

.slider-arrow.next {
  right: 24px;
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background: var(--ueee-accent);
  width: 42px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 2.2rem;
  background: var(--ueee-accent);
  border: 2px solid var(--ueee-accent);
  color: var(--ueee-dark);
  border-radius: 30px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px -6px rgba(244, 183, 64, 0.4);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -6px rgba(244, 183, 64, 0.5), 0 0 0 4px rgba(244, 183, 64, 0.15);
  background: #ffc24d;
  border-color: #ffc24d;
}

.button.secondary {
  background: transparent;
  color: var(--ueee-brand);
  border-color: var(--ueee-brand);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--ueee-brand);
  color: #fff;
  border-color: var(--ueee-brand);
  box-shadow: 0 10px 20px -6px color-mix(in srgb, var(--ueee-brand) 25%, transparent);
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section h2 {
  margin: 0 0 1.2rem;
  color: var(--ueee-brand);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 800;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 50px;
}

/* Split Section */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--ueee-shadow-lg);
}

.split img:hover {
  transform: scale(1.02);
}

/* Cuadro de Honor */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.honor-card {
  padding: 20px 24px;
  background: var(--ueee-light);
  border-left: 4px solid var(--ueee-accent);
  border-radius: var(--border-radius-md);
  box-shadow: var(--ueee-shadow-sm);
  transition: var(--transition-smooth);
}

.honor-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: var(--ueee-shadow-md);
  border-left-color: var(--ueee-brand);
}

.honor-card strong {
  display: block;
  font-family: "Outfit", sans-serif;
  color: var(--ueee-brand);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.honor-card span {
  color: var(--ueee-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--ueee-brand);
  font-weight: 800;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--ueee-accent);
  padding-bottom: 2px;
  transition: var(--transition-fast);
}

.text-link:hover {
  color: var(--ueee-dark);
  border-bottom-color: var(--ueee-brand);
}

/* Graduate & Bands */
.graduate-band,
.values-band,
.contact-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.graduate-band {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1200px) / 2));
  padding-right: max(24px, calc((100vw - 1200px) / 2));
  background: linear-gradient(135deg, #fbf9fc 0%, #f4eef9 100%);
  border-top: 1px solid color-mix(in srgb, var(--ueee-brand) 4%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ueee-brand) 4%, transparent);
}

.graduate-band img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--ueee-shadow-lg);
}

.graduate-band img:hover {
  transform: scale(1.02);
}

/* Mission Grid */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.mission-grid .section-heading { 
  grid-column: 1 / -1; 
}

.mission-grid article,
.post-card {
  padding: 40px;
  border: 1px solid var(--ueee-glass-border);
  border-radius: var(--border-radius-lg);
  background: #fff;
  box-shadow: var(--ueee-shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.mission-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--ueee-brand);
  opacity: 0.8;
}

.mission-grid article:nth-child(3)::before {
  background: var(--ueee-accent);
}

.mission-grid article:hover {
  transform: translateY(-6px);
  box-shadow: var(--ueee-shadow-lg);
}

.mission-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ueee-brand) 8%, transparent);
  color: var(--ueee-brand);
  border-radius: 50%;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.mission-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
}

.mission-card:hover .mission-icon {
  background: var(--ueee-brand);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.vision-card .mission-icon {
  background: color-mix(in srgb, var(--ueee-accent) 12%, transparent);
  color: color-mix(in srgb, var(--ueee-accent) 80%, #000);
}

.vision-card:hover .mission-icon {
  background: var(--ueee-accent);
  color: var(--ueee-dark);
  transform: scale(1.1) rotate(-5deg);
}

.mission-grid h3 {
  margin-top: 0;
  color: var(--ueee-brand);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* Values Band & Grid Cards */
.values-band {
  background: #fff;
}

.values-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.value-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #faf8fc;
  border: 1px solid color-mix(in srgb, var(--ueee-brand) 6%, transparent);
  border-radius: var(--border-radius-md);
  box-shadow: var(--ueee-shadow-sm);
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: color-mix(in srgb, var(--ueee-brand) 18%, transparent);
  box-shadow: var(--ueee-shadow-md);
}

.value-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ueee-brand) 8%, transparent);
  color: var(--ueee-brand);
  border-radius: 50%;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.value-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.value-card:hover .value-icon {
  background: var(--ueee-brand);
  color: #fff;
  transform: scale(1.08);
}

.value-card span {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ueee-dark);
}

/* ── Quick Access Section (Servicios en línea) ── Premium Vertical Cards ── */
.quick-access-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1200px) / 2));
  padding-right: max(24px, calc((100vw - 1200px) / 2));
  background: linear-gradient(168deg, #f8f5fc 0%, #f1ecf8 40%, #ede7f6 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative subtle pattern overlay */
.quick-access-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--ueee-brand) 4%, transparent) 0%, transparent 50%),
                     radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--ueee-accent) 5%, transparent) 0%, transparent 50%);
  pointer-events: none;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 16px 26px;
  border-radius: var(--border-radius-lg, 20px);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(91, 35, 134, 0.04),
              0 8px 24px rgba(91, 35, 134, 0.03);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--ueee-brand) 6%, transparent) 0%,
    transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.quick-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--ueee-brand) 25%, transparent);
  box-shadow: 0 12px 32px rgba(91, 35, 134, 0.1),
              0 4px 12px rgba(91, 35, 134, 0.06);
}

.quick-card:hover::after {
  opacity: 1;
}

/* Icon circle */
.quick-icon-circle {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ueee-brand) 8%, transparent);
  color: var(--ueee-brand);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-icon-circle svg,
.quick-icon-circle img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-card:hover .quick-icon-circle {
  background: color-mix(in srgb, var(--ueee-brand) 15%, transparent);
  transform: scale(1.08);
}

/* Title label */
.quick-label {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.35;
  text-align: center;
  color: var(--ueee-text-main);
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.quick-card:hover .quick-label {
  color: var(--ueee-brand);
}

/* Go arrow (top-right corner) */
.quick-go {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--ueee-brand) 20%, transparent);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  z-index: 1;
}

.quick-go svg {
  width: 16px;
  height: 16px;
}

.quick-card:hover .quick-go {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--ueee-brand);
}

/* Documents Band (Gestión Académica) - Clean Board Tabbed Redesign */
.documents-band {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1200px) / 2));
  padding-right: max(24px, calc((100vw - 1200px) / 2));
  background: #f9fafb;
  color: var(--ueee-text-main);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.documents-band h2 { 
  color: var(--ueee-brand); 
}

.document-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.document-card {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fcfbfe 100%);
  border: 1px solid rgba(91, 35, 134, 0.06);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px -5px rgba(91, 35, 134, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  padding-right: 48px;
}

.document-card::after {
  content: '↓';
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ueee-brand);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.document-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 35, 134, 0.15);
  box-shadow: 0 20px 35px -10px rgba(91, 35, 134, 0.12);
  background: #ffffff;
}

.document-card:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  color: var(--ueee-accent);
}

.document-icon {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1.5px solid rgba(91, 35, 134, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ueee-brand);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(91, 35, 134, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.document-icon svg,
.document-icon img {
  width: 22px;
  height: 22px;
}

.document-card:hover .document-icon {
  background: var(--ueee-brand);
  color: #ffffff;
  border-color: var(--ueee-brand);
  transform: scale(1.05);
}

.document-card .document-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ueee-dark);
  margin: 0;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.document-card:hover .document-title {
  color: var(--ueee-brand);
}

/* Contact Band */
.contact-band {
  background: var(--ueee-light);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Footer */
.site-footer {
  background: #0d0515;
  color: rgba(255, 255, 255, 0.85);
  padding: 80px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 60px;
}

.site-footer h2 {
  margin-top: 0;
  color: var(--ueee-accent);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.footer-logo { 
  max-width: 200px; 
  margin-bottom: 20px; 
  filter: brightness(0) invert(1);
}

.site-footer p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li { 
  margin-top: .8rem; 
}

.footer-docs-nav ul li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.footer-docs-nav ul li a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--ueee-accent);
  border-top: 2px solid var(--ueee-accent);
  transform: rotate(45deg);
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-docs-nav ul li a:hover {
  color: var(--ueee-accent);
  padding-left: 4px;
}

.footer-docs-nav ul li a:hover::before {
  transform: rotate(45deg) scale(1.2) translateX(2px);
  opacity: 1;
}

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

.social-row a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: var(--transition-smooth);
}

.social-row a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-row a:hover {
  background: var(--ueee-accent);
  color: var(--ueee-dark);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 15px rgba(244, 183, 64, 0.35);
}

.footer-bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

/* Original/Official WhatsApp floating widget */
.whatsapp-widget-container {
  position: fixed;
  right: 24px;
  bottom: 90px; /* moved up to prevent overlapping footer signature */
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  pointer-events: none;
}

.whatsapp-float {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ueee-whatsapp);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
  pointer-events: auto;
  position: relative;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background: var(--ueee-whatsapp-dark);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

/* Tooltip/Bocadillo WhatsApp */
.whatsapp-tooltip {
  background: #fff;
  color: #333;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-size: 0.88rem;
  font-weight: 700;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(20px);
  transition: var(--transition-smooth);
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.whatsapp-widget-container:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Initial display check or pulse animation */
.whatsapp-tooltip.active {
  opacity: 1;
  transform: translateX(0);
}

/* Pulse animation on load */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--ueee-whatsapp);
  opacity: 0;
  animation: pulseWidget 2.5s infinite;
}

@keyframes pulseWidget {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Page shell & defaults */
.page-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px 40px;
}

.error-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 50px 24px;
}

.page-header {
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ueee-glass-border);
  padding-bottom: 10px;
}

.page-header h1 {
  color: var(--ueee-brand);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
}

.entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ueee-text-main);
  text-align: justify;
}

.entry-content a { 
  color: var(--ueee-brand); 
  text-decoration: underline; 
  font-weight: 700;
}

.entry-content a:hover {
  color: var(--ueee-accent);
}

.content-list {
  display: grid;
  gap: 24px;
}

.post-card h2 {
  margin-top: 0;
  color: var(--ueee-brand);
}

/* Responsive queries */
@media (max-width: 960px) {
  .menu-toggle { 
    display: flex; 
  }
  .primary-nav {
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    display: none;
    padding: 16px 24px 28px;
    background: #fff;
    border-bottom: 1px solid var(--ueee-glass-border);
    box-shadow: var(--ueee-shadow-md);
  }
  .primary-nav.is-open { 
    display: block; 
  }
  .primary-nav .menu { 
    display: grid; 
    gap: 6px; 
  }
  .primary-nav .sub-menu {
    position: static;
    display: block;
    visibility: visible;
    pointer-events: auto;
    width: auto;
    padding: 4px 0 4px 16px;
    box-shadow: none;
    border: 0;
    transform: none;
    opacity: 1;
    transition: none;
  }
  .primary-nav .sub-menu .sub-menu {
    position: static !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-top: 4px !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 4px 0 4px 16px !important;
  }
  .primary-nav .sub-menu .menu-item-has-children > a::after,
  .primary-nav .sub-menu .page_item_has_children > a::after {
    clip-path: polygon(0 0, 100% 0, 50% 100%) !important;
    width: 7px !important;
    height: 4.5px !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  .split,
  .graduate-band,
  .values-band,
  .contact-band,
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 40px;
  }
  .values-grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-grid { 
    grid-template-columns: repeat(3, 1fr); 
  }
  .document-list { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 680px) {
  .header-inner { 
    min-height: 80px; 
    padding-inline: 16px; 
  }
  .brand img { 
    width: 190px; 
    max-height: 54px; 
  }
  .primary-nav { 
    top: 80px; 
  }
  .hero-slider,
  .slider-container,
  .slide { 
    height: 56.25vw; /* exact 16:9 aspect ratio (9 / 16 = 56.25%) */
    min-height: 320px; /* safety fallback so text doesn't overflow on very narrow devices */
    padding: 40px 18px 30px; 
  }
  .slide {
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .slide p:not(.kicker) {
    margin: 1.2rem auto 2rem;
  }
  .slider-arrow {
    display: none;
  }
  .section { 
    padding: 60px 18px; 
  }
  .honor-grid,
  .mission-grid,
  .document-list,
  .values-grid-cards { 
    grid-template-columns: 1fr; 
  }
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .quick-card {
    padding: 24px 12px 20px;
  }
  .slide h1,
  .page-header h1 { 
    font-size: clamp(1.5rem, 6vw, 2.2rem); 
  }
  .slide p:not(.kicker) {
    margin: 0.6rem auto 1.2rem;
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    line-height: 1.4;
  }
  .button {
    min-height: 40px;
    padding: 0.5rem 1.6rem;
    font-size: 0.9rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .whatsapp-tooltip {
    display: none; /* Hide tooltip on narrow screens to prevent overlap */
  }
}

/* --- Cuadro de Honor modern tabbed layout --- */
.honor-section {
  background: #ffffff;
  text-align: center;
}

.honor-section h2,
.honor-section .kicker {
  text-align: center;
}

.section-desc {
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--ueee-text-muted);
  font-size: 1.1rem;
  text-align: center;
}

.honor-subtitle {
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ueee-brand);
  margin-top: -0.5rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.honor-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 50px;
}

.honor-tab-arrow {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ueee-text-muted);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.honor-tab-arrow:hover {
  background: var(--ueee-brand);
  color: #fff;
  border-color: var(--ueee-brand);
  transform: scale(1.08);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ueee-brand) 20%, transparent);
}

.honor-tab-arrow svg {
  width: 20px;
  height: 20px;
}

.honor-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  flex-grow: 1;
  max-width: 700px;
  margin: 0;
}

.honor-tab-btn {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ueee-text-muted);
  padding: 16px 12px;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  margin-bottom: -2px; /* Overlap the 2px border */
}

.honor-tab-btn:hover {
  color: var(--ueee-brand);
}

.honor-tab-btn.active {
  color: var(--ueee-brand);
  border-bottom-color: var(--ueee-brand);
}

.honor-panel {
  display: none;
}

.honor-panel.active {
  display: block;
  animation: tabFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.honor-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.honor-student-card {
  background: #fff;
  border-radius: var(--border-radius-lg);
  padding: 36px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
}

.honor-student-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ueee-shadow-md);
  border-color: color-mix(in srgb, var(--ueee-brand) 15%, transparent);
}

.honor-student-card.featured {
  border-color: var(--ueee-accent);
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--ueee-accent) 2%, transparent) 100%);
  box-shadow: 0 16px 36px -8px color-mix(in srgb, var(--ueee-accent) 15%, transparent);
}

.honor-student-card.featured:hover {
  box-shadow: 0 24px 48px -8px color-mix(in srgb, var(--ueee-accent) 25%, transparent);
}

.student-photo-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 24px;
  border: 4px solid var(--ueee-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.honor-student-card.featured .student-photo-wrapper {
  border-color: color-mix(in srgb, var(--ueee-accent) 25%, transparent);
}

.student-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.honor-student-card:hover .student-photo {
  transform: scale(1.08);
}

.student-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ueee-dark);
  line-height: 1.4;
}

.honor-student-card.featured .student-name {
  font-size: 1.25rem;
}

.student-role {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #4b5563;
  text-transform: none;
  letter-spacing: normal;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.4;
}

.honor-student-card.featured .student-role {
  font-size: 0.88rem;
  font-weight: 500;
  color: #374151;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustment for honor section */
@media (max-width: 960px) {
  .honor-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .honor-student-card.featured {
    grid-column: 1 / -1;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .honor-grid-new {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .honor-student-card.featured {
    max-width: none;
  }
  .student-photo-wrapper {
    width: 140px;
    height: 140px;
  }
  .honor-student-card.featured .student-photo-wrapper {
    width: 150px;
    height: 150px;
  }
  .honor-tabs-wrapper {
    gap: 8px;
    margin-bottom: 30px;
    padding: 0 8px;
    width: 100%;
  }
  .honor-tab-arrow {
    width: 36px;
    height: 36px;
  }
  .honor-tab-arrow svg {
    width: 16px;
    height: 16px;
  }
  .honor-tabs {
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    scroll-behavior: smooth;
  }
  .honor-tabs::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }
  .honor-tab-btn {
    white-space: nowrap;
    padding: 12px 2px;
    font-size: 0.92rem;
  }
}

/* --- Novedades / Últimas noticias section --- */
.news-section {
  background: #ffffff;
  padding: 100px 24px;
}

.news-section h2 {
  text-align: center;
}

.news-section .kicker {
  text-align: center;
}

.news-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 30px;
}

.news-grid-container {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

.news-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  margin: 0 !important;
  padding: 0 !important;
}

.news-grid::-webkit-scrollbar {
  display: none;
}

.news-card {
  flex: 0 0 calc((100% - (var(--visible-items, 4) - 1) * 24px) / var(--visible-items, 4)) !important;
  background: #fff;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  scroll-snap-align: start;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ueee-shadow-lg);
  border-color: color-mix(in srgb, var(--ueee-brand) 15%, transparent);
}

.news-carousel-arrow {
  background: var(--ueee-light, #f4f1f8);
  color: var(--ueee-brand);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: var(--transition-fast);
  z-index: 5;
  flex-shrink: 0;
}

.news-carousel-arrow:hover {
  background: var(--ueee-brand);
  color: #fff;
  transform: scale(1.05);
}

.news-carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.news-card-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: var(--transition-smooth);
}

.news-card:hover .news-card-image {
  transform: scale(1.02);
}

.news-card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.news-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.news-card-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ueee-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-family: "Outfit", sans-serif;
}

.news-card-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ueee-dark);
}

.news-card-title a {
  transition: var(--transition-fast);
}

.news-card-title a:hover {
  color: var(--ueee-brand);
}

.news-card-excerpt {
  font-size: 0.95rem;
  color: var(--ueee-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.news-card-more {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ueee-brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: "Outfit", sans-serif;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.news-card-more:hover {
  color: var(--ueee-accent);
  transform: translateX(4px);
}

/* Responsive news carousel items */
@media (max-width: 1100px) {
  .news-card {
    flex: 0 0 calc((100% - (3 - 1) * 24px) / 3) !important;
  }
}

@media (max-width: 850px) {
  .news-card {
    flex: 0 0 calc((100% - (2 - 1) * 20px) / 2) !important;
  }
  .news-carousel-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 600px) {
  .news-card {
    flex: 0 0 100% !important;
  }
  .news-carousel-arrow {
    display: none;
  }
  .news-carousel-wrapper {
    gap: 0;
  }
  .news-card-image {
    height: 180px;
  }
}

/* ==========================================================================
   WP Galleries / Galerías de Imágenes Premium
   ========================================================================== */
.wp-block-gallery,
.gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  margin: 2.5rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.wp-block-gallery figure,
.gallery-item {
  margin: 0 !important;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md, 10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background: #fff;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wp-block-gallery figure:hover,
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.wp-block-gallery img,
.gallery-item img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 4/3 !important;
  object-fit: cover !important;
  border-radius: var(--border-radius-md, 10px) !important;
  display: block;
}

.wp-block-gallery figcaption,
.gallery-caption {
  font-size: 0.85rem !important;
  color: var(--ueee-text-muted, #64748b) !important;
  text-align: center !important;
  margin-top: 8px !important;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.4;
}

/* ==========================================================================
   Responsive Video Embeds / Videos Responsivos de YouTube
   ========================================================================== */
.wp-block-embed-youtube,
.wp-block-embed {
  position: relative;
  width: 100%;
  margin: 2.5rem auto !important;
  max-width: 800px;
}

.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-lg, 14px);
  box-shadow: 0 10px 30px -5px rgba(13, 5, 21, 0.15);
  background: #000;
}

.wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Error Page 404 Redesign
   ========================================================================== */
.error-page {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  max-width: 700px !important;
  margin: 0 auto;
  padding: 80px 24px !important;
}

.error-page .kicker {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 15px;
  color: var(--ueee-accent);
}

.error-page h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--ueee-brand);
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.15;
}

.error-page p {
  font-size: 1.15rem;
  color: var(--ueee-text-main);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 35px;
  line-height: 1.7;
}

.error-page .contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Urgent Modal (Pop-up) Styles
   ========================================================================== */
.urgent-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 5, 21, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 24px;
}

.urgent-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.urgent-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  max-height: calc(100vh - 60px);
  border-radius: var(--border-radius-lg, 14px);
  overflow-y: auto;
  box-shadow: 0 24px 50px -12px rgba(13, 5, 21, 0.25);
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.urgent-modal-overlay.active .urgent-modal-container {
  transform: translateY(0);
}

.urgent-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 26px;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ueee-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition-fast);
}

.urgent-modal-close:hover {
  background: #ffffff;
  color: var(--ueee-brand);
  transform: scale(1.05);
}

.urgent-modal-banner {
  width: 100%;
  position: relative;
  border-bottom: 3px solid var(--ueee-accent);
  display: block;
}

.urgent-modal-banner img.urgent-modal-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.urgent-modal-container.only-banner {
  max-width: 640px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.urgent-modal-container.only-banner .urgent-modal-banner {
  border-bottom: none;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.urgent-modal-container.only-banner img.urgent-modal-img {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  border-radius: var(--border-radius-lg, 14px);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.urgent-modal-container.only-banner .urgent-modal-close {
  background: rgba(13, 5, 21, 0.8);
  color: #ffffff;
  top: 10px;
  right: 10px;
}

.urgent-modal-container.only-banner .urgent-modal-close:hover {
  background: #ffffff;
  color: var(--ueee-brand);
}

.urgent-modal-content {
  padding: 32px;
}

.urgent-modal-body {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ueee-text-main);
  margin-bottom: 24px;
}

.urgent-modal-body p {
  margin-top: 0;
  margin-bottom: 12px;
}

.urgent-modal-body p:last-child {
  margin-bottom: 0;
}

.urgent-modal-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.urgent-modal-actions .button {
  margin: 0;
  flex: 1 1 calc(50% - 12px);
  min-width: 150px;
  text-align: center;
  justify-content: center;
}

.urgent-modal-actions .button:only-child {
  flex: 0 1 auto;
  min-width: 200px;
}

@media (max-width: 480px) {
  .urgent-modal-content {
    padding: 24px;
    max-height: calc(100vh - 220px);
  }
  .urgent-modal-banner {
    max-height: 150px;
  }
  .urgent-modal-banner img.urgent-modal-img {
    max-height: 150px;
  }
  .urgent-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .urgent-modal-actions .button {
    width: 100%;
    flex: 1 1 auto;
  }
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .quick-icon-circle {
    width: 52px;
    height: 52px;
  }
  .quick-icon-circle svg,
  .quick-icon-circle img {
    width: 22px;
    height: 22px;
  }
  .quick-label {
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   Página de Contacto (/contacto y /contactos) Styles
   ========================================================================== */
.contact-page-header {
  background: linear-gradient(135deg, var(--ueee-brand) 0%, #3a115b 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.contact-page-header p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 12px auto 0;
  line-height: 1.6;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 48px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
  padding-bottom: 80px;
}

.contact-info-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 60px -15px rgba(91, 35, 134, 0.08), 0 10px 20px -5px rgba(91, 35, 134, 0.04);
  border: 1px solid rgba(91, 35, 134, 0.06);
  padding: 48px 54px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px -20px rgba(91, 35, 134, 0.12), 0 15px 30px -10px rgba(91, 35, 134, 0.06);
}

.contact-info-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ueee-brand);
  margin-top: 0;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s ease;
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  background: color-mix(in srgb, var(--ueee-brand) 6%, transparent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ueee-brand);
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(91, 35, 134, 0.08);
}

.contact-info-item:hover .contact-info-icon {
  background: var(--ueee-brand);
  color: #ffffff;
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 8px 20px rgba(91, 35, 134, 0.15);
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ueee-dark);
}

.contact-info-content p, 
.contact-info-content a {
  font-size: 1.02rem;
  color: var(--ueee-text-main);
  margin: 0;
  text-decoration: none;
  transition: all 0.25s ease;
  line-height: 1.5;
}

.contact-info-content a:hover {
  color: var(--ueee-brand);
}

/* WhatsApp pill button design */
.contact-info-content a[href*="wa.me"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.contact-info-content a[href*="wa.me"]:hover {
  background: #20ba59;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.3);
}

.contact-socials-wrapper h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--ueee-dark);
  letter-spacing: -0.01em;
}

.contact-socials {
  display: flex;
  gap: 14px;
}

.contact-social-link {
  width: 46px;
  height: 46px;
  background: #fcfbfe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ueee-brand);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(91, 35, 134, 0.1);
}

.contact-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-social-link:hover {
  background: var(--ueee-brand);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(91, 35, 134, 0.25);
}

.contact-map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(91, 35, 134, 0.08), 0 10px 20px -5px rgba(91, 35, 134, 0.04);
  border: 1px solid rgba(91, 35, 134, 0.06);
  height: 500px;
  background: #f7f5fa;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-map-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px -20px rgba(91, 35, 134, 0.12), 0 15px 30px -10px rgba(91, 35, 134, 0.06);
}

.contact-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-map-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: var(--ueee-text-main);
}

.contact-map-fallback svg {
  width: 48px;
  height: 48px;
  color: var(--ueee-brand);
  margin-bottom: 16px;
  opacity: 0.8;
}

@media (max-width: 960px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 0;
    padding: 40px 0;
  }
  .contact-map-container {
    height: 380px;
  }
}

/* ==========================================================================
   Mega Menú & Columnas en Submenús
   ========================================================================== */
.header-inner {
  position: relative; /* Anchor for full-width mega menu */
}

@media (min-width: 961px) {
  /* Megamenu con 3 niveles (Padre -> Cabeceras Columnas -> Enlaces) */
  .has-megamenu .menu > li.mega-menu,
  .has-megamenu .menu > li.megamenu {
    position: static !important;
  }

  .has-megamenu .menu > li.mega-menu > .sub-menu,
  .has-megamenu .menu > li.megamenu > .sub-menu {
    width: 100%;
    max-width: 1200px;
    left: 0;
    right: 0;
    margin: 12px auto 0;
    padding: 32px 40px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    box-sizing: border-box;
    border-radius: var(--border-radius-lg, 14px);
    background: #ffffff;
    box-shadow: 0 20px 40px -10px rgba(91, 35, 134, 0.15), 0 10px 20px -5px rgba(91, 35, 134, 0.08);
  }
  
  /* Cada item directo del submenú representa una columna */
  .has-megamenu .menu > li.mega-menu > .sub-menu > li,
  .has-megamenu .menu > li.megamenu > .sub-menu > li {
    flex: 1;
    min-width: 200px;
    padding: 0;
  }
  
  /* Título de la columna (Nivel 1) */
  .has-megamenu .menu > li.mega-menu > .sub-menu > li > a,
  .has-megamenu .menu > li.megamenu > .sub-menu > li > a {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ueee-brand);
    border-bottom: 2px solid color-mix(in srgb, var(--ueee-brand) 12%, transparent);
    padding: 0 0 10px 0;
    margin-bottom: 12px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  /* Desactivar estilos absolutos para los sub-submenús dentro de las columnas */
  .has-megamenu .menu > li.mega-menu > .sub-menu > li > .sub-menu,
  .has-megamenu .menu > li.megamenu > .sub-menu > li > .sub-menu {
    position: static;
    display: block;
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    box-shadow: none;
    border: none;
    padding: 0;
    width: 100%;
    margin-top: 0;
    transform: none;
    transition: none;
    background: transparent;
  }

  .has-megamenu .menu > li.mega-menu > .sub-menu > li > .sub-menu a,
  .has-megamenu .menu > li.megamenu > .sub-menu > li > .sub-menu a {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--ueee-text-main);
    font-weight: 500;
    text-transform: var(--ueee-menu-tt, none);
    border-radius: 0;
  }

  .has-megamenu .menu > li.mega-menu > .sub-menu > li > .sub-menu a:hover,
  .has-megamenu .menu > li.megamenu > .sub-menu > li > .sub-menu a:hover {
    color: var(--ueee-brand);
    background: transparent;
    transform: translateX(4px);
  }
  
  /* Ocultar las flechas chevrons de nivel 2 */
  .has-megamenu .menu > li.mega-menu > .sub-menu li::after,
  .has-megamenu .menu > li.megamenu > .sub-menu li::after {
    display: none !important;
  }

  /* Soporte de columnas para submenús convencionales pero con muchos enlaces (Clases CSS: cols-2 y cols-3) */
  .primary-nav .menu > li.cols-2 > .sub-menu {
    width: 480px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .primary-nav .menu > li.cols-3 > .sub-menu {
    width: 680px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* ==========================================================================
   Imagen Destacada y Botones de Compartir en Páginas/Entradas
   ========================================================================== */
.featured-image-container {
  max-width: 900px;
  margin: 0 auto 32px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(91, 35, 134, 0.04);
  border: 1px solid rgba(91, 35, 134, 0.08);
}

.featured-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 480px;
}

.post-meta-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ueee-text-muted);
  margin: 0 auto 20px;
  max-width: 900px;
}

.post-meta-date svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.featured-image-container + .post-meta-date {
  margin-top: -12px;
}

.share-buttons-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(91, 35, 134, 0.08);
}

.share-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ueee-text-main);
  margin-right: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.share-whatsapp {
  background: #25d366;
}
.share-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.25);
}

.share-facebook {
  background: #1877f2;
}
.share-facebook:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(24, 119, 242, 0.25);
}

.share-twitter {
  background: #0f1419;
}
.share-twitter:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 20, 25, 0.25);
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.share-btn:hover {
  color: #ffffff;
}

@media (max-width: 600px) {
  .share-buttons-container {
    flex-direction: column;
    align-items: stretch;
  }
  .share-label {
    text-align: center;
    margin-bottom: 8px;
  }
  .share-btn {
    justify-content: center;
  }
}

/* ==========================================================================
   Scroll Reveal Animations (Intersection Observer)
   ========================================================================== */
.reveal-ready {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ==========================================================================
   Barras de Carga de Sliders (Progress Indicators)
   ========================================================================== */
.slider-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--ueee-accent);
  z-index: 100;
  width: 0%;
  border-radius: 0 4px 4px 0;
  pointer-events: none;
}

.honor-tab-btn {
  position: relative;
  overflow: hidden;
}

.tab-progress-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--ueee-accent);
  width: 0%;
  pointer-events: none;
}

@keyframes sliderProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* ==========================================================================
   Logo Badge Styling (Commemorative, customizable overlay badge)
   ========================================================================== */
.brand {
  position: relative;
}

.logo-badge {
  position: absolute;
  top: -10px;
  left: 210px;
  z-index: 10;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
  pointer-events: none;
  animation: badgeWiggle 4s ease-in-out infinite;
  transform-origin: bottom center;
}

.badge-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes badgeWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.05); }
}

/* ==========================================================================
   Archive and Category Page Styles
   ========================================================================== */
.archive-shell {
  background: var(--ueee-light);
  padding: 24px 0 60px;
}

.archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.archive-header {
  text-align: center;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.archive-header h1 {
  font-size: 2.8rem;
  color: var(--ueee-dark);
  margin: 8px 0 16px;
  letter-spacing: -0.03em;
}

.archive-description {
  color: var(--ueee-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.archive-card {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(91, 35, 134, 0.02);
  border: 1px solid rgba(91, 35, 134, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
}

.archive-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ueee-shadow-lg);
  border-color: color-mix(in srgb, var(--ueee-brand) 15%, transparent);
}

.archive-card-image {
  height: 230px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.archive-card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.archive-card-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.archive-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ueee-text-muted);
  margin-bottom: 14px;
}

.archive-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.archive-card-date svg {
  width: 14px;
  height: 14px;
}

.archive-card-title {
  font-size: 1.35rem;
  margin: 0 0 12px;
  line-height: 1.4;
}

.archive-card-title a {
  color: var(--ueee-dark);
  transition: var(--transition-fast);
}

.archive-card-title a:hover {
  color: var(--ueee-brand);
}

.archive-card-excerpt {
  color: var(--ueee-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.archive-card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ueee-brand);
  transition: var(--transition-fast);
}

.archive-card-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.archive-card:hover .archive-card-more svg {
  transform: translateX(4px);
}

/* Pagination */
.archive-pagination {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.archive-pagination .navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(91, 35, 134, 0.06);
  color: var(--ueee-text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.archive-pagination .page-numbers:hover {
  border-color: var(--ueee-brand);
  color: var(--ueee-brand);
  background: color-mix(in srgb, var(--ueee-brand) 3%, transparent);
}

.archive-pagination .page-numbers.current {
  background: var(--ueee-brand);
  border-color: var(--ueee-brand);
  color: #ffffff;
}

.archive-pagination .page-numbers.dots {
  background: transparent;
  border: none;
}

.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  border-radius: 22px;
}

.archive-pagination .page-numbers.prev svg,
.archive-pagination .page-numbers.next svg {
  width: 16px;
  height: 16px;
}

.no-posts-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 20px rgba(91, 35, 134, 0.02);
}

.no-posts-found p {
  color: var(--ueee-text-muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .archive-header h1 {
    font-size: 2.2rem;
  }
  .logo-badge {
    left: 170px;
    width: 44px;
    height: 44px;
    top: -6px;
  }
}

/* ==========================================================================
   Scholarship and Support Section Styles
   ========================================================================== */
.scholarship-section {
  background: #ffffff;
  padding: 80px 24px;
  border-top: 1px solid rgba(91, 35, 134, 0.05);
}

.scholarship-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.scholarship-image-wrapper {
  border-radius: var(--border-radius-lg, 20px);
  overflow: hidden;
  box-shadow: var(--ueee-shadow-md);
  border: 1px solid rgba(91, 35, 134, 0.06);
}

.scholarship-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 400px;
  transition: transform 0.4s ease;
}

.scholarship-image-wrapper:hover .scholarship-img {
  transform: scale(1.03);
}

.scholarship-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.scholarship-content h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin: 0 0 1.2rem;
  color: var(--ueee-brand);
  line-height: 1.1;
  font-weight: 800;
}

.scholarship-body-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ueee-text-main);
}

@media (max-width: 900px) {
  .scholarship-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .scholarship-content {
    align-items: center;
    text-align: center;
  }
  
  .scholarship-content h2 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--ueee-brand);
    font-weight: 800;
  }
}

/* ==========================================================================
   Authorities Band Section Styles
   ========================================================================== */
.authorities-band {
  background: #ffffff;
  padding: 100px 24px;
}

.authorities-heading {
  max-width: 720px;
  margin-bottom: 50px;
}

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

.authority-card {
  display: flex;
  flex-direction: column;
  background: #faf8fc;
  border: 1px solid color-mix(in srgb, var(--ueee-brand) 6%, transparent);
  border-radius: var(--border-radius-lg, 20px);
  overflow: hidden;
  box-shadow: var(--ueee-shadow-sm);
  transition: var(--transition-smooth);
}

.authority-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  box-shadow: var(--ueee-shadow-md);
  border-color: color-mix(in srgb, var(--ueee-brand) 18%, transparent);
}

.authority-photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f1ecf6;
  border-bottom: 1px solid rgba(91, 35, 134, 0.05);
}

.authority-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.authority-card:hover .authority-photo {
  transform: scale(1.04);
}

.authority-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

.authority-badge {
  display: inline-flex;
  padding: 6px 14px;
  background: color-mix(in srgb, var(--ueee-brand) 8%, transparent);
  color: var(--ueee-brand);
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.authority-badge.accent {
  background: color-mix(in srgb, var(--ueee-accent) 12%, transparent);
  color: color-mix(in srgb, var(--ueee-accent) 80%, #000);
}

.authority-badge.info {
  background: rgba(91, 35, 134, 0.06);
  color: var(--ueee-text-muted);
}

.authority-info h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ueee-dark);
}

.authority-role {
  margin: 0;
  font-size: 1rem;
  color: var(--ueee-text-muted);
  line-height: 1.5;
}

/* Junta Card & List styling */
.junta-card {
  justify-content: flex-start;
  background: linear-gradient(135deg, #faf8fc 0%, #f5effc 100%);
}

.junta-members-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.junta-members-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(91, 35, 134, 0.08);
  display: flex;
  flex-direction: column;
}

.junta-members-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.junta-members-list strong {
  color: var(--ueee-dark);
  font-size: 1.05rem;
  font-weight: 700;
}

.junta-members-list span {
  font-size: 0.88rem;
  color: var(--ueee-text-muted);
  margin-top: 2px;
}

.empty-junta {
  color: var(--ueee-text-muted);
  font-style: italic;
}

@media (max-width: 960px) {
  .authorities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .junta-card {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .authorities-band {
    padding: 60px 18px;
  }
  .authorities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .junta-card {
    grid-column: span 1;
  }
  .authority-info {
    padding: 24px;
  }
}


