/* Hero Banner Styles */
.hero-banner.team-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("https://i.pinimg.com/736x/27/92/78/279278127ce74370eee066adcbb8ee74.jpg");
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
    height: 700px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    margin-bottom: 0;
    position: relative;
    
}

.hero-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(132, 132, 132, 0.218) 0%, rgba(223, 212, 182, 0.212) 100%);
    z-index: 1;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: var(--text-white);
}

.hero-banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Media queries para ajustar el banner en diferentes dispositivos */
@media (max-width: 1200px) {
    .hero-banner.team-banner {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .hero-banner.team-banner {
      
        height: 500px;
    }
    .hero-banner h1 {
        font-size: 2.5rem;
    }
}

/* Variables */
:root {
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  --border-radius-lg: 10px;
  --border-radius-circle: 50%;
  --shadow-md: 0px 4px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 6px 12px rgba(0, 0, 0, 0.2);
  --transition: transform 0.3s, box-shadow 0.3s;
  --text-white: white;
  --text-light: #666;
  --primary-color: #fcba00;
  --dark-color: #303030;
}

/* Team Intro */
.team-intro {
  padding: var(--spacing-xl) 0;
  background-color: var(--text-white);
}

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

.intro-content h2 {
  margin-bottom: var(--spacing-lg);
  color: var(--dark-color);
}

.intro-content p {
  color: var(--text-light);
  margin-bottom: var(--spacing);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Estilo general de la sección */
.team-members {
  padding: 50px 20px;
  text-align: center;
  background-color: #f8f8f8;
  max-width: 1200px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  position: relative;
  min-height: 500px;
}

.team-members::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fcba00, transparent);
}

.team-members .section-header {
  margin-bottom: 3rem;
}

.team-members .section-header h2 {
  color: #333;
  font-size: 2.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.team-members .separator span {
  background: #fcba00;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--dark-color);
  font-weight: bold;
  margin-bottom: 10px;
}

.separator {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.separator span {
  display: inline-block;
  width: 50px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 8px auto;
  border-radius: 2px;
}

/* Contenedor del equipo */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    padding: 1rem;
    gap: 2rem;
  }
  
  .team-members .section-header h2 {
    font-size: 2.2rem;
  }
  
  .member-image {
    height: 300px;
  }
  
  .member-info {
    padding: 1.5rem;
  }
  
  .member-info h3 {
    font-size: 1.5rem;
  }
}

/* Estilo para cada miembro del equipo */
.team-member {
  background: #e3edb6;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-color);
  z-index: 1;
}

.member-photo {
  position: relative;
  text-align: center;
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center; /* Centra verticalmente */
  height: 180px; /* Ajusta este valor según necesites */
}

.member-photo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 5px 15px rgb(255, 255, 255);
  transition: all 0.4s ease;
}


.team-member:hover .member-photo img {
  transform: scale(1.05);
  border-color: var(--text-white);
}

.member-content {
  padding: 20px 25px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-member h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--primary-color);
  text-align: center;
}

.team-member .position {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.member-details {
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.description {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-light);
  flex-grow: 1;
}

.contact-info {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  margin-bottom: 10px;
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 8px 12px;
  border-radius: 8px;
  text-overflow: ellipsis;
  max-width: 100%;
  background-color: rgba(0, 0, 0, 0.05);
}


.contact-item:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--dark-color);
}

.contact-item i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--dark-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--dark-color);
  transform: translateY(-3px);
}

.whatsapp-btn {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn i {
  margin-right: 8px;
  font-size: 18px;
}

/* Mensaje cuando no hay asesores */
.no-team-members {
  text-align: center;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  margin: 20px auto;
  max-width: 500px;
}

.no-team-members i {
  font-size: 50px;
  color: var(--primary-color);
  margin-bottom: 20px;
  opacity: 0.7;
}

.no-team-members p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* Icono de carga */
.loading {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin-top: 20px;
  padding: 40px;
}

.loading i {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.animate-fade-up {
  animation: fadeUp 0.6s ease-out;
}

/* Team Values */
.team-values {
  padding: var(--spacing-xxl) 0;
  background-color: var(--text-white);
}

.team-values h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--dark-color);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.value-card {
  text-align: center;
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  background-color: white;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 80px;
  height: 80px;
  background-color: var(--dark-color);
  color: var(--primary-color);
  border-radius: var(--border-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background-color: var(--primary-color);
  color: var(--dark-color);
  transform: rotateY(180deg);
}

.value-icon i {
  font-size: 2rem;
  transition: var(--transition);
}

.value-card:hover .value-icon i {
  transform: rotateY(180deg);
}

.value-card h3 {
  margin-bottom: var(--spacing);
  color: var(--dark-color);
}

.value-card p {
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .member-photo img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }

  .member-photo {
    padding: 20px 0;
  }
  
  .member-photo img {
    width: 100px;
    height: 100px;
  }
  
  .member-content {
    padding: 15px 20px 20px;
  }
  
  .value-card {
    padding: var(--spacing);
  }
}

/* Modal Styles - Moved from HTML */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 800px;
  margin: auto;
  border-radius: 20px;
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #303030;
  z-index: 2;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #fcba00;
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

.modal-info {
  margin-top: -60px;
  position: relative;
  z-index: 1;
}

.modal-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-name {
  text-align: center;
  margin: 1rem 0;
}

.modal-name h3 {
  color: #303030;
  font-size: 2rem;
  margin: 0;
}

.modal-name .position {
  color: #fcba00;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.modal-description {
  text-align: center;
  color: #666;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.modal-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.modal-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.modal-contact-item:hover {
  background: #fcba00;
  color: white;
}

.modal-contact-item:hover i,
.modal-contact-item:hover a {
  color: white;
}

.modal-contact-item i {
  color: #fcba00;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.modal-contact-item a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Additional Team Member Styles - Moved from HTML */
.member-contact {
  margin: 1.5rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #666;
  background: #f8f9fa;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  width: 100%;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: #f0f0f0;
  color: #333;
}

.contact-item i {
  color: #fcba00;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25d366;
  color: white;
  padding: 0.7rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(37, 211, 102, 0.1);
}

.contact-button:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(37, 211, 102, 0.2);
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}