/* ========================================================
   DISEÑO 2026: DARK MODE & GLASSMORPHISM
   ======================================================== */

:root {
    /* Paleta Dark Mode Neón */
    --bg-main: #0f172a;          /* Fondo base oscuro */
    --accent-primary: #f97316;   /* Naranja vibrante */
    --accent-glow: rgba(249, 115, 22, 0.5); /* Resplandor naranja */
    --accent-secondary: #eab308; /* Amarillo */
    --text-primary: #f8fafc;     /* Blanco suave */
    --text-secondary: #94a3b8;   /* Gris claro para subtítulos */
    
    /* Variables de Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(249, 115, 22, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 100px; /* Espacio para el reproductor */
    overflow-x: hidden;
}

/* ================= HEADER (GLASSMORPHISM) ================= */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.logo-container {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-container img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.btn-light, .btn-dark {
    padding: 10px 25px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.btn-light {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
}

.btn-light:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-dark {
    background: linear-gradient(135deg, var(--accent-primary), #ea580c);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: none;
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* ================= MAIN CONTAINER ================= */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ================= HERO SECTION ================= */
.hero {
    width: 100%;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
    margin-bottom: 60px;
}

.hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero:hover .hero-img {
    transform: scale(1.02);
}

/* ================= APP DOWNLOAD SECTION ================= */
.app-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: var(--glass-shadow);
}

.app-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-section p {
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 12px 35px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline::before {
    content: '\f3ab'; /* FontAwesome android icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ================= INFO SECTION ================= */
.info-section {
    margin-bottom: 60px;
}

.info-card {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(249, 115, 22, 0.05));
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 30px;
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    backdrop-filter: blur(10px);
}

.info-card h2 {
    color: var(--accent-secondary);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ================= TIMELINE 2026 ================= */
.timeline-section {
    padding: 40px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Línea central brillante animada */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
    background-size: 100% 200%;
    animation: flowLight 3s linear infinite;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

@keyframes flowLight {
    0% { background-position: 0% -100%; }
    100% { background-position: 0% 100%; }
}

.timeline-item {
    padding: 30px 0;
    position: relative;
    width: 50%;
    display: flex;
    align-items: center;
}

/* Puntos neón */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-main);
    border: 4px solid var(--accent-primary);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    background: var(--accent-primary);
    transform: translateY(-50%) scale(1.2);
}

.timeline-item.left {
    left: 0;
    justify-content: flex-end;
    padding-right: 50px;
}

.timeline-item.right {
    left: 50%;
    justify-content: flex-start;
    padding-left: 50px;
}

.timeline-item.left::after { right: -10px; }
.timeline-item.right::after { left: -10px; }

/* Tarjetas Flotantes (Glassmorphism) */
.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    width: 100%;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
}

/* Ocultar flechas viejas, ahora es un diseño de tarjetas separadas limpias */
.timeline-item.left .timeline-content::after,
.timeline-item.right .timeline-content::after {
    display: none;
}

.time-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-morning {
    background: rgba(234, 179, 8, 0.15);
    color: var(--accent-secondary);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-afternoon {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.time {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.icon-box {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), #ea580c);
    color: white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 20px var(--accent-glow);
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

.timeline-item:hover .icon-box {
    transform: rotate(0deg) scale(1.1);
}

.timeline-item.right .icon-box {
    left: 30px;
    right: auto;
    transform: rotate(-5deg);
}

.timeline-author {
    width: 100%;
    padding: 0 30px;
    position: absolute;
    display: flex;
    align-items: center;
    gap: 15px;
}

.timeline-item.left .timeline-author {
    right: -100%;
    flex-direction: row;
}

.timeline-item.right .timeline-author {
    left: -100%;
    flex-direction: row-reverse;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    flex-shrink: 0;
}

.author-text h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

.author-text span {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= FOOTER ================= */
.main-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: var(--glass-border);
    padding: 60px 20px 120px 20px; /* Padding inferior grande para que el reproductor no lo tape */
    text-align: center;
    margin-top: 50px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.footer-brand h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    color: var(--text-primary);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.footer-copy {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ================= REPRODUCTOR 2026 (GLASS BOTTOM BAR) ================= */
.player-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: rotateVinyl 10s linear infinite;
    animation-play-state: paused;
}

.player-info img.spinning {
    animation-play-state: running;
}

@keyframes rotateVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.player-info span {
    font-size: 0.85rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.player-info span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Custom Range Input */
input[type=range] {
    -webkit-appearance: none;
    width: 100px;
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.play-btn {
    background: linear-gradient(135deg, var(--accent-primary), #ea580c);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px var(--accent-glow);
    position: relative;
}

/* Animación de pulso cuando suena */
.play-btn.playing::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    animation: pulseRing 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

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

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

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

/* ================= RESPONSIVE ================= */
/* ================= RESPONSIVE ================= */
@media screen and (max-width: 768px) {
    .container { margin: 20px auto; padding: 0 15px; }
    
    /* Header */
    header { padding: 15px; }
    .logo-container { height: 45px; width: 45px; }
    .nav-links { gap: 10px; }
    .btn-light, .btn-dark { padding: 8px 15px; font-size: 0.8rem; }
    
    /* Secciones */
    .app-section, .info-card { padding: 30px 20px; }
    .app-section h2, .info-card h2 { font-size: 1.8rem; }
    
    /* Timeline */
    .timeline::after { left: 20px; }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .timeline-item.left, .timeline-item.right { left: 0; }
    
    .timeline-item::after {
        left: 10px;
        right: auto;
    }
    
    .timeline-content { padding: 25px 20px; }
    .timeline-content h3 { font-size: 1.3rem; }
    
    .timeline-item.left .timeline-author,
    .timeline-item.right .timeline-author {
        position: relative;
        left: 0;
        right: 0;
        text-align: left;
        padding: 15px 0 0 0;
        width: 100%;
        flex-direction: row;
        gap: 10px;
    }
    
    .author-avatar { width: 40px; height: 40px; font-size: 1rem; }
    .author-text h4 { font-size: 1.1rem; }
    .author-text span { font-size: 0.8rem; }
    
    .timeline-item.left .icon-box,
    .timeline-item.right .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        right: 15px;
        left: auto;
        top: -15px;
    }
    
    /* Player */
    .player-container {
        width: 95%;
        bottom: 10px;
        padding: 10px 15px;
        border-radius: 25px;
    }
    
    .player-info img { width: 40px; height: 40px; }
    .player-info h4 { font-size: 0.9rem; }
    .player-info span { font-size: 0.75rem; }
    
    .player-controls { gap: 10px; }
    /* El control de volumen es inútil en iOS/Android, lo ocultamos para ganar espacio */
    input[type=range] { display: none; }
    .play-btn { width: 45px; height: 45px; font-size: 1.1rem; }
    
    /* Footer */
    .main-footer { padding: 40px 15px 100px 15px; }
    .footer-brand img { width: 60px; height: 60px; }
    .footer-brand h2 { font-size: 1.3rem; }
}
