/*
Theme Name: Florencia Radio 104.1
Theme URI:  https://florencia1041.com
Author:     JORODev
Description: Tema oficial 104.1 Florencia — La Radio de Todos.
Version:     2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0+
Text Domain: florencia-radio
*/

/* ============================================================
   VARIABLES — LIGHT MODE
   ============================================================ */
:root {
    --red:        #e81c2e;
    --red-dark:   #b91c1c;
    --red-darker: #7f1d1d;
    --yellow:     #fbbf24;
    --yellow-dk:  #d97706;
    --blue:       #2563eb;
    --green:      #059669;
    --purple:     #7c3aed;

    --bg:         #f0f0f0;
    --surface:    rgba(255,255,255,0.92);
    --surface2:   rgba(255,255,255,0.75);
    --glass:      rgba(255,255,255,0.25);
    --glass-bd:   rgba(255,255,255,0.4);
    --text:       #1f2937;
    --text-muted: #6b7280;
    --border:     rgba(0,0,0,0.08);

    --radius-sm:  0.75rem;
    --radius:     1rem;
    --radius-lg:  1.25rem;
    --radius-xl:  1.5rem;
    --shadow:     0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.18);
    --transition: all 0.25s ease;
}

/* ============================================================
   DARK MODE
   ============================================================ */
body.dark-mode {
    --bg:         #0f0f1a;
    --surface:    rgba(20,20,40,0.95);
    --surface2:   rgba(30,30,55,0.85);
    --glass:      rgba(255,255,255,0.06);
    --glass-bd:   rgba(255,255,255,0.12);
    --text:       #f1f5f9;
    --text-muted: #94a3b8;
    --border:     rgba(255,255,255,0.08);
}

body.dark-mode .news-card,
body.dark-mode .chat-container,
body.dark-mode .programacion-card {
    background: var(--surface);
    color: var(--text);
}

body.dark-mode .news-card .news-content h4,
body.dark-mode .news-card .news-content a { color: var(--text); }

body.dark-mode .footer-box {
    background: var(--surface2);
    border-color: var(--glass-bd);
}

body.dark-mode .header-main {
    background: rgba(10,10,25,0.98);
}

body.dark-mode .navbar-menu nav a { color: #e2e8f0; }
body.dark-mode .navbar-menu nav a:hover { color: var(--red); }

/* ============================================================
   RESET Y BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    transition: background 0.3s, color 0.3s;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; }

/* ============================================================
   FONDO
   ============================================================ */
.site-background {
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;
    background-image: url('assets/images/bg_104-1.png');
    background-size: 100% 100%;
    background-repeat: repeat-y;
    opacity: 0.85;
    transition: opacity 0.3s;
}

body.dark-mode .site-background { opacity: 0.2; }

/* ============================================================
   CINTA SUPERIOR — NAVBAR TOP
   ============================================================ */
.navbar-top {
    background: linear-gradient(90deg, #b91c1c 0%, var(--red) 40%, #c0392b 100%);
    padding: 0.45rem 1rem;
    box-shadow: 0 2px 12px rgba(220,38,38,0.5);
    position: relative;
    overflow: hidden;
}

.navbar-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg, transparent, transparent 10px,
        rgba(255,255,255,0.04) 10px, rgba(255,255,255,0.04) 20px
    );
}

.navbar-top-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
}

.badge-live {
    background: rgba(0,0,0,0.35);
    color: white;
    padding: 0.2rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-live::before {
    content: '';
    width: 7px; height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1.4s infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.navbar-top .now-show-name { color: white; font-size: 0.78rem; font-weight: 600; }
.navbar-top .now-show-time { color: rgba(255,255,255,0.75); font-size: 0.78rem; }

.navbar-top .social-icons { display: flex; gap: 0.5rem; }
.navbar-top .social-icons a {
    color: white;
    opacity: 0.85;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}
.navbar-top .social-icons a:hover { opacity: 1; }

.btn-live {
    background: rgba(0,0,0,0.3);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-live:hover { background: rgba(0,0,0,0.5); }

/* Botón dark mode */
.dark-toggle {
    background: rgba(0,0,0,0.2);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.dark-toggle:hover { background: rgba(0,0,0,0.4); }

/* ============================================================
   HEADER PRINCIPAL — LOGO + MENÚ
   ============================================================ */
.header-main {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    transition: background 0.3s;
}

.logo-container {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo-img {
    width: 100%;
    max-height: 72px;
    height: auto;
    object-fit: contain;
    padding: 0.35rem;
}

.navbar-menu {
    grid-column: span 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.5rem;
    gap: 1rem;
}

.navbar-menu nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.navbar-menu nav a {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.navbar-menu nav a:hover,
.navbar-menu nav .current-menu-item > a {
    color: var(--red);
    background: rgba(232,28,46,0.08);
}

.search-icon {
    color: var(--text);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.35rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-icon:hover { color: var(--red); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.4rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================================
   CONTAINER Y GRID
   ============================================================ */
.container { padding: 0.5rem; }

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.items-start { align-items: flex-start; }

/* ============================================================
   PLAYER CARD
   ============================================================ */
.player-card {
    background: linear-gradient(160deg, #e81c2e 0%, #9b0000 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(232,28,46,0.4);
    height: 100%;
    border: 1px solid rgba(255,255,255,0.15);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.pulse-dot {
    width: 8px; height: 8px;
    background: #fca5a5;
    border-radius: 50%;
    animation: pulse 1.8s cubic-bezier(0.4,0,0.6,1) infinite;
    flex-shrink: 0;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

.player-image { position: relative; margin-bottom: 0.75rem; }

.player-image img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 1;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.2);
}

.image-overlay {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: rgba(0,0,0,0.7);
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    backdrop-filter: blur(4px);
}

.player-title  { font-weight: 800; font-size: 0.9rem; margin-bottom: 0.2rem; }
.player-subtitle { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-bottom: 0.75rem; }

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.control-btn {
    width: 2.1rem; height: 2.1rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.control-btn:hover { background: rgba(255,255,255,0.28); }

.play-btn {
    width: 3.25rem; height: 3.25rem;
    background: var(--yellow);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-darker);
    box-shadow: 0 4px 16px rgba(251,191,36,0.5);
    transition: var(--transition);
}

.play-btn:hover { background: #fcd34d; transform: scale(1.08); }
.play-btn.is-playing { background: #fff; }

.now-playing {
    background: rgba(0,0,0,0.2);
    border-radius: 0.75rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.now-playing-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.now-playing-song {
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   VIDEO CONTAINER
   ============================================================ */
.video-container {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    height: 100%;
    box-shadow: var(--shadow-lg);
}

.video-container > img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.75;
    position: absolute;
    inset: 0;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.video-play-btn {
    width: 5rem; height: 5rem;
    background: var(--red);
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 0 12px rgba(232,28,46,0.2);
    transition: var(--transition);
}

.video-play-btn:hover { transform: scale(1.08); background: var(--red-dark); }

.video-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--red);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 10px rgba(232,28,46,0.5);
}

.video-badge::before {
    content: '';
    width: 7px; height: 7px;
    background: white;
    border-radius: 50%;
    animation: blink 1.4s infinite;
}

.video-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%);
    padding: 2rem 1rem 1rem;
    z-index: 2;
}

.video-info h2 { color: white; font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }

.video-actions { display: flex; gap: 1rem; }
.video-actions button {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.video-actions button:hover { background: rgba(255,255,255,0.25); }

/* ============================================================
   CHAT EN VIVO
   ============================================================ */
.chat-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-top: 4px solid var(--red);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: background 0.3s;
}

.chat-header {
    background: linear-gradient(90deg, var(--red) 0%, #c0392b 100%);
    color: white;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.chat-header h3 {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chat-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 2px rgba(74,222,128,0.35);
    animation: pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

.chat-online {
    background: rgba(0,0,0,0.2);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
}

.chat-messages {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
    background: linear-gradient(to bottom, rgba(254,243,199,0.4), rgba(255,255,255,0.1));
    min-height: 280px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

body.dark-mode .chat-messages {
    background: linear-gradient(to bottom, rgba(30,20,5,0.5), rgba(0,0,0,0.1));
}

.chat-message {
    display: flex;
    gap: 0.5rem;
    animation: slideIn 0.25s ease;
}

@keyframes slideIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

.chat-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-user { font-weight: 700; font-size: 0.72rem; margin-bottom: 0.1rem; }
.chat-user span { font-weight: 400; color: var(--text-muted); margin-left: 0.35rem; font-size: 0.68rem; }
.chat-content p { font-size: 0.78rem; color: var(--text); line-height: 1.4; }

/* Chat input area */
.chat-input-area {
    padding: 0.55rem 0.75rem 0.75rem;
    border-top: 2px solid var(--yellow);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.chat-username-field {
    border: 1.5px solid rgba(232,28,46,0.25);
    border-radius: 0.5rem;
    padding: 0.32rem 0.6rem;
    font-size: 0.72rem;
    outline: none;
    background: var(--surface2);
    color: var(--text);
    font-family: inherit;
    transition: var(--transition);
    width: 100%;
}

.chat-username-field:focus { border-color: var(--red); }
.chat-username-field::placeholder { font-size: 0.69rem; opacity: 0.65; }

.chat-compose {
    display: flex;
    gap: 0.4rem;
}

.chat-text-field {
    flex: 1;
    border: 1.5px solid rgba(232,28,46,0.25);
    border-radius: 0.5rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
    outline: none;
    font-family: inherit;
    background: var(--surface2);
    color: var(--text);
    transition: var(--transition);
}

.chat-text-field:focus { border-color: var(--yellow); }

.chat-send-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-send-btn:hover { background: var(--red-dark); transform: scale(1.05); }

.chat-wa-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #25D366;
    color: white;
    border-radius: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.chat-wa-link:hover { background: #1da851; color: white; }

/* ============================================================
   BANNERS CTA
   ============================================================ */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.banner {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.banner-yellow {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: 2px solid #d97706;
}

.banner-yellow h3 { font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; color: var(--red-darker); line-height: 1.3; }

.banner-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid var(--yellow);
    display: flex; align-items: center; justify-content: center;
}

.banner-title-white {
    color: white; font-weight: 800;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-badges { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.app-badges img { height: 2rem; width: auto; }

.banner-red {
    background: linear-gradient(135deg, var(--red) 0%, #9b0000 100%);
    color: white;
    border: 2px solid var(--red-darker);
}

.banner-red h3 { font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; line-height: 1.3; }

/* Botones */
.btn-red {
    background: var(--red);
    color: white; border: none;
    font-weight: 800; font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 3px 12px rgba(232,28,46,0.35);
}

.btn-red:hover { background: var(--red-dark); color: white; transform: translateY(-2px); }

.btn-yellow {
    background: var(--yellow);
    color: var(--red-darker); border: none;
    font-weight: 800; font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 3px 12px rgba(251,191,36,0.4);
}

.btn-yellow:hover { background: var(--yellow-dk); transform: translateY(-2px); }

/* ============================================================
   NOTICIAS
   ============================================================ */
.section-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--red-dark);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.news-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-card img {
    width: 100%;
    height: 6.5rem;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover img { transform: scale(1.05); }

.news-content { padding: 0.6rem; }

.news-content h4 {
    font-weight: 700; font-size: 0.78rem;
    margin-bottom: 0.25rem;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2rem;
    line-height: 1.4;
}

.news-content h4 a { color: var(--text); }
.news-content h4 a:hover { color: var(--red); }
.news-content p { font-size: 0.72rem; color: var(--text-muted); }

.border-red       { border-top: 4px solid var(--red); }
.border-yellow    { border-top: 4px solid var(--yellow); }
.border-amber     { border-top: 4px solid #f59e0b; }
.border-red-light { border-top: 4px solid #ef4444; }

/* ============================================================
   PROGRAMACIÓN SIDEBAR
   ============================================================ */
.programacion-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 0.85rem;
    border: 1px solid var(--glass-bd);
}

.program-item {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.program-item:last-child { border-bottom: none; }

.program-time { font-size: 0.72rem; font-weight: 800; color: var(--red); }
.program-name { font-size: 0.85rem; color: var(--text); font-weight: 600; margin-top: 0.1rem; }

/* ============================================================
   STICKY PLAYER — BARRA INFERIOR FIJA
   ============================================================ */
.sticky-player {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(90deg, #0f0f1a 0%, #1a0a0a 50%, #0f0f1a 100%);
    border-top: 3px solid var(--red);
    height: 68px;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: 1rem;
    z-index: 9000;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.sticky-player.hidden { transform: translateY(100%); }

.sp-station {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.sp-logo {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--red);
    flex-shrink: 0;
}

.sp-info { min-width: 0; }
.sp-name { font-size: 0.75rem; font-weight: 800; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-song { font-size: 0.68rem; color: rgba(255,255,255,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

.sp-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto;
}

.sp-btn {
    width: 2.25rem; height: 2.25rem;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
    background: rgba(255,255,255,0.1);
}

.sp-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.08); }

.sp-btn-play {
    width: 2.75rem; height: 2.75rem;
    background: var(--red);
    box-shadow: 0 0 16px rgba(232,28,46,0.5);
}

.sp-btn-play:hover { background: var(--red-dark); }

.sp-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.sp-volume {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.7);
}

.sp-volume input[type="range"] {
    width: 80px;
    accent-color: var(--red);
    cursor: pointer;
}

.sp-live-badge {
    background: var(--red);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.sp-live-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1.4s infinite;
}

.sp-stream-btn {
    width: 2rem; height: 2rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.sp-stream-btn:hover { background: rgba(255,255,255,0.15); color: white; }

/* Empujar el contenido del body para que no quede tapado */
body { padding-bottom: 68px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    padding: 1.5rem 0 0.5rem;
}

.footer-content { width: 100%; position: relative; z-index: 10; padding: 0 1rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 3fr 3fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: start;
}

.footer-logo {
    width: 5.5rem; height: 5.5rem;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.footer-social { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }

.social-btn {
    width: 2rem; height: 2rem;
    background: var(--red);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.social-btn a { color: white; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

.footer-box {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 0.85rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-bd);
}

.footer-box h4,
.footer-col-contact h4,
.footer-col-newsletter h4 {
    font-weight: 800; font-size: 0.82rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--red);
}

.footer-links li { margin-bottom: 0.3rem; }
.footer-links a { font-size: 0.78rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--red); padding-left: 0.25rem; }

.contact-list li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.78rem; color: var(--text-muted); }
.contact-list a { color: var(--text-muted); }
.contact-list a:hover { color: var(--red); }

.footer-col-newsletter p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.newsletter-form { display: flex; gap: 0.4rem; }
.newsletter-form input {
    flex: 1; min-width: 0;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    font-size: 0.75rem;
    outline: none;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: var(--transition);
}
.newsletter-form input:focus { border-color: var(--red); }
.newsletter-form button {
    background: var(--red); color: white;
    font-weight: 800; font-size: 0.7rem;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    border: none;
    white-space: nowrap;
    text-transform: uppercase;
    transition: var(--transition);
}
.newsletter-form button:hover { background: var(--red-dark); }

.footer-copyright {
    margin-top: 1.25rem; padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-copyright a { color: var(--text-muted); }
.footer-copyright a:hover { color: var(--red); }

/* ============================================================
   COLS FOOTER
   ============================================================ */
.footer-col-brand {}
.footer-col-contact {}
.footer-col-newsletter {}

/* ============================================================
   INLINE PLAYER (shortcode)
   ============================================================ */
.frp-inline-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--red) 0%, #7f0000 100%);
    border-radius: var(--radius);
    color: white;
    box-shadow: 0 4px 20px rgba(232,28,46,0.4);
}

.frp-play-btn {
    width: 3rem; height: 3rem;
    background: var(--yellow);
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--red-darker);
    flex-shrink: 0;
    transition: var(--transition);
}

.frp-play-btn:hover { transform: scale(1.1); }

.frp-track { flex: 1; min-width: 0; }
.frp-label { display: block; font-size: 0.65rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }
.frp-song  { display: block; font-size: 0.9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.frp-vol { display: flex; align-items: center; gap: 0.4rem; }
.frp-volume { width: 80px; accent-color: white; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
    .grid-12 { grid-template-columns: 1fr; }
    .col-2, .col-3, .col-4, .col-7, .col-8 { grid-column: span 1; }
    .logo-container { grid-column: span 5; }
    .navbar-menu    { grid-column: span 7; }
    .navbar-menu nav { display: none; }
    .menu-toggle { display: flex; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .video-container { min-height: 250px; }
    .sticky-player { height: 60px; }
    .sp-volume { display: none; }
    .sp-right .sp-stream-btn { display: none; }
    body { padding-bottom: 60px; }
}

@media (max-width: 480px) {
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .banner-grid { grid-template-columns: 1fr; }
    .sp-info .sp-song { display: none; }
}
