.la-universidad-detalle-page {
  padding-top: 0;
}

.la-universidad-detalle-page section {
  padding: 80px 0;
}

/* Hero Section */
.mv-detalle-hero,
.historia-detalle-hero,
.directorio-hero,
.organigrama-hero,
.comision-hero {
  background: linear-gradient(180deg, #3d1414 0%, #5f1e1e 50%, #3d1414 100%);
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
}

.mv-detalle-hero::before,
.historia-detalle-hero::before,
.directorio-hero::before,
.organigrama-hero::before,
.comision-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
}

.mv-detalle-hero .hero-badge,
.historia-detalle-hero .hero-badge,
.directorio-hero .hero-badge,
.organigrama-hero .hero-badge,
.comision-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 162, 16, 0.2);
  border: 1px solid rgba(232, 162, 16, 0.4);
  color: #e8a210;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.mv-detalle-hero h1,
.historia-detalle-hero h1,
.directorio-hero h1,
.organigrama-hero h1,
.comision-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mv-detalle-hero p,
.historia-detalle-hero p,
.directorio-hero p,
.organigrama-hero p,
.comision-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Section Badge */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e8a210 0%, #d4950e 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* MV Cards */
.mv-detalle {
  padding: 80px 0;
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.mv-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(95, 30, 30, 0.1);
  border-color: #e8a210;
}

.mv-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #5f1e1e 0%, #7a2a2a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.mv-icon svg {
  color: #e8a210;
}

.mv-card h3 {
  color: #5f1e1e;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.mv-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
}

/* Valores */
.valores-detalle {
  padding: 80px 0;
  background: #fff;
}

.valores-header,
.autoridades-header,
.unidades-header,
.funciones-header,
.contacto-header {
  text-align: center;
  margin-bottom: 50px;
}

.valores-header h2,
.autoridades-header h2,
.unidades-header h2,
.funciones-header h2,
.contacto-header h2 {
  color: #5f1e1e;
  font-size: 2rem;
  font-weight: 700;
}

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

.valor-card {
  background: #fafafa;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.valor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(95, 30, 30, 0.12);
  border-color: #e8a210;
}

.valor-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e8a210 0%, #d4950e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.valor-icon svg {
  color: #fff;
}

.valor-card h4 {
  color: #5f1e1e;
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.valor-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Historia */
.historia-detalle {
  padding: 80px 0;
  background: #fff;
}

.historia-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.historia-content {
  text-align: justify;
}

.historia-content p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
}

.historia-detalle .historia-timeline {
  background: #fafafa;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.historia-detalle .historia-timeline h3::before {
  display: none !important;
}

.historia-detalle .historia-timeline h3 {
  color: #5f1e1e;
  font-size: 1rem;
  margin-bottom: 5px;
  padding-top: 0;
  text-align: center;
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: none !important;
}

.historia-detalle .timeline-list {
  list-style: none;
  padding: 10px 0 0 30px;
  margin: 0;
  position: relative;
  display: block;
}

.historia-detalle .timeline-list::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 0;
  width: 2px;
  background: #e8a210;
}

.historia-detalle .historia-timeline h3::before {
  display: none !important;
}

.historia-detalle .historia-timeline h3 {
  color: #5f1e1e;
  font-size: 1rem;
  margin-bottom: 5px;
  padding-top: 0;
  border-top: none !important;
  text-align: center;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.historia-detalle .timeline-vertical-line {
  position: absolute;
  left: 8px;
  top: 50px;
  bottom: 20px;
  width: 2px;
  background: #e8a210;
}

.historia-detalle .historia-timeline h3::before {
  display: none !important;
}

.historia-detalle .historia-timeline h3 {
  color: #5f1e1e;
  font-size: 1rem;
  margin-bottom: 5px;
  padding-top: 0;
  border-top: none !important;
  text-align: center;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.historia-detalle .timeline-list {
  list-style: none;
  padding: 10px 0 0 30px;
  margin: 0;
  position: relative;
  display: block;
}

.historia-detalle .timeline-entry {
  position: relative;
  margin-bottom: 15px;
}

.historia-detalle .timeline-entry:last-child {
  margin-bottom: 0;
}

.historia-detalle .timeline-marker {
  position: absolute;
  left: -26px;
  top: 0;
  width: 12px;
  height: 12px;
  background: #e8a210;
  border-radius: 50%;
  border: 2px solid #fff;
}

.historia-detalle .timeline-card {
  background: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.historia-detalle .timeline-year {
  display: block;
  color: #e8a210;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.historia-detalle .timeline-card p {
  color: #555;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

.historia-content {
  text-align: justify;
}

.historia-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

/* Infraestructura Mini */
.infraestructura-mini {
  padding: 80px 0;
  background: #f5f5f5;
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.infra-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 200px;
}

.infra-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.infra-item:hover img {
  transform: scale(1.1);
}

.infra-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(95, 30, 30, 0.95), transparent);
  color: #fff;
}

.infra-info h4 {
  font-size: 1rem;
  margin: 0;
}

/* Autoridades */
.autoridades-detalle {
  padding: 80px 0;
  background: #fafafa;
}

.autoridades-header p {
  color: #666;
  font-size: 1rem;
  margin-top: 10px;
}

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

.autoridad-card {
  background: #fff;
  border-radius: 16px;
  text-align: center;
  padding: 30px 20px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.autoridad-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(95, 30, 30, 0.1);
  border-color: #e8a210;
}

.autoridad-img {
  width: 100px;
  height: 100px;
  background: #f5f5f5;
  border-radius: 50%;
  margin: 0 auto 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.autoridad-img img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.autoridad-card h4 {
  color: #5f1e1e;
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.autoridad-card .cargo {
  color: #e8a210;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Directorio Contacto */
.directorio-contacto {
  padding: 80px 0;
  background: #fff;
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fafafa;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #eee;
}

.contacto-item svg {
  color: #e8a210;
  flex-shrink: 0;
}

.contacto-item h4 {
  color: #5f1e1e;
  font-size: 1rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.contacto-item p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Organigrama */
.organigrama-detalle {
  padding: 80px 0;
  background: #fafafa;
}

.organigrama-content {
  max-width: 800px;
  margin: 0 auto;
}

.org-nivel {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.org-box {
  background: #fff;
  padding: 15px 25px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #5f1e1e;
  font-weight: 600;
  color: #5f1e1e;
  font-size: 0.9rem;
}

.org-box.principal {
  background: linear-gradient(135deg, #5f1e1e 0%, #7a2a2a 100%);
  color: #e8a210;
  font-size: 1rem;
  padding: 20px 40px;
}

.organigrama-unidades {
  padding: 80px 0;
  background: #fff;
}

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

.unidad-card {
  background: #fafafa;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #eee;
  text-align: center;
}

.unidad-card h4 {
  color: #5f1e1e;
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.unidad-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Comisión */
.comision-detalle {
  padding: 80px 0;
  background: #fafafa;
}

.comision-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.comision-intro p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.comision-card {
  background: #fff;
  border-radius: 16px;
  text-align: center;
  padding: 30px 20px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.comision-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(95, 30, 30, 0.1);
  border-color: #e8a210;
}

.comision-img {
  width: 180px;
  height: 180px;
  background: #f5f5f5;
  border-radius: 50%;
  margin: 0 auto 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comision-img img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.comision-card h4 {
  color: #5f1e1e;
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.comision-card .cargo {
  color: #e8a210;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0;
}

/* Funciones */
.comision-funciones {
  padding: 80px 0;
  background: #fff;
}

.funciones-list {
  max-width: 700px;
  margin: 0 auto;
}

.funcion-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: #fafafa;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid #eee;
}

.funcion-item svg {
  color: #e8a210;
  flex-shrink: 0;
}

.funcion-item span {
  color: #555;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .mv-grid,
  .valores-grid,
  .autoridades-grid,
  .comision-grid,
  .unidades-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .infra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .historia-layout {
    grid-template-columns: 1fr 250px;
  }
  
  .contacto-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mv-detalle-hero,
  .historia-detalle-hero,
  .directorio-hero,
  .organigrama-hero,
  .comision-hero {
    padding: 120px 0 60px;
  }
  
  .mv-detalle-hero h1,
  .historia-detalle-hero h1,
  .directorio-hero h1,
  .organigrama-hero h1,
  .comision-hero h1 {
    font-size: 1.8rem;
  }
  
  .mv-grid,
  .valores-grid,
  .autoridades-grid,
  .comision-grid,
  .unidades-grid,
  .infra-grid {
    grid-template-columns: 1fr;
  }
  
  .historia-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .historia-detalle .historia-timeline {
    order: -1;
  }

  .org-nivel {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .mv-detalle-hero,
  .historia-detalle-hero,
  .directorio-hero,
  .organigrama-hero,
  .comision-hero {
    padding: 100px 0 50px;
  }
  
  .mv-detalle-hero h1,
  .historia-detalle-hero h1,
  .directorio-hero h1,
  .organigrama-hero h1,
  .comision-hero h1 {
    font-size: 1.5rem;
  }
  
  .mv-card,
  .mv-card {
    padding: 30px;
  }
}

/* Organigrama Imagen */
.organigrama-img {
  padding: 60px 0;
  background: #e8e8e8;
}

.organigrama-img .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.organigrama-img .img-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.organigrama-img .img-info h2 {
  color: #5f1e1e;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.organigrama-img .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #e8a210 0%, #d4950e 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.organigrama-img .btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(232, 162, 16, 0.4);
}

.organigrama-img .btn-download svg {
  flex-shrink: 0;
}

.organigrama-img .img-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
  text-align: center;
}

.organigrama-img .img-container img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .organigrama-img .img-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .organigrama-img .btn-download {
    width: 100%;
    justify-content: center;
  }
}

.organigrama-pdf .container {
  max-width: 100%;
  width: 100%;
  padding: 0 40px;
}

.organigrama-pdf .pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.organigrama-pdf .pdf-info h2 {
  color: #5f1e1e;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.organigrama-pdf .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #e8a210 0%, #d4950e 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.organigrama-pdf .btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(232, 162, 16, 0.4);
}

.organigrama-pdf .btn-download svg {
  flex-shrink: 0;
}

.organigrama-pdf .pdf-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.organigrama-pdf .pdf-container iframe {
  display: block;
  width: 100%;
  height: 900px;
}

@media (max-width: 768px) {
  .organigrama-pdf .pdf-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .organigrama-pdf .btn-download {
    width: 100%;
    justify-content: center;
  }
  
  .organigrama-pdf .pdf-container iframe {
    height: 600px;
  }
}

@media (max-width: 480px) {
  .organigrama-pdf .pdf-container iframe {
    height: 500px;
  }
}