/* ==========================================================
   ACUALIM APP · Sistema visual "agua y vidrio"
   ========================================================== */
:root {
  --az1: #38b6ff; --az2: #0a78d6; --az3: #07439a; --cy: #14b4e6; --cy2: #7de7ee;
  --tx: #17283b; --mut: #5d6e82; --line: rgba(10, 100, 170, .14);
  --ok: #12a66a; --ok-bg: #dcf8ea; --warn: #b86a00; --warn-bg: #fff0cf; --bad: #c8312f; --bad-bg: #ffe1e0; --info: #0a6cc4; --info-bg: #dbeeff;
  --wa: #1fae55; --wa2: #138a40;
  --r: 22px; --r-sm: 14px;
  --sh: 0 14px 36px rgba(12, 90, 160, .13), 0 2px 6px rgba(12, 90, 160, .06);
  --sh-lg: 0 24px 60px rgba(12, 90, 160, .2);
  --glass: linear-gradient(150deg, rgba(255, 255, 255, .92), rgba(236, 248, 255, .72));
  --side: 264px; --tab: 74px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--tx); background: #e8f5ff; line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.noscroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--az2); text-decoration: none; }
img { max-width: 100%; display: block; }
svg.i { display: block; flex-shrink: 0; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; } h4 { font-size: 1rem; }
:focus-visible { outline: 3px solid rgba(10, 120, 214, .55); outline-offset: 2px; border-radius: 8px; }
.mut { color: var(--mut); } .sm { font-size: .86rem; } .xs { font-size: .76rem; } .b { font-weight: 700; } .center { text-align: center; } .right { text-align: right; }
.mt0 { margin-top: 0; } .mt { margin-top: 16px; } .mt2 { margin-top: 28px; } .mb { margin-bottom: 16px; }
.row { display: flex; align-items: center; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .end { justify-content: flex-end; } .gap { gap: 12px; } .gap2 { gap: 20px; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 14px; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Fondo de agua ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 700px at 85% -10%, #cfeeff 0%, transparent 60%), radial-gradient(900px 600px at -10% 20%, #d6f6ff 0%, transparent 55%), linear-gradient(180deg, #eaf6ff, #f6fcff 55%, #dff1ff); }
.bgfx svg { position: absolute; left: 0; width: 200%; }
.bgfx .w1 { top: -2px; animation: slide 26s linear infinite; opacity: .9; }
.bgfx .w2 { top: 10px; animation: slide 38s linear infinite reverse; opacity: .55; }
.bgfx .w3 { bottom: -2px; animation: slide 32s linear infinite; opacity: .7; transform: scaleY(-1); }
@keyframes slide { to { transform: translateX(-50%); } }
.w3 { animation-name: slide3 !important; } @keyframes slide3 { from { transform: scaleY(-1) translateX(0); } to { transform: scaleY(-1) translateX(-50%); } }
.bub { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .95), rgba(190, 232, 255, .35) 45%, rgba(100, 190, 245, .18) 70%); border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset -3px -4px 8px rgba(60, 160, 230, .18); animation: rise linear infinite; }
@keyframes rise { from { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: .9; } 90% { opacity: .8; } to { transform: translateY(-115vh) translateX(26px); opacity: 0; } }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 14px; height: calc(100vh - 28px); margin: 14px 0 14px 14px; border-radius: 26px; padding: 18px 14px; display: flex; flex-direction: column; overflow: hidden; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.brand img.mk { height: 44px; width: auto; } .brand img.wd { height: 24px; width: auto; }
.navl { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1; padding-right: 2px; }
.nav-i { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: var(--mut); font-weight: 600; font-size: .94rem; transition: all .2s; position: relative; }
.nav-i:hover { background: rgba(56, 182, 255, .12); color: var(--az2); transform: translateX(2px); }
.nav-i.on { background: linear-gradient(180deg, #46bdff, #0a78d6); color: #fff; box-shadow: 0 8px 18px rgba(10, 120, 214, .35); }
.nav-i .bd { margin-left: auto; background: var(--bad); color: #fff; font-size: .7rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.nav-sep { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8aa0b6; padding: 12px 14px 4px; }
.side .foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.col { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 12px 22px; min-height: 66px; }
.top .tl { display: none; align-items: center; gap: 8px; }
.top .tl img.mk { height: 38px; } .top .tl img.wd { height: 20px; }
.ib { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255, 255, 255, .9); background: var(--glass); box-shadow: var(--sh); color: var(--az2); position: relative; transition: transform .2s; }
.ib:hover { transform: translateY(-2px) scale(1.04); }
.ib .bd { position: absolute; top: -3px; right: -3px; background: var(--bad); color: #fff; font-size: .68rem; font-weight: 800; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.userchip { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255, 255, 255, .9); background: var(--glass); box-shadow: var(--sh); max-width: 240px; }
.userchip .tx { line-height: 1.2; min-width: 0; } .userchip b { display: block; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .userchip span { font-size: .72rem; color: var(--mut); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; background: linear-gradient(135deg, var(--az1), var(--az3)); flex-shrink: 0; }
.avatar.sm { width: 32px; height: 32px; font-size: .7rem; } .avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.demo-strip { font-size: .76rem; text-align: center; padding: 6px 12px; background: linear-gradient(90deg, #fff4d6, #ffe9b3); color: #8a5a00; font-weight: 600; }
.demo-strip a { color: #8a5a00; text-decoration: underline; cursor: pointer; }
.view { padding: 6px 22px 40px; min-width: 0; }
.view.enter { animation: pgin .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes pgin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page { max-width: 1160px; margin: 0 auto; }
.tabbar { display: none; }

/* ---------- Vidrio ---------- */
.glass { background: var(--glass); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--sh), inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.card { border-radius: var(--r); padding: 22px; }
.pad { padding: 22px; border-radius: var(--r); }
.card.flat { box-shadow: var(--sh); }
.hover { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; } .hover:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }

/* ---------- Títulos ---------- */
.duo { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; color: #3b4452; letter-spacing: -.025em; }
.duo b { background: linear-gradient(180deg, #2dc4ee, #0a8fe0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.sub { color: var(--mut); font-size: 1.04rem; margin-top: 6px; }
.phead { padding: 18px 0 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.phead .duo { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.eyebrow { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--az2); font-weight: 700; }
.sech { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 14px; gap: 12px; }
.sech h2 { font-size: 1.35rem; font-weight: 800; color: #0d3b82; }
.sech h2::after { content: ''; display: block; width: 36px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--az1), var(--cy2)); margin-top: 6px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; cursor: pointer; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .96rem; line-height: 1.15; transition: transform .2s, box-shadow .2s, filter .2s; white-space: nowrap; text-align: center; }
.btn:active { transform: scale(.97); } .btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { color: #fff; background: linear-gradient(180deg, #4dc0ff 0%, #0a82e0 55%, #0866c4 100%); box-shadow: 0 10px 22px rgba(10, 120, 214, .38), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(10, 120, 214, .45), inset 0 1px 0 rgba(255, 255, 255, .55); filter: brightness(1.05); }
.btn-ghost { color: var(--az2); background: var(--glass); border: 1px solid rgba(10, 120, 214, .22); box-shadow: var(--sh); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-wa { color: #fff; background: linear-gradient(180deg, #3fd37a, #1fae55 60%, #14903f); box-shadow: 0 10px 22px rgba(31, 174, 85, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-wa:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-bad { color: var(--bad); background: #fff; border: 1px solid rgba(200, 49, 47, .35); }
.btn-sm { padding: 9px 16px; font-size: .84rem; } .btn-xs { padding: 6px 12px; font-size: .78rem; } .btn-block { width: 100%; } .btn-lg { padding: 16px 32px; font-size: 1.04rem; }
.lnk { color: var(--az2); font-weight: 600; cursor: pointer; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---------- Formularios ---------- */
.fld { display: block; margin-top: 14px; }
.fld > span { display: block; font-size: .8rem; font-weight: 700; color: #3c5069; margin-bottom: 6px; letter-spacing: .01em; }
.fld input, .fld select, .fld textarea, .inp { width: 100%; padding: 13px 16px; border-radius: 16px; border: 1px solid rgba(10, 100, 170, .18); background: rgba(255, 255, 255, .9); box-shadow: inset 0 1px 3px rgba(10, 100, 170, .06); transition: border-color .2s, box-shadow .2s; font-size: .96rem; }
.fld textarea { min-height: 96px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .inp:focus { outline: none; border-color: var(--az1); box-shadow: 0 0 0 4px rgba(56, 182, 255, .22); }
.fld small { display: block; margin-top: 5px; color: var(--mut); font-size: .76rem; }
.fld .ok { color: var(--ok); font-weight: 700; } .fld .no { color: var(--bad); font-weight: 700; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; } .fgrid .full { grid-column: 1 / -1; }
.pw { position: relative; } .pw .ib2 { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border: 0; background: none; color: var(--mut); cursor: pointer; display: grid; place-items: center; }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(10, 120, 214, .16); box-shadow: inset 0 1px 3px rgba(10, 100, 170, .08); }
.seg button { flex: 1; border: 0; background: none; padding: 11px 10px; border-radius: 999px; font-weight: 700; color: var(--az2); cursor: pointer; display: flex; gap: 7px; justify-content: center; align-items: center; font-size: .88rem; transition: all .25s; }
.seg button.on { color: #fff; background: linear-gradient(180deg, #4dc0ff, #0a78d6); box-shadow: 0 6px 14px rgba(10, 120, 214, .35); }
.search { position: relative; flex: 1; min-width: 200px; } .search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--az2); } .search input { padding-left: 46px; width: 100%; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .9); background: var(--glass); box-shadow: var(--sh); padding-top: 14px; padding-bottom: 14px; }
.search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(56, 182, 255, .25), var(--sh); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--az2); cursor: pointer; border: 1px solid rgba(255, 255, 255, .9); background: var(--glass); box-shadow: var(--sh); transition: all .25s; }
.chip.on { color: #fff; background: linear-gradient(180deg, #4dc0ff, #0a78d6); box-shadow: 0 8px 18px rgba(10, 120, 214, .35); }
.chip b { opacity: .75; font-weight: 800; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(10, 120, 214, .2); overflow: hidden; }
.qty button { width: 34px; height: 36px; border: 0; background: none; color: var(--az2); cursor: pointer; display: grid; place-items: center; } .qty button:hover { background: rgba(56, 182, 255, .15); }
.qty span { min-width: 28px; text-align: center; font-weight: 800; }

/* ---------- Badges / KPIs ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.info { background: var(--info-bg); color: var(--info); } .badge.mut { background: #e9eef4; color: var(--mut); }
.kgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.kpi { padding: 20px; border-radius: var(--r); position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .9), rgba(125, 231, 238, .35)); }
.kpi .l { padding-right: 48px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.kpi .v { font-size: 1.9rem; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; color: #0d3b82; }
.kpi .n { font-size: .82rem; color: var(--mut); margin-top: 2px; } .kpi .n.up { color: var(--ok); font-weight: 700; } .kpi .n.dn { color: var(--bad); font-weight: 700; }
.kpi .ic { position: absolute; right: 16px; top: 16px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--az2); background: rgba(255, 255, 255, .85); box-shadow: 0 4px 12px rgba(10, 120, 214, .18); }
.kpi.warnk .v { color: var(--warn); } .kpi.okk .v { color: var(--ok); }
.bubble { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--az2); flex-shrink: 0; background: radial-gradient(circle at 32% 28%, #fff, #cdeeff 55%, #9fd8fb); box-shadow: inset -3px -4px 8px rgba(10, 120, 214, .18), 0 6px 14px rgba(10, 120, 214, .18); border: 1px solid #fff; }

/* ---------- Portada ---------- */
.hero { border-radius: 30px; padding: clamp(22px, 4vw, 44px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: center; position: relative; overflow: hidden; margin-top: 8px; }
.hero::before { content: ''; position: absolute; inset: auto -80px -120px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95), rgba(125, 231, 238, .5) 55%, transparent 70%); }
.hero > * { position: relative; z-index: 1; }
.hero .dr { position: relative; z-index: 1; display: flex; justify-content: center; }
.hero .dr img { max-height: 330px; width: auto; filter: drop-shadow(0 20px 24px rgba(10, 80, 150, .25)); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; color: #3b4452; }
.hero h1 b { background: linear-gradient(180deg, #2dc4ee, #0a8fe0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { margin: 14px 0 22px; font-size: 1.1rem; color: var(--mut); max-width: 520px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; color: var(--tx); position: relative; overflow: hidden; transform-style: preserve-3d; will-change: transform; transition: box-shadow .3s; }
.tile:hover { box-shadow: var(--sh-lg); }
.tile h4 { color: #0d3b82; font-size: 1.04rem; } .tile p { color: var(--mut); font-size: .84rem; line-height: 1.3; margin-top: 2px; }
.tile .go { margin-left: auto; color: var(--cy); }
.tile::after { content: ''; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .75), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover::after { opacity: 1; }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); } .rv.in { opacity: 1; transform: none; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .stats3 .kpi .v { font-size: 2.2rem; }

/* ---------- Producto ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.pc { border-radius: 24px; padding: 14px; display: grid; grid-template-columns: 128px 1fr; gap: 14px; position: relative; }
.pc .im { border-radius: 18px; background: radial-gradient(circle at 50% 35%, #fff, #d9f0ff 70%); display: grid; place-items: center; padding: 10px; min-height: 150px; cursor: pointer; overflow: hidden; }
.pc .im img { max-height: 132px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(10, 80, 150, .2)); transition: transform .4s; } .pc:hover .im img { transform: scale(1.08) rotate(-2deg); }
.pc h3 { font-size: 1.1rem; color: #0a3680; cursor: pointer; } .pc p.d { color: var(--mut); font-size: .84rem; line-height: 1.35; margin: 4px 0 8px; }
.price { font-size: 1.35rem; font-weight: 800; color: var(--az2); letter-spacing: -.02em; } .price small { font-size: .72rem; font-weight: 700; color: var(--mut); margin-left: 3px; } .price s { font-size: .86rem; color: #8aa0b6; font-weight: 600; margin-right: 6px; }
.pc .act { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.tagp { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: .66rem; font-weight: 800; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; background: linear-gradient(180deg, #ffe27a, #ffc928); color: #6a4a00; box-shadow: 0 4px 10px rgba(255, 190, 0, .35); }
.cartbar { position: sticky; bottom: 14px; z-index: 30; margin-top: 22px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 28px; }
.cartbar .tot { margin-left: auto; text-align: right; line-height: 1.2; } .cartbar .tot b { font-size: 1.2rem; color: var(--az2); }
.prodhero { display: grid; grid-template-columns: 220px 1fr; gap: 22px; } .prodhero .im { border-radius: 22px; background: radial-gradient(circle at 50% 35%, #fff, #d4eeff 70%); display: grid; place-items: center; padding: 18px; } .prodhero .im img { max-height: 230px; }
.spec { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; font-size: .88rem; margin-top: 12px; } .spec dt { color: var(--mut); font-weight: 700; } .spec dd { color: var(--tx); }

/* ---------- Listas, tablas, pasos ---------- */
.list > .li { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); } .list > .li:last-child { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; } table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .9rem; } .tbl tr:last-child td { border-bottom: 0; } .tbl tbody tr:hover { background: rgba(56, 182, 255, .06); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ocard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; color: var(--tx); }
.ocard .ths { display: flex; } .ocard .ths img { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; background: #e6f5ff; padding: 4px; border: 2px solid #fff; margin-left: -10px; } .ocard .ths img:first-child { margin-left: 0; }
.stepper { display: grid; gap: 0; } .st { display: grid; grid-template-columns: 34px 1fr; gap: 12px; position: relative; padding-bottom: 18px; } .st:last-child { padding-bottom: 0; }
.st::before { content: ''; position: absolute; left: 16px; top: 32px; bottom: 0; width: 2px; background: rgba(10, 120, 214, .18); } .st:last-child::before { display: none; }
.st.done::before { background: linear-gradient(180deg, var(--az1), var(--cy)); }
.st .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e3edf6; color: #9ab0c6; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(10, 100, 170, .15); z-index: 1; }
.st.done .dot { background: linear-gradient(180deg, #4dc0ff, #0a78d6); color: #fff; } .st.cur .dot { background: #fff; color: var(--az2); box-shadow: 0 0 0 4px rgba(56, 182, 255, .3), 0 4px 10px rgba(10, 100, 170, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(56, 182, 255, .12), 0 4px 10px rgba(10, 100, 170, .2); } }
.st h5 { font-size: .95rem; } .st p { font-size: .8rem; color: var(--mut); }
.st.todo h5 { color: #8aa0b6; }
.bar { height: 10px; border-radius: 10px; background: rgba(10, 120, 214, .12); overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--az1), var(--cy2)); transition: width 1s; } .bar.warnb > i { background: linear-gradient(90deg, #ffb300, #ffd45a); } .bar.badb > i { background: linear-gradient(90deg, #e5484d, #ff8a8a); }
.chart { height: 190px; display: flex; align-items: flex-end; gap: 12px; padding: 22px 4px 26px; }
.chart .c { flex: 1; position: relative; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #4dc0ff, #0a78d6); box-shadow: 0 6px 14px rgba(10, 120, 214, .28); transform-origin: bottom; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; min-height: 4px; }
.chart .c.last { background: linear-gradient(180deg, #5eead4, #12a66a); }
.chart .c em { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .68rem; font-weight: 800; color: var(--mut); white-space: nowrap; } .chart .c span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: .76rem; color: var(--mut); font-weight: 600; }
@keyframes grow { from { transform: scaleY(0); } }
.empty { text-align: center; padding: 36px 16px; color: var(--mut); } .empty .bubble { margin: 0 auto 12px; width: 70px; height: 70px; }
.kan { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; } .kcol { min-width: 240px; } .kcol > h4 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.qcard { padding: 14px; border-radius: 18px; margin-bottom: 10px; cursor: pointer; }
.pill-k { display: flex; gap: 14px; flex-wrap: wrap; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px; font-size: .88rem; background: var(--info-bg); color: #0a4f94; } .notice.warn { background: var(--warn-bg); color: #7d4b00; } .notice.ok { background: var(--ok-bg); color: #0b6c45; } .notice.bad { background: var(--bad-bg); color: #8f1f1d; }
.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 700; letter-spacing: .06em; background: rgba(10, 120, 214, .1); color: var(--az3); padding: 3px 9px; border-radius: 8px; }
.drop { border: 2px dashed rgba(10, 120, 214, .35); border-radius: 18px; padding: 22px; text-align: center; cursor: pointer; background: rgba(255, 255, 255, .55); transition: all .2s; } .drop:hover { background: rgba(56, 182, 255, .1); border-color: var(--az1); }
.adg { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; } .adg canvas { width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 8px 20px rgba(10, 80, 150, .2); background: #dff3ff; }
.adg.story { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ---------- Modal, toast, splash ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 900; background: rgba(8, 40, 80, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .25s; } .modal-bg.show { opacity: 1; }
.modal { width: min(540px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 28px; padding: 26px; position: relative; transform: translateY(20px) scale(.97); transition: transform .3s cubic-bezier(.2, .8, .2, 1); } .modal-bg.show .modal { transform: none; } .modal-bg.wide .modal { width: min(820px, 100%); }
.modal-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(10, 120, 214, .1); color: var(--az2); cursor: pointer; display: grid; place-items: center; z-index: 2; }
#toasts { position: fixed; top: 16px; right: 16px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: calc(100vw - 32px); }
.toast { display: flex; gap: 10px; align-items: center; padding: 13px 18px; border-radius: 18px; background: #0d3b82; color: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--sh-lg); transform: translateX(120%); opacity: 0; transition: all .35s cubic-bezier(.2, .8, .2, 1); } .toast.show { transform: none; opacity: 1; }
.toast.bad { background: #b3261e; } .toast.warn { background: #8a5a00; } .toast-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .2); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, 1fr); } .kan { grid-template-columns: repeat(4, 250px); } }
@media (max-width: 960px) {
  .app { display: block; } .side { display: none; }
  .top { padding: 10px 14px; } .top .tl { display: flex; } .userchip .tx { display: none; } .userchip { padding: 4px; }
  .view { padding: 4px 14px calc(var(--tab) + 30px); }
  .tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; height: var(--tab); border-radius: 28px; padding: 6px; gap: 2px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 700; color: var(--mut); border-radius: 22px; border: 0; background: none; cursor: pointer; position: relative; min-width: 0; }
  .tabbar .on { color: #fff; background: linear-gradient(180deg, #4dc0ff, #0a78d6); box-shadow: 0 8px 18px rgba(10, 120, 214, .38); }
  .tabbar .bd { position: absolute; top: 4px; right: 18%; background: var(--bad); color: #fff; font-size: .6rem; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
  .hero { grid-template-columns: 1fr; text-align: center; } .hero p.lead { margin-left: auto; margin-right: auto; } .hero .row { justify-content: center; } .hero .dr img { max-height: 230px; } .hero .dr { order: -1; }
  .prodhero { grid-template-columns: 1fr; } .prodhero .im { max-width: 240px; margin: 0 auto; }
  .cartbar { bottom: calc(var(--tab) + 22px); }
}
@media (max-width: 700px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; } .tile { flex-direction: column; text-align: center; padding: 16px 10px; } .tile .go { display: none; }
  .fgrid { grid-template-columns: 1fr; } .stats3 { grid-template-columns: 1fr; } .kgrid { grid-template-columns: 1fr 1fr; gap: 12px; } .kpi { padding: 16px; } .kpi .v { font-size: 1.45rem; } .kpi .ic { display: none; }
  .pgrid { grid-template-columns: 1fr; } .pc { grid-template-columns: 112px 1fr; }
  table.tbl.resp thead { position: absolute; left: -9999px; } table.tbl.resp, table.tbl.resp tbody, table.tbl.resp tr, table.tbl.resp td { display: block; width: 100%; }
  table.tbl.resp tr { padding: 12px 0; border-bottom: 1px solid var(--line); } table.tbl.resp td { border: 0; padding: 3px 4px; text-align: left !important; } table.tbl.resp td[data-l]::before { content: attr(data-l); display: block; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
  .phead { padding-top: 10px; } .card, .pad { padding: 18px; } .modal { padding: 22px 18px; border-radius: 24px; } .modal-bg { align-items: flex-end; padding: 0; } .modal { border-bottom-left-radius: 0; border-bottom-right-radius: 0; width: 100%; max-height: 90vh; }
  #toasts { left: 12px; right: 12px; top: 10px; } .ocard { flex-wrap: wrap; }
}
@media (max-width: 380px) { .kgrid { grid-template-columns: 1fr; } .tiles { grid-template-columns: 1fr; } }
@media print { body * { visibility: hidden; } #modal, #modal * { visibility: visible; } #modal { position: absolute; inset: 0; background: #fff; } .modal-x, .noprint { display: none !important; } .modal { box-shadow: none; max-height: none; } }

/* ---------- Extras v2 ---------- */
.cols2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cols2 > div > * + * { margin-top: 18px; }
.rowact { display: flex; gap: 8px; flex-wrap: wrap; }
.sumline { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; } .sumline.tot { border-top: 2px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.15rem; font-weight: 800; color: var(--az3); }
.codebig { display: inline-block; font-size: clamp(1.8rem, 5vw, 2.6rem); font-family: ui-monospace, Menlo, monospace; font-weight: 800; letter-spacing: .08em; color: var(--az3); background: linear-gradient(180deg, #fff, #d9f0ff); padding: 8px 22px; border-radius: 18px; border: 1px solid #fff; box-shadow: var(--sh); }
.proof { max-height: 260px; border-radius: 14px; border: 1px solid var(--line); }
.minput { width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(10, 100, 170, .2); background: rgba(255, 255, 255, .92); min-width: 80px; }
@media (max-width: 960px) { .cols2 { grid-template-columns: 1fr; } }
.demo-strip[hidden] { display: none; }

/* ---------- Fase 2/3: membresía, cámara, legal, programas institucionales ---------- */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--az2); }
.right { text-align: right; } .sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0 12px; } .xs.right, .right .xs { text-align: right; }
.notice.bad { background: var(--bad-bg); color: #8f1f1d; } .notice.ok { background: var(--ok-bg); color: #0d6b45; }
.fld small { display: block; margin-top: 4px; font-size: .76rem; color: var(--mut); } .fld small.ok { color: var(--ok); } .fld small.no { color: var(--bad); }
.permgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 18px; margin-top: 10px; }
.histlist { max-height: 220px; overflow: auto; }
.cardcv { width: 100%; max-width: 640px; height: auto; border-radius: 22px; box-shadow: var(--sh-lg); background: #e8f3ff; aspect-ratio: 1011 / 638; }
.camwrap { position: relative; border-radius: 18px; overflow: hidden; background: #0b1f33; aspect-ratio: 1; max-height: 56vh; margin: 0 auto; }
.camwrap video { width: 100%; height: 100%; object-fit: cover; display: block; } .camwrap video.mirror { transform: scaleX(-1); }
.camguide { position: absolute; inset: 14% 22%; border: 3px dashed rgba(255, 255, 255, .75); border-radius: 50%; pointer-events: none; }
.phprev { width: 96px; height: 120px; border-radius: 16px; background: var(--info-bg); color: var(--az2); display: grid; place-items: center; overflow: hidden; flex: none; border: 2px solid #fff; box-shadow: var(--sh); }
.phprev.wide { width: 130px; height: 96px; } .phprev img { width: 100%; height: 100%; object-fit: cover; }
.reqphoto { width: 120px; height: 150px; object-fit: cover; border-radius: 16px; border: 3px solid #fff; box-shadow: var(--sh); cursor: zoom-in; flex: none; background: var(--info-bg); }
.reqphoto.ph { display: grid; place-items: center; color: var(--az2); cursor: default; } .reqphoto.sm { width: 72px; height: 90px; }
.evid { width: 150px; height: 112px; object-fit: cover; border-radius: 14px; border: 2px solid #fff; box-shadow: var(--sh); cursor: zoom-in; flex: none; background: var(--info-bg); }
.evid.ph { display: grid; place-items: center; color: var(--az2); cursor: default; } .evid.sm { width: 64px; height: 48px; border-radius: 10px; }
.legal { font-size: .93rem; line-height: 1.6; } .legal p { margin: 8px 0; } .legal ul { padding-left: 20px; margin: 6px 0; } .legal li { margin: 4px 0; }
.legal .lg-h { margin: 18px 0 4px; font-size: 1.02rem; color: #0d3b82; } .legal .lg-fill { background: #fff0cf; color: #7d4a00; border-radius: 6px; padding: 0 5px; }
.agree-box { max-height: 38vh; overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px 10px; background: rgba(255, 255, 255, .7); margin: 12px 0; }
.vfy { padding: 22px; border-left: 6px solid var(--ok); } .vfy.badv { border-left-color: var(--bad); }
.vfy-top { display: flex; gap: 14px; align-items: center; } .vfy-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); flex: none; } .vfy.badv .vfy-ic { background: var(--bad-bg); color: var(--bad); }
.vfy-photo { width: 140px; height: 175px; object-fit: cover; border-radius: 18px; border: 3px solid #fff; box-shadow: var(--sh); } .vfy-photo.ph { display: grid; place-items: center; background: var(--info-bg); color: var(--az2); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .thumbs button { width: 56px; height: 56px; border-radius: 12px; border: 2px solid #fff; background: #fff; padding: 2px; cursor: pointer; box-shadow: var(--sh); } .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.imggrid { display: flex; gap: 10px; flex-wrap: wrap; } .imgc { position: relative; width: 92px; height: 92px; border-radius: 14px; background: #fff; border: 2px solid #fff; box-shadow: var(--sh); } .imgc img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.imgc.main { outline: 3px solid var(--az2); } .imgc span { position: absolute; bottom: 4px; left: 4px; font-size: .62rem; background: var(--az2); color: #fff; padding: 1px 6px; border-radius: 8px; }
.imgx { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; display: grid; place-items: center; cursor: pointer; }
@media print { .side, .tabbar, .top, .rowact, .btn, .chips, .demo-strip { display: none !important; } }

/* ==========================================================
   INICIO v3 · "Agua y cristal" + niveles de efectos (alto / medio / ligero)
   Regla: solo se animan transform y opacity. El nivel lo pone js/fx.js en <html class="fx-…">.
   ========================================================== */
.home { max-width: 1120px; position: relative; }
.home-login { position: absolute; right: 0; top: -2px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; max-width: 54%; }
.home-login .btn { background: linear-gradient(180deg, #5fd0ff, #1a86e6); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 10px 22px rgba(10, 120, 214, .35), inset 0 1px 0 rgba(255, 255, 255, .6); border-radius: 999px; padding: 11px 20px; }
.home-login span { font-size: .72rem; color: var(--mut); line-height: 1.25; } .home-login .lnk { font-size: .82rem; font-weight: 700; }
.home-top { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 0 14px; position: relative; }
.badge3d { position: relative; width: min(60vw, 250px); aspect-ratio: 1; display: grid; place-items: center; margin-top: 18px; }
.badge3d img { position: relative; z-index: 2; width: 100%; height: auto; filter: drop-shadow(0 18px 26px rgba(10, 120, 214, .35)); }
.badge3d .halo { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(125, 231, 238, .55), rgba(56, 182, 255, .18) 55%, transparent 70%); opacity: .9; }
.badge3d .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(56, 182, 255, .45); opacity: 0; }
.badge3d .sp { position: absolute; width: 14px; height: 14px; z-index: 3; opacity: 0; background: radial-gradient(circle, #fff 0, rgba(255, 255, 255, 0) 70%); border-radius: 50%; }
.badge3d .sp::before, .badge3d .sp::after { content: ''; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px; transform: translate(-50%, -50%); }
.badge3d .sp::before { width: 2px; height: 22px; } .badge3d .sp::after { width: 22px; height: 2px; }
.badge3d .s1 { left: 8%; top: 18%; } .badge3d .s2 { right: 6%; top: 30%; } .badge3d .s3 { left: 14%; bottom: 20%; } .badge3d .s4 { right: 16%; bottom: 12%; }
.home-title { font-size: clamp(2.7rem, 9.5vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; color: #3b4452; margin-top: 8px; line-height: 1.02; }
.home-title b { background: linear-gradient(180deg, #2dd0f0, #0a86df 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-size: 100% 100%; }
.accent { display: block; width: 62px; height: 5px; border-radius: 4px; margin: 12px auto 10px; background: linear-gradient(90deg, #2dc4ee, #0a86df); } .accent.sm { width: 44px; height: 4px; margin: 10px 0; }
.home-tag { font-size: clamp(1rem, 3.4vw, 1.3rem); color: #4a5563; letter-spacing: .01em; }

.welcome { border-radius: 30px; padding: clamp(18px, 3.4vw, 34px); display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 8px; position: relative; overflow: hidden; margin-top: 12px; }
.welcome::before { content: ''; position: absolute; right: -60px; bottom: -90px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(125, 231, 238, .5), rgba(125, 231, 238, 0) 65%); }
.welcome > * { position: relative; z-index: 1; }
.welcome .eyebrow { letter-spacing: .38em; }
.wtitle { font-size: clamp(2rem, 7vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; color: #3b4452; line-height: 1.05; margin-top: 4px; }
.wtitle b { background: linear-gradient(180deg, #2dd0f0, #0a86df 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wlead { font-size: clamp(1.1rem, 3.6vw, 1.5rem); color: #354152; font-weight: 500; line-height: 1.25; margin-top: 6px; max-width: 320px; }
.wlist { font-size: clamp(.86rem, 2.6vw, 1rem); color: #4f5d70; line-height: 1.7; letter-spacing: .02em; } .wlist i { font-style: normal; margin: 0 4px; color: var(--cy); }
.drop3d { display: grid; place-items: center; } .drop3d svg { width: min(100%, 230px); height: auto; overflow: visible; filter: drop-shadow(0 16px 20px rgba(10, 120, 214, .22)); }
.drop3d .rg { fill: none; stroke: rgba(255, 255, 255, .95); stroke-width: 2.2; transform-box: fill-box; transform-origin: center; opacity: .75; }
.drop3d .r2 { stroke: rgba(125, 220, 255, .8); opacity: .55; } .drop3d .r3 { stroke: rgba(125, 220, 255, .6); opacity: .35; }
.drop3d .sd { fill: rgba(255, 255, 255, .95); stroke: rgba(100, 200, 250, .8); stroke-width: 1; transform-box: fill-box; transform-origin: center; }

.tiles3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.tile3 { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 12px; border-radius: 26px; color: var(--tx); position: relative; overflow: hidden; min-height: 96px; -webkit-tap-highlight-color: transparent; transition: box-shadow .3s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.tile3:active { transform: scale(.975); }
.tile3 .orb { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 32% 24%, #fff 0, #dff4ff 38%, #8fd4fa 100%); box-shadow: inset 0 -6px 12px rgba(10, 110, 210, .28), inset 0 3px 6px rgba(255, 255, 255, .95), 0 8px 16px rgba(10, 120, 214, .25), 0 0 0 3px rgba(255, 255, 255, .75); }
.tile3 .orb::after { content: ''; position: absolute; left: 14%; top: 8%; width: 40%; height: 26%; border-radius: 50%; background: rgba(255, 255, 255, .85); transform: rotate(-24deg); }
.tile3 .i3 { width: 40px; height: 40px; position: relative; z-index: 1; filter: drop-shadow(0 3px 3px rgba(8, 60, 140, .3)); }
.tile3 .tx { min-width: 0; flex: 1; } .tile3 h4 { color: #0d3b82; font-size: 1.06rem; font-weight: 800; letter-spacing: -.01em; }
.tile3 .bar { display: block; width: 26px; height: 3px; border-radius: 3px; margin: 5px 0 5px; background: linear-gradient(90deg, #2dc4ee, #0a86df); }
.tile3 p { color: var(--mut); font-size: .8rem; line-height: 1.25; }
.tile3 .go { color: #1f8fe6; flex: 0 0 auto; }
.tile3::after { content: ''; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .8), transparent 60%); opacity: 0; transition: opacity .25s; pointer-events: none; }
@media (hover: hover) { .tile3:hover { box-shadow: var(--sh-lg); } .tile3:hover::after { opacity: 1; } }
.ripple { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(125, 220, 255, .35) 60%, transparent 70%); transform: scale(0); opacity: .9; pointer-events: none; animation: rip .7s ease-out forwards; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }

@media (max-width: 900px) {
  body.is-home.guest .top { display: none; }
  body.is-home .top .tl { display: none; }
  .home-top { padding-top: 38px; }
}
@media (min-width: 901px) {
  .home-login { display: none; }
  .home-top { flex-direction: row; justify-content: center; gap: 34px; text-align: left; flex-wrap: wrap; padding: 4px 0 8px; }
  .home-top .badge3d { width: 230px; margin-top: 0; } .home-top .accent { margin-left: 0; }
  .home-top > .home-title, .home-top > .accent, .home-top > .home-tag { flex: 0 1 auto; }
  .home-top .home-title { margin-top: 0; }
  .tiles3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .tile3 { min-height: 108px; padding: 16px 18px 16px 14px; } .tile3 .orb { width: 70px; height: 70px; } .tile3 .i3 { width: 44px; height: 44px; }
}
@media (max-width: 340px) { .tile3 { flex-direction: column; text-align: center; padding: 14px 10px; min-height: 0; gap: 8px; } .tile3 .go { display: none; } .tile3 .bar { margin-left: auto; margin-right: auto; } }
@media (max-width: 300px) { .welcome { grid-template-columns: 1fr; } .drop3d { display: none; } }
/* El layout del hero de escritorio pone título y acento al lado de la insignia */
@media (min-width: 901px) { .home-top { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 40px; } .home-top .badge3d { grid-row: 1 / span 3; } .home-top .home-title, .home-top .accent, .home-top .home-tag { grid-column: 2; } .home-top .home-title { font-size: clamp(3.4rem, 6vw, 5.2rem); } .home-top .home-tag { font-size: 1.4rem; } }

/* ---------- Animaciones (solo nivel MEDIO y ALTO) ---------- */
@keyframes bfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bring { 0% { transform: scale(.86); opacity: .75; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes bhalo { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes dropfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes splring { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes sdjump { 0%, 22% { transform: translate(0, 0) scale(.3); opacity: 0; } 34% { opacity: 1; } 62% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 1; } 100% { transform: translate(calc(var(--dx) * 1.5), 14px) scale(.6); opacity: 0; } }
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
@keyframes orbfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes tilein { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }

html.fx-mid .badge3d img, html.fx-high .badge3d img { animation: bfloat 5s ease-in-out infinite; }
html.fx-mid .badge3d .halo, html.fx-high .badge3d .halo { animation: bhalo 4s ease-in-out infinite; }
html.fx-mid .badge3d .ring, html.fx-high .badge3d .ring { animation: bring 3.6s ease-out infinite; } html.fx-mid .badge3d .r2, html.fx-high .badge3d .r2 { animation-delay: 1.8s; }
html.fx-mid .dbody, html.fx-high .dbody { animation: dropfloat 4s ease-in-out infinite; }
html.fx-mid .drop3d .rg, html.fx-high .drop3d .rg { animation: splring 3.2s ease-out infinite; } html.fx-mid .drop3d .r2, html.fx-high .drop3d .r2 { animation-delay: .5s; } html.fx-mid .drop3d .r3, html.fx-high .drop3d .r3 { animation-delay: 1s; }
html.fx-high .drop3d .sd { animation: sdjump 3.2s ease-out infinite; }
.sd1 { --dx: -14px; --dy: -46px; } .sd2 { --dx: 14px; --dy: -52px; animation-delay: .1s !important; } .sd3 { --dx: -26px; --dy: -30px; animation-delay: .15s !important; } .sd4 { --dx: 28px; --dy: -34px; animation-delay: .2s !important; } .sd5 { --dx: -6px; --dy: -62px; animation-delay: .05s !important; } .sd6 { --dx: 8px; --dy: -66px; animation-delay: .12s !important; } .sd7 { --dx: -34px; --dy: -16px; animation-delay: .25s !important; } .sd8 { --dx: 36px; --dy: -18px; animation-delay: .3s !important; }
html.fx-high .badge3d .sp { animation: twinkle 3.4s ease-in-out infinite; } html.fx-high .badge3d .s2 { animation-delay: .9s; } html.fx-high .badge3d .s3 { animation-delay: 1.7s; } html.fx-high .badge3d .s4 { animation-delay: 2.4s; }
html.fx-high .home-title b, html.fx-high .wtitle b { background-image: linear-gradient(100deg, #1ec0ec 0%, #0a86df 30%, #7fe6f4 50%, #0a86df 70%, #1ec0ec 100%); background-size: 200% 100%; animation: shimmer 6s linear infinite; }
html.fx-mid .tile3 .i3, html.fx-high .tile3 .i3 { animation: orbfloat 3.6s ease-in-out infinite; } html.fx-high .tile3:nth-child(2n) .i3 { animation-delay: .6s; } html.fx-high .tile3:nth-child(3n) .i3 { animation-delay: 1.2s; }
html.fx-high .badge3d { transform: translate3d(0, calc(var(--sy, 0) * .05px), 0); } html.fx-high .drop3d { transform: translate3d(0, calc(var(--sy, 0) * -.04px), 0); }
html.fx-high .tiles3 .tile3.rv.in { animation: tilein .7s cubic-bezier(.2, .8, .2, 1) both; }

/* ---------- Ahorro de recursos ---------- */
html.fx-paused *, html.fx-paused *::before, html.fx-paused *::after { animation-play-state: paused !important; }
/* MEDIO: sin desenfoque de cristal (lo más pesado en gama media), fondo un poco más opaco, menos burbujas */
html.fx-mid .glass, html.fx-lite .glass, html.fx-off .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(150deg, rgba(255, 255, 255, .96), rgba(240, 250, 255, .9)); }
html.fx-mid .bgfx .bub:nth-of-type(n+8) { display: none; }
html.fx-mid .modal-bg { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* LIGERO y SIN MOVIMIENTO: todo estático, mismo diseño */
html.fx-lite .bgfx .bub, html.fx-off .bgfx .bub { display: none; }
html.fx-lite .bgfx svg, html.fx-off .bgfx svg { animation: none !important; }
html.fx-lite .modal-bg, html.fx-off .modal-bg { -webkit-backdrop-filter: none; backdrop-filter: none; }
html.fx-lite .glass, html.fx-off .glass { box-shadow: 0 6px 16px rgba(12, 90, 160, .12), inset 0 1px 0 #fff; }
html.fx-lite .tile3 .orb, html.fx-off .tile3 .orb { box-shadow: inset 0 -5px 10px rgba(10, 110, 210, .25), 0 0 0 3px rgba(255, 255, 255, .75); }
html.fx-lite .hero .dr img, html.fx-off .hero .dr img { animation: none; }
html.fx-lite .rv, html.fx-off .rv { transition-duration: .25s; transform: none; }
html.fx-lite .drop3d svg, html.fx-off .drop3d svg, html.fx-lite .badge3d img, html.fx-off .badge3d img { filter: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }

/* Ajuste móvil: todo el inicio cabe en una pantalla como en el diseño (insignia, bienvenida y tarjetas) */
.badge3d { width: min(42vw, 190px); margin-top: 6px; }
.home-title { font-size: clamp(2.3rem, 8.8vw, 4.6rem); margin-top: 4px; }
.home-top .accent { margin: 9px auto 7px; } .home-tag { font-size: clamp(.95rem, 3.4vw, 1.3rem); }
.welcome { grid-template-columns: 1.3fr .7fr; padding: 16px 16px 16px 18px; margin-top: 8px; }
.wtitle { white-space: nowrap; font-size: clamp(1.7rem, 7.4vw, 3.1rem); } .wlead { font-size: clamp(.98rem, 3.9vw, 1.4rem); }
.wlist { line-height: 1.55; } .welcome .eyebrow { font-size: .7rem; letter-spacing: .34em; }
.tiles3 { gap: 12px; margin-top: 14px; }
.tile3 { padding: 12px 10px 12px 10px; gap: 9px; min-height: 86px; } .tile3 .orb { width: 54px; height: 54px; } .tile3 .i3 { width: 34px; height: 34px; }
.tile3 h4 { font-size: .98rem; } .tile3 p { font-size: .72rem; } .tile3 .go svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .home-top { padding-top: 6px; } body.is-home.guest .home-top { padding-top: 60px; } }
@media (min-width: 901px) { .badge3d { width: 230px; } .home-title { font-size: clamp(3.4rem, 6vw, 5.2rem); } .welcome { grid-template-columns: 1.2fr .8fr; padding: 34px; } .wtitle { font-size: 3.1rem; } .wlead { font-size: 1.5rem; } .tile3 { padding: 16px 18px 16px 14px; gap: 14px; min-height: 108px; } .tile3 .orb { width: 70px; height: 70px; } .tile3 .i3 { width: 44px; height: 44px; } .tile3 h4 { font-size: 1.06rem; } .tile3 p { font-size: .8rem; } .tile3 .go svg { width: 20px; height: 20px; } .tiles3 { gap: 18px; } }
@media (max-width: 420px) { .tile3 .go { display: none; } .tile3 .orb { width: 50px; height: 50px; } .tile3 .i3 { width: 31px; height: 31px; } }
.fxpick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .fxpick .chip.on { background: linear-gradient(180deg, #46bdff, #0a78d6); color: #fff; border-color: transparent; }

/* ---------- Instalar app ---------- */
.installbar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; margin-top: 16px; }
.installbar .orb2 { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #fff; box-shadow: 0 4px 10px rgba(10, 120, 214, .2); }
.installbar b { color: #0d3b82; font-size: .95rem; } .installbar .ib2 { flex: 0 0 auto; }
.stepsl { margin: 14px 0 0 20px; display: grid; gap: 10px; color: var(--tx); } .stepsl .shr { display: inline-grid; vertical-align: -4px; color: var(--az2); }
.installbar .ib2 { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(10, 120, 214, .1); color: var(--az2); cursor: pointer; display: grid; place-items: center; }

/* ==========================================================
   SPLASH · una gota cae, salpica y revela la insignia mientras sube el agua
   Secuencia ~2.3 s. Solo transform y opacity. Nivel ligero: insignia y frase, sin movimiento.
   ========================================================== */
#splash { position: fixed; inset: 0; z-index: 2000; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px;
  background: radial-gradient(900px 600px at 50% 38%, #fff 0%, #e6f6ff 45%, #bfe6ff 100%); transition: opacity .7s ease, transform .7s ease, visibility .7s; }
#splash.out { opacity: 0; visibility: hidden; transform: scale(1.06); pointer-events: none; }
#splash .sw { position: absolute; left: 0; right: 0; bottom: 0; height: 62vh; transform: translateY(100%); animation: swrise 2.1s cubic-bezier(.3, .6, .2, 1) .35s forwards; pointer-events: none; }
#splash .sw svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
#splash .sw .a { animation: swslide 5s linear infinite; opacity: .55; } #splash .sw .b { animation: swslide 7s linear infinite reverse; opacity: .8; }
@keyframes swrise { to { transform: translateY(38%); } } @keyframes swslide { to { transform: translateX(-50%); } }
#splash .stage { position: relative; width: min(300px, 66vw); aspect-ratio: 1; display: grid; place-items: center; }
#splash .badge-l { position: relative; z-index: 2; width: 100%; transform: scale(.2); opacity: 0; animation: spop .9s cubic-bezier(.2, 1.25, .35, 1) .8s forwards; }
#splash .badge-l img { width: 100%; height: auto; filter: drop-shadow(0 22px 30px rgba(10, 120, 214, .38)); }
#splash .ring { position: absolute; inset: 4%; border-radius: 50%; border: 2px solid rgba(56, 182, 255, .6); opacity: 0; z-index: 1; animation: sring 2s ease-out .8s infinite; } #splash .ring:nth-child(2) { animation-delay: 1.25s; } #splash .ring:nth-child(3) { animation-delay: 1.7s; }
#splash .gota { position: absolute; left: 50%; top: -34vh; width: 46px; margin-left: -23px; z-index: 3; opacity: 0; animation: sfall .8s cubic-bezier(.55, .05, .9, .5) .05s forwards; }
#splash .gota svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(10, 120, 214, .3)); }
#splash .sp { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4px; border-radius: 50%; background: #fff; border: 1.5px solid rgba(80, 190, 250, .9); z-index: 3; opacity: 0; animation: sjump 1.1s ease-out .78s forwards; }
#splash .sp:nth-of-type(1) { --dx: -120px; --dy: -90px; } #splash .sp:nth-of-type(2) { --dx: 118px; --dy: -96px; } #splash .sp:nth-of-type(3) { --dx: -150px; --dy: -20px; } #splash .sp:nth-of-type(4) { --dx: 148px; --dy: -26px; } #splash .sp:nth-of-type(5) { --dx: -70px; --dy: -140px; } #splash .sp:nth-of-type(6) { --dx: 74px; --dy: -146px; }
#splash h2 { position: relative; z-index: 2; font-size: clamp(1.9rem, 7vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; color: #3b4452; opacity: 0; transform: translateY(16px); animation: sup .7s ease 1.45s forwards; line-height: 1; margin-top: 6px; }
#splash h2 b { background: linear-gradient(180deg, #2dd0f0, #0a86df 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
#splash p { position: relative; z-index: 2; font-size: clamp(.95rem, 3.4vw, 1.2rem); color: #31475f; opacity: 0; transform: translateY(12px); animation: sup .7s ease 1.7s forwards; }
#splash .ld { position: relative; z-index: 2; width: 120px; height: 4px; border-radius: 4px; background: rgba(10, 120, 214, .15); overflow: hidden; margin-top: 8px; opacity: 0; animation: sup .5s ease 1.9s forwards; }
#splash .ld::after { content: ''; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, #2dc4ee, #0a86df); transform: translateX(-100%); animation: sld 1.1s ease-in-out 1.9s infinite; }
@keyframes sfall { 0% { opacity: 1; transform: translateY(0) scale(.7, 1.25); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(34vh + 110px)) scale(1, 1); } }
@keyframes spop { to { transform: scale(1); opacity: 1; } }
@keyframes sring { 0% { transform: scale(.55); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes sjump { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 25% { opacity: 1; } 70% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 1; } 100% { transform: translate(calc(var(--dx) * 1.2), calc(var(--dy) + 90px)) scale(.6); opacity: 0; } }
@keyframes sup { to { opacity: 1; transform: none; } }
@keyframes sld { to { transform: translateX(100%); } }
/* Ligero / sin movimiento: se ve completo y estático */
html.fx-lite #splash .sw, html.fx-off #splash .sw { animation: none; transform: translateY(40%); } html.fx-lite #splash .sw svg, html.fx-off #splash .sw svg { animation: none; }
html.fx-lite #splash .badge-l, html.fx-off #splash .badge-l { animation: none; transform: none; opacity: 1; } html.fx-lite #splash .gota, html.fx-off #splash .gota, html.fx-lite #splash .sp, html.fx-off #splash .sp, html.fx-lite #splash .ring, html.fx-off #splash .ring, html.fx-lite #splash .ld, html.fx-off #splash .ld { display: none; }
html.fx-lite #splash h2, html.fx-off #splash h2, html.fx-lite #splash p, html.fx-off #splash p { animation: none; opacity: 1; transform: none; }
html.fx-mid #splash .sw .a, html.fx-mid #splash .sw .b { animation-duration: 9s; }

/* ---------- Redes sociales / Novedades ---------- */
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; } .follow .fl { font-weight: 800; color: #0d3b82; margin-right: 4px; }
.soc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; color: #fff !important; font-weight: 700; font-size: .88rem; box-shadow: 0 8px 18px rgba(10, 60, 120, .22); transition: transform .2s; }
.soc-btn:hover { transform: translateY(-2px); } .soc-btn:active { transform: scale(.96); }
.soc-btn.facebook, .nb.facebook, .ph.facebook { background: linear-gradient(135deg, #3b8bff, #1259d6); } .soc-btn.youtube, .nb.youtube, .ph.youtube { background: linear-gradient(135deg, #ff4b4b, #d40019); }
.soc-btn.instagram, .nb.instagram, .ph.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); } .soc-btn.x, .nb.x, .ph.x { background: linear-gradient(135deg, #2b3138, #0b0e11); }
.socstrip { margin-top: 8px; }
.soc-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .soc-row::-webkit-scrollbar { display: none; }
.soc-row .post { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
.postgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; } .postgrid .post[hidden] { display: none; }
.post { border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.post .th { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 0; padding: 0; background: #cfe9fb; cursor: pointer; color: #fff; }
.post .th .thimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; } .post .th .thimg.bad { display: none; }
.ph { display: grid; place-items: center; color: #fff; } .post .th .ph { position: absolute; inset: 0; } .ph.sm { width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto; }
.nb { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; color: #fff; font-size: .74rem; font-weight: 800; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; color: #d40019; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); padding-left: 3px; transition: transform .2s; }
.post .th:hover .play { transform: scale(1.08); }
.th.playing { cursor: default; background: #000; } .ytf { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.pb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; } .pb h4 { color: #0d3b82; font-size: 1.02rem; line-height: 1.25; }
.pb .pt { color: var(--mut); font-size: .88rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .pb .pf { margin-top: auto; padding-top: 4px; }
.cover { width: 92px; height: 52px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; } .cover.sm { width: 64px; height: 38px; }
.soc-i { display: block; flex-shrink: 0; }
html.fx-high .post:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); } html.fx-high .post { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
@media (min-width: 901px) { .soc-row .post { flex-basis: 300px; } }
.installbar .grow { min-width: 0; line-height: 1.25; } .installbar b { display: block; font-size: .95rem; } .installbar .btn { flex: 0 0 auto; }
.covw { position: relative; width: 92px; height: 52px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; } .covw.sm { width: 64px; height: 38px; }
.covw .ph { position: absolute; inset: 0; } .covw .cover { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; z-index: 1; } .covw .thimg.bad { display: none; }
.netc { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Modales: fondo casi opaco (el desenfoque anidado no se aplica y dejaba ver el texto de atrás) */
.modal.glass { background: #fafdff; -webkit-backdrop-filter: none; backdrop-filter: none; }
