/* Espacios publicitarios */
.cy-ad {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 16px;
  /* hidden only to keep the corner radius; the image itself must not overflow */
  overflow: hidden;
  border: 1px dashed rgba(14, 76, 138, .35);
  background: linear-gradient(135deg, #F0F6FF 0%, #FFF8E6 100%);
  color: #101820;
  text-align: left;
  text-decoration: none;
}
.cy-ad-badge {
  display: inline-block;
  margin: 8px 10px 0;
  font: 700 9px/1 var(--dato, monospace); letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 999px; background: rgba(16,24,32,.78); color: #fff;
  position: relative; z-index: 1;
}
.cy-ad-hit {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
/* Ancho = caja de la tarjeta. Alto sigue la proporción.
   max-height + contain achicaba el dibujo y overflow:hidden
   (flex min-width) recortaba los costados. */
.cy-ad-img, .cy-ad-flyer .cy-ad-img,
.cy-ad-muro .cy-ad-img, .cy-ad-alquileres .cy-ad-img,
.cy-ad-arreglalo .cy-ad-img, .cy-ad-arreglalo.cy-ad-flyer .cy-ad-img {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  box-sizing: border-box;
  background: #e8eef6;
}
.cy-ad-placeholder {
  width: 100%; height: 140px; max-height: none;
  display: flex; align-items: center; justify-content: center; font-size: 42px;
  margin-top: 4px; background: #e8eef6;
}
.cy-ad-placeholder {
  display: flex; align-items: center; justify-content: center; font-size: 42px;
  margin-top: 4px;
}
.cy-ad-placeholder.grande { height: 220px; font-size: 64px; border-radius: 16px; }
.cy-ad-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.cy-ad-tit { margin: 0; font: 800 16px/1.25 var(--display, inherit); }
.cy-ad-txt { margin: 0; font-size: 13.5px; color: #3C4C5E; line-height: 1.35; }
.cy-ad-cta { align-self: flex-start; margin-top: 4px; text-decoration: none; }

.muro-feed > .cy-ad { margin: 0; }
.cy-ad-alquileres {
  border-color: #E2A400;
  box-shadow: 0 6px 18px rgba(226, 164, 0, .18);
}
/* Arreglalo: banner rectangular, badge above content (no overlay) */
.arr-ad-slot { margin: 12px 0 8px; width: 100%; }
.cy-ad-arreglalo {
  margin: 0;
  border-radius: 14px;
  border-style: solid;
  border-color: rgba(14, 76, 138, .28);
  background: #fff;
}
.cy-ad-arreglalo .cy-ad-badge {
  margin: 8px 10px 6px;
}
.cy-ad-arreglalo .cy-ad-body { padding: 8px 12px 12px; }
.cy-ad-arreglalo .cy-ad-cta.arr-btn,
.cy-ad-arreglalo .cy-ad-cta {
  display: inline-block; text-align: center; margin-top: 4px;
  text-decoration: none; width: 100%; box-sizing: border-box;
}

.est-circ-ad .est-anillo-ad {
  background: #fff;
  border: 2px dashed #0E4C8A;
}
.est-circ-ad .est-anillo-ad img,
.est-circ-ad .est-anillo > img {
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.est-circ-ad .est-ini { background: #0E4C8A; color: #fff; }

.cy-ad-visor {
  position: fixed; inset: 0; z-index: 950; background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cy-ad-visor[hidden] { display: none !important; }
.cy-ad-visor-x {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.15); color: #fff;
  font-size: 18px; cursor: pointer;
}
.cy-ad-visor-card {
  width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px; color: #101820;
}
.cy-ad-visor-card img { width: 100%; max-height: 320px; object-fit: contain; border-radius: 14px; background: #f4f7fb; }
.cy-ad-visor-card b { font-size: 20px; }
.cy-ad-visor-card p { margin: 0; color: #3C4C5E; line-height: 1.4; }

.muro-feed > .cy-ad,
.alq-lista > .cy-ad,
.arr-ad-slot,
.arr-ad-slot > .cy-ad {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
/* Estados: el círculo (border-radius 50% + overflow) comía los bordes.
   La publi entra entera, más chica que el aro, sin recorte. */
.est-circ-ad .est-anillo-ad {
  overflow: hidden;
  background: #fff;
  border: 2px dashed #0E4C8A;
}
.est-circ-ad .est-anillo-ad img,
.est-circ-ad .est-anillo > img {
  width: 42px;
  height: 42px;
  max-width: 70%;
  max-height: 70%;
  border-radius: 6px;
  border: 0;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.cy-ad-visor-card { overflow: visible; }
.cy-ad-visor-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
}

/* v346 — aviso de la casa «Espacio publicitario disponible» */
.cy-ad-casa { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; overflow: visible; }
.cyc {
  --a: #F0A63A; --a2: #FFD38A; --bt: #1A0F02;
  --f: radial-gradient(120% 90% at 85% 0%, rgba(240,166,58,.38) 0%, rgba(240,166,58,0) 55%), linear-gradient(165deg, #16283A 0%, #0B1620 70%);
  position: relative; box-sizing: border-box; width: 100%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px;
  padding: 26px 22px; border-radius: 18px; background: var(--f); color: #F5EFE4;
  box-shadow: 0 10px 28px rgba(11,22,32,.28), inset 0 0 0 1px rgba(255,255,255,.08);
  font-family: inherit;
}
.cyc-costa {
  --a: #2FD3C4; --a2: #B9FFF6; --bt: #032622;
  --f: radial-gradient(120% 90% at 85% 0%, rgba(47,211,196,.40) 0%, rgba(47,211,196,0) 55%), radial-gradient(90% 70% at 0% 100%, rgba(255,190,90,.25) 0%, rgba(255,190,90,0) 60%), linear-gradient(165deg, #0F4C5C 0%, #062A33 75%);
}
.cyc::after { /* olas suaves de marca */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -38px; height: 90px; border-radius: 50%;
  border-top: 2px solid color-mix(in srgb, var(--a) 45%, transparent); opacity: .55; pointer-events: none;
}
.cyc-badge { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.12); color: rgba(245,239,228,.85); }
.cyc-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 18px; background: #fff; padding: 8px; box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 0 3px color-mix(in srgb, var(--a) 55%, transparent); }
.cyc-txt { display: flex; flex-direction: column; gap: 6px; max-width: 300px; }
.cyc-app { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--a2); }
.cyc-tit { font: 900 24px/1.12 var(--display, inherit); color: #fff; letter-spacing: -.01em; }
.cyc-sub { margin: 0; font-size: 14px; line-height: 1.4; color: rgba(245,239,228,.82); }
.cyc-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  background: var(--a); color: var(--bt); font-weight: 800; font-size: 15px; text-decoration: none;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--a) 40%, transparent); }
.cyc-btn::after { content: "→"; }
.cyc-card { aspect-ratio: 4 / 5; }
.cyc-pantalla { height: 100%; border-radius: 0; }
.cyc-inter { width: min(400px, 100%); aspect-ratio: 4 / 5; }
.cyc-banner { flex-direction: row; text-align: left; gap: 12px; padding: 34px 14px 14px; border-radius: 14px; flex-wrap: wrap; justify-content: flex-start; }
.cyc-banner .cyc-logo { width: 48px; height: 48px; border-radius: 13px; padding: 6px; }
.cyc-banner .cyc-txt { flex: 1 1 160px; gap: 3px; }
.cyc-banner .cyc-app { font-size: 10px; }
.cyc-banner .cyc-tit { font-size: 17px; }
.cyc-banner .cyc-sub { font-size: 12px; }
.cyc-banner .cyc-btn { width: 100%; justify-content: center; padding: 10px 16px; font-size: 14px; }
.cyc-banner::after { display: none; }
.cyc-banner .cyc-badge { top: 9px; }
.ftc-casa-v346 { padding: 0 !important; background: none !important; display: block !important; width: 100%; height: 100%; }
.ftc-casa-v346[hidden] { display: none !important; }
.cyc-flyer { height: 100%; min-height: 100%; border-radius: 0; padding: 14px 10px; gap: 8px; }
.cyc-flyer .cyc-logo { width: 44px; height: 44px; border-radius: 12px; padding: 5px; }
.cyc-flyer .cyc-tit { font-size: 16px; }
.cyc-flyer .cyc-sub { font-size: 11px; }
.cyc-flyer .cyc-app { font-size: 9px; }
.cyc-flyer .cyc-btn { pointer-events: none; padding: 8px 12px; font-size: 12px; }
.cyc-flyer .cyc-badge { display: none; }
.cyc-flyer::after { display: none; }
.trq-ad-casa { padding: 0 !important; display: flex; align-items: stretch; } .trq-ad-casa .cyc { height: 100%; border-radius: 0; aspect-ratio: auto; }
