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

:root {
    --black: #000000;
    --dark: #0a0a0a;
    --darker: #050505;
    --white: #FFFFFF;
    --gray-100: #1a1a1a;
    --gray-200: #2a2a2a;
    --gray-300: #999999;
    --gray-400: #666666;
    --adidas-blue: #00A0DF;
    --adidas-blue-dark: #0077B6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'AdidasFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 999;
    padding: 30px 20px;
}

.mobile-nav-menu.active {
    display: block;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(0, 160, 223, 0.1);
    border-color: var(--adidas-blue);
    transform: translateX(5px);
}

.mobile-nav-link svg {
    width: 24px;
    height: 24px;
    color: var(--adidas-blue);
    flex-shrink: 0;
}

.mobile-nav-link span {
    flex: 1;
}

.mobile-nav-section {
    margin-bottom: 10px;
}

.mobile-nav-section-title {
    padding: 10px 20px;
    color: var(--adidas-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.logo-img {
    height: 28px;
    width: auto;
}

/* Logo theme switching */
.logo-dark {
    display: block;
}

.logo-light {
    display: none;
}

body.light-mode .logo-dark {
    display: none;
}

body.light-mode .logo-light {
    display: block;
}

/* Footer logo theme switching */
.footer-logo-dark {
    display: block;
}

.footer-logo-light {
    display: none;
}

body.light-mode .footer-logo-dark {
    display: none;
}

body.light-mode .footer-logo-light {
    display: block;
}

.nav-links {
    display: flex;
    gap: 40px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-links > a,
.nav-dropdown-toggle {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links > a:hover,
.nav-dropdown-toggle:hover {
    color: var(--adidas-blue);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 15px;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(0, 160, 223, 0.1);
    color: var(--adidas-blue);
    padding-left: 30px;
}

.user-profile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--adidas-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.user-profile:hover {
    transform: scale(1.1);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.user-profile:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.profile-name {
    padding: 8px 20px;
    color: var(--white);
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
}

.profile-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--white);
    text-decoration: none;
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.profile-dropdown a:hover {
    background: rgba(0, 160, 223, 0.1);
    color: var(--adidas-blue);
}

.profile-avatar {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.1rem;
    color: var(--white);
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    inset: 0;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.pattern-subtle {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/overlays_and_logos/pattern.png');
    background-size: 600px;
    background-position: center;
    opacity: 0.10;
    mix-blend-mode: overlay;
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
}

body.light-mode .pattern-subtle {
    opacity: 0;
    display: none;
}

body.light-mode .card-dark::before,
body.light-mode .run-layout::before,
body.light-mode .gallery-section::before,
body.light-mode .medalla-card::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px;
    max-width: 1200px;
}

.hero-title {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 12px;
    color: var(--white);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

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

.hero-stats-text {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 4px;
    color: var(--white);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
    margin-bottom: 20px;
}

.hero-quote {
    font-family: 'DentonLight', serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    letter-spacing: 3px;
    color: var(--white);
    font-style: normal;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.transition-fade {
    height: 150px;
    background: linear-gradient(180deg, var(--black) 0%, transparent 50%, var(--black) 100%);
    position: relative;
    z-index: 10;
}

body.light-mode .transition-fade {
    display: none;
}

.section-dark {
    position: relative;
    min-height: 100vh;
    padding: 120px 0;
    display: flex;
    align-items: center;
    overflow-x: hidden;
}

.section-bg-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.9) 100%);
}

.section-dark .container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 8px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--gray-300);
    margin-bottom: 60px;
    letter-spacing: 0.5px;
}

.participantes-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.card-dark {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 40px;
    transition: all 0.4s ease;
    position: relative;
    min-width: 320px;
}

/* Inline Participants List */
.participants-inline-list {
    margin: 20px 0;
    min-height: 300px;
    width: 100%;
}

.participant-inline-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--white);
    transition: background 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.participant-inline-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pagination-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.pagination-btn-inline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pagination-btn-inline:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.pagination-btn-inline:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info-inline {
    color: var(--white);
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}

.card-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/overlays_and_logos/pattern.png');
    background-size: 300px;
    opacity: 0.03;
    pointer-events: none;
}

.card-dark:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--adidas-blue);
    transform: translateY(-5px);
}

.card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 25px;
    color: var(--adidas-blue);
    position: relative;
    z-index: 1;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-dark h3 {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--white);
    position: relative;
    z-index: 1;
    text-align: center;
}

.card-dark p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-300);
    position: relative;
    z-index: 1;
}

.medallas-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    margin-top: 60px;
}

.medalla-card {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.medalla-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: none;
    pointer-events: none;
}

.medalla-card:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--adidas-blue);
    transform: translateY(-5px);
}

.medalla-header {
    margin-bottom: 15px;
    z-index: 1;
}

.medalla-number {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--adidas-blue);
    margin-bottom: 5px;
}

.medalla-date {
    font-size: 0.75rem;
    color: var(--gray-400);
    letter-spacing: 1px;
}

.medalla-distance {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 3rem;
    letter-spacing: 4px;
    color: var(--black);
    margin-bottom: 20px;
    z-index: 1;
}

.medalla-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.participant-number-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: black;
    font-family: 'AdidasCondensed', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 4px 12px;
    border-radius: 4px;
    border: 2px solid black;
    z-index: 10;
    letter-spacing: 1px;
}

.medalla-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.medalla-image.locked {
    filter: grayscale(100%) brightness(0.4);
}

.medalla-image.locked::after {
    content: '🔒';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: rgba(0, 0, 0, 0.7);
}

.earned-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: var(--adidas-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 2;
}

.tabs-container {
    margin-bottom: 60px;
}

.tabs-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.run-tab {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: none;
    padding: 25px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.run-tab:hover,
.run-tab.active {
    background: var(--adidas-blue);
}

.tab-number,
.tab-name,
.tab-date {
    display: block;
    transition: color 0.3s ease;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.tab-number {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.tab-name {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.tab-date {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

.run-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.run-content.active {
    display: block;
    animation: fadeInSlide 0.5s ease forwards;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.run-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px;
    margin-bottom: 40px;
    position: relative;
}

.run-layout::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/overlays_and_logos/pattern.png');
    background-size: 400px;
    opacity: 0.03;
    pointer-events: none;
}

.run-info,
.run-map {
    position: relative;
    z-index: 1;
}

.run-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 160, 223, 0.3);
}

.run-title {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: var(--white);
}

.run-date {
    font-size: 1rem;
    color: var(--adidas-blue);
    font-weight: 500;
}

.run-details {
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    font-weight: 600;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
}

.run-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-300);
}

.run-map {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 160, 223, 0.3);
}

.route-subtitle {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--white);
    margin: 0 0 15px 0;
    padding: 15px 20px 0;
    text-align: left;
}

.run-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-section {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/overlays_and_logos/pattern.png');
    background-size: 500px;
    opacity: 0.03;
    pointer-events: none;
}

.gallery-title {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.gallery-subtitle {
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--adidas-blue);
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 600;
}

body.light-mode .gallery-subtitle {
    color: var(--adidas-blue);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    position: relative;
    z-index: 1;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    border-color: var(--adidas-blue);
    z-index: 2;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumb:hover .thumb-overlay {
    opacity: 1;
}

.love-btn {
    background: var(--adidas-blue);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.love-btn:hover {
    transform: scale(1.2);
    background: var(--adidas-blue-dark);
}

.love-btn.loved {
    background: #ff0000;
}

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.gallery-modal.active {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #666;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: 2px solid rgba(100, 100, 100, 0.3);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 2001;
    transition: background 0.3s ease;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-nav.prev {
    left: -60px;
}

.modal-nav.next {
    right: -60px;
}

.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.modal-love-btn,
.modal-download-btn {
    padding: 15px 30px;
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-love-btn {
    background: #000;
    color: #fff;
    font-size: 2rem;
    padding: 10px 20px;
}

.modal-love-btn:hover {
    background: #333;
}

.modal-love-btn.loved {
    color: #fff;
}

.modal-download-btn {
    background: var(--white);
    color: var(--black);
}


.modal-download-btn:hover {
    background: var(--gray-300);
}

.modal-download-btn svg {
    width: 20px;
    height: 20px;
}

.resultados-compact {
    padding: 100px 0;
    background: var(--black);
    text-align: center;
}

.results-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: var(--adidas-blue);
    color: var(--white);
    text-decoration: none;
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.results-link:hover {
    background: var(--adidas-blue-dark);
    transform: translateY(-3px);
}

.results-link svg {
    width: 20px;
    height: 20px;
}

/* Sponsors Section */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.sponsor-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-height: 150px;
}

.sponsor-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--adidas-blue);
    transform: translateY(-5px);
}

.sponsor-card img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
}

.sponsor-card:hover img {
    opacity: 0.9;
}
}

body.light-mode .sponsor-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .sponsor-card img {
    filter: none;
    opacity: 0.7;
}

body.light-mode .sponsor-card:hover img {
    opacity: 1;
}

.footer {
    background: var(--darker);
    padding: 60px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo img {
    height: 35px;
    width: auto;
}

.footer p {
    font-size: 0.8rem;
    color: var(--gray-400);
    letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
    .participantes-grid-horizontal {
        grid-template-columns: 1fr;
    }
    
    .medallas-grid-horizontal {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tabs-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .run-layout {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Carousel - Hidden on desktop */
.mobile-carousel {
    display: none;
}

/* Medals Carousel - Hidden on desktop */
.medals-carousel {
    display: none;
}

/* Tablet and Mobile - Use carousel for better experience */
@media (max-width: 1024px) {
    /* Hide desktop tabs on tablet/mobile */
    .tabs-container {
        display: none;
    }
    
    /* Show mobile carousel */
    .mobile-carousel {
        display: block;
        margin-bottom: 30px;
        padding: 0;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        position: relative;
    }
    
    /* Hide desktop medals grid on tablet/mobile */
    .medallas-grid-horizontal {
        display: none;
    }
    
    /* Show medals carousel */
    .medals-carousel {
        display: block;
        margin-bottom: 30px;
        padding: 0;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        position: relative;
    }
    
    .medals-track {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 20px;
        padding: 20px 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: none;
        width: 100%;
        max-width: 100vw;
        cursor: grab;
    }
    
    .medals-track:active {
        cursor: grabbing;
    }
    
    .medals-track::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .medals-track .medalla-card {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 320px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        min-height: 380px;
    }
    
    .medals-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    
    .medal-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .medal-dot.active {
        background: var(--adidas-blue);
        width: 24px;
        border-radius: 4px;
    }
    
    .carousel-track {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 20px;
        padding: 20px 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: none;
        width: 100%;
        max-width: 100vw;
        cursor: grab;
    }
    
    .carousel-track:active {
        cursor: grabbing;
    }
    
    .carousel-track::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .carousel-card {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 320px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 25px 20px;
        text-align: center;
        transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
        cursor: pointer;
        box-sizing: border-box;
        user-select: none;
    }
    
    .carousel-card.active {
        background: var(--adidas-blue);
        border-color: var(--adidas-blue);
    }
    
    .carousel-card.completed {
        border-color: var(--adidas-blue);
    }
    
    .carousel-card .status-badge {
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 1px;
        padding: 4px 12px;
        border-radius: 12px;
        margin-bottom: 15px;
        background: rgba(0, 160, 223, 0.2);
        color: var(--adidas-blue);
    }
    
    .carousel-card.completed .status-badge {
        background: var(--adidas-blue);
        color: var(--white);
    }
    
    .carousel-card .card-number,
    .carousel-card .card-distance,
    .carousel-card .card-date,
    .carousel-card .card-time,
    .carousel-card .card-location {
        font-family: 'AdidasDisplay', sans-serif;
    }
    
    .carousel-card .card-number {
        font-size: 0.9rem;
        letter-spacing: 2px;
        margin-bottom: 8px;
        opacity: 0.7;
    }
    
    .carousel-card .card-distance {
        font-size: 3.5rem;
        letter-spacing: 4px;
        margin-bottom: 15px;
        font-weight: bold;
    }
    
    .carousel-card .card-date {
        font-size: 0.85rem;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }
    
    .carousel-card .card-time {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .carousel-card .card-location {
        font-size: 0.9rem;
        opacity: 0.8;
        line-height: 1.4;
    }
    
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .carousel-dot.active {
        background: var(--adidas-blue);
        width: 24px;
        border-radius: 4px;
    }
}

@media (max-width: 768px) {
    /* CRITICAL: Prevent horizontal overflow */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .section-dark {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 15px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    body.light-mode .mobile-menu-toggle span {
        background: #1a1a1a;
    }
    
    body.light-mode .mobile-nav-menu {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }
    
    body.light-mode .mobile-nav-link {
        color: #1a1a1a;
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.05);
    }
    
    body.light-mode .mobile-nav-link:hover,
    body.light-mode .mobile-nav-link:active {
        background: rgba(0, 160, 223, 0.1);
        border-color: var(--adidas-blue);
    }
    
    body.light-mode .mobile-nav-section-title {
        color: var(--adidas-blue);
    }
    
    .hero-title {
        letter-spacing: 6px;
    }
    
    .hero-stats-text {
        letter-spacing: 2px;
    }
    
    /* Fix run content container - CRITICAL FIX */
    .run-content-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow: visible;
        box-sizing: border-box;
    }
    
    .run-content {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .run-layout {
        grid-template-columns: 1fr;
        padding: 15px;
        margin: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .run-info {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .run-header {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .run-title {
        font-size: 1.3rem;
        letter-spacing: 1.5px;
        word-wrap: break-word;
    }
    
    .run-date {
        font-size: 0.85rem;
        margin-top: 5px;
    }
    
    .run-details {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .detail-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    
    .detail-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.7;
    }
    
    .detail-value {
        font-size: 0.95rem;
        font-weight: 600;
        word-wrap: break-word;
    }
    
    .run-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 15px;
        word-wrap: break-word;
    }
    
    .run-map {
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
        box-sizing: border-box;
    }
    
    .run-map img {
        width: 100%;
        height: auto;
        max-width: 100%;
        display: block;
    }
    
    .info-toggle {
        width: 100%;
        font-size: 0.8rem;
        padding: 10px 12px;
        box-sizing: border-box;
    }
    
    .info-expanded {
        margin-top: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .info-expanded h4 {
        font-size: 1.1rem;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
    
    .info-section {
        padding: 12px;
        margin-bottom: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .info-section h5 {
        font-size: 0.95rem;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
    }
    
    .info-section p,
    .info-section ul {
        font-size: 0.85rem;
        line-height: 1.5;
        word-wrap: break-word;
    }
    
    .info-section ul {
        padding-left: 15px;
    }
    
    .info-section ul li {
        padding: 5px 0;
        font-size: 0.8rem;
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    .info-section ul li strong {
        font-size: 0.8rem;
        display: inline;
    }
    
    .medallas-grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-section {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .gallery-title {
        font-size: 1.3rem;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }
    
    .gallery-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }
    
    .gallery-thumb {
        width: 100%;
        aspect-ratio: 1;
    }
    
    .gallery-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .tabs-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .hero-stats-text {
        font-size: 0.9rem;
    }
    
    .medallas-grid-horizontal {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--white);
    position: absolute;
    transition: all 0.3s ease;
}

.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.light-mode .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.light-mode .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

/* Light Mode Styles */
body.light-mode {
    background: #F5F5F5;
    color: #1a1a1a;
}

body.light-mode::before {
    opacity: 0.08 !important;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-links a {
    color: #1a1a1a;
}

body.light-mode .nav-links a:hover {
    color: var(--adidas-blue);
}

body.light-mode .nav-links > a,
body.light-mode .nav-dropdown-toggle {
    color: #1a1a1a;
}

body.light-mode .nav-links > a:hover,
body.light-mode .nav-dropdown-toggle:hover {
    color: var(--adidas-blue);
}

body.light-mode .nav-dropdown-menu,
body.light-mode .profile-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .profile-name {
    color: var(--adidas-blue);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-dropdown-menu a,
body.light-mode .profile-dropdown a {
    color: #1a1a1a;
}

body.light-mode .nav-dropdown-menu a:hover,
body.light-mode .profile-dropdown a:hover {
    background: rgba(0, 160, 223, 0.1);
    color: var(--adidas-blue);
}

body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .theme-toggle svg {
    color: #1a1a1a;
}

body.light-mode .section-title {
    color: #1a1a1a;
}

body.light-mode .hero-title {
    color: var(--white);
}

body.light-mode .hero-stats-text,
body.light-mode .hero-quote {
    color: var(--white);
}

body.light-mode .section-subtitle {
    color: #666666;
}

body.light-mode .card-dark {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .card-dark:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--adidas-blue);
}

body.light-mode .card-dark h3,
body.light-mode .run-title,
body.light-mode .medalla-info h3,
body.light-mode .gallery-title {
    color: #1a1a1a;
}

body.light-mode .card-dark p,
body.light-mode .run-description,
body.light-mode .detail-value {
    color: #666666;
}

body.light-mode .medalla-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .medalla-card:hover {
    background: rgba(255, 255, 255, 1);
}

body.light-mode .carousel-dot {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.light-mode .carousel-dot.active {
    background: var(--adidas-blue);
    border-color: var(--adidas-blue);
}

body.light-mode .medal-dot {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.light-mode .medal-dot.active {
    background: var(--adidas-blue);
    border-color: var(--adidas-blue);
}

body.light-mode .run-tab {
    background: rgba(255, 255, 255, 0.8);
    color: #1a1a1a;
}

body.light-mode .run-tab:hover,
body.light-mode .run-tab.active {
    background: var(--adidas-blue);
    color: var(--white);
}

body.light-mode .tab-number,
body.light-mode .tab-name,
body.light-mode .tab-date {
    color: inherit;
}

body.light-mode .run-layout,
body.light-mode .gallery-section {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .gallery-thumb {
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .gallery-thumb:hover {
    border-color: var(--adidas-blue);
}

body.light-mode .section-overlay {
    background: linear-gradient(180deg, rgba(245,245,245,0.92) 0%, rgba(245,245,245,0.95) 100%);
}

body.light-mode .footer {
    background: #FFFFFF;
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .footer p {
    color: #666666;
}

body.light-mode .results-link {
    box-shadow: 0 4px 12px rgba(0, 160, 223, 0.3);
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* Image Transition Sections */
.image-transition {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.transition-image {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.transition-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 70%, #000000 100%),
        linear-gradient(to bottom, #000000 0%, transparent 15%, transparent 85%, #000000 100%),
        linear-gradient(to right, #000000 0%, transparent 10%, transparent 90%, #000000 100%);
    pointer-events: none;
    z-index: 1;
}

.transition-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.9) 70%, #000000 100%);
    pointer-events: none;
    z-index: 2;
}

body.light-mode .transition-gradient {
    display: none;
}

body.light-mode .transition-image::before {
    display: none;
}

body.light-mode .transition-gradient {
    display: none;
}

@media (max-width: 768px) {
    .image-transition {
        height: 60vh;
    }
    
    .transition-image {
        height: 60vh;
    }
}

/* Expandable Info Section */
.info-toggle {
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--adidas-blue);
    color: var(--white);
    border: none;
    font-family: 'AdidasFont', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: space-between;
}

.info-toggle:hover {
    background: var(--adidas-blue-dark);
}

.info-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.info-toggle.active svg {
    transform: rotate(180deg);
}

.info-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 20px;
}

.info-expanded.active {
    max-height: 2000px;
}

.info-expanded h4 {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--adidas-blue);
}

.info-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--adidas-blue);
}

body.light-mode .info-section {
    background: rgba(0, 0, 0, 0.03);
}

.info-section h5 {
    font-family: 'AdidasFont', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

body.light-mode .info-section h5 {
    color: #1a1a1a;
}

.info-section p,
.info-section ul {
    color: var(--gray-300);
    line-height: 1.7;
}

body.light-mode .info-section p,
body.light-mode .info-section ul {
    color: #666666;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .info-section ul li {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.info-section ul li:last-child {
    border-bottom: none;
}

.info-section ul li strong {
    color: var(--white);
}

body.light-mode .info-section ul li strong {
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .info-toggle {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .info-section {
        padding: 15px;
    }
    
    .info-section h5 {
        font-size: 1rem;
    }
}


/* Participants Modal */
.participants-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.participants-modal.active {
    display: flex;
}

.participants-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.participants-modal-content {
    position: relative;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.participants-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.participants-modal-close:hover {
    background: var(--adidas-blue);
    border-color: var(--adidas-blue);
}

.participants-modal-close svg {
    width: 18px;
    height: 18px;
    color: var(--white);
}

.participants-modal-title {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.participants-count {
    font-family: 'AdidasFont', sans-serif;
    font-size: 0.9rem;
    color: var(--adidas-blue);
    margin-bottom: 20px;
}

.participants-search {
    margin-bottom: 20px;
}

.participants-search input {
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: 'AdidasFont', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.participants-search input:focus {
    outline: none;
    border-color: var(--adidas-blue);
    background: rgba(255, 255, 255, 0.08);
}

.participants-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.participants-list-container {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.participants-list {
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
}

.participants-list::-webkit-scrollbar {
    width: 6px;
}

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

.participants-list::-webkit-scrollbar-thumb {
    background: var(--adidas-blue);
    border-radius: 3px;
}

.participant-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.participant-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--adidas-blue);
    transform: translateX(3px);
}

.participant-name {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--white);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-role {
    font-family: 'AdidasFont', sans-serif;
    font-size: 0.8rem;
    color: var(--adidas-blue);
    letter-spacing: 0.3px;
    flex-shrink: 0;
    text-align: right;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-info {
    font-family: 'AdidasFont', sans-serif;
    font-size: 0.9rem;
    color: var(--white);
}

.pagination-buttons {
    display: flex;
    gap: 10px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--adidas-blue);
    border-color: var(--adidas-blue);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

/* Light Mode */
body.light-mode .participants-modal-overlay {
    background: rgba(255, 255, 255, 0.7);
}

body.light-mode .participants-modal-content {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .participants-modal-close {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .participants-modal-close svg {
    color: #1a1a1a;
}

body.light-mode .participants-modal-close:hover svg {
    color: var(--white);
}

body.light-mode .participants-modal-title {
    color: #1a1a1a;
}

body.light-mode .participants-search input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body.light-mode .participants-search input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .participant-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .participant-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .participant-name {
    color: #1a1a1a;
}

body.light-mode .pagination-info {
    color: #1a1a1a;
}

body.light-mode .pagination-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .pagination-controls {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .participant-inline-item {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

body.light-mode .participant-inline-item:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .pagination-btn-inline {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body.light-mode .pagination-btn-inline:hover:not(:disabled) {
    background: rgba(0, 160, 223, 0.1);
    border-color: var(--adidas-blue);
}

body.light-mode .pagination-info-inline {
    color: #1a1a1a;
}


/* Mobile */
@media (max-width: 768px) {
    .participants-modal-content {
        width: 95%;
        max-height: 85vh;
        padding: 25px 20px;
    }
    
    .participants-modal-title {
        font-size: 1.4rem;
        letter-spacing: 1.5px;
        margin-bottom: 8px;
    }
    
    .participant-item {
        padding: 12px;
    }
    
    .participant-name {
        font-size: 0.95rem;
    }
    
    .participant-role {
        font-size: 0.8rem;
    }
    
    .pagination-info {
        font-size: 0.85rem;
    }
}


/* Time Entry Styles */
.medalla-time-entry {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.time-display {
    text-align: center;
}

.participant-number-marathon {
    background: white;
    color: black;
    font-family: 'AdidasCondensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 2px 8px;
    border: 2px solid black;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.time-value {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1rem;
    color: var(--adidas-blue);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.pace-value {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 0.8rem;
    color: var(--gray-400);
    letter-spacing: 1px;
}

.add-time-btn,
.edit-time-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 160, 223, 0.1);
    border: 1px solid var(--adidas-blue);
    border-radius: 4px;
    color: var(--adidas-blue);
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-time-btn:hover,
.edit-time-btn:hover {
    background: var(--adidas-blue);
    color: var(--white);
}

.add-time-btn svg,
.edit-time-btn svg {
    width: 14px;
    height: 14px;
}

/* Time Modal */
.time-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.time-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.time-modal-content {
    position: relative;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    z-index: 1;
}

.time-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.time-modal-close:hover {
    background: var(--adidas-blue);
    border-color: var(--adidas-blue);
}

.time-modal-close svg {
    width: 16px;
    height: 16px;
    color: var(--white);
}

.time-modal-title {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: var(--white);
}

.time-modal-subtitle {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 0.8rem;
    color: var(--adidas-blue);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.time-input-group label {
    display: block;
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.time-input-group input[type="text"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--white);
    font-size: 1rem;
    font-family: 'AdidasCondensed', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}

.time-input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--adidas-blue);
    background: rgba(0, 160, 223, 0.1);
}

.time-input-group input[type="text"]::placeholder {
    color: var(--gray-400);
    font-size: 0.85rem;
    font-weight: 400;
}

.time-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.time-inputs input {
    width: 80px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--white);
    font-size: 1.5rem;
    text-align: center;
    font-family: 'AdidasCondensed', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}

.time-inputs input:focus {
    outline: none;
    border-color: var(--adidas-blue);
    background: rgba(0, 160, 223, 0.1);
}

.time-inputs span {
    font-size: 1.5rem;
    color: var(--gray-400);
    font-family: 'AdidasDisplay', sans-serif;
}

.pace-display {
    text-align: center;
    padding: 20px;
    background: rgba(0, 160, 223, 0.1);
    border-radius: 8px;
    margin-bottom: 25px;
}

.pace-label {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.pace-value-large {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.8rem;
    color: var(--adidas-blue);
    letter-spacing: 2px;
}

.time-modal-actions {
    display: flex;
    gap: 10px;
}

.btn-delete {
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'AdidasDisplay', sans-serif;
    letter-spacing: 1px;
    background: #dc3545;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-delete svg {
    width: 18px;
    height: 18px;
}

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

.btn-cancel,
.btn-save {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'AdidasDisplay', sans-serif;
    letter-spacing: 1px;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

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

.btn-save {
    background: var(--adidas-blue);
    border: 1px solid var(--adidas-blue);
    color: var(--white);
}

.btn-save:hover {
    background: #0088dd;
}

/* Light Mode */
body.light-mode .time-modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .time-modal-title {
    color: #1a1a1a;
}

body.light-mode .time-inputs input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body.light-mode .btn-cancel {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body.light-mode .time-input-group input[type="text"],
body.light-mode .time-inputs input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #000;
}

body.light-mode .time-input-group input[type="text"]:focus,
body.light-mode .time-inputs input:focus {
    background: rgba(0, 160, 223, 0.1);
    border-color: var(--adidas-blue);
}

body.light-mode .medalla-time-entry {
    border-top-color: rgba(0, 0, 0, 0.1);
}
/* Mobile Fixes - Add to styles.css */

/* 1. User Profile Dropdown - Click support */
.user-profile.active .profile-dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

/* 2. Medal Dots - Make clickable and visible */
.medal-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.medal-dot:hover {
    transform: scale(1.2);
}

/* 3. Mobile Horizontal - Compact run cards */
@media (max-width: 932px) and (orientation: landscape) {
    .run-content {
        padding: 20px 0;
    }
    
    .run-layout {
        gap: 15px;
    }
    
    .run-info {
        padding: 15px;
    }
    
    .run-header {
        margin-bottom: 10px;
    }
    
    .run-title {
        font-size: 1.2rem;
    }
    
    .run-details {
        gap: 10px;
    }
    
    .detail-item {
        padding: 8px 0;
    }
    
    .run-description {
        font-size: 0.85rem;
        margin-top: 10px;
    }
    
    .run-map img {
        max-height: 200px;
    }
    
    .gallery-section {
        margin-top: 15px;
    }
    
    .gallery-title {
        font-size: 1.2rem;
    }
}

/* iPad specific fixes */
@media (min-width: 768px) and (max-width: 1024px) {
    .user-profile {
        position: relative;
    }
    
    .user-profile .profile-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
    }
}
/* COMPREHENSIVE FIXES */

/* 1. Profile Dropdown - Extend background and light theme color */
.profile-name {
    padding: 8px 20px;
    padding-right: 40px; /* Extend background to the right */
    color: var(--white);
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="light"] .profile-name {
    color: var(--black);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}


/* 3. Carousel Card - Light theme border hint */
[data-theme="light"] .carousel-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .carousel-card:not(.active) {
    border-right: 2px solid rgba(0, 0, 0, 0.12);
}

/* 4. Image Transition - White vignette for light theme */
.image-transition {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

/* Mobile Vertical - Tighter Run Content */
@media (max-width: 768px) and (orientation: portrait) {
    .run-content {
        padding: 15px 0;
    }
    
    .run-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    .run-info {
        padding: 15px;
    }
    
    .run-header {
        margin-bottom: 12px;
    }
    
    .run-title {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .run-date {
        font-size: 0.75rem;
    }
    
    .run-details {
        gap: 8px;
        margin: 12px 0;
    }
    
    .detail-item {
        padding: 8px 0;
    }
    
    .detail-label {
        font-size: 0.7rem;
    }
    
    .detail-value {
        font-size: 0.85rem;
    }
    
    .run-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-top: 10px;
    }
    
    .run-map {
        max-height: 250px;
        overflow: hidden;
    }
    
    .run-map img {
        max-height: 250px;
        object-fit: cover;
    }
    
    .gallery-section {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .gallery-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .gallery-subtitle {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
}
/* FIX 1: Info toggle should not expand run-content container */
.info-expanded.active {
    max-height: 2000px;
    overflow: visible;
}

.run-content {
    overflow: visible;
}

/* FIX 2: Map should support both orientations and be clickable */
.run-map {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.run-map img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Map modal for full-size view */
.map-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.map-modal.active {
    display: flex;
}

.map-modal img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
}

.map-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 3001;
}

/* FIX 3: Optimize vignette - show more photo, less gradient */
.transition-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
    z-index: 2;
}

body.light-mode .transition-gradient {
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.3) 60%, rgba(255,255,255,0.6) 100%);
}

[data-theme="light"] .transition-gradient {
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.3) 60%, rgba(255,255,255,0.6) 100%);
}
/* Fix status badge visibility on active/blue cards */
.carousel-card.active .status-badge {
    background: var(--white);
    color: var(--adidas-blue);
}

[data-theme="light"] .carousel-card.active .status-badge {
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
}
/* Fix 1: iPad horizontal - Add right padding to run details */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .run-info {
        padding-right: 30px;
    }
    
    .run-layout {
        padding-right: 20px;
    }
}

/* Fix 2: Prevent card auto-switching by improving click detection */
.carousel-card {
    pointer-events: auto;
    user-select: none;
}
/* Light theme - Add border to non-active carousel cards */
[data-theme="light"] .carousel-card:not(.active) {
    border: 1px solid rgba(0, 0, 0, 0.15);
}

body.light-mode .carousel-card:not(.active) {
    border: 1px solid rgba(0, 0, 0, 0.15);
}
/* Footer Link */
.footer-link {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    margin: 10px 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

[data-theme="light"] .footer-link {
    color: var(--black);
}

body.light-mode .footer-link {
    color: #333;
}

body.light-mode .route-subtitle {
    color: var(--black);
}

body.light-mode .profile-avatar {
    color: var(--white);
}

/* Site Usage Modal */
.site-usage-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.site-usage-modal.active {
    display: flex;
}

.site-usage-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .site-usage-overlay {
    background: rgba(255, 255, 255, 0.8);
}

.site-usage-content {
    position: relative;
    background: rgba(0, 0, 0, 0.95);
    color: var(--white);
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 8px;
    z-index: 4001;
}

[data-theme="light"] .site-usage-content {
    background: rgba(255, 255, 255, 0.95);
    color: var(--black);
}

.site-usage-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
}

[data-theme="light"] .site-usage-close {
    color: var(--black);
}

.site-usage-content h3 {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.site-usage-content h4 {
    font-family: 'AdidasDisplay', sans-serif;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--adidas-blue);
}

.site-usage-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

.site-usage-text li {
    margin: 8px 0;
    line-height: 1.6;
}


/* Partners Section */
.partners-section, .patrocinadores-section {
    margin: 40px 0;
}

.partners-subtitle {
    font-family: 'AdidasFGCompressed', 'AdidasDisplay', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 3px;
    color: var(--white);
    margin: 30px 0 20px;
    text-align: center;
}

body.light-mode .partners-subtitle {
    color: #000;
}

.partners-grid {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.partner-card {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 120px;
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/overlays_and_logos/pattern.png');
    background-size: 200px;
    opacity: 0.35;
    pointer-events: none;
}

.partner-card[data-partner="ch-fisioterapia"]::before,
.partner-card[data-partner="atlesia"]::before,
.partner-card[data-partner="nutriologa-den"]::before {
    background-image: url('../assets/images/overlays_and_logos/pattern.png');
    background-size: 240%;
    opacity: 0.07;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.partner-card img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    border-radius: 5px;
}

.partner-name {
    font-family: 'AdidasFG', 'AdidasDisplay', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--black);
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Partner Modal */
.partner-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.partner-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
}

.partner-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-family: 'AdidasFG', sans-serif;
    font-size: 40px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.partner-modal-slides {
    position: relative;
    width: 100%;
}

.partner-slide {
    display: none;
    width: 100%;
    height: 70vh;
    border: none;
}

.partner-slide.active {
    display: block;
}

.partner-slide.qr-slide {
    display: none;
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.partner-slide.qr-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    font-family: 'AdidasFG', sans-serif;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10001;
}

.partner-prev {
    left: 10px;
}

.partner-next {
    right: 10px;
}

.partner-dots {
    text-align: center;
    padding: 20px 0;
}

.partner-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
}

.partner-dot.active {
    background-color: var(--white);
}

@media (max-width: 768px) {
    .partners-subtitle {
        font-size: 1.5rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .partner-modal-content {
        width: 95%;
    }
    
    .partner-nav {
        font-size: 20px;
        padding: 5px 10px;
    }
}
