/* ============================================
   RADIO LA CARISMATICA CR - ESTILOS PRINCIPALES
   ============================================ */

/* --- Variables CSS --- */
:root {
    --color-bg: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-secondary: #5A5A5A;
    --color-text-light: #F5F2EC;
    --color-gold: #C8A55C;
    --color-blue: #4A6B8A;
    --color-purple: #6B5B8A;
    --color-red: #8A3A4A;
    --color-border: rgba(0, 0, 0, 0.08);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s ease;
}

/* --- Reset y Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   NAVEGACION
   ============================================ */
#mainNav {
    height: 64px;
    padding: 0;
    transition: var(--transition);
    z-index: 1000;
}

#mainNav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

#mainNav.scrolled .nav-link,
#mainNav.scrolled .brand-text {
    color: var(--color-text);
}

#mainNav.scrolled .navbar-toggler-icon {
    filter: invert(1);
}

.brand-text {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    transition: var(--transition);
}

#mainNav .nav-link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    padding: 8px 16px !important;
    transition: var(--transition);
    position: relative;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    width: calc(100% - 32px);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--color-gold);
}

.btn-escuchar {
    background: var(--color-gold) !important;
    color: #FFFFFF !important;
    border-radius: 4px;
    padding: 8px 10px !important;
    transition: var(--transition) !important;
}

.btn-escuchar:hover {
    background: #B8944C !important;
    transform: translateY(-1px);
}

.btn-escuchar::after {
    display: none !important;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../assets/hero-bg.jpg') center center / cover no-repeat;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200, 165, 92, 0.2) 0%, rgba(26, 26, 26, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 24px 80px;
}

/* --- Indicador EN VIVO --- */
.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: livePulse 1.5s ease-out infinite;
}

@keyframes livePulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.live-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* --- Titulos Hero --- */
.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: 48px;
}

/* --- Contenedor Reproductor --- */
.player-container {
    position: relative;
    width: 440px;
    height: 440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Ondas Circulares --- */
.wave-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(200, 165, 92, 0.3);
    border-radius: 50%;
    animation: waveExpand 3s ease-out infinite;
    animation-play-state: paused;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.player-container.playing .wave-ring {
    animation-play-state: running;
    opacity: 1;
}

@keyframes waveExpand {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
        border-color: rgba(200, 165, 92, 0.4);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
        border-color: rgba(200, 165, 92, 0);
    }
}

/* --- Boton Play/Stop --- */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-gold);
    border: none;
    color: #FFFFFF;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(200, 165, 92, 0.4);
    transition: var(--transition);
    z-index: 10;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 50px rgba(200, 165, 92, 0.6);
}

.play-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.play-button .fa-play {
    margin-left: 4px;
}

/* Animacion de pulso del boton */
.play-button::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    opacity: 0;
    transform: scale(1);
}

.player-container.playing .play-button::after {
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Estado de carga */
.play-button.loading {
    pointer-events: none;
}

.play-button.loading::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.play-button.loading i {
    opacity: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Ahora Sonando --- */
.now-playing {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    max-width: 500px;
}

.album-art {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-text-light);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-text-light);
    color: var(--color-gold);
    font-size: 32px;
}

.track-info {
    text-align: left;
    flex: 1;
    min-width: 0;
}

.track-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.track-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 300;
    color: var(--color-text-light);
    margin: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(245, 242, 236, 0.8);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listeners-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(245, 242, 236, 0.6);
    font-size: 14px;
    flex-shrink: 0;
}

/* --- Boton Secundario --- */
.btn-secondary {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 36px;
    background: transparent;
    border: 1px solid var(--color-text-light);
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--color-text-light);
    color: var(--color-text);
    transform: translateY(-2px);
}

/* --- Flecha Scroll Down --- */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-light);
    font-size: 24px;
    animation: bounceArrow 2s ease-in-out infinite;
    z-index: 3;
    transition: var(--transition);
}

.scroll-down:hover {
    color: var(--color-gold);
}

@keyframes bounceArrow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   PROGRAMACION
   ============================================ */
.programming-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 20px;
}

.section-separator {
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin: 0 auto 20px;
}

.section-desc {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 300;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- Tarjetas de Dia --- */
.day-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: var(--transition);
}

.day-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.day-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
}

.day-header i {
    font-size: 20px;
}

.day-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.day-programs {
    padding: 16px;
    background: #FFFFFF;
}

.program-item {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

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

.program-time {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.program-time i {
    font-size: 12px;
    color: var(--color-blue);
}

.program-time span {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 0.05em;
}

.program-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 2px;
}

.program-desc {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 300;
    color: var(--color-text-secondary);
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-section {
    padding: 100px 0;
    background: var(--color-text);
}

.contact-section .section-title {
    color: var(--color-text-light);
}

/* --- Formulario --- */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: rgba(245, 242, 236, 0.8);
    margin-bottom: 8px;
}

.form-control-custom {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(245, 242, 236, 0.3);
    padding: 12px 0;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.form-control-custom::placeholder {
    color: rgba(245, 242, 236, 0.4);
}

.form-control-custom:focus {
    border-bottom-color: var(--color-gold);
}

/* Boton enviar */
.btn-submit {
    display: inline-block;
    width: 100%;
    padding: 14px 36px;
    background: var(--color-gold);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #B8944C;
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* --- Info de Contacto --- */
.contact-info {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-item i {
    font-size: 20px;
    color: var(--color-gold);
    margin-top: 2px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 242, 236, 0.6);
    margin-bottom: 4px;
}

.contact-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* --- Redes Sociales --- */
.social-section {
    margin-top: 40px;
}

.social-label {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 242, 236, 0.6);
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-link {
    color: var(--color-text-light);
    font-size: 24px;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--color-gold);
    transform: translateY(-3px);
}

/* --- Respuesta del formulario --- */
.alert-custom {
    padding: 12px 16px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    color: #81C784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    color: #E57373;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #111111;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-brand-text {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    display: block;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: rgba(245, 242, 236, 0.6);
    margin: 4px 0 0;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: rgba(245, 242, 236, 0.8);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--color-gold);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--color-text-light);
    font-size: 20px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 242, 236, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: rgba(245, 242, 236, 0.5);
    margin: 0;
}

/* ============================================
   ANIMACIONES DE ENTRADA
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* FadeIn simple (sin translate) */
.animate-on-scroll.fade-only {
    transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .player-container {
        width: 340px;
        height: 340px;
    }
    
    .wave-ring:nth-child(1) { width: 160px !important; height: 160px !important; }
    .wave-ring:nth-child(2) { width: 200px !important; height: 200px !important; }
    .wave-ring:nth-child(3) { width: 240px !important; height: 240px !important; }
    .wave-ring:nth-child(4) { width: 280px !important; height: 280px !important; }
    .wave-ring:nth-child(5) { width: 320px !important; height: 320px !important; }
    
    .play-button {
        width: 100px;
        height: 100px;
        font-size: 28px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        width: auto;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 40px;
        letter-spacing: 0.08em;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .player-container {
        width: 280px;
        height: 280px;
    }
    
    .wave-ring:nth-child(1) { width: 130px !important; height: 130px !important; }
    .wave-ring:nth-child(2) { width: 165px !important; height: 165px !important; }
    .wave-ring:nth-child(3) { width: 200px !important; height: 200px !important; }
    .wave-ring:nth-child(4) { width: 235px !important; height: 235px !important; }
    .wave-ring:nth-child(5) { width: 270px !important; height: 270px !important; }
    
    .play-button {
        width: 80px;
        height: 80px;
        font-size: 24px;
    }
    
    .now-playing {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        margin-top: 32px;
    }
    
    .track-info {
        text-align: center;
    }
    
    .album-art {
        width: 64px;
        height: 64px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .programming-section {
        padding: 60px 0;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .footer-content {
        gap: 16px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Navegacion en movil */
    #mainNav.scrolled .nav-link,
    #mainNav.scrolled .brand-text {
        color: var(--color-text);
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        padding: 16px;
        border-radius: 8px;
        margin-top: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    #mainNav .nav-link {
        color: var(--color-text);
        padding: 10px 16px !important;
    }
    
    .btn-escuchar {
        margin-top: 8px;
        text-align: center;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-center {
    text-align: center;
}
