/* SEBAJI home — tipografía y tokens alineados al look ritual */

:root {
    --gold:        #e8c9a0;
    --gold-dim:    #c4a484;
    --amber:       #e8943a;
    --accent:      #d47a24;
    --copper:      #a07060;
    --forest:      #1b3022;
    --earth:       #4a3728;
    --bg-deep:     #0a0806;
    --bg:          #14100c;
    --panel:       rgba(28, 22, 18, 0.78);
    --panel-edge:  rgba(232, 201, 160, 0.14);
    --text:        #f5ebe0;
    --text-soft:   rgba(245, 235, 224, 0.62);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(232, 148, 58, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 45% 35% at 12% 88%, rgba(27, 48, 34, 0.35) 0%, transparent 50%),
        linear-gradient(165deg, #0f0c09 0%, var(--bg-deep) 45%, #120e0a 100%);
    color: var(--text);
    overflow-x: hidden;
    opacity: 0;
    animation: pageFade 0.9s ease forwards;
}

@keyframes pageFade { to { opacity: 1; } }

@keyframes glowBreathe {
    0%, 100% { text-shadow: 0 0 18px rgba(232, 201, 160, 0.22); opacity: 0.92; }
    50%      { text-shadow: 0 0 36px rgba(232, 148, 58, 0.45); opacity: 1; color: var(--gold); }
}

/* ── Hero ── */
.hero {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px 40px;
    position: relative;
}

.hero h1 {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 300;
    letter-spacing: clamp(10px, 2.5vw, 22px);
    color: var(--gold-dim);
    animation: glowBreathe 7s ease-in-out infinite;
}

.hero-tagline {
    margin-top: 14px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.hero-presence {
    margin-top: 22px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: rgba(196, 164, 132, 0.55);
}

.hero-share {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-share a {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-soft);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.25s, border-color 0.25s;
}

.hero-share a:hover {
    color: var(--gold);
    border-bottom-color: rgba(232, 201, 160, 0.45);
}

/* ── Main ── */
.main-grid {
    max-width: 820px;
    margin: 0 auto;
    padding: 8px 18px 40px;
}

.section {
    margin-bottom: 36px;
    padding: 22px 20px;
    background: var(--panel);
    border: 1px solid var(--panel-edge);
}

#now-playing {
    text-align: center;
    color: var(--gold-dim);
    font-size: 1.35em;
    min-height: 1.5em;
    margin-bottom: 12px;
    letter-spacing: 0.12em;
    font-weight: 300;
    text-transform: uppercase;
}

#visualizer {
    width: 100%;
    height: 96px;
    display: block;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(232, 201, 160, 0.08);
}

.player-shell {
    margin-top: 14px;
    position: relative;
}

.player-shell audio {
    width: 100%;
    height: 40px;
    opacity: 0.85;
}

.play-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.btn {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid rgba(232, 201, 160, 0.28);
    background: transparent;
    color: var(--gold);
    padding: 14px 12px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
    background: rgba(232, 201, 160, 0.1);
    border-color: rgba(232, 201, 160, 0.5);
}

.btn-accent {
    border-color: rgba(232, 148, 58, 0.45);
    color: var(--amber);
}

.btn-accent:hover {
    background: rgba(232, 148, 58, 0.12);
}

.btn-fill {
    width: 100%;
    margin-top: 8px;
    background: rgba(232, 201, 160, 0.12);
}

.track-list {
    list-style: none;
    padding: 12px 0 0;
    margin: 16px 0 0;
    max-height: 240px;
    overflow-y: auto;
    font-size: 0.95em;
    border-top: 1px solid rgba(232, 201, 160, 0.1);
}

.track-list li {
    padding: 11px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    color: var(--text-soft);
    transition: color 0.2s, background 0.2s;
}

.track-list li:hover { color: var(--text); }

.active-track {
    color: var(--amber) !important;
    background: rgba(232, 148, 58, 0.06);
    border-left: 2px solid var(--amber);
    padding-left: 6px;
}

/* ── Medicina links (post-hero) ── */
.medicina-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 36px;
}

.med-link {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 22px 16px;
    border: 1px solid rgba(232, 201, 160, 0.14);
    background: rgba(20, 16, 12, 0.55);
    transition: border-color 0.3s, background 0.3s;
}

.med-link:hover { border-color: rgba(232, 201, 160, 0.4); }

.med-title {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    color: var(--gold);
    margin-bottom: 6px;
}

.med-sub {
    font-size: 0.95em;
    font-style: italic;
    color: var(--text-soft);
}

.ayu-style { border-color: rgba(78, 110, 93, 0.45); }
.rape-style { border-color: rgba(161, 136, 127, 0.4); }

/* ── Media grid ── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 36px;
}

.video-item img,
.video-item video {
    width: 100%;
    display: block;
    border: 1px solid rgba(232, 201, 160, 0.18);
    opacity: 0.88;
    transition: opacity 0.25s;
}

.video-item a:hover img { opacity: 1; }

/* ── Chat ── */
#chat-box {
    height: 180px;
    overflow-y: auto;
    font-size: 0.95em;
    border-bottom: 1px solid rgba(196, 164, 132, 0.12);
    margin-bottom: 14px;
    padding: 8px;
}

.msg {
    margin-bottom: 10px;
    border-left: 2px solid var(--accent);
    padding-left: 10px;
    color: var(--text-soft);
}

.msg b { color: var(--gold-dim); font-weight: 500; }

.chat-form { display: flex; flex-direction: column; gap: 8px; }

.chat-form input[type="text"] {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 164, 132, 0.18);
    padding: 12px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 1em;
}

.chat-form input[type="text"]:focus {
    outline: none;
    border-color: rgba(196, 164, 132, 0.4);
}

.admin-gate { text-align: center; margin-top: 16px; padding-bottom: 8px; }

.admin-gate-link {
    display: inline-block;
    width: 10px;
    height: 10px;
    padding: 16px;
    margin: -16px;
    box-sizing: content-box;
    border-radius: 50%;
    border: 1px solid rgba(196, 164, 132, 0.25);
    background: var(--gold-dim);
    background-clip: content-box;
    opacity: 0.35;
    text-decoration: none;
}

.home-footer {
    text-align: center;
    padding: 56px 24px 48px;
    border-top: 1px solid rgba(196, 164, 132, 0.08);
}

.footer-visits {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-visits-num {
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--gold-dim);
    letter-spacing: 3px;
    line-height: 1;
}

.footer-visits-lbl {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(196, 164, 132, 0.38);
}

.footer-copy {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.62rem;
    color: rgba(196, 164, 132, 0.28);
    letter-spacing: 0.2em;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .medicina-nav { grid-template-columns: 1fr; }
    .play-actions { grid-template-columns: 1fr; }
    .hero { min-height: 58vh; padding-top: 48px; }
}
