:root {
    --navy: #272E68;
    --navy-light: #3a4299;
    --yellow: #FFED00;
    --red: #E62234;
    --blue: #0F70B7;
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-300: #DEE2E6;
    --gray-600: #6C757D;
    --gray-900: #212529;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w: 1100px;
    --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-300);
    z-index: 1000;
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    font-size: 1rem;
}

.nav-logo img { height: 72px; width: auto; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color .2s;
}

.nav-links a:hover { color: var(--navy); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

/* Hero */
#inicio {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
}

.hero-content { max-width: 640px; }

.hero-logo {
    width: 280px;
    height: auto;
    margin-bottom: 32px;
}

#inicio h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero-sub {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 480px;
    margin: 0 auto 32px;
}

.btn {
    display: inline-flex;
    padding: 12px 32px;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background .2s;
}

.btn:hover { background: var(--navy-light); }

/* Sections */
section { padding: 80px 0; }

section:nth-child(even) { background: var(--gray-50); }

section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 720px;
    margin-bottom: 40px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 28px;
    transition: box-shadow .2s;
}

.info-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--yellow);
    display: inline-block;
}

.info-card p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.7; }
.info-card .small { margin-top: 8px; font-size: 0.85rem; }

/* Objectives */
.objectives-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.objectives-list li {
    padding: 16px 20px;
    background: var(--white);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.95rem;
    color: var(--gray-900);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.objectives-list li::before {
    content: "▸";
    color: var(--blue);
    margin-right: 10px;
    font-weight: 700;
}

/* Tabs */
.socios-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-300);
}

.tab-btn {
    padding: 10px 28px;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: color .2s, border-color .2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: var(--font);
}

.tab-btn.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

.tab-btn:hover { color: var(--navy); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Table */
.socios-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.socios-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
}

.socios-table th:first-child { border-radius: var(--radius) 0 0 0; }
.socios-table th:last-child { border-radius: 0 var(--radius) 0 0; }

.socios-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-300);
}

.socios-table tr:hover td { background: var(--gray-50); }

.socios-table a {
    color: var(--blue);
    text-decoration: none;
}
.socios-table a:hover { text-decoration: underline; }

.stream-btn {
    display: inline-block;
    padding: 3px 10px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background .18s;
}
.stream-btn:hover { background: var(--navy-light); }

/* ===== Radio Player ===== */
body.player-open { padding-bottom: 72px; }

#radio-player {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to bottom, #1e2354 0%, #141836 100%);
    border-top: 2px solid rgba(255, 237, 0, 0.25);
    box-shadow: 0 -6px 28px rgba(0,0,0,0.55);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(.4,0,.2,1);
}
#radio-player.visible { transform: translateY(0); }

.rp-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.rp-logo {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .75;
    flex-shrink: 0;
}

.rp-info { min-width: 150px; flex-shrink: 0; overflow: hidden; }
.rp-station {
    color: #FFED00;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}
.rp-freq-txt {
    color: rgba(255,255,255,.42);
    font-size: 0.68rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-dial { flex: 1; min-width: 0; }

.rp-scale-wrap {
    position: relative;
    height: 42px;
    background: #080c20;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.07);
    overflow: visible;
    margin-bottom: 2px;
}
/* Fade en los bordes para que el dial "continúe" más allá */
.rp-scale-wrap::before,
.rp-scale-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 18px;
    z-index: 3;
    pointer-events: none;
    border-radius: 4px;
}
.rp-scale-wrap::before {
    left: 0;
    background: linear-gradient(to right, #080c20 40%, transparent);
}
.rp-scale-wrap::after {
    right: 0;
    background: linear-gradient(to left, #080c20 40%, transparent);
}

.rp-tick {
    position: absolute;
    bottom: 0;
    width: 1px;
    height: 9px;
    background: rgba(255,237,0,.3);
    transform: translateX(-50%);
    pointer-events: none;
}
.rp-tick-lbl {
    position: absolute;
    bottom: 11px;
    font-size: 0.52rem;
    color: rgba(255,237,0,.38);
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
    font-family: var(--font);
}

.rp-dot {
    position: absolute;
    top: 5px;
    width: 7px; height: 7px;
    background: rgba(255,237,0,.55);
    border-radius: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: background .15s, transform .15s;
    z-index: 1;
}
.rp-dot:hover { background: #fff; transform: translateX(-50%) scale(1.35); }
.rp-dot.active { background: var(--red); box-shadow: 0 0 7px rgba(230,34,52,.7); }

.rp-needle {
    position: absolute;
    top: -5px; bottom: -2px;
    width: 2px;
    background: var(--red);
    transform: translateX(-50%);
    transition: left .5s cubic-bezier(.4,0,.2,1);
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 5px rgba(230,34,52,.5);
}
.rp-needle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--red);
}

.rp-band-lbl {
    text-align: center;
    font-size: 0.55rem;
    color: rgba(255,255,255,.22);
    letter-spacing: .06em;
    line-height: 1;
}

.rp-controls { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }

.rp-skip-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s, color .18s;
    flex-shrink: 0;
}
.rp-skip-btn:hover { background: rgba(255,255,255,.22); color: var(--white); }

.rp-play-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    transition: background .18s, transform .1s;
    flex-shrink: 0;
}
.rp-play-btn:hover:not(:disabled) { background: #c41e2d; transform: scale(1.06); }
.rp-play-btn:disabled { background: rgba(255,255,255,.12); cursor: default; color: rgba(255,255,255,.35); }

.rp-vol { display: flex; align-items: center; gap: 5px; }
.rp-vol-icon { color: rgba(255,255,255,.45); flex-shrink: 0; }
#rp-vol { width: 64px; accent-color: var(--yellow); cursor: pointer; }

.rp-close-btn {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.5);
    border: none;
    font-size: 0.7rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s, color .18s;
}
.rp-close-btn:hover { background: rgba(255,255,255,.2); color: var(--white); }

@media (max-width: 768px) {
    .rp-inner { padding: 6px 14px; gap: 8px; }
    .rp-logo { display: none; }
    .rp-info { min-width: 110px; }
    .rp-station { font-size: 0.76rem; }
    #rp-vol { width: 46px; }
}
@media (max-width: 480px) {
    .rp-inner { flex-wrap: wrap; }
    .rp-dial { order: 5; flex-basis: 100%; }
    body.player-open { padding-bottom: 110px; }
}

/* Directiva */
.directiva-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.directiva-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    transition: box-shadow .2s;
}

.directiva-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.directiva-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.directiva-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Contacto */
#contacto .contact-info p {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--gray-600);
}

#contacto .contact-info a {
    color: var(--blue);
    text-decoration: none;
}

#contacto .contact-info a:hover { text-decoration: underline; }

/* Footer */
footer {
    padding: 32px 0;
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--gray-300);
        gap: 12px;
    }

    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }

    #inicio h1 { font-size: 1.6rem; }
    .hero-logo { width: 100px; }
    section { padding: 60px 0; }
    section h2 { font-size: 1.4rem; }
    .socios-table { font-size: 0.8rem; }
    .socios-table th, .socios-table td { padding: 8px 10px; }
}

@media (max-width: 480px) {
    .info-grid, .directiva-grid { grid-template-columns: 1fr; }
    .socios-table { font-size: 0.75rem; }
    .socios-table th, .socios-table td { padding: 6px 8px; }
}
