/**
 * Estilos para los contenedores de iframe de productos y afiliados
 */

/* Estilos para las secciones de PubliAdmin */
.iframe-section {
  display: flex;
  justify-content: center;
  padding: 20px;
  margin: 2rem 0;
}

.iframe-container {
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  padding: 10px;
  max-width: 100%;
}

.iframe-container iframe {
  display: block;
  border: 0;
  margin: 0 auto;
}

/* Contenedor para iframes de productos */
.producto-iframe-container {
  width: 100%;
  margin: 2rem 0;
  overflow: hidden;
}

.producto-iframe {
  width: 100%;
  border: none;
  transition: height 0.3s ease;
  background-color: transparent;
}

/* Contenedor para iframes de afiliados */
.affiliate-iframe-container {
  width: 100%;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
}

.auto-resize-iframe {
  width: 100%;
  border: none;
  transition: height 0.3s ease;
  background-color: transparent;
  min-height: 120px; /* Reducido significativamente para adaptarse al banner */
}

/* Estilos responsive para iframes */
@media (max-width: 768px) {
  .producto-iframe-container,
  .affiliate-iframe-container {
    margin: 1.5rem 0;
  }

  .auto-resize-iframe {
    min-height: 120px; /* Reducido significativamente para adaptarse al banner en móviles */
  }
}
