﻿.page-template-template-lin-mapa .site-content > .ast-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  display: block;
}

.page-template-template-lin-mapa #primary {
  width: 100%;
  margin: 0;
  padding: 0;
}

.page-template-template-lin-mapa #secondary {
  display: none;
}
.lin-page {
  --uabc-green: #00693e;
  --uabc-green-dark: #00452a;
  --lin-blue: #20419a;
  --lin-blue-dark: #131f4e;
  --lin-gold: #d9a020;
  --color-primary: var(--uabc-green);
  --color-primary-dark: var(--uabc-green-dark);
  --color-primary-light: #e6f4ec;
  --color-gold: var(--lin-gold);
  --color-gold-dark: #b27f16;
  --color-gold-light: #fdf3d3;
  --color-blue-dark: var(--lin-blue);
  --color-blue-navy: var(--lin-blue-dark);
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-600: #4b5563;
  --color-gray-800: #1f2937;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.lin-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.lin-page .mc-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  padding-top: 20px;
  color: var(--color-gray-800);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lin-page .mc-header {
  background: linear-gradient(135deg, var(--uabc-green) 0%, var(--lin-blue) 100%);
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.lin-page .mc-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 160, 32, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.lin-page .mc-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(32, 65, 154, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.lin-page .mc-header-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.lin-page .mc-header p {
  font-size: 1.2rem;
  color: #e5f9ef;
  font-weight: 500;
  margin: 0;
}

.lin-page .btn-ver-mapa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--lin-blue-dark);
  background: linear-gradient(135deg, var(--color-gold) 0%, #f5c842 50%, var(--color-gold) 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(217, 160, 32, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: lin-shimmer 3s ease-in-out infinite;
}

@keyframes lin-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.lin-page .btn-ver-mapa::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.lin-page .btn-ver-mapa:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(217, 160, 32, 0.5), 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.lin-page .btn-ver-mapa:hover::before {
  left: 100%;
}

.lin-page .btn-ver-mapa:active {
  transform: translateY(-1px) scale(1.02);
}

.lin-page .btn-ver-mapa .btn-icon {
  font-size: 1.3rem;
  animation: lin-pulse-icon 2s ease-in-out infinite;
}

@keyframes lin-pulse-icon {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.lin-page .map-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lin-page .map-modal.open {
  display: block;
  opacity: 1;
}

.lin-page .map-stage {
  position: absolute;
  inset: 0;
  top: 70px;
  overflow: hidden;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lin-page .map-img {
  max-width: 95%;
  max-height: 90%;
  transform-origin: center center;
  will-change: transform;
  cursor: grab;
  transition: transform 0.15s ease-out;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lin-page .map-img:active {
  cursor: grabbing;
}

.lin-page .map-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--lin-blue-dark) 0%, var(--uabc-green-dark) 100%);
  border-bottom: 3px solid var(--color-gold);
  z-index: 100;
}

.lin-page .map-title {
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lin-page .map-title-icon {
  font-size: 1.5rem;
}

.lin-page .map-close {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lin-page .map-close:hover {
  background: #d32f2f;
  border-color: #d32f2f;
  transform: scale(1.1) rotate(90deg);
}

.lin-page .map-toolbar {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lin-page .map-toolbar-btn {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lin-page .map-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lin-page .mc-filters {
  background: var(--color-white);
  padding: 25px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-gray-200);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.lin-page .mc-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 220px;
}

.lin-page .mc-filter-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-blue-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lin-page .mc-filter-group select {
  padding: 12px 16px;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--color-white);
  color: var(--color-gray-800);
  cursor: pointer;
}

.lin-page .mc-filter-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.lin-page .mc-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.lin-page .mc-tab-optativas {
  padding: 16px 0;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  max-width: 0;
  min-width: 0;
  opacity: 0;
  overflow: hidden;
  border-width: 0;
  box-shadow: none;
  transform: translateX(-8px);
  margin-left: -15px;
  transition: max-width 0.35s ease, opacity 0.28s ease, transform 0.35s ease, padding 0.35s ease, margin 0.35s ease, border-width 0.2s ease;
  pointer-events: none;
}

.lin-page .mc-tab-optativas.is-visible {
  max-width: 220px;
  min-width: 170px;
  opacity: 1;
  border-width: 2px;
  padding: 16px 24px;
  transform: translateX(0);
  margin-left: 0;
  pointer-events: auto;
}

.lin-page .mc-tab-optativas[aria-pressed='true'] {
  color: var(--color-white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--lin-blue) 0%, var(--lin-blue-dark) 100%);
}

.lin-page .mc-tab {
  padding: 16px 32px;
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-gray-600);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.lin-page .mc-tab:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lin-page .mc-tab[aria-selected='true'] {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.lin-page .mc-tab.etapa-basica[aria-selected='true'] {
  background: linear-gradient(135deg, var(--uabc-green) 0%, var(--uabc-green-dark) 100%);
}

.lin-page .mc-tab.etapa-disciplinaria[aria-selected='true'] {
  background: linear-gradient(135deg, var(--lin-blue) 0%, var(--lin-blue-dark) 100%);
}

.lin-page .mc-tab.etapa-terminal[aria-selected='true'] {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
}

.lin-page .mc-semesters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.lin-page .mc-semester-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-gray-200);
  transition: all 0.3s ease;
}

.lin-page .mc-semester-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.lin-page .mc-semester-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--uabc-green) 0%, var(--uabc-green-dark) 100%);
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.2rem;
  text-align: center;
  border-bottom: 3px solid var(--color-gold);
}

.lin-page .mc-etapa-disciplinaria .mc-semester-header {
  background: linear-gradient(135deg, var(--lin-blue) 0%, var(--lin-blue-dark) 100%);
}

.lin-page .mc-etapa-terminal .mc-semester-header {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
}

.lin-page .mc-courses {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  min-height: 120px;
  background: var(--color-gray-50);
}

.lin-page .mc-course {
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.lin-page .mc-course::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--course-color, var(--color-primary));
}

.lin-page .mc-course:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.lin-page .mc-course h5 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--color-blue-dark);
  line-height: 1.4;
  font-weight: 700;
  padding-left: 10px;
}

.lin-page .mc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-left: 10px;
}

.lin-page .chip {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-gray-100);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gray-600);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--color-gray-200);
}

.lin-page .chip--area {
  background: var(--color-gold-light);
  color: var(--color-gold-dark);
  border-color: var(--color-gold);
}

.lin-page .area-innovacion {
  --course-color: var(--color-gold);
}

.lin-page .area-cdatos {
  --course-color: #8b5cf6;
}

.lin-page .area-ti {
  --course-color: var(--lin-blue);
}

.lin-page .area-econadmin {
  --course-color: #10b981;
}

.lin-page .area-social {
  --course-color: #06b6d4;
}

.lin-page .mc-actions {
  display: flex;
  gap: 10px;
  padding-left: 10px;
}

.lin-page .mc-btn {
  flex: 1;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--uabc-green) 0%, var(--uabc-green-dark) 100%);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lin-page .mc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.lin-page .mc-btn-download {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
}

.lin-page .pdf-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  padding: 20px;
  animation: lin-fade-in 0.3s ease;
}

@keyframes lin-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lin-page .pdf-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lin-page .pdf-wrap {
  width: min(95%, 1200px);
  height: min(92vh, calc(100vh - 40px));
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: lin-slide-up 0.4s ease;
  border: 3px solid var(--color-gold);
}

@keyframes lin-slide-up {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.lin-page .pdf-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--lin-blue-dark) 0%, var(--uabc-green-dark) 100%);
  color: var(--color-white);
  z-index: 2;
  border-bottom: 3px solid var(--color-gold);
}

.lin-page .pdf-title {
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.lin-page .pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 2px solid var(--color-gold);
  color: var(--color-white);
  background: rgba(217, 160, 32, 0.2);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lin-page .pdf-btn:hover {
  background: var(--color-gold);
  transform: translateY(-2px);
}

.lin-page .pdf-frame {
  position: absolute;
  top: 70px;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100% - 70px);
  border: 0;
  background: var(--color-gray-50);
}

.lin-page .mc-legend {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-md);
  margin-top: 40px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-gray-200);
}

.lin-page .mc-legend h3 {
  margin-bottom: 20px;
  color: var(--color-blue-dark);
  font-size: 1.4rem;
  font-weight: 800;
  border-bottom: 3px solid var(--color-gold);
  padding-bottom: 10px;
}

.lin-page .mc-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.lin-page .mc-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--color-gray-50);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  border: 2px solid var(--color-gray-200);
}

.lin-page .mc-legend-item:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  transform: translateX(5px);
}

.lin-page .mc-legend-color {
  width: 28px;
  height: 28px;
  border-left: 5px solid;
  border-radius: 4px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.lin-page .mc-legend-item strong {
  color: var(--color-blue-dark);
  font-weight: 700;
}

.lin-page .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-gray-600);
}

.lin-page .empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--color-blue-dark);
}

@media (max-width: 768px) {
  .lin-page .mc-container {
    padding: 10px;
  }

  .lin-page .mc-header {
    padding: 30px 20px;
  }

  .lin-page .mc-header-subtitle {
    flex-direction: column;
    gap: 15px;
  }

  .lin-page .btn-ver-mapa {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .lin-page .mc-filters {
    flex-direction: column;
    padding: 20px;
  }

  .lin-page .mc-filter-group {
    width: 100%;
    min-width: 100%;
  }

  .lin-page .mc-semesters-grid {
    grid-template-columns: 1fr;
  }

  .lin-page .mc-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .lin-page .mc-tab {
    width: 100%;
    text-align: center;
  }

  .lin-page .mc-tab-optativas {
    max-width: 100%;
    min-width: 100%;
    margin-left: 0;
    transform: none;
    transition: opacity 0.28s ease, max-height 0.35s ease, padding 0.35s ease;
  }

  .lin-page .mc-tab-optativas:not(.is-visible) {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .lin-page .mc-tab-optativas.is-visible {
    opacity: 1;
    max-height: 64px;
  }

  .lin-page .mc-legend-grid {
    grid-template-columns: 1fr;
  }

  .lin-page .map-header {
    height: 60px;
    padding: 0 15px;
  }

  .lin-page .map-title {
    font-size: 1rem;
  }

  .lin-page .map-toolbar {
    bottom: 20px;
    padding: 8px 12px;
  }

  .lin-page .map-toolbar-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .lin-page .pdf-wrap {
    height: 90vh;
  }

  .lin-page .pdf-title {
    font-size: 0.9rem;
  }

  .lin-page .pdf-btn {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

