/* Eliminar pseudo-elementos que interfieren */
.equipo .row::before,
.equipo .row::after,
.equipo .dis::before,
.equipo .dis::after {
  display: none !important;
  content: none !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cormorant Infant", serif;
  background: #f8f9fa;
  color: #222;
  line-height: 1.6;
}

.container-fluid.equipo {
  width: 100%;
  padding: 0 20px;
}

.equipo {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 0;
}

.equipo h1 {
  font-family: "Cormorant Infant", serif;
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: #222;
  position: relative;
}

.equipo h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #f16901;
  margin: 20px auto 0;
  border-radius: 2px;
}

.equipo .dis {
  width: 100%;
}

.equipo .row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px !important;
  /* width: 100% !important; */
}

.equipo .row .gestor,
.equipo .row .gestor.w-20 {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  display: block !important;
  perspective: 1000px;
}

/* TARJETA FLIP */
.tarjeta-flip {
  position: relative;
  width: 100%;
  height: 420px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.gestor:hover .tarjeta-flip {
  transform: rotateY(180deg);
}

.cara-frontal,
.cara-trasera {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.cara-frontal {
  display: flex;
  flex-direction: column;
}

.cara-trasera {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

/* CARA FRONTAL */
.equipo .fotoagente {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: #e9ecef;
  flex-shrink: 0;
}

.equipo .fotoagente img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /*height: 100%;*/
  object-fit: cover;
  /*filter: grayscale(100%) sepia(30%) hue-rotate(10deg) brightness(0.9);*/
  transition: filter 0.4s ease;
}

.gestor:hover .fotoagente img {
  filter: none;
}

.equipo .fotoagente.innodeco::before {
  content: "Innodeco";
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f16901;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Cormorant Infant", serif;
}

.equipo h6.nombre {
  font-family: "Cormorant Infant", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
  margin: 20px 20px 8px;
  text-align: center;
}

.equipo p.cargo {
  font-family: "Cormorant Infant", serif;
  font-size: 1.6rem;
  color: #666;
  margin: 0 20px 20px;
  text-align: center;
  font-weight: 400;
}

/* CARA TRASERA */
.datos-contacto {
  width: 100%;
  text-align: center;
}

.nombre-back {
  font-family: "Cormorant Infant", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 25px;
}

.info-item {
  margin-bottom: 15px;
  font-family: "Cormorant Infant", serif;
}

.info-item .label {
  display: block;
  font-weight: 600;
  color: #f16901;
  font-size: 1.3rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item a,
.info-item span {
  color: #222;
  text-decoration: none;
  font-size: 1.5rem;
  word-break: break-word;
}

.info-item a:hover {
  color: #f16901;
}

.btn-ficha {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #f16901;
  color: white !important;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 25px;
  font-family: "Cormorant Infant", serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-ficha:hover {
  background: #222;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
  .equipo .row {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .equipo .row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .equipo h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .equipo .row {
    grid-template-columns: 1fr !important;
  }

  .container-fluid.equipo {
    padding: 0 15px;
  }
}