/* =============== MODERN TEAM LAYOUT =============== */

/* Estilos generales */
body {
  /*margin: 0;
  padding: 0;*/
  background-color: var(--background-light);
  /*background-image: url('/static/images/visualiq_bg.png');
  background-size: cover;          
  background-repeat: no-repeat;    
  background-position: center;*/
}

/* ========== TÍTULO PRINCIPAL ========== */
.contenedor-titulo {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 60px;
  z-index: var(--z-content);
}

.contenedor-titulo h1 {
  font-family: var(--font-family-display);
  font-size: 42px;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
  position: relative;
  font-weight: var(--font-weight-bold);
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.contenedor-titulo h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  /*background: linear-gradient(90deg, var(--primary-color), var(--accent-color));*/
  border-radius: 2px;

  /*height: 6px;
  width: 300px;*/
  /*background: linear-gradient(90deg, #457D61, #C9EFDC);*/
  /*margin-bottom: 20px; 
  border-radius: 3px;*/
}

.title-subtitle {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-subtitle {
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl);
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  margin: 30px 0 20px 0;
  line-height: 1.3;
}

.contenedor-titulo p {
  font-family: var(--font-family-primary);
  font-size: 1.4rem;
  color: var(--text-dark);
  max-width: 1170px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.8;
}

/* ========== OVERLAY DE FONDO ========== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: calc(var(--z-modal) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .contenedor-titulo h1 {
    font-size: 2.5rem;
  }

  .contenedor-titulo p {
    font-size: 1rem;
  }

  .team-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
}

/* ========== FOOTER ========== */
/* .foot rule removed - using .footer-fixed from common.css instead */

/* ============================== ESTILO FOOTER DINÁMICO ============================== */
/* =============== FOOTER =============== */
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: linear-gradient(135deg, var(--text-dark) 0%, #1a252f 100%);
  color: var(--text-light);
  font-family: var(--font-family-primary);
  box-shadow: var(--shadow-footer);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  min-width: 100%;
}

.footer-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--border-width-thin);
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin: 0 var(--spacing-lg) 30px;
  box-sizing: border-box;
  transition: transform var(--transition-normal);
  width: 100%;
}

/* First column (Visual IQ description) gets more space but not double */
.footer-column:first-child {
  flex: 2;
  min-width: 500px;
}

/* Other columns get standard space */
.footer-column:not(:first-child) {
  flex: 1;
  min-width: 250px;
}

.footer-column:hover {
  transform: translateY(-2px);
}

.footer-column h4 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-hover)
  );
  transition: width var(--transition-normal);
}

.footer-column:hover h4::after {
  width: 100%;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: var(--spacing-sm);
  transition: transform var(--transition-fast);
}

.footer-column ul li:hover {
  transform: translateX(5px);
}

.footer-column ul li a {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--text-light);
  transition: all var(--transition-normal);
  position: relative;
  padding-left: var(--spacing-sm);
}

.footer-column ul li a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-normal);
  color: var(--primary-color);
}

.footer-column ul li a:hover {
  color: var(--primary-color);
  padding-left: var(--spacing-md);
}

.footer-column ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Address alignment fix - ensure it aligns with other text in the column */
.footer-column ul li a[href*="maps"] {
  text-align: left;
  display: block;
  line-height: 1.4;
}

.social-icons {
  display: flex;
  gap: var(--spacing-sm);
}

.social-icons img {
  width: 24px;
  height: 24px;
  transition: all var(--transition-normal);
  filter: brightness(1);
}

.social-icons img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.viq-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--spacing-lg);
}

.viq-image {
  flex: 0 0 auto;
  margin-right: var(--spacing-lg);
  margin-bottom: 0;
  transition: transform var(--transition-normal);
  text-align: left;
}

.viq-image:hover {
  transform: scale(1.05);
}

.viq-image img {
  width: 100px;
  height: auto;
  filter: drop-shadow(var(--shadow-sm));
}

.viq-text {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--text-light);
  transition: color var(--transition-normal);
  text-align: left;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

.viq-section:hover .viq-text {
  color: var(--text-light);
}

.squared-border {
  /*border: 2px solid var(--primary-color);*/
  border-radius: 0;
  padding: 15px;
  /*background: rgba(111, 163, 136, 0.05);*/
  /*box-shadow: 0 2px 8px rgba(111, 163, 136, 0.1);*/
}

@media (max-width: 768px) {
  /* Footer responsive styles for 768px */
  .footer-menu {
    padding: 30px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-column {
    flex: 1;
    min-width: 200px;
    margin: 0 10px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-column:first-child {
    flex: 2;
    min-width: 400px;
    width: 100%;
  }

  .viq-section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .viq-image {
    margin-right: 0;
    margin-bottom: 15px;
    text-align: left;
  }

  .viq-text {
    text-align: left;
    font-size: 15px;
    line-height: 1.6;
    padding: 0 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
  }
}

/* ========== CONTENEDOR PRINCIPAL ========== */

/*.team-container {
  display: flex;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 600px;
}*/

/* ========== LISTA DE EQUIPO (IZQUIERDA) ========== */

/*--------Estilo 2--------*/
/* ========== CONTENEDOR PRINCIPAL ========== */

.team-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, 250px);
  gap: 30px;
  justify-content: center;
  margin-bottom: 80px;
  box-sizing: border-box;
}

.team-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 250px;
  height: fit-content;
}

.team-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-card.selected {
  border-color: var(--primary-color);
  background: linear-gradient(
    135deg,
    rgba(111, 163, 136, 0.05),
    rgba(111, 163, 136, 0.1)
  );
  box-shadow: 0 8px 25px rgba(111, 163, 136, 0.2);
}

.card-image {
  width: 100%;
  max-height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.team-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.member-name {
  font-size: 16px;
  font-weight: bold;
}

.member-position {
  font-size: 14px;
  font-weight: bold;
  /*background: linear-gradient(45deg, #457D61, #C9EFDC);*/
  color: #457d61;
  /*-webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;*/
  /*color: transparent;*/
}

.expertise-tag {
  background-color: #2e7d32; /*#e0f2f1;*/
  color: #e0f2f1;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 9999px;
  margin: 2px;
  display: inline-block;
}
.member-expertise {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.hidden {
  display: none;
}

.barra-superior {
  height: 6px;
  width: 100%;
  background: linear-gradient(
    90deg,
    #457d61,
    #c9efdc
  ); /* Verde degradado horizontal */
  margin-bottom: 20px;
  border-radius: 3px;
}

/* Modal para ampliar imagen */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.modal-contenido {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap; /* para móviles */
  flex-direction: row;
  gap: 30px;
  padding: 30px;
  max-width: 800px;
  margin: auto;
}
.modal-contenido img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  /*transform: translateX(-50%);*/
  margin: auto;
}

.modal-texto-contenedor {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 400px;
}

.modal-nombre {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}
.modal-texto {
  color: rgb(255, 255, 255);
  font-size: 1rem;
  max-width: 400px;
  line-height: 1.4;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  text-align: justify;
}

.modal-tarjeta {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 30px;
  max-width: 700px;
  margin: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.cerrar-modal {
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
/*Nuevo*/

@media (max-width: 768px) {
  .modal-contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }
  .modal-img {
    width: 100%;
    max-width: 200px;
    height: 250px;
  }
  .modal-tarjeta {
    max-width: 400px;
    padding: 20px;
  }
  .modal-nombre {
    font-size: 1.3rem;
  }
  .modal-texto {
    font-size: 0.9rem;
  }
}


/* Móviles pequeños (480px) */
@media (max-width: 480px) {
  .slider-content-container {
    padding: 40px 5% 30px;
    gap: 20px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .text-content {
    width: 100%;
    margin-bottom: 0;
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .text-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .text-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
  }

  .carousel-wrapper {
    height: auto;
    overflow: visible;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-wrapper .box-overslider img {
    width: 30%;
  }

  /* Imágenes en línea en móviles */
  .img_inline img {
    width: 100%;
  }

  /* Footer responsive styles for 480px */
  .footer-menu {
    flex-direction: column;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-column {
    flex: 1;
    margin: 0 0 20px 0;
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-column:first-child {
    flex: 2;
    min-width: 100%;
    width: 100%;
  }

  .viq-section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .viq-image {
    margin-right: 0;
    margin-bottom: 15px;
    text-align: left;
  }

  .viq-text {
    max-width: 100%;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
  }

  .img_inline > div {
    width: 100%;
  }

}
