/* Fm Del Río 103.5 - estilos del sitio */
:root {
    --green: #5e9a2b;
    --green-dark: #2f5d1e;
    --river: #b5764a;
    --gold: #e9c46a;
    --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    color: var(--white);
    background: #1d3312;
    overflow-x: hidden;
}

/* Fondo a pantalla completa */
.bg {
    position: fixed;
    inset: 0;
    background: url(../bk.jpg) center / cover no-repeat;
    animation: zoom 28s ease-in-out infinite alternate;
    z-index: -2;
}
.bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(20,40,10,.6));
}
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.1); } }

.page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 40px);
    gap: clamp(14px, 2.5vh, 22px);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    animation: reveal .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.d1 { animation-delay: .1s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .5s; }
.d4 { animation-delay: .7s; } .d5 { animation-delay: .9s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* Cabecera */
.head { text-align: center; }
.sub {
    display: inline-block;
    font-size: clamp(14px, 3.5vw, 18px);
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.title {
    font-size: clamp(32px, 9vw, 62px);
    font-weight: 800;
    line-height: 1.05;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: linear-gradient(180deg, #fff 45%, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 18px rgba(0,0,0,.6));
    transition: transform .4s, letter-spacing .4s;
}
.title:hover { transform: scale(1.03); letter-spacing: .07em; }

/* Tarjeta glass */
.card {
    width: 100%;
    max-width: 480px;
    padding: clamp(18px, 4vw, 28px);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(94,154,43,.38), rgba(20,40,10,.5));
    border: 1px solid rgba(233,196,106,.55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    transition: transform .4s, box-shadow .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0,0,0,.45); }

/* Player */
.player { display: flex; align-items: center; gap: clamp(12px, 3vw, 20px); }

.play {
    flex: none;
    width: clamp(60px, 16vw, 76px);
    height: clamp(60px, 16vw, 76px);
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--green-dark);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px rgba(0,0,0,.35);
    transition: transform .25s, box-shadow .25s;
    position: relative;
}
.play:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(255,255,255,.35); }
.play:active { transform: scale(.95); }
.play svg { width: 42%; height: 42%; fill: currentColor; }
.play .ico-pause { display: none; }
.playing .play .ico-play { display: none; }
.playing .play .ico-pause { display: block; }
.playing .play::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--white);
    animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

.info { flex: 1; min-width: 0; }
.live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.now {
    font-size: clamp(14px, 3.6vw, 16px);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#sonic_title { display: inline; }

/* Ecualizador */
.eq { display: flex; align-items: flex-end; gap: 4px; height: 28px; margin-top: 8px; }
.eq span {
    width: 5px;
    height: 20%;
    border-radius: 3px;
    background: linear-gradient(var(--gold), var(--white));
    transition: height .3s;
}
.playing .eq span { animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(2n) { animation-delay: -.3s !important; }
.eq span:nth-child(3n) { animation-delay: -.6s !important; }
.eq span:nth-child(4n) { animation-delay: -.15s !important; }
.eq span:nth-child(5n) { animation-delay: -.8s !important; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }

/* Volumen */
.vol { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.vol svg { width: 20px; height: 20px; fill: var(--white); flex: none; }
.vol input {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    background: rgba(255,255,255,.35);
    outline: none;
    cursor: pointer;
}
.vol input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
    transition: transform .2s;
}
.vol input::-webkit-slider-thumb:hover { transform: scale(1.25); }
.vol input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--white); }

/* Información */
.info-card {
    width: 100%;
    max-width: 480px;
    display: grid;
    gap: 10px;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(20,40,10,.42);
    border: 1px solid rgba(233,196,106,.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    transition: transform .3s, background .3s, border-color .3s;
}
.info-item:hover { transform: translateX(6px); background: rgba(47,93,30,.6); border-color: var(--gold); }
.info-item .ico {
    flex: none;
    width: 44px; height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold), var(--river));
    transition: transform .4s;
}
.info-item:hover .ico { transform: rotate(-8deg) scale(1.1); }
.info-item .ico svg { width: 22px; height: 22px; fill: var(--white); }
.info-item small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.info-item strong { display: block; font-size: clamp(16px, 4.2vw, 19px); line-height: 1.2; }
.info-item em { display: block; font-style: normal; font-size: 13px; opacity: .85; }

/* Copyright */
.copy {
    max-width: 480px;
    padding-bottom: 70px;
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: .04em;
    text-align: center;
    opacity: .9;
    text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.copy a { color: var(--gold); font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.copy a:hover { color: var(--white); border-bottom-color: var(--white); }

/* WhatsApp flotante abajo a la derecha */
.wsp {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(16px, 3vw, 28px);
    z-index: 10;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--green-dark), var(--green) 55%, var(--gold));
    border: 2px solid rgba(255,255,255,.85);
    box-shadow: 0 10px 28px rgba(0,0,0,.45);
    text-decoration: none;
    opacity: 0;
    transform: scale(.3) translateY(40px);
    animation: wspIn .8s 1.1s cubic-bezier(.3,1.5,.5,1) forwards, wspFloat 3.2s 2s ease-in-out infinite;
    transition: box-shadow .3s, filter .3s;
}
.wsp::before, .wsp::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: wspRing 2.4s ease-out infinite;
    pointer-events: none;
}
.wsp::after { animation-delay: 1.2s; }
.wsp svg { width: 32px; height: 32px; fill: var(--white); transition: transform .4s; position: relative; }
.wsp:hover { box-shadow: 0 14px 36px rgba(233,196,106,.55); filter: brightness(1.1); }
.wsp:hover svg { transform: rotate(-14deg) scale(1.2); }
.wsp-tip {
    position: absolute;
    right: 74px;
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: var(--green-dark);
    background: var(--white);
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
    opacity: 0;
    transform: translateX(14px);
    pointer-events: none;
    transition: opacity .3s, transform .3s;
}
.wsp:hover .wsp-tip, .wsp:focus-visible .wsp-tip { opacity: 1; transform: none; }
@keyframes wspIn { to { opacity: 1; transform: none; } }
@keyframes wspFloat { 50% { transform: translateY(-6px); } }
@keyframes wspRing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }

@media (max-width: 380px) {
    .card { border-radius: 22px; }
    .eq { display: none; }
    .wsp { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
}
