/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --secondary-color: #f97316;
    --accent-color: #fb923c;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #f97316 100%);
    --gradient-hero: linear-gradient(rgba(30, 64, 175, 0.8), rgba(249, 115, 22, 0.6));
    --gradient-orange: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-blue: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--secondary-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--gradient-hero), url('../images/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-carreras {
    height: 60vh;
    background: var(--gradient-hero), url('../images/fondo_m.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-logos {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-logo-main {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--accent-color);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-orange);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--gradient-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--white);
}

/* Availability Badge Styles */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.availability-badge.disponible {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}

.availability-badge.ultimos-cupos {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
    animation: pulse 2s infinite;
}

.availability-badge.agotado {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
}

.availability-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 12px;
    background: var(--light-bg);
    border-radius: 10px;
}

.cupos-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.cupos-number {
    font-weight: bold;
    color: var(--primary-color);
}

.cupos-progress {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 10px;
}

.cupos-progress-bar {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.cupos-progress-bar.disponible {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.cupos-progress-bar.ultimos-cupos {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.cupos-progress-bar.agotado {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Inscritos Search Section */
.inscritos-search-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.search-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.search-controls {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-input-group {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.search-input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: var(--light-bg);
    color: var(--text-dark);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.filter-group select {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.inscritos-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}


/* Medals Calculation Styles */
.medals-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.medals-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.medal-summary-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.medal-summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.medal-summary-card.grand-total {
    border-left-color: #fbbf24;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.medal-summary-card.overall {
    border-left-color: var(--primary-color);
}

.medal-summary-card.category {
    border-left-color: var(--secondary-color);
}

.medal-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.medal-summary-card.grand-total .medal-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.medal-summary-card.overall .medal-icon {
    background: var(--gradient-primary);
}

.medal-summary-card.category .medal-icon {
    background: var(--gradient-orange);
}

.medal-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.medal-content {
    flex: 1;
}

.medal-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.medal-label {
    font-size: 0.95rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.medal-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 8px;
    font-style: italic;
}

/* Medals Breakdown */
.medals-breakdown {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.medal-modalidad-card {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.medal-modalidad-card:hover {
    background: #e2e8f0;
    box-shadow: var(--shadow);
}

.medal-modalidad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #cbd5e1;
}

.medal-modalidad-header h5 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.medal-modalidad-total {
    background: var(--gradient-orange);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.medal-categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.medal-category-item {
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.medal-category-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15);
}

.medal-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.medal-category-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.medal-category-total {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.medal-category-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.medal-gender {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
}

.medal-gender.male {
    background: #dbeafe;
    color: #1e40af;
}

.medal-gender.female {
    background: #fce7f3;
    color: #be185d;
}

.medal-gender i {
    font-size: 1rem;
}

/* Detailed Statistics Section */
.detailed-stats-section {
    margin: 60px 0;
}

.detailed-stats-section .section-header {
    margin-bottom: 40px;
}

.detailed-stats-section .section-header h3 {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stats-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.stats-card.full-width {
    grid-column: 1 / -1;
}

.stats-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-bar-item {
    padding: 15px;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-bar-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.stat-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stat-bar-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.stat-bar-value {
    color: var(--text-light);
    font-size: 0.9rem;
}

.stat-bar-container {
    background: #e2e8f0;
    border-radius: 8px;
    height: 40px;
    overflow: hidden;
    margin-bottom: 10px;
}

.stat-bar {
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    transition: width 0.5s ease;
    min-width: 60px;
}

.stat-bar.categoria {
    background: var(--gradient-orange);
}

.stat-bar-text {
    color: var(--white);
    font-weight: bold;
    font-size: 1rem;
}

.stat-bar-details {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.stat-detail {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-detail.male {
    color: #1e40af;
}

.stat-detail.female {
    color: #be185d;
}

.stat-detail i {
    font-size: 1rem;
}


/* Categories Breakdown */
.categories-breakdown {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
}

.categories-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.categories-header i {
    font-size: 1rem;
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.category-detail-item {
    background: var(--white);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.category-detail-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

.category-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.category-gender-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.gender-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.gender-stat.male {
    color: #1e40af;
}

.gender-stat.female {
    color: #be185d;
}

.gender-stat i {
    font-size: 0.9rem;
}

.category-total {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    margin-left: auto;
}

/* Gender by Modalidad Stats */
.genero-stat-item {
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
    margin-bottom: 20px;
}

.genero-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.genero-stat-header h5 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
}

.genero-stat-total {
    color: var(--text-light);
    font-weight: 600;
}

.genero-bar-container {
    display: flex;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.genero-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.genero-bar.male {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.genero-bar.female {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.genero-bar:hover {
    filter: brightness(1.1);
}

.genero-bar-text {
    color: var(--white);
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.genero-bar-text i {
    font-size: 1.1rem;
}

.inscritos-table-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.inscritos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.inscritos-table thead {
    background: var(--gradient-primary);
    color: var(--white);
}

.inscritos-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.inscritos-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.inscritos-table tbody tr:hover {
    background: var(--light-bg);
}

.tipo-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.tipo-badge.pago {
    background: var(--gradient-primary);
    color: var(--white);
}

.tipo-badge.gratuito {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}
.tipo-badge.polera {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}

.estado-badge.confirmado {
    background: #dcfce7;
    color: #166534;
}

.estado-badge.pendiente {
    background: #fef3c7;
    color: #92400e;
}

.estado-badge.cancelado {
    background: #fecaca;
    color: #991b1b;
}

.no-inscritos {
    text-align: center;
    padding: 60px 20px;
}

.no-inscritos-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.no-inscritos-content i {
    font-size: 3rem;
    color: var(--text-light);
}

.no-inscritos-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.no-inscritos-content p {
    color: var(--text-light);
}

.error-container {
    text-align: center;
    padding: 60px 20px;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.error-content i {
    font-size: 3rem;
    color: #ef4444;
}

.error-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.error-content p {
    color: var(--text-light);
}

#pagination {
    padding: 30px;
    display: flex;
    justify-content: center;
}

.pagination-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination-btn {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.pagination-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 0 5px;
    color: var(--text-light);
}

/* Event Info Section */
.event-info {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.event-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon i {
    font-size: 2rem;
    color: var(--white);
}

.event-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.event-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.stats-section {
    background: var(--light-bg);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stats-section h3 {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quick Links Section */
.quick-links {
    padding: 100px 0;
    background: var(--light-bg);
}

.quick-links h2 {
    text-align: center;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.link-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
}

.link-card:hover::before {
    left: 0;
}

.link-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.link-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.link-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.link-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.link-arrow {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    bottom: 30px;
    right: 30px;
    transition: transform 0.3s ease;
}

.link-card:hover .link-arrow {
    transform: translateX(5px);
}

/* Carreras Section */
.carreras-section {
    padding: 100px 0;
    background: var(--white);
}

.carrera-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 60px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 400px;
}

.carrera-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.carrera-image {
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.ultra-trail .carrera-image {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.trail .carrera-image {
    background: var(--gradient-primary);
}

.media-maraton .carrera-image {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.diez-k .carrera-image {
    background: var(--gradient-orange);
}

.carrera-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.carrera-difficulty {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
}

.carrera-difficulty i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.carrera-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carrera-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.carrera-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--light-bg);
    border-radius: 10px;
}

.stat i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 20px;
}

.stat span {
    font-weight: 600;
    color: var(--text-dark);
}

.carrera-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 30px;
}

.carrera-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 2px;
    width: 20px;
}

.detail-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.detail-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.carrera-price {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 15px;
    margin-top: auto;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-note {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Info Adicional Section */
.info-adicional {
    padding: 80px 0;
    background: var(--light-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.info-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.info-icon i {
    font-size: 2rem;
    color: var(--white);
}

.info-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-card ul {
    list-style: none;
    text-align: left;
}

.info-card ul li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid #e2e8f0;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card ul li strong {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Sponsors Section */
.sponsors-section {
    padding: 80px 0;
    background: var(--white);
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sponsor-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--secondary-color);
}

.sponsor-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 15px 0 10px;
}

.sponsor-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.sponsor-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(0%);
    transition: all 0.3s ease;
}

.sponsor-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Organizer Section */
.organizer-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.organizer-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.organizer-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.organizer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.organizer-logo {
    height: 100px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

/* Gallery Styles */
.gallery-filters {
    padding: 80px 0 40px;
    background: var(--light-bg);
}

.filters-container {
    text-align: center;
}

.filters-container h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.gallery-section {
    padding: 40px 0 100px;
    background: var(--white);
}

.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 15px;
}

.gallery-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 600;
}

.gallery-stats .stat-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-info h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.gallery-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.gallery-category {
    display: inline-block;
    background: var(--gradient-orange);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.gallery-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
    transform: scale(1);
}

.gallery-zoom:hover {
    background: var(--primary-color);
    color: var(--white);
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.modal-info {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
    text-align: center;
    max-width: 500px;
}

.modal-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.modal-category {
    display: inline-block;
    background: var(--gradient-orange);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--secondary-color);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.modal-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.modal-nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Registration Styles */
.registration-section {
    padding: 100px 0;
    background: var(--white);
}

.registration-disabled {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.disabled-content {
    background: var(--light-bg);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.disabled-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.disabled-icon i {
    font-size: 3rem;
    color: var(--white);
}

.disabled-content h2 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.disabled-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.countdown-container {
    margin: 40px 0;
}

.countdown-container h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.countdown-item {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    min-width: 80px;
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-item label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notification-signup {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.notification-signup h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.notification-signup p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.notification-signup a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-orange);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.notification-signup a:hover {
    background: var(--gradient-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.notification-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 10px;
}

.form-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Registration Options Preview */
.registration-options-preview {
    margin-top: 60px;
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.registration-options-preview h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.registration-options-preview > p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.option-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.option-card.paid::before {
    background: var(--gradient-primary);
}

.option-card.free::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.option-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-card.paid .option-icon {
    background: var(--gradient-primary);
}

.option-card.free .option-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.option-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.option-header h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.option-content ul {
    list-style: none;
    margin-bottom: 25px;
}

.option-content ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-dark);
}

.option-content ul li i.fa-check {
    color: #10b981;
}

.option-content ul li i.fa-times {
    color: #ef4444;
}

.option-price {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
}

.price-range {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.price-free {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.option-price small {
    color: var(--text-light);
    font-size: 0.9rem;
}

.options-note {
    background: rgba(30, 64, 175, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.options-note p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.registration-open {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.open-content {
    background: var(--light-bg);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.open-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.open-icon i {
    font-size: 3rem;
    color: var(--white);
}

.open-content h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.registration-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.registration-option {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.registration-option h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.registration-option p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.registration-note {
    background: rgba(30, 64, 175, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin-top: 30px;
}

.registration-note p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Inscription Alert Modal */
.inscription-alert-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.inscription-alert-modal.show {
    opacity: 1;
}

.alert-modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.inscription-alert-modal.show .alert-modal-content {
    transform: scale(1);
}

.alert-header {
    position: relative;
    padding: 30px 30px 0;
    text-align: center;
}

.alert-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.alert-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.alert-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.alert-close:hover {
    background: var(--light-bg);
    color: var(--text-dark);
}

.alert-body {
    padding: 0 30px 30px;
    text-align: center;
}

.alert-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.alert-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.alert-body h2 {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.alert-message {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.alert-date {
    margin: 20px 0;
}

.date-highlight {
    display: inline-block;
    background: var(--gradient-orange);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: var(--shadow);
}

.alert-submessage {
    font-size: 1rem;
    color: var(--text-light);
    margin: 20px 0;
    font-style: italic;
}

.alert-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.feature-item span {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

.alert-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Race Preview Section */
.race-preview-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.race-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.race-preview-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.race-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.race-preview-card.ultra::before {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.race-preview-card.trail::before {
    background: var(--gradient-primary);
}

.race-preview-card.media::before {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.race-preview-card.diez-k::before {
    background: var(--gradient-orange);
}

.race-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.race-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.race-preview-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    flex: 1;
}

.race-distance {
    background: var(--gradient-orange);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.race-preview-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.detail i {
    color: var(--secondary-color);
    width: 20px;
}

.detail span {
    font-weight: 600;
    color: var(--text-dark);
}

.race-preview-card p {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}

/* Important Info Section */
.important-info-section {
    padding: 80px 0;
    background: var(--white);
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 4000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
}

.notification-info {
    border-left: 4px solid var(--primary-color);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: #10b981;
}

.notification-error .notification-content i {
    color: #ef4444;
}

.notification-warning .notification-content i {
    color: #f59e0b;
}

.notification-info .notification-content i {
    color: var(--primary-color);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: var(--light-bg);
    color: var(--text-dark);
}

/* Resultados Styles */
.filtros-section {
    padding: 100px 0 60px;
    background: var(--light-bg);
}

.filtros-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.filtros-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.filtro-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filtro-item label {
    font-weight: 600;
    color: var(--text-dark);
}

.filtro-item select,
.filtro-item input {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filtro-item select:focus,
.filtro-item input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filtros-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.estadisticas-section {
    padding: 60px 0;
    background: var(--white);
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.stat-content .stat-number {
    font-size: 2rem;
    font-weight: bold;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-content .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resultados-section {
    padding: 60px 0 100px;
    background: var(--light-bg);
}

.resultados-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.resultados-header h2 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.resultados-info {
    color: var(--text-light);
    font-size: 1.1rem;
}

.loading-container {
    text-align: center;
    padding: 60px 0;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.resultados-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.resultados-table th {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.resultados-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.resultados-table tbody tr:hover {
    background: var(--light-bg);
}

.posicion-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.posicion-badge.oro {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #92400e;
}

.posicion-badge.plata {
    background: linear-gradient(135deg, #c0c0c0, #e5e7eb);
    color: #374151;
}

.posicion-badge.bronce {
    background: linear-gradient(135deg, #cd7f32, #d97706);
    color: var(--white);
}

.dorsal-badge {
    display: inline-block;
    background: var(--gradient-blue);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
}

.participante-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.genero-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.genero-badge.m {
    background: #dbeafe;
    color: #1e40af;
}

.genero-badge.f {
    background: #fce7f3;
    color: #be185d;
}

.ubicacion-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.modalidad-badge {
    display: inline-block;
    background: var(--gradient-orange);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.categoria-badge {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.tiempo-badge {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.posicion-categoria-badge {
    display: inline-block;
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.estado-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.estado-badge.finalizado {
    background: #dcfce7;
    color: #166534;
}

.estado-badge.dnf {
    background: #fef3c7;
    color: #92400e;
}

.estado-badge.dsq {
    background: #fecaca;
    color: #991b1b;
}

.no-resultados {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.no-resultados-content i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-resultados-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-resultados-content p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-orange);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.footer-logo i {
    font-size: 1.8rem;
}

.footer-section p {
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-info i {
    color: var(--accent-color);
    width: 20px;
}

.footer-organizer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-organizer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-organizer-logo:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-logo-img {
        height: 30px;
    }

    .hero-logo-main {
        height: 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-info {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .sponsors-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-logo {
        height: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-organizer-logo {
        height: 50px;
    }

    /* Carreras responsive */
    .carrera-card {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

    .carrera-image {
        min-height: 200px;
    }

    .carrera-content {
        padding: 30px 20px;
    }

    .carrera-stats {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Inscritos Search responsive */
    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-group {
        min-width: 100%;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group select {
        min-width: 100%;
    }

    .inscritos-stats {
        grid-template-columns: 1fr;
    }

    .inscritos-table {
        font-size: 0.85rem;
    }

    .inscritos-table th,
    .inscritos-table td {
        padding: 10px 8px;
    }

    .genero-bar-container {
        flex-direction: column;
        height: auto;
    }

    .genero-bar {
        width: 100% !important;
        min-height: 40px;
    }

    /* Categories breakdown responsive */
    .categories-list {
        grid-template-columns: 1fr;
    }

     /* Medals responsive */
    .medals-summary {
        grid-template-columns: 1fr;
    }

    .medal-categories-list {
        grid-template-columns: 1fr;
    }

    /* Resultados responsive */
    .filtros-grid {
        grid-template-columns: 1fr;
    }

    .filtros-actions {
        flex-direction: column;
    }

    .resultados-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .resultados-table {
        font-size: 0.85rem;
    }

    .resultados-table th,
    .resultados-table td {
        padding: 10px 8px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Gallery responsive */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        margin: 10% auto;
        max-width: 95%;
    }

    .modal-navigation {
        padding: 0 10px;
    }

    .modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Registration responsive */
    .countdown {
        flex-wrap: wrap;
        gap: 15px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 15px;
    }

    .countdown-item span {
        font-size: 1.5rem;
    }

    .form-group {
        flex-direction: column;
    }

    .alert-features {
        flex-direction: column;
        gap: 20px;
    }

    .alert-actions {
        flex-direction: column;
    }

    .alert-logos {
        gap: 15px;
    }

    .alert-logo {
        height: 50px;
    }

    .race-preview-grid {
        grid-template-columns: 1fr;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .registration-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-logo-main {
        height: 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .sponsor-logo {
        height: 50px;
    }

    .footer-organizer-logo {
        height: 40px;
    }

    .carrera-content h3 {
        font-size: 1.5rem;
    }

    .price {
        font-size: 1.5rem;
    }

    .resultados-table th,
    .resultados-table td {
        padding: 8px 6px;
    }

    .inscritos-table th,
    .inscritos-table td {
        padding: 8px 6px;
    }

    .gallery-item img {
        height: 250px;
    }

    .modal-content {
        margin: 5% auto;
    }

    .countdown-item span {
        font-size: 1.2rem;
    }

    .alert-body h2 {
        font-size: 1.5rem;
    }

    .date-highlight {
        font-size: 1.1rem;
        padding: 8px 20px;
    }
    .carrera-icon i {
        font-size: 3rem;
    }

    .carrera-icon span {
        font-size: 1.5rem;
    }
}