/* =====================================================================
   BANNER "¿TIENES UN NEGOCIO?" — estilo único, compartido por TODO el sitio
   (páginas públicas y dashboard de usuario).

   Antes este bloque vivía copiado y pegado (con pequeñas diferencias) en
   16 archivos .blade.php distintos. Ahora el HTML vive en un solo partial
   (resources/views/partials/anuncio-negocio.blade.php) y el estilo aquí,
   en un solo archivo. Para cambiar cómo se ve el banner en TODO el sitio,
   solo hay que tocar este archivo.
   ===================================================================== */

.banner-negocio {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  background: linear-gradient(115deg, #5c0d1c 0%, #6b1021 35%, #8f1d2f 65%, #b12d25 100%);
  border-radius: 18px;
  padding: 20px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(107, 16, 33, .25);
  isolation: isolate;
}

.banner-negocio * {
  box-sizing: border-box;
}

/* textura sutil de fondo, sin afectar el contenido */
.banner-negocio::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 207, 51, .12), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.banner-negocio > * {
  position: relative;
  z-index: 1;
}

.banner-texto {
  flex: 1 1 200px;
  min-width: 0;
}

.banner-texto h2 {
  font-size: 23px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: .2px;
}

.banner-texto p {
  margin: 0;
  font-size: 13.5px;
  opacity: .85;
  max-width: 320px;
  line-height: 1.4;
}

.banner-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(255, 207, 51, .4);
  flex-shrink: 0;
}

.banner-icono img {
  width: 26px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
}

.banner-destaca {
  text-align: center;
  padding: 0 18px;
  border-left: 1px solid rgba(255, 255, 255, .18);
  border-right: 1px solid rgba(255, 255, 255, .18);
  flex-shrink: 0;
}

.banner-destaca h2 {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  opacity: .75;
}

.banner-destaca h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #ffcf33;
  text-shadow: 0 2px 10px rgba(255, 207, 51, .35);
  white-space: nowrap;
}

.banner-boton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-anunciar {
  background: linear-gradient(135deg, #ffc107, #ffb347);
  color: #4a1206;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .2px;
  display: inline-block;
  box-shadow: 0 6px 16px rgba(255, 193, 7, .35);
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn-anunciar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 193, 7, .45);
  color: #4a1206;
}

.btn-anunciar:active {
  transform: translateY(0) scale(.97);
}

.banner-boton small {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
}

.banner-persona {
  flex-shrink: 0;
}

.banner-persona img {
  height: 64px;
  width: 64px;
  object-fit: cover;
  border-radius: 999px;
  border: 2.5px solid rgba(255, 255, 255, .5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

/* ---------------------------------------------------------------------
   PANEL (páginas de trabajador y de empleador, las que tienen el menú
   lateral): el banner se ve IGUAL en todas, como en el Inicio de
   trabajador.

   En el Inicio el banner va dentro de la sección principal, que le da
   1.5rem de margen a cada lado. En las demás páginas va debajo de la
   sección, dentro de un .container sin ese margen, y por eso se veía más
   ancho, pegado al borde derecho y encimado en el lado izquierdo. Aquí
   se le devuelve ese mismo margen, sin tener que tocar cada página.
   Solo aplica al panel (html.has-aside-left); las páginas públicas no
   cambian.
   --------------------------------------------------------------------- */
html.has-aside-left .container:has(> .banner-negocio) {
  box-sizing: border-box;
  max-width: calc(1344px + 3rem);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===== Responsivo ===== */

/* En tablets ya no hay espacio para los separadores verticales */
@media (max-width: 991px) {
  .banner-destaca {
    border-left: none;
    border-right: none;
  }
}

@media (max-width: 767px) {
  .banner-negocio {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    text-align: center;
    padding: 30px 22px 26px;
    gap: 10px;
    border-radius: 16px;
    position: relative;
    overflow: visible;
  }

  /* Ícono de la tienda en un circulito destacado, arriba de todo */
  .banner-icono {
    order: -3;
    width: 68px;
    height: 68px;
    margin-bottom: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  }

  .banner-icono img {
    width: 36px;
  }

  /* Título principal */
  .banner-texto {
    order: -2;
    flex: 0 1 auto;
  }

  .banner-texto h2 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .3px;
    margin-bottom: 4px;
  }

  .banner-texto p {
    font-size: 12.5px;
    opacity: .88;
    max-width: 260px;
    margin: 0 auto;
    line-height: 1.45;
  }

  /* Línea divisoria decorativa */
  .banner-destaca {
    order: -1;
    margin-top: 10px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    border-left: none;
    border-right: none;
    width: 100%;
  }

  .banner-destaca h1 {
    font-size: 25px;
    white-space: normal;
  }

  /* Botón, con más presencia */
  .banner-boton {
    width: 100%;
    margin-top: 6px;
  }

  .btn-anunciar {
    display: block;
    width: 100%;
    padding: 13px;
    font-size: 14.5px;
    letter-spacing: .3px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(255, 193, 7, .35);
  }

  .banner-boton small {
    margin-top: 8px;
    font-size: 11px;
    opacity: .7;
  }

  /* Foto de la persona: chiquita, como un detalle final */
  .banner-persona {
    order: 1;
    margin-top: 14px;
  }

  .banner-persona img {
    height: 54px;
    width: 54px;
  }
}
