/********************************************
= = =  MENÚ MÓVIL
********************************************/
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ============================
   TARJETAS STAT – ESTILO PRO
============================ */

.stat-card {
  width: 180px;
  height: 180px;
  perspective: 1000px;
  transition: transform .3s;
}

@media (min-width: 640px) {
  .stat-card { width: 190px; height: 190px; }
}

@media (min-width: 768px) {
  .stat-card { width: 220px; height: 220px; }
}

@media (min-width: 1024px) {
  .stat-card { width: 250px; height: 250px; }
}

.stat-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s;
}

.group:hover .stat-inner {
  transform: rotateY(180deg);
}

.stat-front,
.stat-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-front {
  background: #fff;
}

.stat-back {
  background: #b91c1c; /* red-700 */
  color: white;
  transform: rotateY(180deg);
  padding: 0.5rem;
  text-align: center;
}

.stat-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .stat-icon {
    width: 80px;
    height: 80px;
  }
}
.stat-plus {
  font-size: 1.2rem;
  opacity: 0.9;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
}

.stat-label {
  font-size: 0.95rem;
  margin-top: 0.25rem;
  line-height: 1rem;
  font-weight: 500;
  letter-spacing: .5px;
}

@media (min-width: 768px) {
  .stat-number { font-size: 2.4rem; }
  .stat-label { font-size: 0.95rem; line-height: 1.25rem; }
}

/********************************************
= = =  FLIP CARDS
********************************************/
.flipcard {
  perspective: 1000px;
  height: 380px;
  width: 380px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .7s;
}

.group:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.flip-front img {
  object-fit: fill;
}

.flip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-back {
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transform: rotateY(180deg);
}

.flip-icon {
  height: 70px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.flip-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: .6rem;
  color: #991b1b; /* red-800 */
}
.flip-text {
  font-size: .9rem;
  line-height: 1.35rem;
  color: #444;
  max-width: 260px;
}

/* ===== RESPONSIVO ===== */

@media (max-width: 768px) {
  .flipcard {
    height: 320px;
  }
}

@media (min-width: 1200px) {
  .flipcard {
    height: 400px;
  }
  .flip-title {
    font-size: 1.4rem;
  }
  .flip-text {
    font-size: 1rem;
  }
}

/********************************************
= = =  CARRUSEL DE LOGOS (CLIENTES)
********************************************/
.logos-track {
  display: flex;
  width: max-content;
  height: max-content;
  gap: 2rem;
  align-items: center;
  white-space: nowrap;
  animation: marquee 80s linear infinite;
}
.logos-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-item {
  width: 180px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.client-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(40%);
  transition: 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/********************************************
= = =  CARRUSEL 3D DEL EQUIPO (TEAM CAROUSEL)
********************************************/

/* contenedor principal */
.team-carousel-container {
  width: 100%;
  max-width: 1200px;
  height: 380px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  perspective: 1200px;
}

/* track 3D */
.team-carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* tarjeta */
.team-card {
  width: 250px;
  height: 330px;
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  transition: transform .6s ease, opacity .6s ease;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* DESKTOP (1024px +) */
@media (min-width: 1024px) {
  .team-center  { transform: translateX(0) scale(1.10); opacity: 1; z-index: 10; }
  .team-left-1  { transform: translateX(-260px) scale(.90) translateZ(-150px); opacity: .9; z-index: 5; }
  .team-left-2  { transform: translateX(-520px) scale(.80) translateZ(-300px); opacity: .7; z-index: 1; }
  .team-right-1 { transform: translateX(260px) scale(.90) translateZ(-150px); opacity: .9; z-index: 5; }
  .team-right-2 { transform: translateX(520px) scale(.80) translateZ(-300px); opacity: .7; z-index: 1; }
}

/* TABLET (768px – 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .team-center  { transform: translateX(0) scale(1.08); opacity: 1; z-index: 10; }
  .team-left-1  { transform: translateX(-200px) scale(.88) translateZ(-120px); opacity: .9; }
  .team-left-2  { transform: translateX(-350px) scale(.78) translateZ(-260px); opacity: .7; }
  .team-right-1 { transform: translateX(200px) scale(.88) translateZ(-120px); opacity: .9; }
  .team-right-2 { transform: translateX(350px) scale(.78) translateZ(-260px); opacity: .7; }
}

/* MÓVIL (hasta 767px) — TARJETAS MÁS CERCANAS */
@media (max-width: 767px) {

  .team-card {
    width: 200px;
    height: 260px;
  }

  .team-center  { transform: translateX(0) scale(1.05); opacity: 1; z-index: 10; }
  .team-left-1  { transform: translateX(-130px) scale(.86) translateZ(-80px); opacity: .9; }
  .team-left-2  { transform: translateX(-230px) scale(.76) translateZ(-200px); opacity: .6; }
  .team-right-1 { transform: translateX(130px) scale(.86) translateZ(-80px); opacity: .9; }
  .team-right-2 { transform: translateX(230px) scale(.76) translateZ(-200px); opacity: .6; }
}

/* Si no visible */
.team-hidden {
  opacity: 0;
  pointer-events: none;
}

/********************************************
= = =  TEXTOS DEL CARRUSEL 3D
********************************************/
.member-info {
  text-align: center;
  margin-top: 40px;
  transition: all 0.5s ease-out;
}

.member-name {
  color: rgb(162, 11, 11);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.member-name::before,
.member-name::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 100px;
  height: 2px;
  background: rgb(167, 11, 11);
}

.member-name::before {
  left: -120px;
}

.member-name::after {
  right: -120px;
}

.member-role {
  color: #848696;
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 0;
  margin-top: -15px;
}

/********************************************
= = =  DOTS DEL CARRUSEL 3D
********************************************/
.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(123, 8, 8, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: rgb(163, 10, 10);
  transform: scale(1.2);
}

/********************************************
= = =  FLECHAS DEL CARRUSEL 3D
********************************************/
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(163, 10, 10, 0.6);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  border: none;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
  left: 20px;
}

.nav-arrow.right {
  right: 20px;
}

/********************************************
= = =  RESPONSIVE
********************************************/
@media (max-width: 768px) {
  .team-card {
    width: 200px;
    height: 280px;
  }

  .team-left-1 {
    transform: translateX(-120px) scale(0.9) translateZ(-100px);
  }

  .team-left-2 {
    transform: translateX(-250px) scale(0.8) translateZ(-300px);
  }

  .team-right-1 {
    transform: translateX(120px) scale(0.9) translateZ(-100px);
  }

  .team-right-2 {
    transform: translateX(250px) scale(0.8) translateZ(-300px);
  }

  .member-name {
    font-size: 2rem;
  }

  .member-role {
    font-size: 1.2rem;
  }

  .member-name::before,
  .member-name::after {
    width: 50px;
  }

  .member-name::before {
    left: -70px;
  }

  .member-name::after {
    right: -70px;
  }
}

/********************************************
= = =  SWIPER (si lo usas)
********************************************/
.mySwiper,
.mySwiper2,
.mySwiper3,
.mySwiper4 {
  --swiper-theme-color: white;
}

.swiper-pagination-bullet {
  background-color: transparent !important;
  border: 2px solid #fff !important;
  opacity: 0.6;
  width: 12px;
  height: 12px;
}

.swiper-pagination-bullet-active {
  background-color: #fff !important;
  opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
  color: white !important;
  text-shadow: 0 0 2px rgba(0,0,0,0.8);
}

/* ======== PROYECTOS SISC — ESTILOS PREMIUM ======== */

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-logo {
  height: 110px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.project-desc {
  color: #6b7280;
  max-width: 260px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.project-swiper {
  width: 100%;
  max-width: 22rem;
  height: 240px;
}

.project-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

/* flechas */
.project-prev,
.project-next {
  color: #b91c1c;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

.project-prev:hover,
.project-next:hover {
  color: #7f1d1d;
}

/* Imagen responsiva y elegante */
.carousel-img {
  width: 100%;
  height: 60vh;
  max-height: 550px;
  object-fit: cover;
  border-radius: 18px;
}

/* Ajustes Swiper */
.mySwiperEquipos {
  width: 100%;
  height: auto;
}

.swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.6) !important;
  border: 2px solid white !important;
  width: 14px;
  height: 14px;
}

.swiper-pagination-bullet-active {
  background-color: white !important;
}

.swiper-button-prev,
.swiper-button-next {
  color: white !important;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

/* Responsivo */
@media (max-width: 768px) {
  .carousel-img {
    height: 40vh;
    max-height: 340px;
  }
}

@media (min-width: 1400px) {
  .carousel-img {
    height: 65vh;
    max-height: 650px;
  }
}

