/* Home Screen Specific Styles - Corregido para coincidir con la imagen */
:root {
    --accent: #f5ae01;
    --accent-rgb: 245, 174, 1;
    --bg-dark: #121212;
    --surface-dark: #1E1E1E;
    --surface-lighter: #2A2A2A;
    --text-primary: rgba(255, 255, 255, 0.87);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.38);
    --border-subtle: #333333;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
}

/* Header */
.home-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.home-logo {
    height: 40px;
    width: auto;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--accent);
    transition: transform 0.2s;
    overflow: hidden;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Search Bar */
.search-section {
    padding: 1rem 1rem 0.5rem 1rem;
}

.search-bar {
    background: var(--surface-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.2s;
}

.search-bar:hover {
    border-color: var(--accent);
}

.search-placeholder {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-icon {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 1rem 0.75rem 1rem;
}

.section-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0;
}

.section-link {
    color:'white';
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

/* Latest Results Cards */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
}

.result-card {

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 16px;

    background: linear-gradient(145deg, #060200, #2a1f17);

    border-radius: 16px;

    border: 1px solid rgba(212, 162, 76, .25);

    transition: .25s;

}

.result-card:hover {

    border-color: #d4a24c;

    transform: translateY(-2px);

    box-shadow: 0 0 10px rgba(212, 162, 76, .35);

}

.result-header {

    display: flex;
    align-items: center;

    gap: 12px;

    flex: 1;

    margin: 0;

}

.team-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-lighter);
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.result-card:hover .team-icon {
    border-color: var(--accent);
}

.team-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {

    display: flex;
    flex-direction: column;

    line-height: 1.1;

}

.team-name-result {

    font-weight: 600;
    font-size: 15px;

}

.workout-date {

    font-size: 12px;

    color: #c9b7a6;

}

.result-content {

    display: flex;
    align-items: center;

    gap: 18px;

}

.result-time-large {

    font-size: 22px;

    font-weight: 700;

    color: #d4a24c;

}

.result-time-container {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}



.result-diff {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}



.member-avatars{

display:flex;

}

.member-avatar-small{

width:30px;
height:30px;

border-radius:50%;

overflow:hidden;

border:2px solid #2a1f17;

margin-left:-8px;

}

.member-avatar-small:first-child{

margin-left:0;

}

.member-avatar-small img{

width:100%;
height:100%;

object-fit:cover;

}
.first-place-badge {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}
.difference-label{

font-size:12px;

color:#c9b7a6;

}

/* NK Programs - Simplified como en la imagen */
.programs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0 1rem;
}

.program-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
   
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    background: var(--surface-lighter);
}

.program-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.program-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.program-meta i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* Eliminamos badges y banners para coincidir con la imagen */
/*.program-badge {
    display: none;
}

.program-banner {
    display: none;
}*/

/* Featured Section - como en la imagen */
.featured-section {
    margin-top: 1.5rem;
}

.featured-grid {
    padding: 0 1rem;
}

.featured-card {
    background: linear-gradient(145deg, var(--surface-dark), var(--surface-lighter));
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.featured-card:hover {
    border-color: var(--accent);
    transform: scale(1.01);
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.featured-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.featured-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.featured-cta {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.featured-cta:hover {
    opacity: 0.9;
}

/* Bottom Navigation - Corregido según la imagen */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 1rem;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    transition: color 0.2s;
    padding: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-item.active {
    color: var(--accent);
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.nav-item:hover {
    color: var(--accent);
}

/* Resto de estilos (modal, menú lateral, etc.) se mantienen igual */
/* ... (mantén todo el CSS que no se ha modificado, como el menú lateral, modal, etc.) ... */


/* Pull to Refresh */
.ptr-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--accent);
    text-align: center;
    height: 50px;
    line-height: 50px;
    transform: translateY(-50px);
    transition: transform 0.3s;
}

.ptr-element.refresh-visible {
    transform: translateY(60px);
}

/* Content Spacing */
.home-content {
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--surface-dark);
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.side-menu.open {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.menu-overlay.active {
    display: block;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem 1rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.menu-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--accent);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.close-btn:hover {
    background: var(--surface-lighter);
    color: var(--accent);
}

.menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.menu-section {
    margin-bottom: 1.5rem;
}

.menu-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.menu-items {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.menu-item:hover {
    background: var(--surface-lighter);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-item-left i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 24px;
}

.menu-item-left span {
    font-size: 0.95rem;
}

.menu-item .bi-chevron-right {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.menu-footer {
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.brand-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 3000;
    display: none;
    flex-direction: column;
}

.search-modal.open {
    display: flex;
}

.search-modal-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-dark);
}

.search-modal-header .header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-modal-header .back-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
}

.search-modal-header .back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-input-container {
    flex: 1;
    position: relative;
}

.search-input-container .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
}

.search-input-container .search-input {
    width: 100%;
    height: 44px;
    background: var(--surface-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    padding: 0 40px 0 40px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.search-input-container .search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-lighter);
}

.search-input-container .search-input::placeholder {
    color: var(--text-secondary);
}

.search-input-container .clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 4px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    transition: all 0.2s;
}

.search-input-container .clear-btn:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.search-input-container .clear-btn.visible {
    display: block;
}

.search-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Suggestions Section */
.suggestions-section {
    margin-bottom: 2rem;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--surface-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-item:hover {
    background: var(--surface-lighter);
    border-color: var(--accent);
    transform: translateX(4px);
}

.suggestion-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
}

.suggestion-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.suggestion-details .member-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.show-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

/* Results List */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.result-item:hover {
    background: var(--surface-lighter);
    border-color: var(--accent);
    transform: translateX(4px);
}

.result-item .team-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

.result-item .team-info {
    flex: 1;
}

.result-item .team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.result-item .team-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.result-item .team-members {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.result-item .team-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.result-item .team-location i {
    margin-right: 0.25rem;
    color: var(--accent);
    font-size: 0.8rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-lighter);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 30px;
    z-index: 4000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, var(--surface-dark) 25%, var(--surface-lighter) 50%, var(--surface-dark) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    height: 100px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive */
@media (min-width: 768px) {
    .home-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .bottom-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
    }

    .search-modal {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 1px solid var(--border-subtle);
        border-right: 1px solid var(--border-subtle);
    }
}

/* Badge de primer lugar y diferencia debajo del tiempo */
.first-place-badge, .difference-label {
    display: block;
    margin-top: 2px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95em;
    text-align: center;
    padding: 0;
}
.result-time-large {
    display: block;
    text-align: center;
    font-size: 1.4em;
    color: #fff;
    font-weight: 600;
}

        /* Contenedor de fotos de los 3 más rápidos */
.top3-photos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin: 6px 0;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    position: relative;
}

.top3-photos-container .top-member-photo {
    margin-left: -12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    z-index: 1;
    transition: z-index 0.2s;
}
.top3-photos-container .top-member-photo:first-child {
    margin-left: 0;
    z-index: 3;
}
.top3-photos-container .top-member-photo:nth-child(2) {
    z-index: 2;
}
.top3-photos-container .top-member-photo:hover {
    z-index: 4;
}

.top-member-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: transform 0.2s ease;
}

.top-member-photo.first {
    border-color: #FFD700; /* Oro */
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.top-member-photo.second {
    border-color: #C0C0C0; /* Plata */
    opacity: 0.9;
}

.top-member-photo.third {
    border-color: #CD7F32; /* Bronce */
    opacity: 0.8;
}

.top-member-photo.user-highlight {
    border-width: 3px;
    border-color: #ffd966;
    box-shadow: 0 0 0 2px rgba(255, 217, 102, 0.3);
}

.top-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-members-count {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.team-members-count i {
    font-size: 12px;
}

/* Badge para tiempo del usuario (opcional) */


.diff-badge {
    margin-left: 6px;
    padding: 2px 6px;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    color: #ff6b6b;
    font-size: 11px;
}
        /* Top 3 container */
.top3-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.top-member-row {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
}

.top-member-row.gold {
    background: rgba(255, 215, 0, 0.15);
    border-left: 3px solid #FFD700;
}

.top-member-row.silver {
    background: rgba(192, 192, 192, 0.15);
    border-left: 3px solid #C0C0C0;
}

.top-member-row.bronze {
    background: rgba(205, 127, 50, 0.15);
    border-left: 3px solid #CD7F32;
}

.top-member-row .position {
    font-weight: bold;
    min-width: 35px;
    color: #fff;
}

.top-member-row .member-name {
    flex: 1;
    color: #fff;
}

.top-member-row .member-time {
    font-family: monospace;
    font-weight: 500;
    color: #ffd966;
}

.team-members-count {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.team-members-count i {
    font-size: 12px;
}

.user-time-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 217, 102, 0.1);
    border-radius: 8px;
    font-size: 13px;
}

.user-time-label {
    color: #888;
}

.user-time-value {
    font-weight: bold;
    color: #ffd966;
    font-family: monospace;
}

.user-time-diff {
    color: #ff6b6b;
    font-size: 12px;
    margin-left: auto;
}
        /* Asegurar que el banner ocupe todo el ancho de la card */
        .program-card {
            width: 100%;
            overflow: hidden;
            border-radius: 12px;
        }

        .program-banner {
            width: 100%;
            margin: 0;
            padding: 0;
            display: block;
        }

        .program-banner-bg {
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            width: 100%;
            min-height: 160px;
            position: relative;
            background-image: linear-gradient(rgba(0,0,0,0.92), rgba(0,0,0,0.92)), var(--banner-img-url);
        }

        .program-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            padding: 16px;
       display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }
        
        .search-input.loading {
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23FF8C00" stroke-width="2"><circle cx="12" cy="12" r="10" stroke="%23FF8C00" stroke-dasharray="30 30"><animateTransform attributeName="transform" type="rotate" from="0 12 12" to="360 12 12" dur="1s" repeatCount="indefinite"/></circle></svg>');
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 20px;
            padding-right: 40px;
        }

        .search-input.loading + .clear-btn {
            display: none;
        }

        .search-input.loading:not(:placeholder-shown) {
            background-position: right 40px center;
        }

        /* Skeletons */
        .skeleton {
            background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            border-radius: 8px;
        }

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

        .skeleton-card {
            height: 120px;
            margin-bottom: 12px;
            border-radius: 12px;
        }

        .skeleton-text {
            height: 20px;
            margin: 8px 0;
            width: 100%;
        }

        .skeleton-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
        }

        /* Error states */
        .error-message {
            text-align: center;
            padding: 40px 20px;
            color: #ff6b6b;
        }

        .error-message button {
            background: transparent;
            border: 1px solid #ff6b6b;
            color: #ff6b6b;
            padding: 8px 16px;
            border-radius: 20px;
            margin-top: 12px;
            cursor: pointer;
        }

        /* Location banner */
        .location-permission-banner {
            background: #2a2a2a;
            padding: 12px;
            margin: 8px 16px;
            border-radius: 8px;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .location-permission-banner button {
            background: #ffd966;
            border: none;
            padding: 6px 12px;
            border-radius: 16px;
            color: #000;
            font-weight: 500;
            cursor: pointer;
        }

        .location-indicator {
            font-size: 12px;
            color: #ffd966;
            margin-left: 8px;
            padding: 2px 8px;
            background: rgba(255, 217, 102, 0.1);
            border-radius: 12px;
        }

        .retry-button {
            background: #ffd966;
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            color: #000;
            font-weight: 500;
            cursor: pointer;
            margin-top: 12px;
        }

        /* Menu item hover and active effects */
        .menu-item {
            transition: background-color 0.2s ease;
            cursor: pointer;
        }

        .menu-item:hover {
            background-color: rgba(255, 165, 0, 0.1);
        }

        .menu-item:active {
            background-color: #FF8C00;
            color: white;
        }

        .menu-item:active i,
        .menu-item:active span {
            color: white;
        }

        .menu-item:active .bi-chevron-right {
            color: white;
        }

        .menu-item,
        .menu-item i,
        .menu-item span,
        .menu-item .bi-chevron-right {
            transition: all 0.2s ease;
        }

        /* Full results view */
        .full-results-view {
            padding: 16px;
        }

        .full-results-view .section-title {
            font-size: 14px;
            color: #888;
            margin-bottom: 16px;
            padding: 0 8px;
        }

        .full-results-view .results-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* Toast notifications */
        .toast-notification {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.9);
            color: white;
            padding: 12px 24px;
            border-radius: 30px;
            font-size: 14px;
            z-index: 9999;
            display: flex;
            align-items: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            transition: opacity 0.3s ease;
            max-width: 90%;
            white-space: nowrap;
        }

        .toast-notification i {
            font-size: 18px;
        }

        /* Hidden class */
        .hidden {
            display: none !important;
        }
        /* Estilos para Latest Results */
.leader-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #FFD700;
    margin: 0 auto;
}

.leader-photo img,
.user-photo img,
.leader-photo-small img,
.user-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-time-info {
    text-align: center;
    margin-top: 8px;
}

.leader-time {
    font-size: 16px;
    font-weight: bold;
    color: #FFD700;
}

.leader-name {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.your-time {
    font-size: 14px;
    color: #ffd966;
}

.comparison-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 8px 0;
}

.leader-photo-small,
.user-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.leader-photo-small {
    border: 2px solid #FFD700;
}

.vs-badge {
    font-size: 12px;
    font-weight: bold;
    color: #ff6b6b;
}

.leader-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 12px;
}

.leader-time-small {
    font-size: 14px;
    color: #FFD700;
    font-weight: bold;
}

.your-time-diff {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 4px;
}

.user-photo.champion {
    border: 3px solid #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.champion-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFD700;
    color: #000;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.champion-time {
    font-weight: bold;
    color: #FFD700;
    font-size: 16px;
}

.rank-info {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

.user-photo.solo {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 0 auto;
}

.solo-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.workout-date {
    font-size: 16px;
    color: #ffd966;
    margin-top: 2px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}




/* Estilos adicionales para Latest Results */
.join-prompt {
    font-size: 11px;
    color: #ffd966;
    margin-top: 6px;
    background: rgba(255, 217, 102, 0.15);
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.team-name-result {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}



.result-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}




.leader-photo,
.user-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}

.leader-photo img,
.user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-photo-small,
.user-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.leader-photo-small {
    border: 2px solid #FFD700;
}

.leader-photo-small img,
.user-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 8px 0;
}

.vs-badge {
    font-size: 12px;
    font-weight: bold;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    padding: 4px 8px;
    border-radius: 20px;
}

.leader-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 12px;
}

.leader-time {
    font-size: 16px;
    font-weight: bold;
    color: #FFD700;
}

.leader-time-small {
    font-size: 14px;
    color: #FFD700;
    font-weight: bold;
}

.leader-name {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.your-time {
    font-size: 14px;
    color: #ffd966;
    font-weight: 500;
}

.your-time-diff {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 4px;
}

.champion-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFD700;
    color: #000;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.solo-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.user-photo.solo {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 0 auto;
}

.user-photo.champion {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 3px solid #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.result-time-info {
    text-align: center;
    margin-top: 8px;
}

.result-content {
    padding: 8px 0 4px 0;
}
.result-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
   
   
}




.result-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 4px 0;
    border-top: none; /* Eliminar línea */
    margin-top: 0;
}
.result-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
   
}

.team-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.team-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-name-result {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    line-height: 1.3;
}

.workout-date {
    font-size: 16px;
    color: #ffd966;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workout-date i {
    font-size: 12px;
    color: #ffd966;
}

.result-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 8px 0 4px 0;
    margin-left: 60px; /* Alinear con el espacio del logo */
}

/* Estilos para las fotos y tiempos */
.leader-photo,
.user-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.leader-photo img,
.user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-photos {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.leader-photo-small,
.user-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.leader-photo-small img,
.user-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-photo-small {
    border: 2px solid #FFD700;
}

.vs-badge {
    font-size: 12px;
    font-weight: bold;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    padding: 4px 8px;
    border-radius: 20px;
}

.result-time-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.leader-time,
.your-time,
.leader-time-small {
    font-size: 16px;
    font-weight: bold;
    margin-top:-12px;
}

.leader-time {
    color: #FFD700;
}

.your-time {
    color: #ffd966;
}

.leader-time-small {
    font-size: 14px;
    color: #FFD700;
}

.your-time-diff {
    font-size: 12px;
    color: #ff6b6b;
    margin: 0;
}

.champion-time {
    color: #FFD700;
    font-weight: bold;
}

.user-photo.champion {
    border: 3px solid #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.user-photo.solo {
    position: relative;
}

.champion-badge,
.solo-badge {
    display: none;
}
/* Home Search Bar Styles */
.search-section {
    padding: 0 16px;
    margin: 16px 0;
}

.search-bar-container {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffd966;
    box-shadow: 0 0 0 2px rgba(255, 217, 102, 0.2);
}

.home-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.home-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-icon {
    color: #ffd966;
    font-size: 18px;
    margin-right: 8px;
}

.home-clear-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.home-clear-btn:hover {
    color: #ff6b6b;
}

/* Home Search Results - Ahora aparece debajo de la barra */
.home-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-radius: 16px;
    margin-top: 8px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-section {
    position: relative;
    padding: 0 16px;
    margin: 16px 0;
}

.search-bar-container {
    width: 100%;
    position: relative;
}

.search-results-header {
    display: none; /* Ocultamos el header del modal */
}

.home-results-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
}

.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 217, 102, 0.3);
    border-top-color: #ffd966;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Result item más compacto para el dropdown */
.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-item:hover {
    background: rgba(255, 140, 0, 0.1);
    transform: translateX(4px);
}

.result-item .team-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.result-item .team-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-item .team-info {
    flex: 1;
}

.result-item .team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.result-item .team-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.result-item .team-members {
    font-size: 11px;
    color: #ffd966;
}

.result-item .team-location {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-item .team-location i {
    font-size: 10px;
}

.result-item i:last-child {
    color: #888;
    font-size: 16px;
}

/* Títulos de sección dentro del dropdown */
.home-results-list .section-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 8px 4px 8px;
    margin: 0;
}

/* Scrollbar personalizada */
.home-results-list::-webkit-scrollbar {
    width: 4px;
}

.home-results-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.home-results-list::-webkit-scrollbar-thumb {
    background: #ffd966;
    border-radius: 4px;
}

/* Estado vacío dentro del dropdown */
.home-results-list .empty-state {
    text-align: center;
    padding: 40px 20px;
}

.home-results-list .empty-state i {
    font-size: 36px;
    color: #666;
    margin-bottom: 12px;
}

.home-results-list .empty-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}

.home-results-list .empty-message {
    font-size: 12px;
    color: #666;
}

/* Loading dentro del dropdown */
.search-loading span {
    font-size: 12px;
    color: #ffd966;
}
/* Show all results link */
.show-all-results-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffd966;
    font-size: 13px;
    font-weight: 500;
}

.show-all-results-link:hover {
    background: rgba(255, 217, 102, 0.1);
}

.show-all-results-link span {
    color: #ffd966;
}

.show-all-results-link i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.show-all-results-link:hover i {
    transform: translateX(4px);
}
/* Asegurar que el último elemento no tenga margen extra */
.home-results-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
}

/* El enlace "Show all results" no debe tener gap del contenedor */
.show-all-results-link {
    margin: 4px 0 0 0;
}
/* ===== LATEST RESULTS SECTION - RESPONSIVE FIXES ===== */

/* Contenedor principal de resultados */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 8px;
}

/* Tarjeta de resultado individual */
.result-card {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 16px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(245, 174, 1, 0.15);
}

.result-card:hover {
    transform: translateY(-2px);
    background: rgba(40, 40, 40, 0.98);
    border-color: rgba(245, 174, 1, 0.3);
}

/* Header de la tarjeta */
.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.team-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
}

.team-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    flex: 1;
    min-width: 0; /* Permite que el texto se trunque */
}

.team-name-result {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workout-date {
    font-size: 0.7rem;
    color: #888;
    margin-top: 2px;
}

/* Contenido principal de la tarjeta */
.result-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Contenedor de fotos para comparación */
.comparison-photos {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.leader-photo,
.user-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #f5ae01;
}

.leader-photo-small,
.user-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(245, 174, 1, 0.5);
}

.leader-photo img,
.user-photo img,
.leader-photo-small img,
.user-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vs-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #f5ae01;
    background: rgba(245, 174, 1, 0.2);
    padding: 2px 6px;
    border-radius: 12px;
}

/* Contenedor de tiempos */
.result-time-info {
    text-align: right;
    flex-shrink: 1;
    min-width: 0;
}

.leader-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f5ae01;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.leader-time-small {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f5ae01;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.your-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.your-time-diff {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 2px;
    white-space: nowrap;
}

.champion-time {
    color: #ffd700;
    position: relative;
}

.champion-time::after {
    content: '👑';
    font-size: 0.8rem;
    margin-left: 4px;
}

/* ===== MEDIA QUERIES PARA RESPONSIVIDAD ===== */

/* Tablets y móviles grandes */
@media (max-width: 768px) {
    .result-card {
        padding: 12px;
    }
    
    .team-icon {
        width: 40px;
        height: 40px;
    }
    
    .team-name-result {
        font-size: 0.9rem;
    }
    
    .leader-time {
        font-size: 1rem;
    }
    
    .your-time {
        font-size: 0.95rem;
    }
    
    .leader-photo,
    .user-photo {
        width: 44px;
        height: 44px;
    }
    
    .leader-photo-small,
    .user-photo-small {
        width: 34px;
        height: 34px;
    }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .result-card {
        padding: 10px 12px;
    }
    
    .result-header {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .team-icon {
        width: 36px;
        height: 36px;
    }
    
    .team-name-result {
        font-size: 0.85rem;
    }
    
    .workout-date {
        font-size: 0.65rem;
    }
    
    .result-content {
        gap: 8px;
    }
    
    /* Ajustes para los tiempos - evitar que se corten */
    .leader-time {
        font-size: 0.9rem;
        letter-spacing: 0;
    }
    
    .leader-time-small {
        font-size: 0.8rem;
    }
    
    .your-time {
        font-size: 0.85rem;
    }
    
    .your-time-diff {
        font-size: 0.7rem;
    }
    
    .comparison-photos {
        gap: 4px;
    }
    
    .leader-photo,
    .user-photo {
        width: 38px;
        height: 38px;
    }
    
    .leader-photo-small,
    .user-photo-small {
        width: 30px;
        height: 30px;
    }
    
    .vs-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    /* Para pantallas muy pequeñas, cambiar a columna */
    @media (max-width: 380px) {
        .result-content {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .result-time-info {
            text-align: left;
            width: 100%;
            margin-top: 8px;
        }
        
        .leader-time,
        .your-time,
        .your-time-diff {
            white-space: normal;
            word-break: keep-all;
        }
    }
}

/* Para dispositivos con pantalla muy ancha (tablets en landscape) */
@media (min-width: 768px) and (max-width: 1024px) {
    .results-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .result-card {
        padding: 12px;
    }
}

/* Para desktop */
@media (min-width: 1024px) {
    .results-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .result-card {
        padding: 14px 16px;
    }
}
/* Forzar que Laps y DYRT nunca tengan el estilo activo */
.bottom-nav .nav-item:has(.bi-stopwatch),
.bottom-nav .nav-item:has(.bi-chat-dots) {
    color: var(--text-secondary) !important;
}

.bottom-nav .nav-item:has(.bi-stopwatch).active,
.bottom-nav .nav-item:has(.bi-chat-dots).active {
    color: var(--text-secondary) !important;
}

/* Si no funciona con :has(), usa este selector más directo */
.bottom-nav button:nth-child(3),
.bottom-nav button:nth-child(4) {
    color: var(--text-secondary) !important;
}

.bottom-nav button:nth-child(3).active,
.bottom-nav button:nth-child(4).active {
    color: var(--text-secondary) !important;
}

/* Estilos para los resultados en home (igual que en el modal) */
.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-item:hover {
    background: rgba(255, 140, 0, 0.1);
    transform: translateX(2px);
}

.result-item .team-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.result-item .team-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-item .team-info {
    flex: 1;
    min-width: 0;
}

.result-item .team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
}

.result-item .team-name {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-item .member-badge {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: normal;
}

.result-item .team-members {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-item .team-members i {
    font-size: 12px;
}

.result-item .team-location {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-item .team-location i {
    font-size: 10px;
}

.result-item .bi-chevron-right {
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.result-item:hover .bi-chevron-right {
    transform: translateX(2px);
    color: #ff8c00;
}

/* Asegurar que el contenedor de recommended use los mismos estilos */
#recommendedContainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
