/* ============================================================
   📢 AVISO INLINE CATÁLOGO — BASE
   ============================================================ */

.avisoCatalogoInline {
  max-width: 960px;
  margin: 32px auto 8px auto;   /* empuja el grid */
  padding: 0 15px;
}

.avisoInlineInner {
  display: flex;
  gap: 24px;

  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.avisoInlineInner img {
  display: block;
  object-fit: cover;
}
/* ============================================================
   📝 CONTENIDO
   ============================================================ */

.avisoInlineContenido {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.avisoInlineContenido h4 {
  margin: 0 0 10px 0;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}

.avisoInlineContenido .avisoTexto {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.55;
}

.avisoInlineContenido .btn {
  align-self: flex-start;
}


/* ============================================================
   📐 FORMATO VERTICAL
   ============================================================ */

.aviso-vertical {
  max-width: 420px;
}

/* ============================================================
   📐 FORMATO CUADRADO
   ============================================================ */

.aviso-cuadrado {
  max-width: 520px;
}

.aviso-cuadrado .avisoInlineInner {
  flex-direction: column;
}

.aviso-cuadrado img {
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* ============================================================
   📱 RESPONSIVE
   ============================================================ */

/* =====================================================
   ❌ X DE CIERRE — SOLO BOTÓN (QUIRÚRGICO)
   ===================================================== */

button.avisoCatalogoCerrar,
button.avisoInlineCerrar {

  /* posición local SIN tocar padres */
  position: absolute;
  top: 10px;
  right: 80px;

  /* tamaño del carácter */
  font-size: 46px;
  line-height: 1;
  font-weight: 600;

  /* TRANSPARENCIA TOTAL */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;

  /* color y legibilidad */
  color: #070707;
  text-shadow:
    -1px -1px 0 rgba(252, 249, 249, 0.65),
     1px -1px 0 rgba(253, 250, 250, 0.65),
    -1px  1px 0 rgba(248, 247, 247, 0.877),
     1px  1px 0 rgba(252, 246, 246, 0.76);

  /* interacción */
  cursor: pointer;
  user-select: none;

}


@media (max-width: 768px) {

  .avisoCatalogoInline {
    margin: 24px auto 6px auto;
  }

  .avisoInlineContenido {
    padding: 20px;
  }
}

/* ============================================================
   📱 RESPONSIVE CORRECTO — RESPETA FORMATO
   ============================================================ */

@media (max-width: 768px) {

  /* Horizontal pasa a vertical SOLO en móvil */
  .aviso-horizontal .avisoInlineInner {
    flex-direction: column;
  }

  /* Vertical y cuadrado ya son columna, no tocar */
  .avisoInlineContenido {
    padding: 20px;
  }
}

/* ============================================================
   📐 CONTROL DE ALTURA — HORIZONTAL DESKTOP
   ============================================================ */

.aviso-horizontal .avisoTexto {
  max-height: 5.2em;      /* aprox 3–4 líneas */
}

/* ============================================================
   📐 FORMATO HORIZONTAL — DESKTOP CORRECTO
   ============================================================ */

/* TEXTO */
.aviso-horizontal .avisoInlineContenido {
  padding: 24px;
}

.aviso-horizontal .avisoTexto {
  max-height: 4.8em;

}

@media (max-width: 768px) {

  .aviso-horizontal .avisoInlineInner {
    grid-template-columns: 1fr;
    height: auto;
  }

  .aviso-horizontal .avisoInlineInner img {
    height: 220px;
  }

  .avisoInlineContenido {
    padding: 20px;
  }
}

/* =====================================================
   🖼️ AVISO INLINE — IMAGEN ADAPTATIVA REAL
   ===================================================== */

/* Wrapper general */
.avisoCatalogoInline {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Contenedor interno */
.avisoInlineInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 960px;
  background: #fff;
  border-radius: 18px;

}

/* -------------------------------
   IMAGEN (CLAVE)
-------------------------------- */

.avisoInlineInner img {
  display: block;
  width: 100%;
  height: auto;              /* 🔥 CLAVE */
  max-width: 100%;
  object-fit: contain;       /* 🔥 SE VE COMPLETA */
}

/* =====================================================
   📱 MOBILE ≤ 480px
   ===================================================== */
@media (max-width: 480px) {

  .avisoInlineInner img {
    width: 70%;              /* 🔥 90% */
    margin-left: auto;
    margin-right: auto;      /* 🔥 márgenes simétricos */
    padding-top: 20%;
  }

}

/* =====================================================
   📌 AVISO INLINE — FIXED FLOATING
   ===================================================== */

.avisoCatalogoInline {
  position: fixed;
  top: 80px;                 /* ajusta según tu navbar */
  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  max-width: 960px;

  z-index: 9999;             /* encima de TODO */
  pointer-events: auto;      /* interactuable */

  /* 🔥 NO empujar contenido */
  margin: 0;
}

@media (max-width: 480px) {

  .avisoCatalogoInline {
    top: 60px;               /* menos espacio en mobile */
    padding: 0;
  }

  /* =====================================================
   ❌ X DE CIERRE — SOLO BOTÓN (QUIRÚRGICO)
   ===================================================== */

button.avisoCatalogoCerrar,
button.avisoInlineCerrar {

  /* posición local SIN tocar padres */
  position: absolute;
  top: 65px;
  right: 35px;

  /* tamaño del carácter */
  font-size: 46px;
  line-height: 1;
  font-weight: 600;

  /* TRANSPARENCIA TOTAL */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;

  /* color y legibilidad */
  color: #070707;
  text-shadow:
    -1px -1px 0 rgba(252, 249, 249, 0.65),
     1px -1px 0 rgba(253, 250, 250, 0.65),
    -1px  1px 0 rgba(248, 247, 247, 0.877),
     1px  1px 0 rgba(252, 246, 246, 0.76);

  /* interacción */
  cursor: pointer;
  user-select: none;

}

}

/* =====================================================
   🖥️ DESKTOP — CONTROL DE ALTURA PARA HORIZONTAL
   ===================================================== */

@media (min-width: 481px) {

  .aviso-horizontal.avisoCatalogoInline {
    max-height: calc(100vh - 100px); /* navbar + respiro */

  }

  .aviso-horizontal .avisoInlineInner {
    max-height: 100%;
  }

  .aviso-horizontal .avisoInlineInner img {
    max-height: 100%;
    width: 100%;
    height: auto;
    object-fit: contain; /* 🔥 NO recorte */
  }

}


/* =====================================================
   🔥 FIX REAL — AVISO FIXED CON SCROLL INTERNO
   ===================================================== */

@media (min-width: 481px) {

  .avisoCatalogoInline {
    max-height: calc(100vh - 80px); /* navbar + margen */
    overflow-y: auto;              /* 🔥 SCROLL REAL */
    overflow-x: hidden;

  }

  .avisoInlineInner {
    max-height: none;              /* NO limitar contenido */
  }

  .avisoInlineInner img {
    height: auto;
    max-height: 100%;              /* 🔥 dejar crecer */
    object-fit: contain;
  }

  button.avisoCatalogoCerrar,
  button.avisoInlineCerrar {
   right: 30px;
  }
}

/* =====================================================
   🔥 AVISO TRANSPARENTE — SOLO IMAGEN
   ===================================================== */

.avisoCatalogoInline,
.avisoInlineInner {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding-top: 10px !important;
  margin: 0 !important;
}
.avisoInlineInner {
  gap: 0 !important;
}
.avisoInlineInner img {
  display: block;
  background: transparent;
}

@media (min-width: 1200px) {
button.avisoCatalogoCerrar,
button.avisoInlineCerrar {

  /* posición local SIN tocar padres */
  position: absolute;
  top: 0px;
  right: 250px;

  /* tamaño del carácter */
  font-size: 56px;
  line-height: 1;
  font-weight: 600;

  /* TRANSPARENCIA TOTAL */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;

  /* color y legibilidad */
  color: #070707;
  text-shadow:
    -1px -1px 0 rgba(252, 249, 249, 0.65),
     1px -1px 0 rgba(253, 250, 250, 0.65),
    -1px  1px 0 rgba(248, 247, 247, 0.877),
     1px  1px 0 rgba(252, 246, 246, 0.76);

  /* interacción */
  cursor: pointer;
  user-select: none;

}

}