/* Estilos para la página de Equipo */
.team-section {
  position: relative;
  overflow: hidden;
}

/* Header especial para equipo */
.team-header {
  position: relative;
  background: linear-gradient(135deg, #e30613 0%, #9a0000 100%);
  padding: 100px 0 160px;
  margin-bottom: -80px;
  overflow: hidden;
  z-index: 1;
}

.team-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
}

.team-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, #fff 0%, transparent 100%);
  z-index: 0;
}

.team-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.team-header-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.team-header-content p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 30px;
  font-weight: 300;
}

/* Sección de mensaje del director */
.director-message {
  position: relative;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 60px;
  overflow: hidden;
  z-index: 2;
}

.director-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: #e30613;
  z-index: 1;
}

.director-message-content {
  position: relative;
  z-index: 2;
}

.director-message-content h2 {
  color: #333;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.director-message-content h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: #e30613;
}

.director-message-content p {
  color: #6c757d;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.director-message-content .quote {
  font-style: italic;
  font-size: 1.2rem;
  color: #333;
  border-left: 4px solid #e30613;
  padding-left: 20px;
  margin: 30px 0;
}

.director-info {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.director-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  border: 3px solid #e30613;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.director-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-details h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.director-details p {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* Sección de organigrama */
.organigram-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.organigram-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e30613' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.organigram-container {
  position: relative;
  z-index: 1;
}

.organigram-header {
  text-align: center;
  margin-bottom: 50px;
}

.organigram-header h2 {
  color: #333;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.organigram-header h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e30613;
}

.organigram-header p {
  color: #6c757d;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 25px;
}

.organigram {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.organigram-level {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}

.organigram-level::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 40px;
  background-color: #e30613;
  z-index: 1;
}

.organigram-level:last-child::before {
  display: none;
}

.organigram-item {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  min-width: 200px;
  position: relative;
  transition: all 0.3s ease;
  z-index: 2;
}

.organigram-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(227, 6, 19, 0.2);
}

.organigram-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #e30613;
  border-radius: 15px 15px 0 0;
}

.organigram-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.organigram-item p {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
}

.organigram-level-2 {
  justify-content: space-around;
  max-width: 800px;
  margin: 0 auto 40px;
}

.organigram-level-2::before {
  display: none;
}

.organigram-level-2::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  width: 80%;
  height: 2px;
  background-color: #e30613;
  transform: translateX(-50%);
}

.organigram-level-2 .organigram-item {
  margin: 0 10px;
}

.organigram-level-2 .organigram-item::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  width: 2px;
  height: 40px;
  background-color: #e30613;
  transform: translateX(-50%);
}

.organigram-level-3 {
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.organigram-level-3::before {
  display: none;
}

.organigram-level-3::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  width: 90%;
  height: 2px;
  background-color: #e30613;
  transform: translateX(-50%);
}

.organigram-level-3 .organigram-item {
  flex: 0 0 calc(25% - 20px);
  margin-bottom: 20px;
}

.organigram-level-3 .organigram-item::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  width: 2px;
  height: 40px;
  background-color: #e30613;
  transform: translateX(-50%);
}

/* Sección de equipo directivo */
.team-members-section {
  padding: 80px 0;
  position: relative;
}

.team-members-header {
  text-align: center;
  margin-bottom: 50px;
}

.team-members-header h2 {
  color: #333;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.team-members-header h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e30613;
}

.team-members-header p {
  color: #6c757d;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 25px;
}

.team-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.team-tab {
  padding: 12px 25px;
  background-color: #f8f9fa;
  color: #6c757d;
  font-weight: 600;
  border-radius: 30px;
  margin: 0 10px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.team-tab.active,
.team-tab:hover {
  background-color: #e30613;
  color: #fff;
  box-shadow: 0 10px 20px rgba(227, 6, 19, 0.2);
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.team-member-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
}

.team-member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(227, 6, 19, 0.2);
}

.team-member-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.team-member-card:hover .team-member-image img {
  transform: scale(1.05);
}

.team-member-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.team-member-content {
  padding: 25px;
  position: relative;
}

.team-member-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  width: 50px;
  height: 3px;
  background-color: #e30613;
}

.team-member-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.team-member-position {
  font-size: 1rem;
  color: #e30613;
  font-weight: 600;
  margin-bottom: 15px;
}

.team-member-bio {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.7;
  margin-bottom: 20px;
}

.team-member-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #e30613;
  color: #fff;
  transform: translateY(-3px);
}

/* Sección de voluntarios */
.volunteers-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.volunteers-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e30613' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.volunteers-container {
  position: relative;
  z-index: 1;
}

.volunteers-header {
  text-align: center;
  margin-bottom: 50px;
}

.volunteers-header h2 {
  color: #333;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.volunteers-header h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e30613;
}

.volunteers-header p {
  color: #6c757d;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 25px;
}

.volunteers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.volunteer-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
  height: 100%;
}

.volunteer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.volunteer-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.volunteer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.volunteer-card:hover .volunteer-image img {
  transform: scale(1.05);
}

.volunteer-content {
  padding: 20px;
}

.volunteer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.volunteer-role {
  font-size: 0.9rem;
  color: #e30613;
  font-weight: 600;
  margin-bottom: 0;
}

/* Sección de unirse al equipo */
.join-team-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.join-team-container {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.join-team-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/placeholder.svg?height=600&width=1200&query=cruz roja voluntarios trabajando juntos patrón sutil");
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.join-team-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.join-team-content h2 {
  color: #333;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.join-team-content p {
  color: #6c757d;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.join-team-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.join-team-buttons .btn {
  padding: 15px 30px;
  font-weight: 600;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.join-team-buttons .btn-primary {
  background-color: #e30613;
  border-color: #e30613;
}

.join-team-buttons .btn-primary:hover {
  background-color: #c00;
  border-color: #c00;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(227, 6, 19, 0.3);
}

.join-team-buttons .btn-outline-primary {
  color: #e30613;
  border-color: #e30613;
}

.join-team-buttons .btn-outline-primary:hover {
  background-color: #e30613;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(227, 6, 19, 0.3);
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}
.delay-5 {
  animation-delay: 0.5s;
}

/* Responsive */
@media (max-width: 991px) {
  .team-header {
    padding: 80px 0 140px;
  }

  .team-header-content h1 {
    font-size: 3rem;
  }

  .team-header-content p {
    font-size: 1.2rem;
  }

  .director-message {
    padding: 30px;
  }

  .organigram-level-3 .organigram-item {
    flex: 0 0 calc(33.333% - 20px);
  }
}

@media (max-width: 767px) {
  .team-header {
    padding: 60px 0 120px;
  }

  .team-header-content h1 {
    font-size: 2.5rem;
  }

  .team-header-content p {
    font-size: 1rem;
  }

  .director-message {
    padding: 25px;
  }

  .director-message-content h2 {
    font-size: 1.8rem;
  }

  .organigram-level-3 .organigram-item {
    flex: 0 0 calc(50% - 20px);
  }

  .join-team-container {
    padding: 40px 20px;
  }

  .join-team-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .organigram-level-3 .organigram-item {
    flex: 0 0 100%;
  }

  .team-tab {
    margin: 0 5px 10px;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}
