/* ============================================================
   RADIO ECCI — Liquid Glass Design System
   iOS 26 inspired · Dark & Light themes · Mobile-first
   ============================================================ */

/* ---- Google Fonts fallback for Apple/Android sans-serif ---- */
/* Syne = display | Figtree = body */

/* ===========================================
   TOKENS — DARK THEME (default)
   =========================================== */
:root,
[data-theme="dark"] {
    /* Backgrounds */
    --bg-base:        #0a0f1e;
    --bg-surface:     #0e1628;

    /* Orbs */
    --orb-1: #1a3a6e;
    --orb-2: #6b0f1a;
    --orb-3: #c07800;
    --orb-4: #0f2a50;

    /* Glass */
    --glass-bg:       rgba(255, 255, 255, 0.07);
    --glass-bg-hover: rgba(255, 255, 255, 0.12);
    --glass-border:   rgba(255, 255, 255, 0.14);
    --glass-shine:    rgba(255, 255, 255, 0.22);
    --glass-shadow:   0 8px 40px rgba(0, 0, 0, 0.45),
                      inset 0 1px 0 rgba(255,255,255,0.18);
    --glass-blur:     blur(22px) saturate(180%);

    /* Brand */
    --c-blue:  #4a90d9;
    --c-red:   #e03545;
    --c-gold:  #f5b731;

    /* Text */
    --text-primary:  rgba(255, 255, 255, 0.95);
    --text-secondary:rgba(255, 255, 255, 0.60);
    --text-muted:    rgba(255, 255, 255, 0.35);

    /* Controls */
    --ctrl-bg:      rgba(255,255,255,0.10);
    --ctrl-border:  rgba(255,255,255,0.18);
    --ctrl-hover:   rgba(255,255,255,0.20);

    /* Chip */
    --chip-bg:       rgba(255,255,255,0.08);
    --chip-border:   rgba(255,255,255,0.16);
    --chip-active-bg: var(--c-gold);
    --chip-active-fg: #0a0f1e;

    /* Header */
    --header-bg:    rgba(10, 15, 30, 0.65);
    --header-border:rgba(255,255,255,0.10);

    /* Footer */
    --footer-bg:    rgba(255,255,255,0.04);
    --footer-border:rgba(255,255,255,0.08);

    /* Section label */
    --label-color:  var(--c-gold);

    /* Scrollbar */
    --scroll-thumb: rgba(255,255,255,0.18);
}

/* ===========================================
   TOKENS — LIGHT THEME
   =========================================== */
[data-theme="light"] {
    --bg-base:        #dce6f5;
    --bg-surface:     #e8edf5;

    --orb-1: #a8c8f8;
    --orb-2: #f5a8ae;
    --orb-3: #fcd88a;
    --orb-4: #8ab8f0;

    --glass-bg:       rgba(255, 255, 255, 0.55);
    --glass-bg-hover: rgba(255, 255, 255, 0.72);
    --glass-border:   rgba(255, 255, 255, 0.80);
    --glass-shine:    rgba(255, 255, 255, 0.90);
    --glass-shadow:   0 8px 40px rgba(12, 39, 100, 0.12),
                      inset 0 1px 0 rgba(255,255,255,0.90);
    --glass-blur:     blur(22px) saturate(200%);

    --c-blue:  #1557b0;
    --c-red:   #b71727;
    --c-gold:  #d48a00;

    --text-primary:  rgba(10, 20, 50, 0.92);
    --text-secondary:rgba(10, 20, 50, 0.58);
    --text-muted:    rgba(10, 20, 50, 0.38);

    --ctrl-bg:     rgba(0,0,0,0.06);
    --ctrl-border: rgba(0,0,0,0.12);
    --ctrl-hover:  rgba(0,0,0,0.12);

    --chip-bg:        rgba(0,0,0,0.06);
    --chip-border:    rgba(0,0,0,0.12);
    --chip-active-bg: var(--c-blue);
    --chip-active-fg: #ffffff;

    --header-bg:    rgba(220, 230, 245, 0.75);
    --header-border:rgba(255,255,255,0.70);

    --footer-bg:    rgba(0,0,0,0.04);
    --footer-border:rgba(0,0,0,0.08);

    --label-color: var(--c-blue);

    --scroll-thumb: rgba(0,0,0,0.18);
}

/* ===========================================
   RESET & BASE
   =========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100dvh;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    /* iOS notch support */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    touch-action: manipulation;
}

/* ===========================================
   FONDO ANIMADO — ORBS
   =========================================== */
.bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    will-change: transform;
}

.orb-1 {
    width: 55vw; height: 55vw;
    max-width: 600px; max-height: 600px;
    background: var(--orb-1);
    top: -10%; left: -15%;
    animation: drift1 18s ease-in-out infinite;
}
.orb-2 {
    width: 45vw; height: 45vw;
    max-width: 500px; max-height: 500px;
    background: var(--orb-2);
    top: 30%; right: -10%;
    animation: drift2 22s ease-in-out infinite;
}
.orb-3 {
    width: 35vw; height: 35vw;
    max-width: 400px; max-height: 400px;
    background: var(--orb-3);
    bottom: 10%; left: 20%;
    animation: drift3 26s ease-in-out infinite;
}
.orb-4 {
    width: 40vw; height: 40vw;
    max-width: 450px; max-height: 450px;
    background: var(--orb-4);
    bottom: -10%; right: 15%;
    animation: drift1 20s ease-in-out infinite reverse;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(4%, 6%) scale(1.06); }
    66%       { transform: translate(-3%, 3%) scale(0.96); }
}
@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(-5%, -4%) scale(1.08); }
    66%       { transform: translate(3%, 5%) scale(0.94); }
}
@keyframes drift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(6%, -5%) scale(1.10); }
}

/* Noise texture overlay */
.noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.35;
}

/* ===========================================
   GLASS UTILITY
   =========================================== */
.glass-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

/* Specular top-edge highlight */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--glass-shine) 30%,
        var(--glass-shine) 70%,
        transparent);
    pointer-events: none;
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--c-gold);
    color: #0a0f1e;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 10px;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===========================================
   COLORES DE MARCA
   =========================================== */
.c-blue { color: var(--c-blue); }
.c-red  { color: var(--c-red); }
.c-gold { color: var(--c-gold); }

/* ===========================================
   LAYOUT HELPERS
   =========================================== */
.container,
.section-inner {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2.5rem);
}

/* ===========================================
   HEADER
   =========================================== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--header-border);
    height: 62px;
    /* iOS notch */
    padding-top: env(safe-area-inset-top);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.header-inner {
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.logo img {
    width: 36px; height: 36px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.logo:hover img { transform: rotate(-8deg) scale(1.08); }
.logo-text {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}
.logo-text strong { color: var(--c-gold); }

/* Nav */
#nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
#nav-menu a {
    padding: 0.45rem 0.85rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: color 0.25s, background 0.25s;
}
#nav-menu a:hover,
#nav-menu a[aria-current="true"] {
    color: var(--text-primary);
    background: var(--ctrl-bg);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Theme toggle */
.theme-toggle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--ctrl-bg);
    border: 1px solid var(--ctrl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.25s, transform 0.25s;
}
.theme-toggle:hover { background: var(--ctrl-hover); transform: scale(1.08); }

/* Hamburguesa */
.menu-toggle {
    display: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--ctrl-bg);
    border: 1px solid var(--ctrl-border);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.bar {
    display: block;
    width: 18px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================
   BOTONES
   =========================================== */
.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #0a0f1e;
    background: var(--c-gold);
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(245,183,49,0.45), 0 4px 20px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s, transform 0.25s, background 0.25s;
    touch-action: manipulation;
}
.btn-glow:hover,
.btn-glow:focus-visible {
    background: #ffc83a;
    box-shadow: 0 0 50px rgba(245,183,49,0.65), 0 4px 24px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

.btn-glass {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.6rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    background: var(--ctrl-bg);
    border: 1px solid var(--ctrl-border);
    border-radius: 50px;
    transition: background 0.25s, transform 0.25s;
    touch-action: manipulation;
}
.btn-glass:hover,
.btn-glass:focus-visible {
    background: var(--ctrl-hover);
    transform: translateY(-2px);
}

/* ===========================================
   MAIN & SECTIONS
   =========================================== */
main {
    position: relative;
    z-index: 1;
}

section {
    padding-block: clamp(5rem, 10vw, 7rem);
}

.section-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--label-color);
    margin-bottom: 0.75rem;
}

section h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.section-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 0.04em;
}

/* ===========================================
   HERO — Geometric Animated
   =========================================== */
#Banner {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(62px + env(safe-area-inset-top));
    padding-inline: clamp(1rem, 5vw, 2rem);
    overflow: hidden;
    /* Dark neutral base so geometry pops */
    background: transparent;
}

/* ---- Geometric layer ---- */
.hero-geo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Concentric rotating rings */
.geo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
}

.ring-1 {
    width: min(520px, 90vw);
    height: min(520px, 90vw);
    border-color: rgba(74, 144, 217, 0.18);
    border-top-color: rgba(74, 144, 217, 0.6);
    animation: spin 12s linear infinite;
}
.ring-2 {
    width: min(400px, 70vw);
    height: min(400px, 70vw);
    border-color: rgba(245, 183, 49, 0.12);
    border-right-color: rgba(245, 183, 49, 0.5);
    animation: spin 18s linear infinite reverse;
}
.ring-3 {
    width: min(290px, 52vw);
    height: min(290px, 52vw);
    border-color: rgba(224, 53, 69, 0.12);
    border-bottom-color: rgba(224, 53, 69, 0.55);
    animation: spin 9s linear infinite;
}
.ring-4 {
    width: min(640px, 110vw);
    height: min(640px, 110vw);
    border-color: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(255, 255, 255, 0.18);
    animation: spin 28s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Equalizer bars (bottom center) */
.geo-eq {
    position: absolute;
    bottom: clamp(3rem, 8vh, 7rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 48px;
    opacity: 0.35;
}
.geo-eq span {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: var(--c-gold);
    animation: eqBounce 1.1s ease-in-out infinite alternate;
}
.geo-eq span:nth-child(1)  { height: 10px; animation-delay: 0.00s; }
.geo-eq span:nth-child(2)  { height: 22px; animation-delay: 0.07s; }
.geo-eq span:nth-child(3)  { height: 36px; animation-delay: 0.14s; }
.geo-eq span:nth-child(4)  { height: 28px; animation-delay: 0.21s; }
.geo-eq span:nth-child(5)  { height: 42px; animation-delay: 0.28s; }
.geo-eq span:nth-child(6)  { height: 18px; animation-delay: 0.35s; }
.geo-eq span:nth-child(7)  { height: 44px; animation-delay: 0.42s; }
.geo-eq span:nth-child(8)  { height: 30px; animation-delay: 0.35s; }
.geo-eq span:nth-child(9)  { height: 48px; animation-delay: 0.28s; }
.geo-eq span:nth-child(10) { height: 20px; animation-delay: 0.21s; }
.geo-eq span:nth-child(11) { height: 38px; animation-delay: 0.14s; }
.geo-eq span:nth-child(12) { height: 14px; animation-delay: 0.07s; }
.geo-eq span:nth-child(13) { height: 40px; animation-delay: 0.00s; }
.geo-eq span:nth-child(14) { height: 24px; animation-delay: 0.07s; }
.geo-eq span:nth-child(15) { height: 44px; animation-delay: 0.14s; }
.geo-eq span:nth-child(16) { height: 16px; animation-delay: 0.21s; }
.geo-eq span:nth-child(17) { height: 32px; animation-delay: 0.28s; }
.geo-eq span:nth-child(18) { height: 8px;  animation-delay: 0.35s; }
.geo-eq span:nth-child(19) { height: 26px; animation-delay: 0.42s; }
.geo-eq span:nth-child(20) { height: 12px; animation-delay: 0.49s; }

@keyframes eqBounce {
    0%   { transform: scaleY(0.2); opacity: 0.5; }
    100% { transform: scaleY(1);   opacity: 1; }
}

/* Orbiting dots */
.orbit {
    position: absolute;
    border-radius: 50%;
}
.orbit-a {
    width: min(460px, 80vw);
    height: min(460px, 80vw);
    animation: spin 14s linear infinite;
}
.orbit-b {
    width: min(340px, 60vw);
    height: min(340px, 60vw);
    animation: spin 20s linear infinite reverse;
}
.orbit-c {
    width: min(560px, 95vw);
    height: min(560px, 95vw);
    animation: spin 32s linear infinite;
}

.orbit-dot {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 7px; height: 7px;
    border-radius: 50%;
}
.orbit-a .orbit-dot { background: var(--c-blue);  box-shadow: 0 0 12px var(--c-blue); }
.orbit-b .orbit-dot { background: var(--c-gold);  box-shadow: 0 0 12px var(--c-gold); }
.orbit-c .orbit-dot { background: var(--c-red);   box-shadow: 0 0 10px var(--c-red); width: 5px; height: 5px; }

/* Radio emission waves (top left & right) */
.radio-waves {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.rwave {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(74, 144, 217, 0.2);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 3.6s ease-out infinite;
}
.rwave-1 { width: 200px; height: 200px; animation-delay: 0s; }
.rwave-2 { width: 200px; height: 200px; animation-delay: 1.2s; }
.rwave-3 { width: 200px; height: 200px; animation-delay: 2.4s; }

@keyframes ripple {
    0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(4.5); opacity: 0; }
}

/* ---- Hero content ---- */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    width: 100%;
    text-align: center;
    animation: fadeUp 0.9s cubic-bezier(.22,.84,.44,1) both;
}

.eyebrow {
    font-family: 'Figtree', sans-serif;
    font-size: 0.85rem;
    color: var(--c-gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

#Banner h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.h1-radio {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 9vw, 5rem);
    font-weight: 600;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
    width: 100%;
    /* offset the letter-spacing so it stays visually centered */
    padding-left: 0.55em;
}

.h1-ecci {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: clamp(5rem, 22vw, 13rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 0.88;
    text-align: center;
    width: 100%;
    /* Glass text effect */
    -webkit-text-stroke: 2px transparent;
    filter: drop-shadow(0 0 40px rgba(74,144,217,0.25));
}

.h1-ecci .c-blue,
.h1-ecci .c-red,
.h1-ecci .c-gold {
    display: inline;
}

.hero-tag {
    font-family: 'Syne', sans-serif;
    font-size: clamp(0.68rem, 1.8vw, 0.85rem);
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.2rem;
    max-width: 460px;
    margin-inline: auto;
    text-align: center;
}

/* Scroll hint */
.scroll-hint {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}
.scroll-dot {
    display: block;
    width: 6px; height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    margin: 0 auto;
    animation: bounce 1.8s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0);  opacity: 0.4; }
    50%       { transform: translateY(8px); opacity: 1; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Light theme: rings slightly darker */
[data-theme="light"] .ring-1 { border-color: rgba(21, 87, 176, 0.10); border-top-color:  rgba(21, 87, 176, 0.40); }
[data-theme="light"] .ring-2 { border-color: rgba(212, 138,  0, 0.10); border-right-color: rgba(212, 138, 0, 0.40); }
[data-theme="light"] .ring-3 { border-color: rgba(183, 23, 39, 0.10);  border-bottom-color:rgba(183, 23, 39, 0.40); }
[data-theme="light"] .ring-4 { border-color: rgba(0,0,0,0.04);         border-left-color:  rgba(0,0,0,0.12); }
[data-theme="light"] .geo-eq span { background: var(--c-blue); }
[data-theme="light"] .rwave { border-color: rgba(21,87,176,0.18); }

/* Mobile adjustments */
@media (max-width: 639px) {
    .h1-radio { letter-spacing: 0.35em; padding-left: 0.35em; }
    .orbit-c  { display: none; }
    .geo-eq   { bottom: 2rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .geo-ring, .orbit, .rwave, .geo-eq span,
    .scroll-dot, .hero-content { animation: none !important; }
}

/* ===========================================
   ABOUT US
   =========================================== */
#AboutUs { background: transparent; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.about-text-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.about-text-card p {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.about-text-card p:last-of-type { margin-bottom: 0; }
.about-text-card strong { color: var(--text-primary); }

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pillar {
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: background 0.3s, transform 0.25s;
}
.pillar:hover { background: var(--glass-bg-hover); transform: translateY(-4px); }

.pillar-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.6rem;
}
.pillar h3 {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 0.45rem;
}
.pillar p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===========================================
   RADIO PLAYER
   =========================================== */
#Tune { background: transparent; }

.radio-player {
    padding: clamp(1.25rem, 4vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Wave bars */
.wave-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 32px;
    opacity: 0.25;
    transition: opacity 0.4s;
}
.wave-container.playing { opacity: 1; }
.wave-bar {
    display: inline-block;
    width: 3px;
    background: var(--c-gold);
    border-radius: 2px;
    height: 4px;
}
.wave-container.playing .wave-bar {
    animation: waveAnim 0.9s ease-in-out infinite alternate;
}
.wave-bar:nth-child(1)  { animation-delay: 0.00s; }
.wave-bar:nth-child(2)  { animation-delay: 0.08s; }
.wave-bar:nth-child(3)  { animation-delay: 0.16s; }
.wave-bar:nth-child(4)  { animation-delay: 0.24s; }
.wave-bar:nth-child(5)  { animation-delay: 0.32s; }
.wave-bar:nth-child(6)  { animation-delay: 0.40s; }
.wave-bar:nth-child(7)  { animation-delay: 0.32s; }
.wave-bar:nth-child(8)  { animation-delay: 0.24s; }
.wave-bar:nth-child(9)  { animation-delay: 0.16s; }
.wave-bar:nth-child(10) { animation-delay: 0.08s; }
.wave-bar:nth-child(11) { animation-delay: 0.00s; }
.wave-bar:nth-child(12) { animation-delay: 0.08s; }
@keyframes waveAnim {
    0%   { height: 3px; }
    100% { height: 28px; }
}

/* Now Playing */
.now-playing {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--ctrl-bg);
    border: 1px solid var(--ctrl-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
}

.station-art {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.station-art img {
    width: 100%; height: 100%;
    object-fit: contain;
}
.station-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.station-meta { flex: 1; min-width: 0; }
.station-status {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-gold);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.station-name {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}
.station-tags {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-pill {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--c-red);
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0.28rem 0.6rem;
    border-radius: 6px;
}
.live-dot {
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* Player controls */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ctrl-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--ctrl-bg);
    border: 1px solid var(--ctrl-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
    touch-action: manipulation;
    flex-shrink: 0;
}
.ctrl-btn:hover,
.ctrl-btn:focus-visible {
    background: var(--ctrl-hover);
    transform: scale(1.1);
}

.ctrl-main {
    width: 62px; height: 62px;
    background: var(--c-gold);
    border-color: var(--c-gold);
    color: #0a0f1e;
    box-shadow: 0 0 28px rgba(245,183,49,0.4);
}
.ctrl-main:hover,
.ctrl-main:focus-visible {
    background: #ffc83a;
    border-color: #ffc83a;
    box-shadow: 0 0 44px rgba(245,183,49,0.6);
    transform: scale(1.08);
}

/* Volume */
.vol-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}
#volumeRange {
    -webkit-appearance: none;
    appearance: none;
    width: 80px; height: 4px;
    border-radius: 2px;
    background: var(--ctrl-border);
    outline: none;
    cursor: pointer;
}
#volumeRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--c-gold);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(245,183,49,0.5);
}
#volumeRange::-moz-range-thumb {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--c-gold);
    border: none;
    cursor: pointer;
}

/* Genre chips */
.genre-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.chip {
    padding: 0.38rem 0.9rem;
    border-radius: 50px;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    color: var(--text-secondary);
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
    touch-action: manipulation;
}
.chip:hover,
.chip:focus-visible {
    background: var(--ctrl-hover);
    color: var(--text-primary);
    transform: scale(1.04);
}
.chip.active {
    background: var(--chip-active-bg);
    color: var(--chip-active-fg);
    border-color: var(--chip-active-bg);
    font-weight: 700;
    box-shadow: 0 0 16px rgba(245,183,49,0.3);
}

/* Station list */
.station-list-wrap {
    max-height: 210px;
    overflow-y: auto;
    border-radius: 12px;
    background: rgba(0,0,0,0.12);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) transparent;
}
.station-list-wrap::-webkit-scrollbar { width: 4px; }
.station-list-wrap::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-radius: 2px;
}

.station-list { list-style: none; }

.station-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
    touch-action: manipulation;
}
.station-item:last-child { border-bottom: none; }
.station-item:hover,
.station-item:focus-visible {
    background: var(--ctrl-hover);
    outline: none;
}
.station-item.active {
    background: rgba(245,183,49,0.12);
    border-left: 3px solid var(--c-gold);
}

.station-item-favicon {
    width: 32px; height: 32px;
    border-radius: 7px;
    object-fit: contain;
    background: var(--glass-bg);
    flex-shrink: 0;
}
.station-item-info { flex: 1; min-width: 0; text-align: left; }
.station-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.station-item-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.station-loading {
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.player-credit {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}
.player-credit a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===========================================
   SOCIAL
   =========================================== */
#Social { background: transparent; }

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
    touch-action: manipulation;
}
.social-card:hover,
.social-card:focus-visible {
    background: var(--glass-bg-hover);
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.3), inset 0 1px 0 var(--glass-shine);
}

.social-card img {
    width: 52px; height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    transition: transform 0.25s;
}
.social-card:hover img { transform: scale(1.1) rotate(-4deg); }

.social-name {
    font-family: 'Syne', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
}
.social-handle {
    font-size: 0.72rem;
    color: var(--text-muted);
    word-break: break-all;
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
    position: relative;
    z-index: 1;
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding-block: 2rem;
    /* iPhone home bar */
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

.footer-inner {
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.footer-brand img {
    width: 32px; height: 32px;
    object-fit: contain;
    opacity: 0.7;
}
.footer-brand strong { color: var(--text-primary); }
.footer-brand a {
    color: var(--c-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
footer nav a {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    transition: color 0.25s, background 0.25s;
    text-decoration: underline;
    text-underline-offset: 3px;
}
footer nav a:hover { color: var(--text-primary); background: var(--ctrl-bg); }

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.footer-copy a { color: var(--c-gold); }

/* ===========================================
   RESPONSIVE — TABLET 640px+
   =========================================== */
@media (min-width: 640px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    .social-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ===========================================
   RESPONSIVE — DESKTOP 900px+
   =========================================== */
@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================================
   RESPONSIVE — MÓVIL <640px
   =========================================== */
@media (max-width: 639px) {
    .menu-toggle { display: flex; }

    #nav-menu {
        display: none;
        position: fixed;
        top: calc(62px + env(safe-area-inset-top));
        left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--header-bg);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        backdrop-filter: blur(24px) saturate(180%);
        border-bottom: 1px solid var(--header-border);
        padding: 0.5rem 1rem 1rem;
        z-index: 999;
    }
    #nav-menu.open { display: flex; }

    #nav-menu a {
        padding: 0.85rem 1rem;
        border-radius: 10px;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--ctrl-border);
        width: 100%;
    }
    #nav-menu a:last-child { border-bottom: none; }

    #Banner h1 { font-size: clamp(3rem, 18vw, 4.5rem); }

    .radio-player { border-radius: 16px; }

    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hacer tap targets mínimo 44px (iOS HIG) */
    .ctrl-btn { min-width: 44px; min-height: 44px; }
    .chip { min-height: 36px; padding-block: 0.5rem; }
    .station-item { min-height: 52px; }
}

/* ===========================================
   REDUCIR MOVIMIENTO
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .orb { animation: none !important; }
}