/* =====================================================
   GIRO'S FM 91.5 â€” HOJA DE ESTILOS
   ===================================================== */

:root {
    --rojo: #C8102E;
    --rojo-oscuro: #A00D24;
    --negro: #1a1a1a;
    --gris-oscuro: #333;
    --gris-medio: #666;
    --gris-claro: #f5f5f5;
    --blanco: #fff;
    --whatsapp: #25D366;
    --sombra: 0 4px 20px rgba(0,0,0,.08);
    --sombra-fuerte: 0 8px 30px rgba(0,0,0,.12);
    --transicion: all .3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gris-oscuro);
    background: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
header { background: var(--blanco); padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
/* ===== LOGO OFICIAL ===== */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}
.logo-link {
    display: block;
    line-height: 0;
}
.logo-img {
    height: 85px;              /* Tamaño de escritorio */
    width: auto;
    max-width: 100%;
    object-fit: contain;       /* Mantiene la proporción sin deformar */
    user-select: none;
}
.logo-slogan {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--gris-medio);
    margin-top: 4px;
}

/* Tamaños responsive del logo */
@media (max-width: 1024px) { .logo-img { height: 70px; } }
@media (max-width: 768px)  { .logo-img { height: 60px; } }
@media (max-width: 480px)  {
    .logo-img { height: 50px; }
    .logo-slogan { display: none; }   /* Oculta el eslogan en móviles pequeños */
}
.nav-menu { display: flex; list-style: none; gap: 5px; }
.nav-menu a { padding: 10px 15px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; transition: var(--transicion); position: relative; }
.nav-menu a:hover, .nav-menu a.active { color: var(--rojo); }
.nav-menu a.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 3px; background: var(--rojo); border-radius: 2px; }
.btn-whatsapp { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border: 2px solid var(--gris-claro); border-radius: 30px; font-weight: 700; color: var(--rojo); transition: var(--transicion); flex-shrink: 0; }
.btn-whatsapp:hover { background: var(--gris-claro); }
.btn-whatsapp svg { width: 20px; height: 20px; fill: var(--whatsapp); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.menu-toggle span { width: 25px; height: 3px; background: var(--gris-oscuro); border-radius: 2px; transition: var(--transicion); }

/* ===== HERO ===== */
.hero { padding: 60px 0; background: linear-gradient(135deg, #fafafa, #f0f0f0); }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-text h1 { font-size: 64px; font-weight: 900; line-height: 1; margin-bottom: 20px; text-transform: uppercase; }
.hero-text h1 .rojo { color: var(--rojo); }
.hero-text h1 .gris { color: var(--gris-medio); }
.hero-text p { font-size: 16px; color: var(--gris-medio); margin-bottom: 30px; max-width: 400px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 30px; font-weight: 700; font-size: 14px; text-transform: uppercase; transition: var(--transicion); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--rojo); color: #fff; }
.btn-primary:hover { background: var(--rojo-oscuro); transform: translateY(-2px); }
.btn-outline { color: var(--rojo); border: 2px solid var(--rojo); }
.btn-outline:hover { background: var(--rojo); color: #fff; }

/* ===== PLAYER CARD ===== */
.player-card { background: #fff; border-radius: 20px; padding: 25px; box-shadow: var(--sombra-fuerte); }
.player-title { color: var(--rojo); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.player-main { display: flex; gap: 20px; margin-bottom: 20px; }
.player-cover { width: 180px; height: 180px; border-radius: 12px; overflow: hidden; position: relative; flex-shrink: 0; background: linear-gradient(135deg, #1a1a1a, #333); }
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-cover-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; }
.player-cover-overlay .artista { font-size: 14px; font-weight: 700; letter-spacing: 2px; }
.player-cover-overlay .cancion { font-size: 11px; letter-spacing: 1px; opacity: .9; }
.player-info { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.player-info .artista { font-size: 28px; font-weight: 800; color: var(--negro); margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-info .cancion { font-size: 22px; font-weight: 700; color: var(--rojo); margin-bottom: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: #fde8ea; color: var(--rojo); border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; width: fit-content; }
.badge-live::before { content: ''; width: 8px; height: 8px; background: currentColor; border-radius: 50%; animation: pulse 1.5s infinite; }
.badge-live.connecting { background: #fff3e0; color: #e65100; }
.badge-live.error { background: #ffebee; color: #c62828; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.player-stats { display: flex; gap: 20px; font-size: 13px; color: var(--gris-medio); }
.player-stats span { display: flex; align-items: center; gap: 6px; }
.player-stats svg { width: 16px; height: 16px; fill: var(--rojo); }
.player-controls { display: flex; align-items: center; gap: 15px; padding-top: 20px; border-top: 1px solid var(--gris-claro); }
.btn-play { width: 50px; height: 50px; background: var(--rojo); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transicion); flex-shrink: 0; }
.btn-play:hover { background: var(--rojo-oscuro); transform: scale(1.05); }
.btn-play svg { width: 20px; height: 20px; fill: #fff; }
.volume-control { display: flex; align-items: center; gap: 10px; flex: 1; }
.volume-control svg { width: 20px; height: 20px; fill: var(--gris-medio); flex-shrink: 0; }
.slider { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; background: var(--gris-claro); border-radius: 3px; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; background: var(--rojo); border-radius: 50%; cursor: pointer; }
.slider::-moz-range-thumb { width: 16px; height: 16px; background: var(--rojo); border-radius: 50%; cursor: pointer; border: none; }
.error-message { background: #ffebee; color: #c62828; padding: 10px 15px; border-radius: 8px; font-size: 13px; margin-top: 10px; display: none; }
.error-message.show { display: block; }

/* ===== PÃLDORA ACTIVAR SONIDO ===== */
.activate-pill { position: fixed; bottom: 95px; left: 50%; transform: translateX(-50%); background: var(--rojo); color: #fff; padding: 14px 28px; border-radius: 30px; font-weight: 800; font-size: 14px; z-index: 120; box-shadow: 0 8px 25px rgba(200,16,46,.4); display: none; align-items: center; gap: 10px; animation: floatPill 2s ease-in-out infinite; }
.activate-pill.show { display: flex; }
@keyframes floatPill { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,-6px); } }

/* ===== ÃšLTIMAS CANCIONES ===== */
.ultimas-canciones { padding: 50px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--rojo); text-transform: uppercase; letter-spacing: 1px; }
.section-title svg { width: 24px; height: 24px; fill: var(--rojo); }
.btn-historial { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 2px solid var(--rojo); border-radius: 30px; color: var(--rojo); font-weight: 700; font-size: 12px; text-transform: uppercase; transition: var(--transicion); }
.btn-historial:hover { background: var(--rojo); color: #fff; }
.canciones-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cancion-item { display: flex; gap: 12px; padding: 15px; background: var(--gris-claro); border-radius: 12px; transition: var(--transicion); }
.cancion-item:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.cancion-item.playing { background: #fff0f0; border: 2px solid var(--rojo); }
.cancion-cover { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #1a1a1a, #333); }
.cancion-cover img { width: 100%; height: 100%; object-fit: cover; }
.cancion-info { flex: 1; min-width: 0; }
.cancion-hora { font-size: 12px; font-weight: 700; color: var(--rojo); margin-bottom: 3px; }
.cancion-artista { font-size: 14px; font-weight: 700; color: var(--negro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cancion-nombre { font-size: 12px; color: var(--gris-medio); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== FEATURES ===== */
.features { padding: 50px 0; background: var(--gris-claro); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: #fff; padding: 30px 25px; border-radius: 15px; box-shadow: var(--sombra); transition: var(--transicion); }
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { width: 50px; height: 50px; margin-bottom: 15px; }
.feature-icon svg { width: 100%; height: 100%; fill: var(--rojo); }
.feature-card h3 { font-size: 16px; font-weight: 800; color: var(--rojo); text-transform: uppercase; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--gris-medio); margin-bottom: 15px; }
.feature-card .btn-outline { padding: 10px 20px; font-size: 12px; }
.social-links { display: flex; gap: 10px; margin-top: 15px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transicion); }
.social-links a svg { width: 20px; height: 20px; fill: #fff; }
.social-links .facebook { background: #1877F2; }
.social-links .instagram { background: #E4405F; }
.social-links .whatsapp { background: var(--whatsapp); }
.social-links .youtube { background: #F00; }
.social-links a:hover { transform: translateY(-3px) scale(1.1); }
.feature-wave { margin-top: 15px; height: 30px; display: flex; align-items: center; gap: 3px; opacity: .3; }
.feature-wave span { width: 3px; background: var(--rojo); border-radius: 2px; animation: wave 1s ease-in-out infinite; }
.feature-wave span:nth-child(1) { height: 10px; }
.feature-wave span:nth-child(2) { height: 20px; animation-delay: .1s; }
.feature-wave span:nth-child(3) { height: 15px; animation-delay: .2s; }
.feature-wave span:nth-child(4) { height: 25px; animation-delay: .3s; }
.feature-wave span:nth-child(5) { height: 10px; animation-delay: .4s; }
.feature-wave span:nth-child(6) { height: 20px; animation-delay: .5s; }
.feature-wave span:nth-child(7) { height: 15px; animation-delay: .6s; }
.feature-wave span:nth-child(8) { height: 25px; animation-delay: .7s; }
@keyframes wave { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.5); } }

/* ===== FOOTER PLAYER ===== */
.footer-player { position: fixed; bottom: 0; left: 0; right: 0; background: var(--rojo); color: #fff; padding: 12px 20px; display: flex; align-items: center; gap: 20px; z-index: 99; box-shadow: 0 -4px 20px rgba(0,0,0,.2); }
.footer-play { width: 45px; height: 45px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transicion); }
.footer-play:hover { transform: scale(1.1); }
.footer-play svg { width: 18px; height: 18px; fill: var(--rojo); margin-left: 3px; }
.footer-info { flex-shrink: 0; }
.footer-live { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 1px; opacity: .9; }
.footer-live::before { content: ''; width: 6px; height: 6px; background: #4CAF50; border-radius: 50%; animation: pulse 1.5s infinite; }
.footer-nombre { font-size: 14px; font-weight: 800; }
.footer-ubicacion { font-size: 11px; opacity: .85; }
.footer-mini-player { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.footer-cover { width: 45px; height: 45px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #1a1a1a, #333); }
.footer-cover img { width: 100%; height: 100%; object-fit: cover; }
.footer-track-info { min-width: 0; }
.footer-track-artista { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-track-cancion { font-size: 11px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-visualizer { display: flex; align-items: flex-end; gap: 2px; height: 30px; margin: 0 15px; }
.footer-visualizer.playing span { animation: visualizer .8s ease-in-out infinite; }
.footer-visualizer span { width: 3px; background: #fff; border-radius: 2px; }
.footer-visualizer span:nth-child(1) { height: 40%; }
.footer-visualizer span:nth-child(2) { height: 70%; animation-delay: .1s; }
.footer-visualizer span:nth-child(3) { height: 50%; animation-delay: .2s; }
.footer-visualizer span:nth-child(4) { height: 90%; animation-delay: .3s; }
.footer-visualizer span:nth-child(5) { height: 60%; animation-delay: .4s; }
.footer-visualizer span:nth-child(6) { height: 80%; animation-delay: .5s; }
.footer-visualizer span:nth-child(7) { height: 45%; animation-delay: .6s; }
.footer-visualizer span:nth-child(8) { height: 70%; animation-delay: .7s; }
.footer-visualizer span:nth-child(9) { height: 55%; animation-delay: .8s; }
.footer-visualizer span:nth-child(10) { height: 85%; animation-delay: .9s; }
@keyframes visualizer { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.3); } }
.footer-volume { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.footer-volume svg { width: 20px; height: 20px; fill: #fff; }
.footer-volume .slider { width: 100px; background: rgba(255,255,255,.3); flex: none; }
.footer-volume .slider::-webkit-slider-thumb { background: #fff; }
.btn-scroll-top { width: 40px; height: 40px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-scroll-top svg { width: 18px; height: 18px; fill: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 48px; }
    .canciones-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    nav { position: fixed; top: 80px; left: 0; right: 0; background: #fff; padding: 20px; box-shadow: var(--sombra-fuerte); transform: translateY(-150%); transition: var(--transicion); }
    nav.active { transform: translateY(0); }
    .nav-menu { flex-direction: column; }
    .nav-menu a { padding: 15px; border-bottom: 1px solid var(--gris-claro); }
    .nav-menu a.active::after { display: none; }
    .btn-whatsapp span { display: none; }
    .hero-text h1 { font-size: 36px; }
    .player-main { flex-direction: column; }
    .player-cover { width: 100%; height: 250px; }
    .canciones-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .footer-player { flex-wrap: wrap; padding: 10px; gap: 10px; }
    .footer-visualizer, .footer-volume { display: none; }
    .footer-mini-player { order: 3; width: 100%; }
}
@media (max-width: 480px) {
    .logo-text { font-size: 22px; }
    .logo-freq { font-size: 16px; }
    .hero-text h1 { font-size: 28px; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .canciones-grid { grid-template-columns: 1fr; }
    .player-info .artista { font-size: 22px; }
    .player-info .cancion { font-size: 18px; }
}