/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Contenedor principal */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #4caf50;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.title-container {
    margin-top: 20px;
}

.radio-name {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.frequency {
    font-size: 1.8rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 10px;
    opacity: 0.9;
}

.location {
    font-size: 1rem;
    color: #b8b8b8;
    font-weight: 300;
}

/* Sección del reproductor */
.player-section {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.player-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

/* Visualizador de ondas */
.wave-visualizer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.wave-circle {
    position: absolute;
    border: 2px solid #4caf50;
    border-radius: 50%;
    opacity: 0;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
}

.wave-1 {
    width: 100px;
    height: 100px;
    top: 50px;
    left: 50px;
    animation-name: waveAnimation;
    animation-delay: 0s;
}

.wave-2 {
    width: 140px;
    height: 140px;
    top: 30px;
    left: 30px;
    animation-name: waveAnimation;
    animation-delay: 0.5s;
}

.wave-3 {
    width: 180px;
    height: 180px;
    top: 10px;
    left: 10px;
    animation-name: waveAnimation;
    animation-delay: 1s;
}

/* Botón principal de play/pause */
.play-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
}

.play-button:active {
    transform: scale(0.95);
}

.play-icon svg,
.pause-icon svg {
    width: 40px;
    height: 40px;
}

.play-button.playing {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Indicador de estado */
.status-indicator {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6c757d;
    transition: all 0.3s ease;
}

.status-dot.connected {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.loading {
    background: #ffc107;
    animation: loadingPulse 1s ease-in-out infinite;
}

.status-dot.error {
    background: #dc3545;
    animation: errorPulse 0.5s ease-in-out infinite;
}

.status-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Control de volumen */
.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.volume-icon svg {
    width: 24px;
    height: 24px;
    color: #4caf50;
}

.volume-slider {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4caf50;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4caf50;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
}

/* Sección de información */
.info-section {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #4caf50;
    font-weight: 600;
}

.info-card p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #b8b8b8;
    line-height: 1.5;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.detail-icon svg {
    width: 20px;
    height: 20px;
    color: #4caf50;
}

.detail-item span {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
}

/* Partículas flotantes */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(76, 175, 80, 0.6);
    border-radius: 50%;
    animation: floatParticle 8s linear infinite;
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoGlow {
    from {
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
    }
    to {
        box-shadow: 0 0 50px rgba(76, 175, 80, 0.8);
    }
}

@keyframes waveAnimation {
    0% {
        opacity: 1;
        transform: scale(0.5);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

@keyframes errorPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        padding: 15px;
    }
    
    .radio-name {
        font-size: 2rem;
    }
    
    .frequency {
        font-size: 1.5rem;
    }
    
    .location {
        font-size: 0.9rem;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .play-button {
        width: 80px;
        height: 80px;
    }
    
    .play-icon svg,
    .pause-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .wave-visualizer {
        width: 160px;
        height: 160px;
    }
    
    .wave-1 {
        width: 80px;
        height: 80px;
        top: 40px;
        left: 40px;
    }
    
    .wave-2 {
        width: 110px;
        height: 110px;
        top: 25px;
        left: 25px;
    }
    
    .wave-3 {
        width: 140px;
        height: 140px;
        top: 10px;
        left: 10px;
    }
    
    .info-card {
        padding: 20px;
        max-width: 350px;
    }
    
    .volume-control {
        padding: 12px 20px;
    }
    
    .volume-slider {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .radio-name {
        font-size: 1.8rem;
    }
    
    .frequency {
        font-size: 1.3rem;
    }
    
    .info-card {
        max-width: 300px;
        padding: 15px;
    }
    
    .detail-item {
        padding: 8px;
    }
    
    .detail-item span {
        font-size: 0.85rem;
    }
}

@media (min-width: 1024px) {
    .app-container {
        padding: 40px;
    }
    
    .radio-name {
        font-size: 3rem;
    }
    
    .frequency {
        font-size: 2rem;
    }
    
    .logo {
        width: 140px;
        height: 140px;
    }
    
    .play-button {
        width: 120px;
        height: 120px;
    }
    
    .play-icon svg,
    .pause-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .info-card {
        max-width: 500px;
        padding: 40px;
    }
    
    .info-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .detail-item:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 200px;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s ease-in-out infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Tooltip del botón WhatsApp */
.whatsapp-float::before {
    content: "¡Contáctanos por WhatsApp!";
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover::before {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Animación de pulsación para WhatsApp */
@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }
}

/* Responsive para el botón WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-float::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}