/* Banners de Apps — estilos auto-contenidos (no dependen del theme). Pastel. */

.se-promo-wrap { margin: 1.9rem 0; }
.se-promo-wrap--aftertool { margin-top: .9rem; }

/* ── Banner horizontal ─────────────────────────────────────────── */
.se-promo {
    --se-accent: #7C3AED;
    position: relative;
    background: #FBF7FF;
    border: 1px solid #ECE3F5;
    border-left: 4px solid var(--se-accent);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, .07);
    overflow: hidden;
    max-width: 720px;
    margin-inline: auto;
}
.se-promo__link {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.2rem;
    text-decoration: none !important; color: #2C2440;
    transition: transform .15s ease, box-shadow .15s ease;
}
.se-promo:hover { box-shadow: 0 8px 24px rgba(124, 58, 237, .14); }
.se-promo:hover .se-promo__link { transform: translateY(-1px); }
.se-promo__media { flex: 0 0 auto; line-height: 0; }
.se-promo__media img { width: 72px; height: 72px; border-radius: 16px; display: block; }
.se-promo__emoji {
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 16px;
    background: color-mix(in srgb, var(--se-accent) 14%, #fff);
    font-size: 32px; line-height: 1;
}
.se-promo__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.se-promo__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A7FA3; }
.se-promo__headline { font-size: 1.18rem; font-weight: 700; line-height: 1.25; color: #2C2440; }
.se-promo__subcopy  { font-size: .92rem; line-height: 1.4; color: #5B5470; margin-top: 2px; }
.se-promo__proof    { font-size: .82rem; font-weight: 600; color: #7A6F95; margin-top: 4px; }
.se-promo__cta {
    flex: 0 0 auto; align-self: center;
    background: var(--se-accent); color: #fff; font-weight: 700; font-size: .92rem;
    padding: .6rem 1.1rem; border-radius: 999px; white-space: nowrap;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--se-accent) 35%, transparent);
}
@media (max-width: 600px) {
    .se-promo__link { flex-direction: column; text-align: center; gap: .7rem; padding: 1.1rem; }
    .se-promo__body { align-items: center; }
    .se-promo__headline { font-size: 1.1rem; }
    .se-promo__cta { width: 100%; text-align: center; padding: .8rem; }
}

/* ── Tarjeta de intención (SOLO slot incontent) ──────────────────
   El banner horizontal genérico media 0,27% CTR con el 42% del inventario (muerto).
   Esta variante da más peso visual: acento arriba (no solo a la izquierda), fondo
   tintado con el color de cada app, proof en forma de chip, y SIEMPRE vertical con
   CTA ancho (no solo en mobile) para que se lea como recomendación, no como decoración. */
.se-promo--card {
    border: 1px solid color-mix(in srgb, var(--se-accent) 32%, #ECE3F5);
    border-top: 5px solid var(--se-accent);
    border-left-width: 1px;
    background: color-mix(in srgb, var(--se-accent) 7%, #fff);
    border-radius: 18px;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--se-accent) 16%, transparent);
}
.se-promo--card .se-promo__link {
    flex-direction: column; text-align: center; gap: .5rem;
    padding: 1.5rem 1.4rem 1.4rem;
}
.se-promo--card .se-promo__media img,
.se-promo--card .se-promo__emoji { width: 58px; height: 58px; border-radius: 16px; font-size: 28px; }
.se-promo--card .se-promo__body { align-items: center; }
.se-promo--card .se-promo__eyebrow {
    display: inline-block; padding: .22rem .65rem; border-radius: 999px;
    background: color-mix(in srgb, var(--se-accent) 16%, #fff); color: var(--se-accent);
}
.se-promo--card .se-promo__headline { font-size: 1.24rem; }
.se-promo--card .se-promo__proof {
    display: inline-block; margin-top: .35rem; padding: .28rem .7rem; border-radius: 999px;
    background: color-mix(in srgb, var(--se-accent) 13%, #fff); color: var(--se-accent);
    font-weight: 700;
}
.se-promo--card .se-promo__cta {
    width: 100%; margin-top: .6rem; padding: 1rem 1.2rem; font-size: 1rem;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--se-accent) 38%, transparent);
}

/* ── Sidebar: tarjetas de apps ─────────────────────────────────── */
.se-sbar-apps { display: flex; flex-direction: column; gap: .55rem; }
.se-sbar-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A7FA3; margin-bottom: .4rem; }
.se-sbar-card {
    --se-accent: #7C3AED;
    display: flex; align-items: center; gap: .6rem;
    padding: .6rem .7rem;
    background: #FBF7FF; border: 1px solid #ECE3F5; border-radius: 12px;
    text-decoration: none !important; color: #2C2440;
    transition: transform .12s ease, box-shadow .12s ease;
}
a.se-sbar-card:hover { transform: translateX(2px); box-shadow: 0 4px 14px rgba(124, 58, 237, .12); }
.se-sbar-card--soon { opacity: .72; }
.se-sbar-card__media { flex: 0 0 auto; line-height: 0; }
.se-sbar-card__media img { width: 44px; height: 44px; border-radius: 11px; display: block; }
.se-sbar-card__emoji {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 11px;
    background: color-mix(in srgb, var(--se-accent) 14%, #fff); font-size: 22px;
}
.se-sbar-card__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.se-sbar-card__name { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.se-sbar-card__sub  { font-size: .78rem; color: #6B6385; line-height: 1.25; }
.se-sbar-card__badge {
    flex: 0 0 auto; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    padding: .2rem .5rem; border-radius: 999px;
    background: color-mix(in srgb, var(--se-accent) 16%, #fff); color: var(--se-accent);
}
.se-sbar-card--soon .se-sbar-card__badge { background: #EFEAF6; color: #8A7FA3; }

/* ── Sticky bar inferior ───────────────────────────────────────── */
.se-app-bar {
    --se-accent: #7a4aa0;
    display: flex; align-items: center;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: linear-gradient(135deg, var(--se-accent, #7a4aa0), #5a2a80);
    transform: translateY(130%);
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
    box-shadow: 0 -4px 24px rgba(80, 30, 120, .25);
}
.se-app-bar--visible { transform: translateY(0); }
@media (min-width: 1024px) {
    .se-app-bar { left: auto; right: 24px; bottom: 24px; max-width: 520px; border-radius: 16px; }
}
body.se-has-sticky { padding-bottom: 76px; }
@media (min-width: 1024px) { body.se-has-sticky { padding-bottom: 0; } }
.se-app-bar__inner { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; max-width: 700px; margin: 0 auto; width: 100%; }
.se-app-bar__icon {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    background: rgba(255, 255, 255, .16); box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.se-app-bar__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.se-app-bar__text { flex: 1 1 auto; min-width: 0; }
/* Hasta 2 líneas: con icono + CTA en 375 px, una sola línea cortaba el titular a ~16 caracteres
   ("¿Te gustó tu tir…"). 2 líneas (~34 px) caben en la altura que ya fija el icono de 44 px. */
.se-app-bar__text strong {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    color: #fff; font-size: .92rem; font-weight: 700; line-height: 1.25; overflow: hidden;
}
.se-app-bar__btn {
    flex-shrink: 0; background: #fff; color: #5a2a80 !important;
    border-radius: 999px; padding: 9px 18px; font-size: .82rem; font-weight: 800;
    text-decoration: none !important; white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.se-app-bar__btn:hover { background: #f3ecff; }
.se-app-bar__close {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; padding: 0;
    background: rgba(255, 255, 255, .18); border: none; color: #fff; font-size: 1.05rem; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.se-app-bar__close:hover { background: rgba(255, 255, 255, .34); }
@media (max-width: 380px) { .se-app-bar__text strong { font-size: .84rem; } .se-app-bar__btn { padding: 9px 14px; } }
/* Icono imagen en banner horizontal y modal */
.se-promo__media img { object-fit: cover; }
.se-modal__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* ── Interstitial (modal house) ────────────────────────────────── */
.se-modal[hidden] { display: none; }
.se-modal {
    --se-accent: #7C3AED;
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 1.2rem; opacity: 0; transition: opacity .25s ease;
}
.se-modal--open { opacity: 1; }
.se-modal__backdrop { position: absolute; inset: 0; background: rgba(40, 15, 60, .55); backdrop-filter: blur(2px); }
.se-modal__card {
    position: relative; width: 100%; max-width: 480px;
    background: #FBF7FF; border: 1px solid #ECE3F5; border-top: 6px solid var(--se-accent);
    border-radius: 24px; padding: 2.6rem 2.2rem 2rem; text-align: center;
    box-shadow: 0 30px 80px rgba(40, 15, 60, .4);
    transform: translateY(14px) scale(.97); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.se-modal--open .se-modal__card { transform: translateY(0) scale(1); }
/* Cerrar: X arriba-derecha, área táctil >=44px (anti-tap-accidental) y bien separada del
   CTA (~200px más abajo en el layout del modal, ver .se-modal__cta). */
.se-modal__close {
    position: absolute; top: .4rem; right: .4rem;
    width: 44px; height: 44px; min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; border-radius: 50%;
    font-size: 1.7rem; line-height: 1; color: #A99FBF; cursor: pointer;
}
.se-modal__close:hover { color: #5B5470; background: rgba(91, 84, 112, .08); }
.se-modal__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 96px; height: 96px; border-radius: 26px; overflow: hidden;
    background: color-mix(in srgb, var(--se-accent) 14%, #fff);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--se-accent) 30%, transparent);
    font-size: 48px; margin-bottom: 1.1rem;
}
.se-modal__title { font-size: 1.55rem; font-weight: 800; color: #2C2440; margin: 0 0 .55rem; line-height: 1.25; }
.se-modal__sub { font-size: 1.02rem; color: #5B5470; line-height: 1.55; margin: 0 0 .7rem; }
.se-modal__proof { font-size: .9rem; font-weight: 700; color: #7A6F95; margin: 0 0 1.4rem; }
.se-modal__proof:empty { display: none; }
.se-modal__cta {
    display: block; width: 100%; box-sizing: border-box;
    background: var(--se-accent); color: #fff !important; font-weight: 800; font-size: 1.12rem;
    padding: 1.05rem 1.3rem; border-radius: 999px; text-decoration: none !important; text-align: center;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--se-accent) 40%, transparent); transition: transform .12s ease;
}
.se-modal__cta:hover { transform: translateY(-1px); }
.se-modal__dismiss { display: block; width: 100%; margin-top: .85rem; background: none; border: none; color: #A99FBF; font-size: .9rem; cursor: pointer; padding: .4rem; }
@media (max-width: 560px) {
    .se-modal { padding: 1rem; }
    .se-modal__card { max-width: 94vw; padding: 2.2rem 1.5rem 1.6rem; }
    .se-modal__icon { width: 84px; height: 84px; font-size: 42px; }
    .se-modal__title { font-size: 1.4rem; }
}

/* ── Caja de voto [app_interes] (prueba de interés, 1.5.0) ─────────── */
.se-intent {
    --se-accent: #7a4aa0;
    margin: 1.6rem 0; padding: 1.1rem 1.2rem; border-radius: 16px; text-align: center;
    background: color-mix(in srgb, var(--se-accent) 7%, #fff);
    border: 1px solid color-mix(in srgb, var(--se-accent) 22%, #fff);
}
.se-intent__eyebrow {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #5b4f75; background: #fff; border-radius: 999px; padding: .2rem .7rem;
}
.se-intent__q { font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: #2C2440; margin: .6rem 0 .3rem; }
.se-intent__benefit { font-size: .95rem; color: #2C2440; margin: 0 0 .3rem; }
.se-intent__sub { font-size: .88rem; color: #5b4f75; line-height: 1.4; margin: 0 0 .9rem; }
.se-intent__btns { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
/* Blindado con el contenedor (L-834): el tema pone color #7a4aa0, MAYÚSCULAS y letter-spacing a
   todo <button> y dejaba "Sí, la usaría" morado sobre morado (medido con getComputedStyle). */
.se-intent .se-intent__btns button {
    min-height: 44px; padding: .7rem 1.3rem; border-radius: 999px; font-size: .95rem; font-weight: 700; cursor: pointer;
    border: 2px solid #5a2a80; font-family: inherit; line-height: 1.2;
    text-transform: none !important; letter-spacing: normal !important; box-shadow: none;
}
.se-intent .se-intent__btns .se-intent__yes { background: #5a2a80 !important; color: #fff !important; }
.se-intent .se-intent__btns .se-intent__no { background: #fff !important; color: #5a2a80 !important; }
.se-intent__done, .se-intent__already { font-size: .95rem; font-weight: 600; color: #2C2440; margin: .4rem 0 0; }
.se-intent [hidden] { display: none !important; }
