:root {
  --primary-color: #00b464;
  --secondary-color: #008a4c;
  --background-color: #ffffff;
  --card-background: #f5fff9;
  --text-color: #333333;
  --shadow-color: rgba(0, 255, 150, 0.2);
  --accent-color: #ffd700;
}

.org-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  text-decoration: none;
  margin-bottom: 30px;
}

h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
}

.directiva-section,
.series-section {
  margin-bottom: 60px;
}

h2 {
  color: var(--secondary-color);
  margin-bottom: 30px;
  text-align: center;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.staff-card {
  background: rgba(255,255,255,0.5);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-5px);
}

.staff-photo {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.staff-info h3,
.staff-info h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.role {
  color: var(--secondary-color);
  font-weight: bold;
  margin-bottom: 5px;
}

.contact {
  color: #666;
  font-size: 0.9em;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 40px 20px;
  position: relative;
}

.level {
  display: flex;
  justify-content: center;
  gap: 40px;
  width: 100%;
  position: relative;
}

.bubble {
  background: linear-gradient(145deg, var(--card-background), #ffffff);
  border-radius: 50%;
  padding: 20px;
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 
    0 10px 20px rgba(0,0,0,0.1),
    0 0 15px var(--shadow-color);
  transition: transform 0.3s ease;
  position: relative;
}

.bubble:hover {
  transform: scale(1.05);
}

.bubble::after {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 50%;
  width: 2px;
  height: 25px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.level:last-child .bubble::after {
  display: none;
}

.bubble.president {
  width: 220px;
  height: 220px;
  background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.bubble.vice-president {
  width: 200px;
  height: 200px;
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
}

.bubble h3 {
  font-size: 1em;
  margin-bottom: 5px;
  color: inherit;
}

.bubble .name {
  font-size: 0.9em;
  margin-bottom: 3px;
}

.bubble .contact {
  font-size: 0.8em;
  opacity: 0.8;
}

.level::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 50%;
  width: 80%;
  height: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.level-1::before {
  display: none;
}

.series-container {
  display: grid;
  gap: 40px;
  margin-bottom: 60px;
}

.serie {
  background: linear-gradient(145deg, var(--card-background), #ffffff);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 
    0 10px 20px rgba(0,0,0,0.1),
    0 0 15px var(--shadow-color);
  transition: transform 0.3s ease;
}

.serie:hover {
  transform: translateY(-5px);
}

.serie h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.medical-section {
  margin-top: 60px;
  padding: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
}

.medical-staff-grid {
  display: grid;
  gap: 40px;
}

.staff-group {
  background: linear-gradient(145deg, var(--card-background), #ffffff);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 
    0 10px 20px rgba(0,0,0,0.1),
    0 0 15px var(--shadow-color);
}

.staff-group h3 {
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  font-size: 1.5em;
}

@media (max-width: 1200px) {
  .level {
    flex-wrap: wrap;
  }
  
  .bubble {
    margin: 10px;
  }
}

@media (max-width: 768px) {
  .org-chart {
    gap: 30px;
  }
  
  .bubble {
    width: 150px;
    height: 150px;
    font-size: 0.9em;
  }
  
  .bubble.president {
    width: 180px;
    height: 180px;
  }
  
  .bubble.vice-president {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
  
  .staff-card {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
  
  .medical-staff-grid {
    gap: 20px;
  }
  
  .staff-group {
    padding: 20px;
  }
}