body {
  min-height: 100vh;
  padding-bottom: 0 !important;
}

/* Estilos para el header */


/* Menú principal */
.main-menu {
  float: right;
  /* Colocar el menú a la derecha */
}

.main-menu ul {
  list-style: none;
  /* Eliminar los puntos de lista */
  margin: 0;
  padding: 0;
}

.main-menu li {
  display: inline-block;
  /* Convertir los elementos de la lista en bloques en línea */
  margin-right: 15px;
  /* Espacio entre elementos del menú */
}

.main-menu a {
  text-decoration: none;
  /* Eliminar la decoración del texto */
  color: #252d61;
  /* Color del texto del menú */
  font-weight: normal;
  /* Texto en negrita */
}

/* Menú desplegable */
.submenu-item {
  position: relative;
}

.submenu {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease-out;
}

.submenu-item:hover .submenu {
  height: auto;
}

.submenu-item ul li a:active {
  background-color: #252d61;
  color: #fff;
}

.submenu-item ul li a {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
  color: #252d61;
}

.submenu-item:hover .submenu {
  display: block;
  background-color: #F4F5F8;
}



.boton-ovalado {
  border-radius: 10px;
  /* Crea un borde redondeado con forma de óvalo */
  padding: 5px 10px;
  /* Agrega espacio interno al botón */
  text-decoration: none;
  /* Elimina el subrayado predeterminado */
  background-color: #ce3b3b;
  /* Establece el color de fondo del botón */
  color: #fff;
  /* Establece el color del texto del botón */
  display: inline-block;
  /* Permite que el botón se comporte como un bloque en línea */
  font-weight: bold;
  /* Hace que el texto del botón sea más grueso */
  transition: background-color 0.3s ease;
  /* Agrega una transición suave para el color de fondo al hacer clic */
  border: none;
  /* Elimina el borde por completo */
}



.tarjeta h2 {
  margin-top: 0;
}

.tarjeta p {
  margin-bottom: 0;
}

.tarjeta button {
  background-color: #252d61;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 5px 10px;
  cursor: pointer;
  margin-top: 5px;
}

.tarjeta button:hover {
  background-color: #0A4989;
}

.tarjeta img {
  width: 100%;
  /* La imagen ocupará todo el ancho de la tarjeta */
  height: 100%;
  /* La imagen ocupará toda la altura de la tarjeta */
  object-fit: cover;
  /* La imagen se ajustará para cubrir toda la tarjeta sin distorsión */
}

/* Estilos para el header */
.site-header {
  background-color: #F4F5F8;
  padding: 10px 0;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 80px;
  font-family: 'Zurich sans', sans-serif;
  font-size: 12px;
  font-weight: normal;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Contenedor para centrar el contenido */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logotipo */
.logo {
  float: left;
  margin-left: 20px;
}

.logo img {
  /* height: 80px; */
  width: 250px;
}


/* Menú desplegable */
.submenu-item {
  position: relative;
}

.submenu-item ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background-color: #F4F5F8;
  padding: 10px;
  z-index: 10;
  border-radius: 5px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.submenu-item ul li {
  margin: 0;
  padding: 0;
}

.menu-mobile {
  display: none;
  /* Oculta el menú principal en dispositivos móviles */
}

@media screen and (max-width: 768px) {

  .main-menu {
    display: none;
    /* Oculta el menú principal en dispositivos móviles */
  }

  .menu-icon {
    display: inline-block;
    cursor: pointer;
    position: relative;
    z-index: 10;
  }

  .boton-ovalado {
    position: relative;
    top: -10px;
    /* Posición debajo del logo */
    left: 100px;
    /* Alineación derecha */
    cursor: pointer;
    z-index: 1000;
    margin-left: auto;
  }

  .navicon {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #252d61;
    margin: 6px auto;
  }

  .navicon:before,
  .navicon:after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #252d61;
    position: absolute;
    top: 0;
  }

  .navicon:before {
    top: 6px;
  }

  .navicon:after {
    top: 12px;
  }

  .menu-icon {
    display: block;
    /* Muestra el ícono de menú hamburguesa en dispositivos móviles */
    position: absolute;
    top: 100px;
    /* Posición debajo del logo */
    left: 100px;
    /* Alineación derecha */
    cursor: pointer;
    z-index: 1000;
  }

  .menu-mobile {
    position: fixed;
    /* Ensures full-screen coverage */
    top: 150px;
    /* Align to top of viewport */
    left: 0;
    /* Align to left of viewport */
    width: 100%;
    /* Occupy entire screen width */
    height: 100vh;
    /* Occupy entire screen height */
    background-color: #F4F5F8;
    overflow-y: auto;
    /* Enable vertical scrolling with smooth behavior */
    display: none;
    /* Initially hidden */
    z-index: 1000;
    /* Ensure menu is above other elements */
    transition: transform 0.3s ease-in-out;
    /* Add smooth opening animation (optional) */
  }

  .menu-mobile.open {
    /* Style for opened menu (optional) */
    transform: translateX(0);
    /* Slide menu from left if desired (optional) */
  }

  .menu-mobile.active {
    display: block;
    transform: translateY(0);
    /* Muestra el menú móvil desplazándolo hacia abajo */
  }

  .menu-mobile {
    display: none;
    /* Inicialmente oculto */
    /* Otros estilos para el menú móvil */
  }

  .menu-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .menu-mobile li {
    margin-bottom: 15px;
    display: block;
    /* Display items vertically */
    padding: 10px 15px;
  }

  .menu-mobile a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
  }

  .menu-mobile ul li {
    margin-bottom: 10px;
    /* Espaciado entre elementos del menú */
  }

  .menu-mobile ul li a {
    text-decoration: none;
    /* Elimina el subrayado del enlace */
    color: #252d61;
    /* Color inicial del texto del menú */
    font-size: 15px;
    /* Tamaño de fuente del menú */
    display: block;
    /* Ocupa todo el ancho disponible */
    padding: 5px 0;
    /* Espaciado interno vertical */
    text-align: center;
    /* Centra el texto horizontalmente */
    transition: color 0.4s ease;
    /* Transición suave para el color del texto */
  }


  .menu-mobile a {
    text-decoration: none;
    color: #FFF;
    font-weight: bold;
    font-size: 18px;
    padding: 15px;
    display: block;
  }

  .menu-mobile .submenu-item ul {
    position: static;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    display: none;
  }

  .menu-mobile .submenu-item:hover ul {
    display: block;
  }



}

/* Media query para tarjetas en dispositivos móviles */
@media only screen and (max-width: 768px) {
  /* .contenedor-tarjetas { */
  /* flex-wrap: wrap; */
  /* } */

  /* .tarjeta {
    width: calc(50% - 20px);
    /* Ajustar el ancho para mostrar dos tarjetas por fila */
  /* margin: 10px; */
  /* Espacio entre las tarjetas */
  /* } */
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TARJETAS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.contenedor-tarjetas {
  margin-top: 80px;
  /* Agregar margen superior */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-grow: 1;
  overflow: hidden;
}

.tarjeta {
  background-color: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 75%;
  cursor: pointer;
  filter: brightness(.95);
  transition: all .3s ease-in-out;
  padding: 15px;
  /* margin: 10px;
  padding: 20px; */
  /* width: 200px; */
  /* Ancho deseado */
  /* height: 200px; */
  /* Alto deseado */
  /* text-align: center; */
}

.tarjeta:hover {
  filter: brightness(1);
}

.card-modal {
  /* position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); */
  position: relative;

  border: 0 solid transparent;
  border-radius: .5rem;
  place-self: center;
  padding: 0;
  box-shadow: 0 0 0 100vw rgb(0 0 0 / 0.5);
  background-color: #fff;
}

.card-modal .cerrar {
  position: absolute;

  right: 1rem;
  top: 1rem;
  background-color: #fff;
  padding-inline: .25rem;
  /* padding-block: .1rem; */
  border-radius: .25rem;
  transition: all .3s ease-in-out;
}

.card-modal__cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border: 0px solid transparent;
  max-height: 80vh;
}

.card-modal[open] {
  animation:
    slide-down 500ms forwards,
    fade-in 500ms forwards;
}

.card-modal::backdrop {
  /* background: rgb(0 0 0 / 0.5); */
  opacity: 0;
}

/* .modal[open]::backdrop{
    animation: fade-in 500ms forwards
    opacity:1 
  } */

.card-modal[closing] {
  display: block;
  inset: 0;
  pointer-events: none;
  animation: fade-out 500ms forwards;
}

/* .modal[closing]::backdrop{
    animation: fade-out 500ms forwards;
  } */

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes slide-down {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0%);
  }
}

.cards-container__card {
  width: 70%;
  max-width: 300px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s ease-in-out;
  background-color: #fff;
  padding: .5rem;
  border-radius: .5rem;
}

.cards-container__card:hover {
  border: 2px solid var(--primary-color);

}

@media screen and (min-width: 480px) {
  .cards-container__card {
    width: 50%;
  }
}

@media screen and (min-width: 766px) {
  .contenedor-tarjetas {
    flex-direction: row;
    justify-content: center;
    margin-top: 0;
  }

  .tarjeta {
    width: 30%;
  }

  .card-modal__cards-container {
    flex-direction: row;
    justify-content: center;
    padding-block: 5rem;
    max-height: 50vh;
  }
}

@media screen and (min-width: 1080px) {
  .tarjeta {
    width: 40%;
  }
}