/* ctxd-ilus v4 (2-dic-2026): SOLO apariencia en móvil (< 768 px): colores, esquinas, sombras y botones.
   No mueve, no oculta y no agrega elementos. La portada queda FUERA (Jose: «no toques el home que estaba bien»).
   Revertir: quitar las 2 etiquetas ctxd-ilus del preload. */
@media (max-width: 767.98px) {
:root { --ilus-tile: color-mix(in srgb, var(--fg, #18181b) 5%, var(--bg, #fff)); --ilus-red: #dc2f3e; --ilus-red-tint: color-mix(in srgb, #dc2f3e 9%, var(--bg, #fff)); }

/* ---------- ficha de evento ---------- */
:root article > div[class*="h-[40vh]"] > img, :root article > div[class*="h-[40vh]"]::before { border-radius: 0 0 26px 26px; }
:root article > div[class*="h-[40vh]"] > div.absolute.top-4 button { border-radius: 50% !important; box-shadow: 0 4px 14px -6px rgba(0,0,0,.45) !important; }
:root article > div[class*="h-[40vh]"] > div.absolute.bottom-0 > div > span:first-child {
  background: var(--ilus-red-tint) !important; color: var(--ilus-red) !important; border: 0 !important;
  border-radius: 10px !important; padding: 4px 10px !important; font-weight: 600 !important; backdrop-filter: none !important;
}
:root article > div[class*="h-[40vh]"] > div.absolute.bottom-0 div.flex.flex-wrap > span:not([class*="rounded-full"]) {
  background: var(--ilus-tile); border-radius: 12px; padding: 6px 10px; font-weight: 600; font-variant-numeric: tabular-nums;
}
:root #t3a-acc .t3a-btn { border-radius: 18px !important; }
:root #t3a-acc .t3a-btn--pri { box-shadow: 0 10px 24px -12px rgba(220,47,62,.75) !important; }
:root #t3a-acc .t3a-btn--sec { background: var(--ilus-tile) !important; border-color: transparent !important; }
:root #t3a-barra .t3a-btn { border-radius: 18px !important; }
:root #t3a-barra .t3a-btn--sec { background: var(--ilus-tile) !important; border-color: transparent !important; }
:root #t3a-barra .t3a-btn--pri { box-shadow: 0 10px 24px -12px rgba(220,47,62,.75) !important; }
:root section.g-blk, :root #t17 ul a { border-radius: 20px !important; }
:root #t17 ul a { background: var(--ilus-tile) !important; border-color: transparent !important; }
:root .g-btn2, :root .g-fn { border-radius: 14px !important; }
:root .g-btn2 { background: var(--ilus-tile) !important; border-color: transparent !important; }
:root .g-fn-act { border-color: var(--ilus-red) !important; background: var(--ilus-red-tint) !important; }
:root #section-facts > div { border-radius: 20px !important; }
:root .countdown-cell { border-radius: 14px !important; }

/* ---------- restaurantes, bares y lugares ---------- */
:root article.rxf > header.rxf-hero { border-radius: 26px !important; box-shadow: 0 18px 40px -24px rgba(0,0,0,.6) !important; }
:root article.rxf .rxf-card { border-radius: 24px !important; border-color: transparent !important; background: var(--ilus-tile) !important; }
:root article.rxf .rxf-btn, :root article.rxf .rxf-card .ctxd-add, :root article.rxf .ctxr-rshare { border-radius: 18px !important; }
:root article.rxf .rxf-card .rxf-btn, :root article.rxf .rxf-card .ctxr-rshare { background: var(--bg, #fff) !important; border-color: transparent !important; }
:root article.rxf .rxf-card .ctxd-add { box-shadow: 0 10px 24px -12px rgba(220,47,62,.75) !important; }
:root article.rxf .rxf-badge { border-radius: 14px !important; }

/* ---------- resto de páginas (ciudades, finde, agendas): mismo acabado, sin mover nada ---------- */
:root .t8x-c, :root .t8s-c { border-radius: 22px !important; overflow: hidden; }
:root section[class*="h-[62vh]"] a[class*="inline-flex"] { border-radius: 18px !important; }
:root section[class*="h-[62vh]"] a[class*="inline-flex"]:first-child { box-shadow: 0 10px 24px -12px rgba(220,47,62,.75) !important; }
:root section.ctxd-lucha, :root .t8a-tab { border-radius: 16px !important; }
:root section.ctxd-lucha { border-radius: 24px !important; }

/* ================= v4: acabado visible en TODO el móvil (portada incluida), sin quitar ni mover nada ================= */
:root main section[class*="min-h-[88vh]"], :root main section[class*="h-[62vh]"] { border-radius: 0 0 30px 30px; overflow: hidden; }
:root main section[class*="min-h-[88vh]"] > div.absolute.inset-0:first-of-type { background: linear-gradient(160deg, rgba(20,8,16,.55) 0%, rgba(70,14,28,.55) 100%) !important; }
:root main section[class*="min-h-[88vh]"] input[type="text"] { border-radius: 20px !important; border-color: transparent !important; box-shadow: 0 14px 34px -16px rgba(0,0,0,.65) !important; font-size: 16px !important; }
:root main section[class*="min-h-[88vh]"] div.mt-6 a { border-radius: 18px !important; box-shadow: 0 12px 28px -12px rgba(220,47,62,.9) !important; }
:root .t8x-c { border-radius: 26px !important; box-shadow: 0 18px 36px -22px rgba(24,10,20,.7) !important; }
:root .t8x-c .ctxd-cadd { border-radius: 14px !important; border: 0 !important; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5) !important; }
:root .t8x-c .t8x-k { color: #ffd0d4 !important; }
:root .t8s-c { border-radius: 24px !important; background: var(--bg, #fff) !important; border: 0 !important; box-shadow: 0 16px 34px -22px rgba(24,10,20,.55) !important; overflow: hidden; }
:root .t8s-c .t8s-f { border-radius: 24px 24px 0 0 !important; overflow: hidden; }
:root .t8s-c .t8s-k { color: var(--ilus-red) !important; font-weight: 600 !important; }
:root .t8a-tab { border-radius: 14px !important; }
:root #ctxd-inv .in { border-radius: 26px !important; box-shadow: 0 18px 36px -22px rgba(24,10,20,.6) !important; }
:root #ctxd-inv .in a { border-radius: 16px !important; }
:root section.ctxd-lucha { border-radius: 26px !important; overflow: hidden !important; box-shadow: 0 18px 36px -22px rgba(24,10,20,.7) !important; }
:root section.ctxd-lucha a { border-radius: 16px !important; }
:root #ctxd-tab { border-radius: 26px 26px 0 0 !important; border-top: 0 !important; box-shadow: 0 -10px 30px -18px rgba(24,10,20,.45) !important; }
:root body div.fixed.animate-slide-up:has(a[href="/legal/cookies"]) > div { border-radius: 22px !important; box-shadow: 0 16px 40px -18px rgba(0,0,0,.5) !important; }
:root body div.fixed.animate-slide-up:has(a[href="/legal/cookies"]) button { border-radius: 14px !important; }
}
