html, body { background: var(--bg-base) !important; overscroll-behavior: none; }
body.ec-loading > *:not(#ec-splash) { visibility: hidden !important; }
#home-screen {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--bg-base);
    color: var(--text-primary);
    overflow: hidden;
    overscroll-behavior: none;
    z-index: 50;
    display: flex;
    flex-direction: column;
}
#home-screen.hidden { display: none; }
.home-nav {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: 14px clamp(16px, 4vw, 48px);
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    background: var(--bg-base);
}
.home-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    cursor: pointer;
    user-select: none;
}
.home-logo { height: 64px; width: auto; display: block; max-width: 260px; }
.ec-logo-radio   { font-family: 'Audiowide', sans-serif; font-size: 24px; letter-spacing: 9px; fill: var(--text-primary); }
.ec-logo-eclipse { font-family: 'Monoton', sans-serif; font-size: 58px; fill: url(#ecGrad); }
.ec-logo-tag     { font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 13.5px; letter-spacing: 0.5px; fill: var(--text-secondary); }
@media (max-width: 600px) {
    .home-logo { height: 52px; max-width: 200px; }
    .ec-logo-tag { display: none; }
}
.home-brand-name span { color: var(--accent); }
.home-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.home-nav-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 99px;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
}
.home-nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.home-nav-link.active { color: #fff; background: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.home-theme-btn {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: grid; place-items: center;
    transition: all .18s ease;
    flex-shrink: 0;
}
.home-theme-btn:hover { color: var(--accent); border-color: var(--accent); }
.home-nav-toggle {
    display: none;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 38px; height: 38px;
    border-radius: 10px;
    cursor: pointer;
}
.home-main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: none;
    display: flex;
    flex-direction: column;
}
.home-section { display: none; animation: homeFade .35s ease; }
.home-section.active { display: block; }
#home-sec-inicio:not(.active) .hero-eclipse-sun,
#home-sec-inicio:not(.active) .hero-eclipse-moon,
#home-sec-inicio:not(.active) .hero-eclipse-corona,
#home-sec-inicio:not(.active) .hero-star,
#home-screen.anim-suspend .hero-eclipse-sun,
#home-screen.anim-suspend .hero-eclipse-moon,
#home-screen.anim-suspend .hero-eclipse-corona,
#home-screen.anim-suspend .hero-star {
    animation-play-state: paused !important;
}
@keyframes homeFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero {
    position: relative;
    min-height: calc(100vh - 66px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(40px, 8vh, 90px) clamp(20px, 5vw, 60px);
    overflow: hidden;
}
.hero-eclipse {
    position: relative;
    width: clamp(150px, 32vw, 260px);
    height: clamp(150px, 32vw, 260px);
    margin-bottom: clamp(28px, 5vh, 48px);
}
.hero-eclipse-sun {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, var(--accent-2), var(--accent));
    box-shadow: 0 0 70px 12px var(--accent-glow), 0 0 140px 30px var(--accent-2-glow);
    animation: heroPulse 6s ease-in-out infinite;
}
.hero-eclipse-moon {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--bg-base);
    transform: translate(-14%, -10%);
    box-shadow: inset 8px 6px 18px rgba(0,0,0,0.5);
    animation: heroMoon 16s ease-in-out infinite;
}
.hero-eclipse-corona {
    position: absolute; inset: -8%;
    border-radius: 50%;
    border: 1px solid var(--accent-glow);
    animation: heroCorona 8s linear infinite;
    opacity: .5;
}
@keyframes heroPulse {
    0%,100% { box-shadow: 0 0 70px 12px var(--accent-glow), 0 0 140px 30px var(--accent-2-glow); }
    50%     { box-shadow: 0 0 90px 20px var(--accent-glow), 0 0 180px 44px var(--accent-2-glow); }
}
@keyframes heroMoon {
    0%,100% { transform: translate(-14%, -10%); }
    50%     { transform: translate(-2%, -4%); }
}
@keyframes heroCorona {
    from { transform: rotate(0deg) scale(1); }
    to   { transform: rotate(360deg) scale(1.04); }
}
.hero-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-star {
    position: absolute;
    width: 2px; height: 2px; border-radius: 50%;
    background: var(--text-primary);
    opacity: .5;
    animation: starTwinkle 4s ease-in-out infinite;
}
@keyframes starTwinkle { 0%,100% { opacity: .15; } 50% { opacity: .7; } }
.hero-eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.hero-title {
    font-family: var(--font-display, 'Syne', sans-serif);
    font-weight: 800;
    font-size: clamp(2.4rem, 8vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-tagline {
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.5;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-cta {
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 99px;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
    display: inline-flex; align-items: center; gap: 10px;
}
.hero-cta-primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 8px 28px var(--accent-glow);
}
.hero-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px var(--accent-glow); }
.hero-cta-ghost {
    background: var(--bg-raised);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.hero-cta-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-player {
    margin-top: clamp(36px, 7vh, 64px);
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 14px 20px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,0.4));
}
.hero-player-art {
    width: 56px; height: 56px; border-radius: 12px;
    object-fit: cover; flex-shrink: 0;
    background: var(--bg-raised);
    box-shadow: 0 0 16px var(--accent-glow);
}
.hero-player-info { flex: 1; min-width: 0; text-align: left; }
.hero-player-label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent);
    display: flex; align-items: center; gap: 6px;
}
.hero-player-live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b;
    animation: liveBlink 1.6s ease-in-out infinite;
}
@keyframes liveBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero-player-song { font-weight: 700; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-player-artist { font-size: 0.82rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-player-dj {
    margin-top: 5px;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.78rem; font-weight: 700;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    padding: 3px 10px; border-radius: 99px;
    max-width: 100%;
}
.hero-player-dj i { font-size: 0.72rem; }
.hero-player-dj span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-player-dj.is-live { color: #ff5e8a; background: rgba(255,94,138,0.14); }
.hero-player-btn {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff; border: none; cursor: pointer; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.1rem;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: transform .15s ease;
}
.hero-player-btn:hover { transform: scale(1.06); }
.home-content {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: clamp(32px, 6vh, 64px) clamp(20px, 5vw, 48px);
}
.home-content-head { text-align: center; margin-bottom: clamp(28px, 5vh, 48px); }
.home-content-eyebrow {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.24em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.home-content-title {
    font-family: var(--font-display, 'Syne', sans-serif);
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.home-content-sub { color: var(--text-secondary); font-size: 1.02rem; }
#home-sec-chat.active { display: flex; flex-direction: column; flex: 1; }
.home-chat-wrap { flex: 1; position: relative; min-height: calc(100vh - 66px); }
@media (max-width: 760px) {
    .home-nav-links {
        position: fixed;
        top: 66px; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        padding: 8px;
        transform: translateY(-120%);
		visibility: hidden;
		pointer-events: none;
		transition: transform .25s ease, visibility 0s linear .25s;
        z-index: 9;
    }
	.home-nav-links.open {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform .25s ease, visibility 0s linear 0s;
    }
    .home-nav-link { width: 100%; text-align: left; padding: 14px 16px; }
    .home-nav-toggle { display: grid; place-items: center; }
}
#home-screen.in-chat .home-nav { display: none; }
#home-screen.in-chat .home-main { height: 100vh; height: 100dvh; overflow: hidden; }
#home-screen.in-chat #home-sec-chat .home-chat-wrap {
    height: 100vh;
    height: 100dvh;
}
html.kb-open #home-screen.in-chat .home-main,
html.kb-open #home-screen.in-chat #home-sec-chat .home-chat-wrap,
html.kb-open .app.in-home {
    height: var(--vvh) !important;
}
.login-screen.in-home {
    position: absolute;
    inset: 0;
    z-index: 5;
}
.app.in-home {
    height: 100%;
    position: absolute;
    inset: 0;
}
#home-sec-chat .home-chat-wrap {
    height: calc(100vh - 66px);
    height: calc(100dvh - 66px);
}
#home-horarios-body .sec-header { display: none; }
#home-horarios-body .sec-body { display: block; }
#home-horarios-body .prog-day-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    overflow: visible;
    margin-bottom: clamp(20px, 4vh, 32px);
    padding-bottom: 0;
}
#home-horarios-body .prog-day-tab {
    padding: 9px 20px;
    font-size: 0.92rem;
    border-radius: 99px;
}
#home-horarios-body .prog-day-tab.active {
    box-shadow: 0 0 16px var(--accent-glow);
}
#home-horarios-body .prog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
#home-horarios-body .prog-card {
    flex-direction: row;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    gap: 14px;
}
#home-horarios-body .prog-card-img {
    width: 64px; height: 64px;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--bg-input);
}
#home-horarios-body .prog-info { flex: 1; min-width: 0; }
#home-horarios-body .prog-name {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    margin: 2px 0;
}
#home-horarios-body .prog-time {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.82rem;
    min-width: 0;
}
#home-horarios-body .prog-dj {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: normal;
    overflow-wrap: anywhere;
}
#home-staff-body .sec-header,
#home-lore-body .sec-header { display: none; }
#home-staff-body .sec-body,
#home-lore-body .sec-body { padding: 0; display: block; }
#home-staff-body .staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
#home-staff-body .staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 22px;
    border-radius: 20px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    min-width: 0;
}
#home-staff-body .staff-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px var(--accent-glow);
}
#home-staff-body .staff-avatar-img {
    width: 96px; height: 96px; border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 18px var(--accent-glow);
    margin-bottom: 14px;
}
#home-staff-body .staff-name {
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: 1.3rem; font-weight: 800;
    margin: 0 0 8px;
    max-width: 100%;
    white-space: nowrap;
    line-height: 1.2;
}
#home-staff-body .staff-quote {
    font-size: 0.95rem; font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5; margin: 6px 0 12px;
    overflow-wrap: anywhere;
}
#home-staff-body .staff-hobbies-label {
    font-size: 0.8rem; font-weight: 700;
    color: var(--accent); margin: 12px 0 8px;
    display: flex; align-items: center; gap: 6px; justify-content: center;
}
#home-staff-body .staff-pills {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
    max-width: 100%;
}
#home-staff-body .staff-pill {
    font-size: 0.78rem; padding: 4px 11px; border-radius: 99px; font-weight: 600;
    overflow-wrap: anywhere;
}
#home-staff-body .staff-socials {
    display: flex; justify-content: center; gap: 16px;
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--border);
    width: 100%;
}
#home-staff-body .staff-social-link { font-size: 1.2rem; color: var(--text-secondary); transition: color .15s; }
#home-staff-body .staff-social-link:hover { color: var(--accent); }
#home-lore-body .lore-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    text-align: left;
}
#home-lore-body .lore-content p { margin-bottom: 1.2em; }
#ec-splash {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-base);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 18px;
    transition: opacity .5s ease, visibility .5s ease;
}
#ec-splash.hidden-splash { opacity: 0; visibility: hidden; pointer-events: none; }
.ec-splash-eclipse { position: relative; width: 90px; height: 90px; }
.ec-splash-sun {
    position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, var(--accent-2), var(--accent));
    box-shadow: 0 0 50px 8px var(--accent-glow);
    animation: splashPulse 1.6s ease-in-out infinite;
}
.ec-splash-moon {
    position: absolute; inset: 0; border-radius: 50%;
    background: var(--bg-base);
    transform: translate(-16%, -10%);
    animation: splashMoon 2.4s ease-in-out infinite;
}
@keyframes splashPulse { 0%,100%{box-shadow:0 0 50px 8px var(--accent-glow);} 50%{box-shadow:0 0 70px 16px var(--accent-glow);} }
@keyframes splashMoon { 0%,100%{transform:translate(-16%,-10%);} 50%{transform:translate(-4%,-4%);} }
.ec-splash-text {
    font-family: var(--font-display, 'Syne', sans-serif);
    font-weight: 800; font-size: 1.6rem;
    color: var(--text-primary); letter-spacing: -0.02em;
}
.ec-splash-sub { font-size: 0.9rem; color: var(--text-secondary); letter-spacing: 0.15em; text-transform: uppercase; }
@media (max-width: 900px) {
    #home-staff-body .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    #home-staff-body .staff-grid {
        grid-template-columns: 1fr;
    }
}
