/* Estilos para el componente Banner */

.bannerContainerA {
  width: 100%;
  overflow: hidden;
  transition: height 0.3s ease-in-out;
  margin: 0 0 15px 0;
  background-color: transparent;
  border-radius: 8px;
  position: relative;
}

.bannerLoaded {
  transition: height 0.3s ease;
}

.anuncioBanner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: relative;
}

/* Estilos para el indicador de carga */
.anuncioLoading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: 100%;
  padding: 15px;
  color: #888;
  text-align: center;
}

.loadingSpinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(150, 150, 150, 0.2);
  border-radius: 50%;
  border-top-color: #666;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

.loadingText {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* Estilos para mensajes de error */
.anuncioError {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: 100%;
  padding: 15px;
  color: #d32f2f;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.anuncioVacio {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: 100%;
  padding: 15px;
  color: #888;
  text-align: center;
  font-size: 14px;
  font-style: italic;
}

/* Estilos para anuncios tipo enlace */
.anuncioEnlace {
  display: block;
  text-align: center;
  color: #333;
  text-decoration: none;
  max-width: 100%;
  transition: opacity 0.2s ease;
}

.anuncioEnlace:hover {
  opacity: 0.9;
}

.anuncioImagen {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* Estilos para anuncios tipo script */
.anuncioScript {
  display: block;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 576px) {
  .bannerContainerA {
    margin: 10px 0;
  }
  
  .anuncioBanner {
    padding: 5px;
  }
  
  .anuncioLoading {
    min-height: 50px;
    padding: 10px;
  }
  
  .loadingSpinner {
    width: 20px;
    height: 20px;
    margin-bottom: 6px;
  }
  
  .loadingText {
    font-size: 12px;
  }
  
  .anuncioError,
  .anuncioVacio {
    min-height: 50px;
    padding: 10px;
    font-size: 12px;
  }
}