.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  /* más alto que otros elementos */
}

body {
  padding-top: 100px;
  /* ajusta según la altura real del header */
}

/* Contenedor del flip con altura compacta y responsive */
.flip-card {
  background-image: url('../../images/fondo-sistemas3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  perspective: 1000px;
  --flip-h: 190px;

  /* AJUSTA AQUÍ la altura del área que gira */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: var(--flip-h);
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Caras */
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* centra verticalmente y evita espacios muertos */
  padding: 12px;
  /* menos padding para compactar */
  background-image: url('../../images/fondo-sistemas3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.flip-card-back {
  transform: rotateY(180deg);
  overflow: auto;
  background: #ecfafb;
  /* background: #d7f4e5c5; */
  /* por si el texto es más largo */
}

/* Imagen más pequeña y ceñida */
.flip-card-front img {
  max-width: 80px;
  max-height: 80px;
  width: auto;
  height: auto;
  margin: 6px auto 6px;
  display: block;
}

/* Título con menos márgenes */
.flip-card-front h4 {
  margin: 6px 0 4px;
  font-size: 1rem;
}

/* Texto del reverso más compacto */
.flip-card-back p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: justify;
}

/* Footer más compacto */
.card-footer {
  padding: 10px 12px;
}

.navbar .nav-link {
  position: relative;
  color: white !important;
  transition: color 0.3s ease;
}

.navbar .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #ffc107;
  transition: width 0.4s ease;
}

.navbar .nav-link:hover {
  color: #ffc107 !important;
}

.navbar .nav-link:hover::before {
  width: 100%;
}


/* .img-wrapper {
  background-color: white;
  padding: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
 */

.counter-box {
  background: #fff;
  transition: all 0.3s ease-in-out;
  color: #003993;
}

.counter-box i {
  font-size: 40px;
  color: #003993;
  /* color inicial */
  transition: color 0.3s ease-in-out;
}

/* Hover efecto */
.counter-box:hover {
  background: #003993;
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color:#fff;
}

.counter-box:hover h1,
.counter-box:hover p {
  color: #fff;
}

.counter-box:hover i {
  color: #fff;
  /* ahora sí cambia a blanco */
}


/* En pantallas medianas/grandes puedes darle un poco más de aire si quieres */
@media (min-width: 768px) {
  .flip-card {
    --flip-h: 210px;
  }

  .flip-card-front img {
    max-width: 90px;
    max-height: 90px;
  }

}

/* Efecto zoom para los divs circulares con las imágenes */
.row.justify-content-center .col-6 div[style*="border-radius:50%"] {
  transition: transform 0.3s ease;
}

.row.justify-content-center .col-6 div[style*="border-radius:50%"]:hover {
  transform: scale(1.20);
}