/* HUG AppWorks · HUG portal central | v1.0.4 - Primera impresión cinematográfica */
.hug-first-impression{position:relative;isolation:isolate;overflow:hidden;min-height:min(820px,calc(100svh - 78px));display:flex;align-items:center;background:radial-gradient(ellipse at 76% 35%,#224873 0%,transparent 45%),radial-gradient(ellipse at 97% 6%,#1b3468 0%,transparent 36%),linear-gradient(116deg,#0b1228 12%,#0c1635 56%,#08132d 100%);border-bottom:1px solid rgba(137,179,210,.18)}
.hug-first-impression:before{content:'';position:absolute;inset:-20%;pointer-events:none;background:radial-gradient(ellipse at 83% 67%,rgba(77,211,212,.13),transparent 34%),radial-gradient(ellipse at 44% 11%,rgba(149,101,236,.09),transparent 35%);mix-blend-mode:screen}
.hug-space-stars{position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(circle,#ffffffb0 .9px,transparent 1.4px),radial-gradient(circle,#89effd78 1px,transparent 1.6px);background-size:130px 130px,219px 209px;background-position:27px 58px,99px 15px;opacity:.25}
.hug-hero-layout{width:min(1240px,calc(100% - 44px));min-height:690px;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);align-items:center;gap:10px;position:relative;z-index:1;padding:42px 0 68px}
.hug-first-copy{position:relative;z-index:3;padding:12px 0 18px}
.hug-first-kicker{font-size:12px;font-weight:900;letter-spacing:.22em;color:#bffc78;margin:0 0 20px;display:flex;align-items:center;gap:9px}
.hug-kicker-star{color:#c4fb79;font-size:21px;letter-spacing:0;line-height:1}
.hug-first-copy h1{margin:0;font-weight:950;line-height:.94;letter-spacing:-.055em;display:flex;flex-direction:column;align-items:flex-start}
.hug-hi{font-size:clamp(47px,5.3vw,82px);color:#f2f7ff;white-space:nowrap}
.hug-name{font-size:clamp(110px,14vw,205px);line-height:.97;letter-spacing:-.09em;color:#c4fb79;filter:drop-shadow(0 8px 25px #a2fc5752)}
.hug-period{color:#72dfe9}
.hug-welcome-line{font-size:clamp(27px,3.6vw,50px);line-height:1.13;letter-spacing:-.046em;color:#eff5ff;margin-top:9px}
.hug-first-description{font-size:clamp(17px,1.5vw,19px);line-height:1.66;color:#d4dff1;max-width:520px;margin:24px 0 0}
.hug-first-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:27px}
.hug-first-primary,.hug-first-secondary{display:inline-flex;align-items:center;justify-content:center;gap:11px;padding:13px 21px;min-height:53px;border-radius:16px;font-weight:900;font-size:14px;line-height:1.15;transition:transform .2s,box-shadow .2s}
.hug-first-primary{background:#c4fb79;color:#12203b;box-shadow:0 10px 32px #baf9782d}
.hug-first-secondary{background:rgba(31,55,92,.48);color:#f5f9ff;border:1px solid #7b91bb85;backdrop-filter:blur(9px)}
.hug-first-primary:hover,.hug-first-secondary:hover{transform:translateY(-3px)}
.hug-play-icon{width:29px;height:29px;border-radius:50%;background:#13233d;color:#c4fb79;display:grid;place-items:center;font-size:11px;padding-left:2px}
.hug-first-note{margin:26px 0 0;color:#a4b9d8;font-size:10px;letter-spacing:.16em;font-weight:800;display:flex;align-items:center;gap:8px}
.hug-note-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#c4fb79;box-shadow:0 0 11px #a7fa73}
.hug-first-visual{position:relative;min-height:640px;display:flex;align-items:center;justify-content:center;align-self:stretch;isolation:isolate}
.hug-aura{position:absolute;z-index:-1;width:107%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 51% 48%,rgba(76,226,244,.28),rgba(43,82,149,.19) 46%,transparent 68%);border:1px solid #6fe8fd23;box-shadow:0 0 0 33px #2d60970f,0 0 0 78px #56cde607;transform:translate(4%,-2%)}
.hug-giant-letter{position:absolute;font-size:clamp(380px,48vw,680px);line-height:1;letter-spacing:-.12em;font-weight:1000;color:#e7f5ff;opacity:.025;transform:translate(1%,4%);user-select:none;pointer-events:none}
.hug-first-character{width:min(100%,660px);height:auto;max-height:690px;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 28px 44px rgba(2,8,29,.72));transform:translate(1%,1%)}
.hug-visual-star{position:absolute;z-index:2;color:#c4fb79;filter:drop-shadow(0 0 13px #baff80);pointer-events:none}
.hug-s1{font-size:52px;top:17%;left:7%}.hug-s2{font-size:35px;top:16%;right:4%;color:#85e9fd}.hug-s3{font-size:33px;bottom:18%;right:8%}
.hug-character-tag{position:absolute;right:4%;bottom:12%;z-index:2;display:flex;align-items:center;gap:9px;padding:9px 14px;border:1px solid #b2d9f659;background:rgba(10,25,55,.75);border-radius:99px;color:#dceaf7;font-size:10px;font-weight:900;letter-spacing:.13em;backdrop-filter:blur(10px)}
.hug-tag-dot{display:block;width:9px;height:9px;background:#c4fb79;border-radius:50%}
.hug-scroll-invite{position:absolute;left:50%;transform:translateX(-50%);bottom:15px;z-index:4;color:#b9cbe4;font-size:10px;letter-spacing:.18em;font-weight:850;display:inline-flex;align-items:center;gap:12px;text-align:center;white-space:nowrap}
.hug-scroll-invite span{color:#c4fb79;font-size:19px;line-height:1}
.hug-start-now{position:relative;padding:74px 0 86px;background:linear-gradient(180deg,#0e1c3a,#10182f)}
.hug-start-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:29px}
.hug-start-heading .eyebrow{margin:0 0 8px;font-size:11px}
.hug-start-heading h2{font-size:clamp(30px,3.7vw,54px);line-height:1.1;letter-spacing:-.055em;margin:0;font-weight:950}
.hug-start-heading h2 span{color:#c4fb79}
.hug-start-heading>p{max-width:300px;margin:0;color:#c1d2e7;font-size:14px;line-height:1.65}
.hug-start-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.hug-start-card{position:relative;overflow:hidden;display:block;aspect-ratio:3/4;border-radius:22px;background:#1c2950;border:1px solid #56729888;box-shadow:0 16px 32px #02081770;isolation:isolate;transition:transform .22s,border-color .22s}
.hug-start-card:hover{transform:translateY(-6px);border-color:#c4fb79}
.hug-start-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s}
.hug-start-card:hover img{transform:scale(1.05)}
.hug-start-shade{position:absolute;inset:0;background:linear-gradient(180deg,#08132905 25%,#081329c4 73%,#071124f2 100%)}
.hug-start-content{position:absolute;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:21px 17px 18px;color:white}
.hug-start-content small{border:1px solid #c4fb7970;background:#183355a6;padding:5px 8px;border-radius:6px;font-size:9px;font-weight:850;color:#c9ff94;letter-spacing:.075em}
.hug-start-content strong{font-weight:900;font-size:clamp(19px,2vw,26px);line-height:1.1;letter-spacing:-.045em}
.hug-start-content>span{font-size:12px;color:#dae6f5;line-height:1.4;width:100%;display:flex;align-items:center;justify-content:space-between;gap:4px}
.hug-start-content b{color:#c4fb79;font-size:19px}
@media(max-width:1060px){.hug-hero-layout{grid-template-columns:1.04fr .96fr}.hug-first-visual{min-height:570px}.hug-first-character{max-height:580px}.hug-start-content{padding:16px 12px}.hug-start-content strong{font-size:22px}}
@media(max-width:760px){
 .hug-first-impression{min-height:0}
 .hug-hero-layout{width:calc(100% - 32px);grid-template-columns:1fr;gap:0;padding:44px 0 56px;min-height:0}
 .hug-first-copy{padding:0;order:1;text-align:center;display:flex;flex-direction:column;align-items:center}
 .hug-first-kicker{font-size:10px;letter-spacing:.14em;margin-bottom:14px}
 .hug-first-copy h1{align-items:center}
 .hug-hi{font-size:clamp(41px,11vw,65px)}
 .hug-name{font-size:clamp(110px,31vw,185px);line-height:.88}
 .hug-welcome-line{font-size:clamp(25px,6.4vw,41px);margin-top:9px}
 .hug-first-description{margin:18px auto 0;font-size:15px;line-height:1.55;max-width:500px}
 .hug-first-actions{justify-content:center;margin-top:21px}
 .hug-first-primary,.hug-first-secondary{min-height:49px;padding:12px 17px}
 .hug-first-note{display:none}
 .hug-first-visual{order:2;min-height:0;height:auto;max-height:410px;margin:4px -20px 0}
 .hug-first-character{height:auto;width:min(90vw,430px);max-height:410px;transform:none}
 .hug-aura{width:min(86%,385px)}
 .hug-s1{font-size:29px;top:19%;left:16%}.hug-s2{font-size:25px;top:14%;right:15%}.hug-s3{font-size:24px;bottom:13%;right:17%}
 .hug-giant-letter{font-size:390px}
 .hug-character-tag{right:7%;bottom:4%;font-size:8px}
 .hug-scroll-invite{font-size:9px;bottom:12px}
 .hug-start-now{padding:55px 0 64px}
 .hug-start-heading{display:block;margin-bottom:19px}
 .hug-start-heading>p{max-width:100%;margin-top:12px}
 .hug-start-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .hug-start-card{aspect-ratio:4/5;border-radius:16px}
 .hug-start-content strong{font-size:21px}
 .hug-start-content small{font-size:8px}
}
@media(max-width:390px){.hug-first-copy h1 .hug-hi{font-size:38px}.hug-welcome-line{font-size:24px}.hug-first-actions{gap:9px}.hug-first-primary,.hug-first-secondary{font-size:12px;padding:10px 13px}.hug-start-content strong{font-size:19px}.hug-start-content{padding:13px 10px}.hug-start-content>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.hug-first-primary,.hug-first-secondary,.hug-start-card,.hug-start-card img{transition:none}}

/* Mobile: show HUG himself before the long explanation and buttons. */
@media(max-width:760px){
 .hug-hero-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding-top:32px;padding-bottom:53px}
 .hug-first-copy{display:contents}
 .hug-first-kicker{grid-row:1;justify-self:center;margin-bottom:8px}
 .hug-first-copy h1{grid-row:2;justify-self:center}
 .hug-first-visual{grid-row:3;height:320px;max-height:320px;margin:4px -18px 0;overflow:visible}
 .hug-first-character{width:min(83vw,355px);max-height:342px}
 .hug-first-description{grid-row:4;justify-self:center;text-align:center;margin-top:3px;font-size:15px}
 .hug-first-actions{grid-row:5;justify-self:center;margin-top:19px}
 .hug-first-note{display:none}
 .hug-character-tag{bottom:4%;right:4%}
}
@media(max-width:390px){.hug-first-visual{height:300px;max-height:300px}.hug-first-character{max-height:322px}.hug-first-description{font-size:14px}}
