:root {
    --primary-color: #00d2ff;
    /* Aura Kinetic Cyan */
    --primary-hover: #00b8e6;
    --accent-purple: #a855f7;
    /* Aura Kinetic Purple */
    --accent-orange: #fbbf24;
    /* Aura Kinetic Orange */

    --bg-dark: #0a0a1a;
    --bg-gradient-start: #0f1123;
    --bg-gradient-end: #070914;

    --card-bg: rgba(20, 22, 43, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);

    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --border-radius: 16px;
    --border-radius-lg: 24px;

    --nav-height: 70px;
    --container-width: 1100px;
    --font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


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

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.5;
    font-size: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Navegación */
.navbar {
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    height: var(--nav-height);
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 10px;
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
}

.logo {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
    margin-right: 15px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
    white-space: nowrap;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar i {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
}

.search-bar input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 8px 10px 8px 30px;
    border-radius: var(--border-radius);
    width: 180px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.search-bar input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

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

.nav-links li a {
    font-weight: 500;
    color: var(--text-main);
    padding: 10px 0;
    font-size: 13px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.nav-links i {
    font-size: 10px;
}

.premium-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid var(--card-border);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-weight: 500;
    margin-right: 15px;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.premium-btn:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    color: white;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.profile-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin-right: 15px;
}

.add-btn {
    background-color: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.add-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* Avatares */
.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-medium {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Layout Principal */
.main-container {
    max-width: var(--container-width);
    margin: 20px auto;
    display: grid;
    grid-template-columns: 220px 1fr 280px;
    gap: 30px;
    padding: 0 10px;
}

/* Utilidades Compartidas */
.card {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    overflow: hidden;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 20px;
}

/* Sidebar Izquierdo */
.profile-card {
    padding: 0;
}

.profile-header {
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(168, 85, 247, 0.2));
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-header .avatar-large {
    position: absolute;
    bottom: -32px;
}

.profile-info {
    padding: 40px 15px 20px;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
}

.profile-info h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.stats-list {
    display: flex;
    justify-content: space-around;
}

.stats-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-value {
    font-weight: 700;
    font-size: 14px;
}

.profile-footer {
    padding: 15px;
    text-align: center;
}

.profile-footer a {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.clubs-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.club-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.club-list img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.club-list span {
    font-weight: 500;
    font-size: 14px;
}

.view-all {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    color: #007fb6;
}

/* Feed Central */
.create-post {
    display: flex;
    align-items: center;
    gap: 15px;
}

.create-post input {
    flex: 1;
    border: 1px solid var(--card-border);
    padding: 12px 18px;
    border-radius: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    outline: none;
    transition: all 0.2s;
}

.create-post input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.activity-card {
    padding: 0;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.activity-meta h4 {
    font-size: 15px;
    font-weight: 700;
}

.time-ago {
    font-size: 12px;
    color: var(--text-muted);
}

.time-ago i {
    margin: 0 3px;
}

.activity-body {
    padding: 0 15px 15px;
}

.activity-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.activity-title:hover {
    color: var(--primary-color);
    cursor: pointer;
}

.activity-desc {
    margin-bottom: 15px;
}

.metrics {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
}

.metric-value {
    font-size: 24px;
    font-weight: 300;
}

.metric-value small {
    font-size: 14px;
}

.activity-map {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    position: relative;
    background: #0f1123;
    overflow: hidden;
}

.map-run {
    background: linear-gradient(to bottom right, #0f1123, #1a1c35);
}

.map-bike {
    background: linear-gradient(to bottom right, #0a0a1a, #1a1c35);
}

.route-line {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.activity-footer {
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--card-border);
    padding: 15px;
    margin-top: 15px;
    border-radius: var(--border-radius);
}

.actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.action-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.action-btn.active i {
    font-weight: 900;
}

.reactions {
    display: flex;
    align-items: center;
    gap: -10px;
    font-size: 12px;
    color: var(--text-muted);
}

.reaction-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    margin-right: -8px;
    position: relative;
    z-index: 1;
}

.reactions span {
    margin-left: 15px;
}

/* Sidebar Derecho */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
}

.card-header-flex h3 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.card-header-flex a {
    font-size: 12px;
    color: #007fb6;
}

.challenge-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.challenge-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: white;
}

.icon-orange {
    background: linear-gradient(135deg, var(--accent-orange), #f59e0b);
}

.challenge-info {
    flex: 1;
}

.challenge-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--primary-color));
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.progress-text {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 5px;
}

.suggested-friends h3 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.suggestion-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.suggestion-list img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.suggestion-info {
    flex: 1;
}

.suggestion-info strong {
    display: block;
    font-size: 14px;
}

.suggestion-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-outline-small {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline-small:hover {
    background: var(--primary-color);
    color: white;
}

.footer-links {
    padding: 0 10px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-links p {
    font-size: 12px;
    color: #a0a0a0;
}

/* Coming Soon Overlay */
.coming-soon-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    background: rgba(10, 10, 26, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: all;
}

.coming-soon-content {
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    text-align: center;
    width: 100%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.coming-soon-content h1 {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.4));
    white-space: nowrap;
}

.coming-soon-content p {
    font-size: clamp(16px, 3vw, 24px);
    color: var(--text-main);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    padding: 0 20px;
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, -55%);
    }

    100% {
        transform: translate(-50%, -50%);
    }
}

/* Responsivo */
@media (max-width: 850px) {
    .coming-soon-content h1 {
        font-size: 42px;
        letter-spacing: 2px;
    }

    .coming-soon-content p {
        font-size: 18px;
    }
}

@media (max-width: 1100px) {
    .main-container {
        grid-template-columns: 220px 1fr;
    }

    .right-sidebar {
        display: none;
        /* Hide right sidebar on slightly smaller screens */
    }
}

@media (max-width: 850px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .left-sidebar {
        display: none;
        /* Hide left sidebar on small screens */
    }

    .nav-center {
        display: none;
        /* Hide main links on mobile */
    }

    .search-bar {
        display: none;
    }
}