body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  background: #f4f6f8;
  font-weight: 600;
  font-size: 13px;
}

.top-bar {
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  border-bottom: 1px solid #ccc;
}

/* LOS ESTILOS DEL LOGO SE MANEJAN EN STYLE.CSS - NO AGREGAR NADA AQUÍ */

.has-dropdown {
  display: flex;
}

.menu-principal {
  position: relative;
  background-color: white;
  padding: 5px 30px;
  text-align: center;
  border-top: 1px solid #eee;
}

.menu-nivel-1 {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-link li {
  position: relative;
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
}
.nav-link a {
  text-decoration: none !important;
  display: block;
  font-weight: 500;
  font-size: 14px;
  padding: 8px;
  text-decoration: none;
  color: #fff;
}
.nav-link a:hover {
  text-decoration: none;
  background: #38b6ff;
  color: #fff !important;
  width: 100%;
  border-radius: 4px;
  padding: 8px;
}
.nav-dos {
  width: 80%;
  margin: auto;
}
/* Submenú */
.submenu {
  margin: 1rem 10vw;
  gap: 1px 12px;
  width: 100%;
  padding: 0.4rem;
  border-radius: 4px;
  outline: 2px solid #5b759561;
  outline-offset: 0px;
  position: absolute;
  color: #fff !important;
  background: #000a;
  backdrop-filter: blur(12px);
  z-index: 2;

  left: 0;
  animation: menu-animation-aemps 0.2s ease-in-out;
  overflow: hidden;
}

.has-dropdown:hover .submenu {
  display: block;
}
*/ .submenu li {
  padding: 8px 20px;
  white-space: nowrap;
}
.header-container {
  border-bottom: 1px solid #ddd;
  font-family: Arial, sans-serif;
  background: #fff;
}
.header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  margin: auto;
  padding: 10px 30px;
}
/* LOS ESTILOS DEL LOGO SE MANEJAN EN STYLE.CSS - NO AGREGAR NADA AQUÍ */
.top-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}
.idioma-btn {
  background-color: #38b6ff;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 0.9rem;
  border-radius: 5px;
  cursor: pointer;
}

/* Menús */
.menu-principal {
  border-top: 1px solid #eee;
  padding: 5px 30px;

  background-color: white;
}
.header-secundario {
  width: 60%;
  margin: auto;
}
.menu-principal ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;

  margin: 5px 0;
  padding: 0;
  font-size: 0.95rem;
}
.menu-secundario {
  margin-top: 5px;
  color: #444;
}
.menu-icons a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
}
.carousel {
  background: url("https://www.aemps.gob.es/wp-content/uploads/2024/07/banner.jpg")
    center/cover no-repeat;

  text-align: center;
  padding: 80px 20px;
}
.carousel button {
  background: #38b6ff;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
}
.apps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr; /* 2 columnas iguales */
  gap: 10px;
}
.noticia {
  max-width: 300px;
  text-align: left;
}
.noticia img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}
.aplicaciones,
.notificaciones {
  padding: 30px 20px;
  background: #eaf0f6;
  text-align: center;
}
.card {
  box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
    rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
  width: 550px;
  padding: 1rem;
  background-color: #fff;
  text-align: center;
  margin-top: 10px;
  min-height: 120px;
  box-sizing: border-box;
  border-radius: 8px;
}
.nosotros {
  box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
    rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
  padding: 1rem;
  background-color: #fff;
  text-align: left;
  width: 50%;
  margin: auto;
  margin-top: 10px;
  box-sizing: border-box;
  border-radius: 8px;
}
.nosotros img {
  width: 100%;
}
.apps {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: 60%;
  margin: auto;
  flex-wrap: wrap;
  margin-top: 20px;
}

.card-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
    rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
  width: 218px;
  height: 158px;
  /* padding: 1rem; */
  margin: 5px 0;
  background-color: #fff;
  text-align: center;
  border-radius: 8px;
}
.apps img {
  max-height: 50px;
}

/********************************************
  ESTILOS BASE (Mobile First) 
********************************************/
.noticias-container {
  width: 100%;
  padding: 1rem;
  margin: 0 auto;
}

.noticia-principal {
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
}

.noticia-principal-contenido {
  display: flex;
  flex-direction: column;
}

.noticia-principal-imagen img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.noticia-principal-texto {
  padding: 1rem;
}

.noticia-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.noticia-categoria {
  background: #38b6ff;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
}

.noticia-fecha {
  color: #6c757d;
  font-size: 0.8rem;
}

.noticia-resumen {
  color: #254b96;
  margin-bottom: 0;
  font-size: 0.8rem;
}

.noticias-secundarias {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.noticia-secundaria {
  background: #fff;
  padding: 1em;
  border-radius: 0.5rem;
}

/********************************************
  MEDIA QUERIES (Desktop ≥992px) 
  Solo para ajustes específicos en pantallas grandes
********************************************/
@media (min-width: 992px) {
  .noticias-container {
    width: 50%;
    padding: 1.5rem 0;
  }
  
  .noticia-principal-contenido {
    flex-direction: row;
  }
  
  .noticia-principal-imagen {
    flex: 0 0 50%;
  }
  
  .noticia-principal-imagen img {
    height: 100%;
  }
  
  .noticia-principal-texto {
    flex: 1;
    padding: 1.5rem;
  }
  
  .noticias-secundarias {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .noticia-categoria {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
}

/********************************************
  CLASES BOOTSTRAP QUE DEBEN MANTENERSE 
  (Estilos se heredan de Bootstrap)
*********************************************/
/* 
  .shadow-none, .d-flex, .justify-content-between, 
  .align-items-center, .img-fluid, etc.
  se mantienen del framework Bootstrap
*/

.swiper-slide a {
  background: #38b6ff;
  border-radius: 30px;
  color: #fff;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  width: fit-content;
  height: auto;
  font-size: 14px;
  text-decoration: none;
  text-transform: capitalize;
}

.swiper-slide a:hover {
  font-size: 16px;
}

.swiper-texto {
  margin: 0;
  position: absolute;
  background-color: #0003;
  height: auto;
  width: 100%;
  padding: 40px 0;
  color: #ffffff;
}

.swiper {
  width: 100%;
  height: 350px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
.bg-primary {
  background-color: #002952 !important;
}
/* Estilos base del footer */
.container-footer {
  width: 50%;
  padding: 1rem;
  margin: 0 auto;
}

/* Estilos para los enlaces */
footer a {
  transition: opacity 0.3s ease;
}

/* Estilos para los íconos sociales */
.social-icons a {
  transition: transform 0.3s ease;
  display: inline-block;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.social-icons .whatsapp { color: #25d366; }
.social-icons .instagram { color: #e1306c; }
.social-icons .linkedin { color: #0077b5; }
.social-icons .youtube { color: #ff0000; }
.social-icons .twitter { color: #1da1f2; }

/* Ajustes responsivos */
@media (max-width: 767.98px) {
  .descripcion-footer {
    border-left: none;
    border-top: 2px solid #fff;
    padding-top: 1rem;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center !important;
  }
  
  .logo-footer {
    margin-top: 1rem;
  }
}