/* Estilos responsivos  max 700px*/
@media (max-width: 700px) {

  /* Encabezado general */
    .main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
  }

  .header-top {
    width: 100%;
  }

  .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
  }
	

  .logos img {
    max-height: 50px;
    height: auto;
    width: auto;
    object-fit: contain;
  }
 /* Oculta el logo grande y ajusta el decorativo */
 .logo-grande {
    display: none !important;
  }

  .logo-espacio {
    display: inline-block; 
    height: 40px;
  }

  /* Redes sociales */
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .social-icons img {
    height: 22px;
  }
	
/*Menu hamburguesa y menú lateral para móviles*/
	.hamburger-bar {
	  width: 100%;
	  height: auto; 
	  background-color: #7A1737;
	  padding: 0; 
	  text-align: left;
	  position: relative;
	  z-index: 10000;
	}

	.hamburger {
	  background-color: transparent !important; 
	  color: white !important;
	  font-family: 'GothamMedium', sans-serif;
	  font-size: 16px;
	  border: none;
	  padding: 14px 20px; 
	  border-radius: 0;
	  width: 100%; 
	  text-align: left;
	  margin: 0; 
	  box-shadow: none;
	  display: block;
	}

  /* Menú lateral que se despliega */
  .main-responsive {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #7A1737;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
	font-family: 'GothamMedium', sans-serif;
  }

  .main-responsive.activo {
    transform: translateX(0);
  }

  .nav-menu-responsive {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .menu-item-responsive {
    margin-bottom: 10px;
  }

  .menu-item-responsive a {
    display: block;
    text-decoration: none;
    color: white;
    padding: 10px;
    border-left: 4px solid transparent;
	font-family: 'GothamMedium', sans-serif;
  }

  .menu-item-responsive a:hover {
    background-color: #7A1737;
    border-left: 4px solid #7A1737;
  }

  .home-icon img {
    width: 24px;
    height: 24px;
  }

  /* Submenús */
  .submenu-responsive {
    display: none;
    list-style: none;
    padding-left: 15px;
    background: #b28854;
    margin-top: 5px;
	font-family: 'GothamMedium', sans-serif;
	
  }
	.submenu-responsive li {
    border-bottom: 1px solid #ffffff40; /* línea blanca semitransparente */
    padding: 0;
  }

  .submenu-responsive li:last-child {
    border-bottom: none; /* quita la línea del último elemento */
  }

  .submenu-responsive li a {
    padding: 8px 10px;
    color: #fff;
  }

  .submenu-responsive li a:hover {
    background-color: #7a1737;
  }

  .has-submenu-responsive.open > .submenu-responsive {
    display: block;
  }
  /* Oculta elementos que no deben mostrarse en móvil */
	.hamburger-bar.oculto {
  display: none !important;
}

/* Pie de página */

/* Oculta elementos que no deben mostrarse en móvil */
 .top-footer{
   display: none !important;
 }

 .top-footer-responsive {
   width: 100%;
   background-color: #ffffff;
   padding: 0;
   margin: 0;
   line-height: 0; 
	 display: block !important;
  }

  .top-footer-responsive img {
    display: block;
    width: 100%;
    height: auto;
  }
	
  .footer-container {
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
  }

  .footer-column {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    text-align: center;
    margin: 10px 0;
  }

  .footer-column * {
    margin: 4px 0 !important;
  }

  .footer-column.enlaces {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    min-height: auto !important;
    max-height: 100px;
    overflow: hidden;
  }

  .footer-column.enlaces img {
    display: block;
    max-height: 24px;
    margin: 0 5px !important;
  }

  .footer-column iframe {
    width: 100% !important;
    height: 140px !important;
    margin: 4px 0;
    border-radius: 8px;
  }

  .social-icons-row {
    justify-content: center;
    gap: 10px;
    margin: 4px 0 !important;
  }

  .footer-link-single a {
    display: block;
    font-size: 16px;
    margin: 4px 0 !important;
  }

  .interest-links li {
    margin: 4px 0 !important;
  }
	 /* Borde divisor entre columnas */
	.footer-column:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    top: auto;
    right: auto;
  }
  /*Ajustes para convocatorias y noticias*/
  .convocatoria {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .columna-imagen {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
  }

  .columna-texto {
    width: 100%;
  }

  .columna-texto h2 {
    font-size: 1.5rem;
  }

  .columna-texto p {
    font-size: 1rem;
  }

  .columna-texto a {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #880038;
    text-decoration: none;
  }

  .columna-texto a:hover {
    text-decoration: underline;
  }

  .noticia {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .columna-imagen {
    width: 100%;
    max-width: 100%;
  }

  .columna-texto {
    width: 100%;
  }
	.main-nav{
    display: none;
  }
}

/* Responsive  max-width: 768px */
@media (max-width: 768px) {
  .carousel-container {
    flex-direction: column;
    align-items: center;
  }

  .carousel-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .carousel-btn-img {
    width: 90px;
  }
}