.estilos {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  margin: 0; 
  padding: 0;
}

/* NAV */
.img_logo_nav {
  height: 100px;
  transition: height 0.3s ease;
}

.navbar {
  background-color: #afc012 !important;
  font-size: 20px!important;
  height: 100px;
  color: #38382B;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 9999;
  transition: height 0.3s ease, background-color 0.3s ease;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar.shrink {
  height: 95px;
  background-color: #afc012 !important;
}

.navbar.shrink .img_logo_nav {
  height: 70px;
}

.navbar a {
  color: #38382B;
  text-decoration: none;
}

.navbar a:hover {
  color: #161d83;
}

.navbar .navbar-collapse {
  background-color: #afc012;
}

.navbar .dropdown-menu {
  background-color: #afc012 !important;
}

.navbar .dropdown-item {
  color: #38382B !important;
}

.navbar .dropdown-item:hover {
  background-color: #3F74A1 !important;
  color: white !important;
}


.logo_principal {
  width: 100%;
}

.logo_secundario {
  width: 25%;
}

.logo_secundario:hover {
  overflow: hidden;
  transition: transform 0.3s ease;
  transform: scale(1.2);
}

.div_logo_secundario {
  display: flex;
  justify-content: center;
  background-color: #0c3b7e;
  border-radius: 20px;
  margin-top: -10px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.div_logo_secundario::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/bg_4.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: -1;
}

/* CONTENEDOR LOGO */
.contenedor_logo {
  display: flex;
  justify-content: center;
  text-align: center;
  color: #9b620d;
  background-color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

.contenedor_logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/siq21.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.contenedor_logo .row {
  position: relative;
  z-index: 1;
}

#fila_logo {
  display: flex;
  text-align: center;
}

.eslogan {
  font-size: 30px;
}

/* NOSOTROS */
.siqmeco_imagen {
  width: 90%;
  margin-top: 20px;
  border-radius: 10px;
}

.siqmeco {
  position: relative;
  text-align: justify;
  margin-top: -30px!important;
}

.siqmeco::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: 0;
}

.image_overlay:hover img {
  overflow: hidden;
  transition: transform 0.3s ease;
  transform: scale(1.05);
}

.siqmeco {
  background: linear-gradient(to right, #161d83, #2a5298);
  padding: 80px 0;
  color: white;
  overflow: hidden;
}

.nosotros_titulo {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #afc012;
}

.nosotros_texto {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 100%;
}

.siqmeco_texto {
  padding: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.div_logo_secundario {
  margin-top: 20px;
}

.logo_secundario {
  width: 150px;
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease-in-out;
}

.image_overlay {
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.siqmeco_imagen {
  width: 90%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out;
}

.siqmeco_imagen:hover {
  transform: scale(1.05);
}

.scroll-active .siqmeco_texto,
.scroll-active .image_overlay {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .nosotros_titulo {
      font-size: 2.5rem;
  }

  .nosotros_texto {
      font-size: 1rem;
  }

  .siqmeco_imagen {
      width: 80%;
  }
}

/* CARDS */
.contenido_cartas {
  display: flex;
  justify-content: space-evenly!important;
  text-align: center;
  flex-wrap: wrap;
  padding-top: 30px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

.contenido_cartas::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/bg_4.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 0;
}

.card {
  background-color: #d8d8d7d5!important;
  text-align: center;
  border-radius: 20px!important;
  color: #1f1f1f;
  font-size: 22px;
  margin-bottom: 20px;
  padding: 15px;
  transition: transform 0.3s ease;
  border: 10px!important;
  border-color: #C4D600;

}

.card:hover {
  background-color: #98a50cd5!important;
  transform: scale(1.03);
}

.imagen_carta {
  width: 70%;
  margin: 15px auto;
  transition: transform 0.3s ease;
}

.imagen_carta:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .col-sm-12 {
    flex: 0 0 48%;
    max-width: 48%;
  }
}

@media (max-width: 576px) {
  .col-sm-12 {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

/* CARRUSEL */
.contenido_carrusel {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
}

.carousel {
  max-width: 1200px;
  margin: auto;
}

.carrusel-img {
  object-fit: cover;
  height: 400px;
}

.image-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.image-overlay img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-overlay:hover img {
  transform: scale(1.1);
}

:root {
  --primary-color: #0c3b7e;
  --secondary-color: #C4D600;
  --text-color: #1f1f1f;
  --bg-light: #ffffff;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.card {
  background-color: var(--bg-light);
  text-align: center;
  border-radius: 15px;
  color: var(--text-color);
  font-size: 20px;
  margin-bottom: 20px;
  padding: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

.imagen_carta {
  width: 70%;
  margin: 15px auto;
  transition: transform 0.3s ease;
}

.imagen_carta:hover {
  transform: scale(1.1);
}

.btn-cta {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  font-size: 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-cta:hover {
  background-color: var(--secondary-color);
  color: #000;
  transform: scale(1.05);
}


/* CONTENEDOR EQUIPO Y BANDA */
.image-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.img-fluid {
  filter: brightness(0.85) contrast(1.2);
}

.img-fixed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: brightness(0.85) contrast(1.2);
}

.image-overlay:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-overlay:hover .overlay {
  opacity: 1;
}

/* Ventanas modales */
.text-overlay {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  padding: 10px;
}

.modal-dialog {
  max-width: 80vw;
  max-height: 90vh;
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.modal-img-container {
  flex: 1;
  max-width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.modal-text {
  flex: 1;
  max-width: 40%;
  padding: 20px;
  text-align: left;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .modal-container {
      flex-direction: column;
      align-items: center;
  }

  .modal-img-container {
      max-width: 100%;
  }

  .modal-text {
      max-width: 100%;
      text-align: center;
      overflow-y: visible;
  }
}

.estilo_modal {
  background-image: url('../img/bg_5.webp')!important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.80);
}

/* CORREOS */
.contacto {
  padding: 40px;
}

.contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.info {
  flex: 1;
  max-width: 400px;
}

.info iframe {
  width: 100%;
  height: 200px;
  border-radius: 10px;
}

.info p {
  text-align: left;
  font-size: 16px;
}

.info i {
  margin-right: 10px;
}

.formulario {
  flex: 1;
  max-width: 400px;
  text-align: left;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

select {
  appearance: none;
  background-color: white;
  cursor: pointer;
}

button {
  background-color: #afc012;
  color: black;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background-color: #0056b3;
}

/* FOOTER */
footer {
  background-color: #161d83;
  color: #afc012;
  padding: 20px;
  margin-top: 40px;
}

footer .social {
  margin-bottom: 10px;
}

footer .social a {
  color: #afc012;
  margin: 0 10px;
  font-size: 20px;
}

footer p {
  font-size: 14px;
}

