/* CRAFTINGBITS — /apps/ page-specific styles (base: header_footer.css) */
*{box-sizing:border-box;margin:0;padding:0}
html{min-height:100vh;scroll-behavior:smooth}
body{display:flex;flex-direction:column;min-height:100vh;font-family:'SpaceGrotesk',sans-serif;background:#fff;color:#333333;-webkit-font-smoothing:antialiased}
body>main{flex:1}
::selection{background:#ffb68b;color:#321200}
a{text-decoration:none;color:inherit}

/* APPS INDEX */
main{--text:#333333;--muted:#6b7280;--border:#e5e7eb;color:#333333;max-width:1100px;margin:0 auto;padding:calc(var(--nav-h) + 56px) 20px 80px}
.eyebrow{font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--orange);margin-bottom:14px}
h1{font-size:clamp(32px,6vw,52px);line-height:1.05;font-weight:700;margin-bottom:18px}
.intro{color:var(--muted);font-size:18px;line-height:1.6;max-width:640px;margin-bottom:48px}

.app-card{display:flex;gap:28px;background:#fff;border:1px solid var(--border);border-radius:18px;padding:28px;box-shadow:0 10px 40px rgba(0,0,0,.05);max-width:760px}
.app-body{flex:1;min-width:0}
.app-icon{flex-shrink:0;width:92px;height:92px;border-radius:22px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.app-icon img{width:100%;height:100%;object-fit:cover}
.app-name{font-size:26px;font-weight:700;margin-bottom:8px}
.app-desc{color:var(--muted);font-size:16px;line-height:1.6;margin-bottom:20px}
.app-actions{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:14px;letter-spacing:.03em;padding:12px 20px;border-radius:10px;border:1px solid var(--border);transition:all .25s}
.btn svg{width:18px;height:18px;flex-shrink:0}
.btn-play{background:var(--orange);color:#111;border-color:var(--orange)}
.btn-play:hover{background:var(--orange-dark);border-color:var(--orange-dark)}
@media (max-width:640px){.app-card{flex-direction:column}}

/* APP DETAIL PAGES */
.breadcrumb{margin-bottom:26px;font-size:13px}
.breadcrumb a{color:var(--muted);transition:color .25s}
.breadcrumb a:hover{color:var(--orange)}

.hero{display:flex;gap:48px;align-items:center;flex-wrap:wrap;margin-bottom:64px}
.hero:has(.phone){align-items:flex-start}
.hero-icon{width:128px;height:128px;border-radius:30px;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.16);flex-shrink:0}
.hero-icon img{width:100%;height:100%;object-fit:cover}
.hero-heading{display:flex;align-items:center;gap:20px;margin-bottom:20px}
.hero-heading .hero-icon{width:88px;height:88px;border-radius:22px}
.hero-heading .hero-icon img{width:100%;height:100%;object-fit:cover}
.hero-heading .eyebrow{margin-bottom:8px}
.hero-heading h1{margin-bottom:0}
.hero-body{flex:1;min-width:280px;max-width:560px}
.hero-body .store-btns{margin-top:24px}
.hero-body .chips{margin-top:26px;margin-bottom:0}
.tagline{font-size:20px;font-weight:500;color:#111;margin-bottom:12px}
.desc{color:var(--muted);font-size:16px;line-height:1.65}

/* PHONE MOCKUP */
.phone{flex-shrink:0;width:min(320px,86vw);margin:0 auto}
.phone-frame{position:relative;background:#0f141d;border:9px solid #1b212c;border-radius:48px;padding:8px;box-shadow:0 28px 70px rgba(0,0,0,.28)}
.phone-cam{position:absolute;top:16px;left:50%;transform:translateX(-50%);width:12px;height:12px;border-radius:50%;background:#05070b;border:2px solid #2a303c;z-index:20;pointer-events:none}
.phone-screen{position:relative;aspect-ratio:9/19;border-radius:32px;overflow:hidden;background:#0B0E14}

/* GALLERY (capturas dentro del teléfono) */
.gallery-track{display:flex;height:100%;transition:transform .45s cubic-bezier(.22,.61,.36,1)}
.gallery-slide{flex:0 0 100%;min-width:100%;height:100%;margin:0}
.gallery-slide img{display:block;width:100%;height:100%;object-fit:contain;background:#0B0E14}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .25s,transform .25s;z-index:10}
.gallery-arrow:hover{background:var(--orange);border-color:var(--orange);color:#111;transform:translateY(-50%) scale(1.06)}
.gallery-prev{left:8px}
.gallery-next{right:8px}
.gallery-arrow svg{width:16px;height:16px}
.gallery-dots{display:flex;justify-content:center;gap:8px;margin-top:16px}
.gallery-dots button{width:8px;height:8px;border-radius:50%;border:none;background:#d1d5db;cursor:pointer;padding:0;transition:all .25s}
.gallery-dots button:hover{background:var(--orange)}
.gallery-dots button.active{background:var(--orange);width:22px;border-radius:999px}

/* BANNER PROMOCIONAL */
.banner{margin-bottom:64px}
.banner img{display:block;width:100%;height:auto;aspect-ratio:1024/500;object-fit:cover;border-radius:18px;border:1px solid var(--border)}

/* STORE BUTTONS */
.store-btns{display:flex;flex-wrap:wrap;gap:12px}
.store-btn{display:inline-flex;align-items:center;gap:10px}
.store-btn-icon{display:inline-flex;align-items:center;justify-content:center}
.store-btn-icon svg{width:20px;height:20px}
@media (max-width:640px){.phone{width:min(300px,84vw)}.gallery-arrow{width:30px;height:30px}.gallery-prev{left:6px}.gallery-next{right:6px}}

/* STORY */
.story{margin-bottom:64px}
.story h2{font-size:26px;font-weight:700;margin-bottom:16px;color:#111}
.story p{color:var(--muted);font-size:16px;line-height:1.7;margin-bottom:14px}
.story p:last-child{margin-bottom:0}

/* CHIPS */
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:64px}
.chip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:999px;padding:7px 15px;font-size:13px;font-weight:600;letter-spacing:.02em;color:#111;background:#fff;transition:all .2s}
.chip::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--orange);flex-shrink:0}
.chip:hover{border-color:var(--orange);color:var(--orange);background:rgba(255,106,0,.05)}

.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-bottom:64px}
.feat{border:1px solid var(--border);border-radius:14px;padding:22px;transition:box-shadow .25s,transform .25s}
.feat:hover{box-shadow:0 10px 30px rgba(0,0,0,.07);transform:translateY(-3px)}
.feat-ico{width:44px;height:44px;border-radius:12px;background:rgba(255,106,0,.1);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.feat-ico svg{width:22px;height:22px;color:var(--orange)}
.feat h2{font-size:17px;font-weight:700;margin-bottom:6px}
.feat p{font-size:14px;line-height:1.6;color:var(--muted)}

.privacy{background:#0B0E14;color:#c8c6c5;border-radius:18px;padding:36px;display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin-bottom:64px}
.privacy svg{width:40px;height:40px;color:var(--orange);flex-shrink:0}
.privacy-body{flex:1;min-width:240px}
.privacy-body h2{color:#fff;font-size:20px;font-weight:700;margin-bottom:6px}
.privacy-body p{font-size:15px;line-height:1.6;margin-bottom:10px}
.privacy-body a{color:var(--orange)}

.download{display:flex;flex-wrap:wrap;align-items:center;gap:20px;justify-content:space-between;background:#f9fafb;border:1px solid var(--border);border-radius:18px;padding:28px;margin-bottom:64px}
.download-text h2{font-size:20px;font-weight:700;margin-bottom:6px}
.download-text p{color:var(--muted);font-size:15px}
.btn-play{display:inline-flex;align-items:center;gap:10px;background:var(--orange);color:#111;font-weight:600;font-size:15px;padding:14px 24px;border-radius:12px;transition:all .25s}
.btn-play:hover{background:var(--orange-dark)}
.btn-play svg{width:20px;height:20px}

/* APP LEGAL PAGES */
.section-layout{display:flex;gap:16px;padding:22px 0;border-bottom:1px solid var(--border)}
.section-layout:last-of-type{border-bottom:none}
.sec-ico{flex-shrink:0;width:44px;height:44px;border-radius:12px;background:rgba(255,106,0,.1);display:flex;align-items:center;justify-content:center}
.sec-ico svg{width:22px;height:22px;color:var(--orange)}
.sec-body{flex:1}
.sec-body h2{font-size:19px;font-weight:700;margin-bottom:10px}
.sec-body p{font-size:15px;line-height:1.7;color:#3f3f3f;margin-bottom:10px}
.sec-body p:last-child{margin-bottom:0}
.sec-body ul{margin:6px 0 10px 22px;font-size:15px;line-height:1.7;color:#3f3f3f}
.sec-body li{margin-bottom:6px}
.sec-body strong{font-weight:600}
.sec-body a{color:var(--orange)}
.sec-body a:hover{color:var(--orange-dark);text-decoration:underline}
.app-legal-note{font-size:13px;color:var(--muted);background:#f9fafb;border-left:3px solid var(--orange);padding:10px 14px;border-radius:0 8px 8px 0;margin-top:18px}
.app-legal-intro{font-size:15px;line-height:1.7;color:#3f3f3f;margin-bottom:28px}

/* CHANGELOG */
.changelog{max-width:820px;margin-top:8px}
.changelog-head{margin-bottom:36px}
.changelog-latest{color:var(--muted);font-size:15px;margin-top:18px}
.changelog-latest strong{color:var(--orange)}
.changelog-empty{color:var(--muted);font-size:16px;background:#f9fafb;border:1px dashed var(--border);border-radius:14px;padding:22px}
.changelog-list{display:flex;flex-direction:column;gap:22px}
.chg-entry{background:#fff;border:1px solid var(--border);border-radius:16px;padding:24px 26px}
.chg-version{font-size:22px;font-weight:700;color:var(--orange);display:inline-block;margin-right:10px}
.chg-date{font-size:13px;color:var(--muted);letter-spacing:.03em}
.chg-group{margin-top:16px}
.chg-group-label{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--orange);margin-bottom:8px}
.chg-group-label::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--orange)}
.chg-group-label[data-group="improved"]{color:#16a34a}
.chg-group-label[data-group="improved"]::before{background:#16a34a}
.chg-group-label[data-group="fixed"]{color:#dc2626}
.chg-group-label[data-group="fixed"]::before{background:#dc2626}
.chg-group ul,.chg-plain{margin:0;padding-left:20px;list-style:none}
.chg-group li,.chg-plain li{position:relative;padding-left:14px;font-size:15px;line-height:1.7;color:#333}
.chg-group li::before,.chg-plain li::before{content:"•";position:absolute;left:0;color:var(--orange)}
.chg-plain{margin-top:16px}

#gestion{scroll-margin-top:96px}

/* TEXTO JUSTIFICADO (apps y juegos) */
.intro,
.app-desc,
.desc,
.tagline,
.hero-body p,
.story p,
.feat p,
.privacy-body p,
.download-text p,
.sec-body p,
.sec-body li,
.app-legal-intro,
.changelog-latest,
.changelog-empty,
.chg-group li,
.chg-plain li{text-align:justify;text-justify:inter-word;-webkit-hyphens:auto;hyphens:auto}
