/* Estilos para la sección de autoridades */
.autoridades {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.autoridades::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23172238' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.autoridades .container {
  position: relative;
  z-index: 1;
}

.autoridades .section-heading {
  margin-bottom: 60px;
}

.authority-container {
  perspective: 1000px;
  margin-bottom: 30px;
}

.authority-card {
  position: relative;
  width: 100%;
  height: 450px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.authority-container:hover .authority-card {
  transform: rotateY(180deg);
}

.authority-front, 
.authority-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}

.authority-front {
  background: linear-gradient(135deg, #172238 0%, #3c5f9b 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.authority-back {
  background: white;
  transform: rotateY(180deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.authority-image-container {
  width: 100%;
  height: 60%;
  overflow: hidden;
  position: relative;
}

.authority-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.authority-container:hover .authority-image {
  transform: scale(1.05);
}

.authority-info-front {
  width: 100%;
  padding: 20px;
  text-align: center;
  background: rgba(23, 34, 56, 0.8);
}

.authority-name {
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: #f5a425;
}

.authority-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.authority-quote {
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 10px;
  position: relative;
  padding: 0 15px;
}

.authority-quote::before,
.authority-quote::after {
  content: '"';
  font-size: 1.5rem;
  position: absolute;
  color: #f5a425;
}

.authority-quote::before {
  left: 0;
  top: -5px;
}

.authority-quote::after {
  right: 0;
  bottom: -15px;
}

.authority-bio {
  margin-bottom: 20px;
}

.authority-back h3 {
  color: #172238;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
}

.authority-back h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #f5a425;
}

.authority-details {
  margin-bottom: 20px;
}

.authority-details p {
  margin-bottom: 10px;
  color: #555;
  font-size: 0.95rem;
}

.authority-info {
  margin-top: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.info-item i {
  margin-right: 10px;
  color: #f5a425;
  width: 20px;
  text-align: center;
}

.authority-social {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  color: #172238;
  margin: 0 5px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: #f5a425;
  color: white;
  transform: translateY(-3px);
}

.authority-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f5a425;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.8rem;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.achievement-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.achievement-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #555;
}

.achievement-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #f5a425;
  font-weight: bold;
}

/* Animación de partículas */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background-color: rgba(245, 164, 37, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

/* Efecto de brillo al hacer clic */
.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  animation: card-shine-effect 1s ease-out forwards;
}

@keyframes card-shine-effect {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

/* Efecto de brillo */
.authority-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: transform 0.7s;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.authority-container:hover .authority-card::before {
  opacity: 1;
  transform: rotate(30deg) translate(0, 0);
  animation: shine 1.5s ease-out;
}

/* Estilos para el subtítulo */
.autoridades .subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-top: 10px;
  opacity: 0.9;
}

@keyframes shine {
  0% {
    transform: rotate(30deg) translateX(-200%);
  }
  100% {
    transform: rotate(30deg) translateX(200%);
  }
}

/* Responsive */
@media (max-width: 991px) {
  .authority-container {
    margin-bottom: 50px;
  }
}

@media (max-width: 767px) {
  .authority-card {
    height: 400px;
  }
}
