/* ==========================================================================
   ENTRETENIMIENTO TOLIMA · PUBLICIDAD PÚBLICA v12.1
   Recupera slots comerciales + nuevo bloque doble.
   No modifica AdvertisingService ni el inspector de campañas.
   ========================================================================== */

:root{
  --et-ad-blue:#062B8F;
  --et-ad-blue-dark:#03185F;
  --et-ad-orange:#F6A30A;
  --et-ad-magenta:#F0147A;
  --et-ad-ink:#071B49;
  --et-ad-border:#DCE5F5;
  --et-ad-surface:#F7F9FE;
}

/* Contenedores inyectados, aislados de la grilla editorial. */
.et-home-ad-mount{
  width:100%;
  min-width:0;
  margin:clamp(28px,3vw,52px) 0;
}

.et-home-ad-mount--top{
  margin-top:24px;
  margin-bottom:clamp(34px,4vw,62px);
}

.et-home-ad-mount--middle{
  margin-top:clamp(28px,3vw,48px);
}

.et-home-ad-mount--before-footer{
  margin-top:clamp(42px,5vw,76px);
  margin-bottom:18px;
}

.et-home-ad-mount--sidebar{
  margin:24px 0 0;
}

/* Normaliza las piezas generadas por AdvertisingService sin destruir
   estilos/atributos usados por el inspector "Datos de campaña". */
.et-home-ad-mount .et-ad-slot,
.et-home-ad-duo-card .et-ad-slot{
  width:100%;
  max-width:100%;
  margin:0 auto;
  box-sizing:border-box;
}

.et-home-ad-mount .et-ad-link,
.et-home-ad-duo-card .et-ad-link{
  width:100%;
  max-width:100%;
  overflow:hidden;
  box-sizing:border-box;
}

.et-home-ad-mount picture,
.et-home-ad-duo-card picture{
  width:100%;
  max-width:100%;
}

/* Los banners clásicos conservan su proporción original. */
.et-home-ad-mount:not(.et-home-ad-mount--sidebar) .et-ad-link img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin-inline:auto;
  object-fit:contain !important;
}

/* --------------------------------------------------------------------------
   NUEVA SECCIÓN: PUBLICIDAD EN DOS COLUMNAS
   -------------------------------------------------------------------------- */

.et-home-ad-duo{
  position:relative;
  width:100%;
  margin:clamp(42px,5vw,78px) 0;
  padding:clamp(24px,2.8vw,38px);
  border:1px solid rgba(6,43,143,.11);
  border-radius:22px;
  background:
    linear-gradient(135deg,rgba(6,43,143,.035),rgba(240,20,122,.018)),
    #fff;
  box-shadow:0 18px 46px rgba(3,24,95,.055);
  box-sizing:border-box;
}

.et-home-ad-duo-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:22px;
  margin-bottom:22px;
}

.et-home-ad-duo-title-wrap{
  min-width:0;
}

.et-home-ad-duo-kicker{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0 0 7px;
  color:var(--et-ad-magenta);
  font:700 .72rem/1.2 Arial,sans-serif;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.et-home-ad-duo-kicker::before{
  content:"";
  width:30px;
  height:2px;
  background:linear-gradient(90deg,var(--et-ad-orange),var(--et-ad-magenta));
}

.et-home-ad-duo h2{
  margin:0;
  color:var(--et-ad-ink);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.45rem,2vw,2rem);
  line-height:1.05;
  letter-spacing:-.025em;
}

.et-home-ad-duo-note{
  max-width:390px;
  margin:0;
  color:#67748B;
  font-size:.76rem;
  line-height:1.55;
  text-align:right;
}

.et-home-ad-duo-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(16px,2vw,26px);
  align-items:stretch;
}

.et-home-ad-duo-card{
  position:relative;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--et-ad-border);
  border-radius:16px;
  background:var(--et-ad-surface);
  box-sizing:border-box;
}

/* Marco neutral 4:3: admite creatividades cuadradas y horizontales.
   La imagen SIEMPRE usa object-fit:contain; nunca se estira. */
.et-home-ad-duo-card .et-ad-link{
  min-height:210px;
  aspect-ratio:4 / 3;
  display:grid !important;
  place-items:center;
  background:
    radial-gradient(circle at 50% 50%,rgba(255,255,255,.98),rgba(244,247,255,.94));
}

.et-home-ad-duo-card .et-ad-link picture{
  display:grid !important;
  place-items:center;
  width:100% !important;
  height:100% !important;
}

.et-home-ad-duo-card .et-ad-link img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  margin:0 auto !important;
  object-fit:contain !important;
  object-position:center !important;
}

/* Si AdvertisingService devuelve placeholder, también conserva tamaño comercial. */
.et-home-ad-duo-card .et-ad-slot--placeholder,
.et-home-ad-duo-card [class*="placeholder"]{
  min-height:210px;
  height:100%;
  display:grid;
  place-items:center;
}

/* Sidebar: no forzamos una proporción rígida. */
.et-home-ad-mount--sidebar .et-ad-link img{
  width:100%;
  height:auto;
  max-height:420px;
  object-fit:contain !important;
}

/* Etiqueta "Publicidad" / cabecera de la pieza. */
.et-home-ad-mount .et-ad-head,
.et-home-ad-duo-card .et-ad-head{
  color:#738099;
}

.et-home-ad-mount .et-ad-label,
.et-home-ad-duo-card .et-ad-label{
  color:var(--et-ad-blue);
}

/* Placeholder corporativo visible cuando aún no hay campaña. */
.et-home-ad-mount .et-ad-slot--placeholder,
.et-home-ad-duo-card .et-ad-slot--placeholder{
  border-color:rgba(6,43,143,.16);
  background:
    linear-gradient(135deg,rgba(6,43,143,.035),rgba(246,163,10,.035)),
    #FAFBFF;
  color:#68758B;
}

/* Evita que cualquier estilo global de imágenes las deforme. */
.et-home-ad-duo img,
.et-home-ad-mount img{
  box-sizing:border-box;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media(max-width:900px){
  .et-home-ad-duo{
    border-radius:18px;
  }

  .et-home-ad-duo-head{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }

  .et-home-ad-duo-note{
    max-width:none;
    text-align:left;
  }
}

@media(max-width:720px){
  .et-home-ad-duo{
    margin:34px 0;
    padding:18px;
  }

  .et-home-ad-duo-grid{
    grid-template-columns:1fr;
  }

  .et-home-ad-duo-card .et-ad-link{
    min-height:190px;
    aspect-ratio:4 / 3;
  }
}

@media(max-width:480px){
  .et-home-ad-duo{
    padding:15px;
    border-radius:15px;
  }

  .et-home-ad-duo-card{
    border-radius:12px;
  }

  .et-home-ad-duo-card .et-ad-link{
    min-height:170px;
  }
}
