body {
    font-family: 'Open Sans', sans-serif;
}


/* Estado inicial con fondo semi-transparente negro */
#mainNavbar {
  background-color: rgba(0, 0, 0, 0.5); /* oscuro con opacidad */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


#mainNavbar .nav-link {
  color: white !important;
  transition: color 0.3s ease;
}

/* Al hacer scroll: fondo blanco y textos oscuros */
#mainNavbar.navbar-scrolled {
  background-color: white;
  box-shadow: 5px 2px 4px rgba(0,0,0,0.9);
}

#mainNavbar.navbar-scrolled .nav-link {
  color: #333 !important;
}

.text-shadow {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}


.hero {
    background-color: #e6f2ff;
    padding: 80px 20px;
}

.quienes-somos-section {
  position: relative;
  overflow: hidden;
  color: white;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #1800AD, #CC0000, #002D5B, #FFA000);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  z-index: 0;
  opacity: 0.8; /* Puedes ajustar esto si lo quieres más o menos intenso */
  filter: brightness(0.8);
}

.quienes-somos-section .container {
  position: relative;
  z-index: 1;
}

/* Animación */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.section-title {
    margin-bottom: 30px;
}

.footer {
    background-color: #003366;
    color: white;
    padding: 20px 0;
}

.client-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: white;
  border: 2px solid #ccc;
  border-radius: 16px;
  overflow: hidden;
}

.client-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


.client-name {
  font-size: 14px;
  margin-top: 0.5rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card-img-bottom {
    width: 100%;
    height: 200px; /* o el alto que prefieras */
    object-fit: cover; /* para que se recorte y rellene sin deformarse */
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
    transition: transform 0.4s ease;
}


.card-img-bottom:hover {
    transform: scale(1.0);
    cursor: zoom-in;
}
.card-title {
    font-weight: bold;
    text-align: center;
}

.card-text {
    font-size: 14px;
}

.card-body {
    flex-grow: 1;
    padding: 15px;
}


.mapa {
    height: 500px;
}
.card {
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    object-fit: contain !important;
    text-align: center;
}

.carousel-item .row {
    margin: 0;
}


.carousel-indicators {
  margin-top: 40px;
  justify-content: center !important;
}

#carouselClientes {
  position: relative;
  padding-bottom: 90px;
}

.carousel-indicators [data-bs-target] {
  background-color: #003366;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-indicators .active {
  background-color: #FFA000;
}


/*Aquí están los efectos de giro en las cards*/

.flip-card {
  background-color: transparent;
  width: 100%;
  perspective: 1200px;
  min-height: 420px;
  justify-content: center;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  min-height: 420px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  overflow: hidden;
}

.flip-card-front {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

.flip-card-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/*Esto es para mantener el ancho de la nueva card*/

.col-md-3 .flip-card {
  max-width: 100%;
  width: 100%;
}

.flip-card-inner {
  max-width: 280px; /* o el valor que tenía visualmente antes */
  margin: auto;
}


/*Colores personalizados*/

.bg-red {
  background-color: #cc0000 !important;
}

.bg-blue {
  background-color: #1800AD !important;
}

.text-enred {
  color: #d8d7d8 !important;
}

.border-enred {
  border-color: #1800AD  !important;
}


/* === Team (independiente) === */
.team-section h2 { font-weight: 700; }

.team-card {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  background: #fff;
}

.team-photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.team-badge {
  background: #f0f3f7;
  color: #223;
  border: 1px solid #e2e7ef;
  font-weight: 500;
}

.team-modal .modal-content { border-radius: 16px; }
.team-modal .modal-header { border-bottom: 1px solid rgba(0,0,0,0.08); }

/* Opción DARK: si usas la sección sobre un fondo oscuro, añade class "team--dark" al <section id="equipo"> */
.team--dark .team-card {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
}
.team--dark .team-badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.team--dark .text-muted { color: rgba(255,255,255,0.8) !important; }
.team--dark .btn-outline-primary {
  color: #fff;
  border-color: #fff;
}
