/* ===== LimitesMAO · portada del panel de clientes ===== */
.nav-brand span strong, .lm-footer b span, .lm-modal h2 span { background: linear-gradient(90deg, #2b8fff, #00e0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lm-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 24px; align-items: stretch; margin: 6px 0 22px; animation: fadeInDown .7s ease; }
.lm-hero-main { position: relative; overflow: hidden; border-radius: 24px; padding: 38px 36px; border: 1px solid rgba(255,255,255,.08);
    background: radial-gradient(120% 140% at 0% 0%, rgba(43,143,255,.22) 0%, rgba(43,143,255,0) 55%), radial-gradient(90% 120% at 100% 100%, rgba(0,224,255,.12) 0%, rgba(0,0,0,0) 60%), rgba(10,14,22,.75); }
.lm-hero-main::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(43,143,255,.18); box-shadow: 0 0 0 30px rgba(43,143,255,.03), 0 0 0 60px rgba(43,143,255,.02); pointer-events: none; }
.lm-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #7fc4ff; background: rgba(43,143,255,.12); border: 1px solid rgba(43,143,255,.3); padding: 6px 12px; border-radius: 30px; }
.lm-kicker.gold { color: #ffd66b; background: rgba(255,196,0,.1); border-color: rgba(255,196,0,.35); }
.lm-hero h1 { font-size: 46px; line-height: 1.08; font-weight: 800; letter-spacing: -1px; margin: 18px 0 14px; }
.lm-hero h1 span { background: linear-gradient(90deg, #2b8fff, #00e0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lm-hero-main > p { color: #aab6cc; font-size: 15.5px; line-height: 1.65; max-width: 560px; }
.lm-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 22px; }
.lm-trust { display: flex; gap: 10px; flex-wrap: wrap; }
.lm-trust span { font-size: 12.5px; color: #c9d4e6; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 7px 12px; border-radius: 30px; display: inline-flex; gap: 7px; align-items: center; }
.lm-trust i { color: #00e07a; }

.lm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 14px; font-weight: 800; font-size: 14.5px; cursor: pointer; border: none; text-decoration: none; transition: transform .15s, filter .15s, background .15s; font-family: inherit; }
.lm-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.lm-btn-primary { background: linear-gradient(135deg, #2b8fff, #1f6dff); color: #fff; box-shadow: 0 10px 30px rgba(43,143,255,.35); }
.lm-btn-ghost { background: rgba(255,255,255,.05); color: #e3e9f5; border: 1px solid rgba(255,255,255,.14); }
.lm-btn-gold { background: linear-gradient(135deg, #ffcf3f, #ff9d00); color: #1d1300; box-shadow: 0 10px 26px rgba(255,170,0,.25); }
.lm-btn-wa { background: #25D366; color: #04210f; box-shadow: 0 10px 26px rgba(37,211,102,.3); }
.lm-btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 11px; }

/* Tarjeta "Tu cuenta" */
.lm-account { border-radius: 24px; padding: 24px; border: 1px solid rgba(255,255,255,.08); background: rgba(10,14,22,.78); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lm-acc-head { display: flex; align-items: center; gap: 12px; }
.lm-acc-avatar { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #2b8fff, #7a3cff); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #fff; }
.lm-acc-head b { display: block; font-size: 16px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-acc-head small { color: #8b9bb4; font-size: 12.5px; }
.lm-acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lm-acc-tile { border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); border-radius: 14px; padding: 12px 14px; }
.lm-acc-tile span { display: block; font-size: 11px; color: #8b9bb4; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.lm-acc-tile b { display: block; font-size: 22px; margin-top: 4px; font-family: 'JetBrains Mono', monospace; color: #fff; }
.lm-acc-tile b.ok { color: #00ff88; }
.lm-acc-next { border-radius: 14px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); display: flex; gap: 12px; align-items: center; }
.lm-acc-next.warn { border-color: rgba(255,187,0,.45); background: rgba(255,187,0,.07); }
.lm-acc-next i { font-size: 18px; color: #7fc4ff; }
.lm-acc-next.warn i { color: #ffbb00; }
.lm-acc-next div { flex: 1; min-width: 0; font-size: 13px; color: #c9d4e6; }
.lm-acc-next div b { color: #fff; }
.lm-acc-pending { font-size: 13px; color: #ffd66b; background: rgba(255,187,0,.08); border: 1px solid rgba(255,187,0,.3); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.lm-acc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.lm-acc-actions .lm-btn { flex: 1 1 140px; }
.lm-guest h3 { font-size: 20px; margin: 4px 0 6px; }
.lm-guest p { color: #9fb0c8; font-size: 14px; line-height: 1.6; }
.lm-guest ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.lm-guest li { font-size: 13.5px; color: #c9d4e6; display: flex; gap: 9px; align-items: center; }
.lm-guest li i { color: #00e07a; }
.lm-skel { height: 16px; border-radius: 8px; background: linear-gradient(90deg, #121722 25%, #1b2130 50%, #121722 75%); background-size: 200% 100%; animation: lmsk 1.2s infinite; }
@keyframes lmsk { to { background-position: -200% 0; } }

/* Franja "¿Quieres vender?" */
.lm-resell { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 20px; margin-bottom: 34px;
    background: linear-gradient(100deg, rgba(255,190,40,.13), rgba(255,140,0,.05) 45%, rgba(43,143,255,.06)); border: 1px solid rgba(255,196,0,.28); }
.lm-resell-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 15px; background: linear-gradient(135deg, #ffcf3f, #ff9d00); color: #1d1300; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 8px 22px rgba(255,170,0,.25); }
.lm-resell-txt { flex: 1; min-width: 0; }
.lm-resell-txt b { display: block; font-size: 17px; color: #fff; margin-bottom: 3px; }
.lm-resell-txt span { color: #c9b98f; font-size: 13.5px; line-height: 1.5; }
.lm-resell-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Ventana de ventajas */
.lm-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(2,4,8,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; }
.lm-modal.active { display: flex; animation: fadeInDown .3s ease; }
.lm-modal-box { position: relative; width: 100%; max-width: 860px; max-height: 92vh; overflow-y: auto; border-radius: 24px; padding: 32px; background: #0b0f17; border: 1px solid rgba(255,196,0,.25); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lm-modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #ddd; cursor: pointer; font-size: 16px; }
.lm-modal h2 { font-size: 30px; line-height: 1.15; margin: 14px 0 10px; font-weight: 800; }
.lm-modal-sub { color: #aab6cc; font-size: 15px; line-height: 1.6; max-width: 640px; }
.lm-adv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.lm-adv > div { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); }
.lm-adv > div > i { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #ffcf3f; background: rgba(255,196,0,.1); font-size: 17px; }
.lm-adv b { color: #fff; font-size: 14.5px; }
.lm-adv span { color: #9fb0c8; font-size: 13px; line-height: 1.5; margin-top: 3px; }
.lm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.lm-steps div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #dfe6f3; padding: 12px; border-radius: 14px; background: rgba(43,143,255,.07); border: 1px solid rgba(43,143,255,.2); }
.lm-steps span { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #2b8fff; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lm-modal-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lm-modal-cta .lm-btn { flex: 1 1 220px; }

/* Pie */
.lm-footer { margin: 40px 5% 30px; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #7d8aa3; font-size: 13px; position: relative; z-index: 1; }
.lm-footer b { color: #fff; }
.lm-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.lm-footer a { color: #9fb0c8; text-decoration: none; }
.lm-footer a:hover { color: #fff; }

/* Celular / tablet */
@media (max-width: 980px) {
    .lm-hero { grid-template-columns: minmax(0, 1fr); }
    .lm-hero h1 { font-size: 36px; }
}
html { overflow-x: hidden; }
@media (max-width: 600px) {
    /* Barra superior compacta: flecha sola, marca y saldo en una línea */
    .navbar { padding: 10px 14px !important; gap: 8px; }
    .btn-back-portal { font-size: 0 !important; padding: 10px 12px !important; flex: 0 0 auto; }
    .btn-back-portal i { font-size: 15px; margin: 0 !important; }
    .nav-brand { font-size: 17px !important; gap: 6px !important; min-width: 0; }
    .nav-brand i { font-size: 19px !important; }
    .user-balance { white-space: nowrap; padding: 7px 10px !important; font-size: 13px !important; }
    .nav-user { gap: 8px !important; flex: 0 0 auto; }
    .user-profile-btn img { width: 36px !important; height: 36px !important; }
    .lm-hero-main { padding: 26px 20px; border-radius: 20px; }
    .lm-hero h1 { font-size: 30px; }
    .lm-hero-main > p { font-size: 14.5px; }
    .lm-hero-cta .lm-btn { flex: 1 1 140px; }
    .lm-account { padding: 18px; border-radius: 20px; }
    .lm-resell { flex-direction: column; align-items: flex-start; padding: 18px; }
    .lm-resell-actions, .lm-resell-actions .lm-btn { width: 100%; }
    .lm-modal-box { padding: 24px 18px; border-radius: 20px; }
    .lm-modal h2 { font-size: 23px; }
    .lm-adv, .lm-steps { grid-template-columns: minmax(0, 1fr); }
    .lm-footer { flex-direction: column; }
}
.lm-adv span b { font-size: inherit; color: #fff; }

/* ===== v2: carrusel en la portada + tarjeta "Por vencer" ===== */
.lm-hero-left { min-width: 0; display: flex; flex-direction: column; }
.lm-hero-left .carousel-container { margin: 0 !important; max-width: none !important; width: 100%; border-radius: 24px; aspect-ratio: 21 / 9; flex: 1 1 auto; }
.lm-hero-left.has-banners .lm-hero-main { display: none; }
/* El banner se ve COMPLETO (sin recortar) sobre un fondo difuminado del mismo banner */
.lm-hero-left .carousel-slide { overflow: hidden; background: #07090f; }
.lm-hero-left .carousel-slide::before { content: ''; position: absolute; inset: -40px; background: var(--bg, none) center / cover no-repeat; filter: blur(30px) brightness(.5) saturate(1.2); }
.lm-hero-left .carousel-slide img, .lm-hero-left .carousel-slide video { position: relative; z-index: 1; object-fit: contain !important; }
.lm-hero-left .lm-hero-main { height: 100%; }
.lm-acc-title { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #ffd66b; display: flex; gap: 8px; align-items: center; }
.lm-acc-title small { color: #8b9bb4; font-weight: 600; text-transform: none; letter-spacing: 0; }
.lm-exp-list { display: flex; flex-direction: column; gap: 8px; }
.lm-exp { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; border: 1px solid rgba(255,187,0,.35); background: rgba(255,187,0,.06); }
.lm-exp.hot { border-color: rgba(255,85,119,.5); background: rgba(255,85,119,.07); }
.lm-exp-txt { flex: 1; min-width: 0; }
.lm-exp-txt > b { display: block; color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-exp-txt span b { color: #fff; }
.lm-exp-txt span { font-size: 12.5px; color: #c9b98f; }
.lm-exp.hot .lm-exp-txt span { color: #ffb3c1; }
.lm-exp-ok { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid rgba(0,224,122,.3); background: rgba(0,224,122,.06); }
.lm-exp-ok i { font-size: 24px; color: #00e07a; }
.lm-exp-ok b { display: block; color: #fff; font-size: 14px; }
.lm-exp-ok span { font-size: 12.5px; color: #9fb0c8; }
.lm-acc-note { font-size: 12px; color: #8b9bb4; }
.lm-acc-note b { color: #cfe0ff; }

/* Botón "Mis compras" en la barra */
.nav-orders { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 30px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #dfe6f3; text-decoration: none; font-size: 13.5px; font-weight: 700; margin-right: 4px; white-space: nowrap; }
.nav-orders:hover { border-color: #2b8fff; color: #fff; }
.nav-orders i { color: #00e07a; }

/* Proveedor en cada producto */
.prod-provider { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9fb0c8; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 4px 10px; border-radius: 20px; margin: 2px 0 8px; }
.prod-provider i { color: #7fc4ff; }
.prod-provider b { color: #e3e9f5; }

@media (max-width: 980px) { .lm-hero-left .carousel-container { aspect-ratio: 16 / 8; } }
@media (max-width: 600px) {
    .nav-orders { padding: 8px 10px; margin-right: 0; }
    .nav-orders span { display: none; }
    .lm-hero-left .carousel-container { aspect-ratio: 16 / 9; border-radius: 18px; }
}

/* ===== v4: botón "¿Quieres vender?" en la barra + saldo a la izquierda, carrusel a la derecha ===== */
.lm-nav-resell {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    border: 1px solid rgba(255,196,0,.4); border-radius: 14px; padding: 8px 16px;
    background: linear-gradient(100deg, rgba(255,190,40,.16), rgba(255,140,0,.08));
    color: #ffe2a0; font-family: inherit; transition: transform .15s, filter .15s, box-shadow .15s;
    max-width: 46%; min-width: 0;
}
.lm-nav-resell:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 8px 22px rgba(255,170,0,.18); }
.lm-nav-resell-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ffcf3f, #ff9d00); color: #1d1300; font-size: 16px; box-shadow: 0 6px 16px rgba(255,170,0,.3); }
.lm-nav-resell-txt { min-width: 0; text-align: left; line-height: 1.25; overflow: hidden; }
.lm-nav-resell-txt b { display: block; font-size: 14px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-nav-resell-txt small { display: block; font-size: 11.5px; color: #d7c391; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Saldo (Hola…) a la IZQUIERDA y más delgado; carrusel a la DERECHA y más ancho */
.lm-hero { grid-template-columns: minmax(265px, .82fr) minmax(0, 1.95fr); }
.lm-account { order: 1; padding: 20px; gap: 12px; }
.lm-hero-left { order: 2; }
.lm-acc-avatar { width: 42px; height: 42px; font-size: 17px; }
.lm-acc-head b { font-size: 15px; }
.lm-acc-grid { grid-template-columns: 1fr; gap: 8px; }
.lm-acc-tile { padding: 10px 12px; }
.lm-acc-tile b { font-size: 20px; }

/* Tablet / celular: una sola columna, carrusel arriba y saldo debajo */
@media (max-width: 980px) {
    .lm-hero { grid-template-columns: minmax(0, 1fr); }
    .lm-account { order: 2; }
    .lm-hero-left { order: 1; }
    .lm-acc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    /* La barra: marca, botón de vender compacto y el saldo/perfil */
    .lm-nav-resell { padding: 7px 12px; max-width: none; }
    .lm-nav-resell-txt small { display: none; }
    .lm-nav-resell-txt b { font-size: 13px; }
}
@media (max-width: 520px) {
    .lm-nav-resell-txt { display: none; }
    .lm-nav-resell { padding: 8px; gap: 0; }
}

/* ===== v5: botón de vender más largo + franja/banca de logos de plataformas ===== */
@media (min-width: 761px) {
    .lm-nav-resell { padding: 10px 28px; max-width: 54%; min-width: 320px; }
    .lm-nav-resell-txt b { font-size: 14.5px; }
}

/* Banca de logos (arriba de las categorías) — sin cuadro, logos del mismo tamaño, carrusel continuo */
.lm-brands { position: relative; margin: 2px 0 18px; padding: 4px 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lm-brands-track { display: flex; align-items: center; width: max-content; animation: lmBrandScroll 30s linear infinite; will-change: transform; }
.lm-brands:hover .lm-brands-track { animation-play-state: paused; }
.lm-brands-run { display: flex; align-items: center; }
@keyframes lmBrandScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lm-brand { flex: 0 0 auto; width: 150px; height: 58px; margin: 0 16px; display: flex; align-items: center; justify-content: center; opacity: .92; transition: opacity .15s, transform .15s; }
.lm-brand:hover { opacity: 1; transform: scale(1.05); }
.lm-brand img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 600px) {
    .lm-brand { width: 108px; height: 46px; margin: 0 11px; }
}

/* ===== v7: barra superior sin botones "apretados" ===== */
/* Deja aire entre la marca, el botón de vender y el de iniciar sesión / perfil */
.navbar { gap: 18px; }
.nav-user { flex: 0 0 auto; }
.btn-guest-login { white-space: nowrap; }
.lm-nav-resell { margin: 0 6px; }
@media (min-width: 761px) {
    /* El botón de vender no se pega al de la derecha */
    .lm-nav-resell { max-width: 44%; min-width: 300px; }
}
@media (max-width: 760px) {
    .navbar { gap: 10px; }
    .lm-nav-resell { margin: 0 4px; }
}
@media (max-width: 420px) {
    .navbar { gap: 8px; padding-left: 12px !important; padding-right: 12px !important; }
    .btn-guest-login { padding: 9px 13px !important; font-size: 13px !important; }
}
