:root {
    --primary-color: #00D9FF;
    --primary-dark: #00B8D4;
    --secondary-color: #FF3D00;
    --accent-color: #FFD600;
    --dark: #0F1419;
    --dark-card: #1A1F2E;
    --dark-lighter: #252D3D;
    --light: #F5F7FA;
    --gray: #9CA3AF;
    --gray-light: #D1D5DB;
    --success: #00E676;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #0099FF 100%);
    --gradient-secondary: linear-gradient(135deg, #FF3D00 0%, #FF6E40 100%);
    --gradient-dark: linear-gradient(135deg, #1A1F2E 0%, #252D3D 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

/* Global: prevent images and content from overflowing containers */
img {
    max-width: 100%;
    height: auto;
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    color: var(--gray-light);
    background: var(--dark);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 61, 0, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    gap: 2rem;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-brand a:hover {
    transform: translateX(5px);
}

.logo-image {
    height: 40px;
    width: auto;
    margin-right: 0.6rem;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
    transition: filter 0.3s ease;
}

.nav-brand a:hover .logo-image {
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.8));
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-light);
    font-weight: 600;
    padding: 0.8rem 1.3rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    left: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* User Menu */
.user-menu-item {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gradient-primary);
    color: var(--dark);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.user-menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.user-menu-toggle:hover::before {
    width: 300px;
    height: 300px;
}

.user-menu-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.user-menu-toggle i.fa-user-circle {
    font-size: 1.4rem;
}

.user-name {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.user-menu-toggle:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    background: var(--dark-card);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    color: var(--gray-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    padding-left: 2rem;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item.logout:hover {
    background: rgba(255, 61, 0, 0.1);
    color: var(--secondary-color);
}

.dropdown-item.logout:hover::before {
    background: var(--gradient-secondary);
}

.dropdown-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(255, 61, 0, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 61, 0, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: inset 0 0 0 0 var(--primary-color);
    transition: all 0.4s ease;
}

.btn-outline:hover {
    color: var(--dark);
    box-shadow: inset 400px 0 0 0 var(--primary-color);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.btn-inscribirme {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    font-weight: 800;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-inscribirme:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
    color: #FFFFFF;
}

/* Section */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--dark-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.event-date-badge .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #000000 !important;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.event-info {
    margin-bottom: 1.5rem;
}

.event-info p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #000000 !important;
    font-size: 0.95rem;
}

.event-info p strong {
    color: #000000 !important;
    margin-right: 0.5rem;
}

.event-info .icon {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.event-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.event-actions .btn {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .event-actions {
        flex-direction: column;
        align-items: center;
    }
    .event-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-list-item {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.event-list-item:hover {
    transform: translateX(8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.event-list-date {
    text-align: center;
    min-width: 80px;
}

.date-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.date-month {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
}

.date-year {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
}

.event-list-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.event-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-image-placeholder-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.event-list-content {
    flex: 1;
}

.event-list-content h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 700;
}

.event-location, .event-time {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.event-distances {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.distance-badge {
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.event-list-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.event-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-icon-svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(0,78,137,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.feature-icon-svg svg {
    width: 100%;
    height: 100%;
}

.feature-card:hover .feature-icon-svg {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(255,107,53,0.2), rgba(0,78,137,0.2));
}

.feature-icon-img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.info-icon-small {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
    opacity: 0.7;
}

.info-icon-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.placeholder-logo {
    width: 120px;
    height: 120px;
    opacity: 0.3;
}

.placeholder-logo-small {
    width: 60px;
    height: 60px;
    opacity: 0.3;
}

.placeholder-logo-large {
    width: 200px;
    height: 200px;
    opacity: 0.2;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
}

/* Page Header */
.page-header {
    background: var(--gradient-dark);
    border-bottom: 2px solid var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 61, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    font-weight: 800;
}

.page-header p {
    position: relative;
    z-index: 1;
    color: var(--gray-light);
}

/* Forms */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.event-summary {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.event-summary h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.inscription-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.inscription-form h3 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1A1F2E;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FFFFFF;
    color: #1A1F2E;
    font-family: 'Poppins', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(26, 31, 46, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A1F2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 3rem;
}

.form-group select option {
    background: #FFFFFF;
    color: #1A1F2E;
    padding: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

/* Event Detail */
.event-detail-hero {
    position: relative;
    overflow: hidden;
}

.event-hero-banner {
    position: relative;
    width: 100%;
}

.event-hero-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
    background: #1A1F2E;
}

.event-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.event-hero-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.event-hero-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 500;
}

.event-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-hero-meta i {
    color: #F59E0B;
}

@media (max-width: 768px) {
    .event-hero-img {
        max-height: 400px;
    }
    
    .event-hero-title {
        font-size: 1.5rem;
    }
    
    .event-hero-meta {
        font-size: 0.85rem;
        gap: 1rem;
    }
    
    .event-hero-overlay {
        padding: 1.5rem 0;
    }
}

.event-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-detail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

.event-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.event-detail-main h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.event-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
}

/* Banner Publicitario */
.banner-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 4rem 0;
}

.banner-ad {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.banner-logo {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.banner-content {
    flex: 1;
}

.banner-content h3 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Sidebar Banner */
.sidebar-banner {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: var(--white);
    margin-top: 2rem;
}

.sidebar-banner img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.sidebar-banner h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.sidebar-banner p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.info-item strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.info-item p {
    color: var(--gray);
}

.event-description {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.event-description h2 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.price-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.price-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.price-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Results Table */
.results-table-container {
    background: var(--white);
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.results-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.results-table thead {
    background: var(--secondary-color);
    color: var(--white);
}

.results-table th,
.results-table td {
    padding: 1rem;
    text-align: left;
}

.results-table tbody tr:nth-child(even) {
    background: #F8F9FA;
}

.results-table tbody tr:hover {
    background: #E9ECEF;
}

.results-table .position {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.results-table .time {
    font-weight: 600;
    color: var(--secondary-color);
}

.results-table .runner-name {
    font-weight: 600;
}

/* Search Box */
.search-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-box h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.search-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.search-form input {
    width: 100%;
}

/* Confirmation */
.confirmation-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.confirmation-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.confirmation-box h1 {
    color: var(--success);
    margin-bottom: 1rem;
}

.confirmation-details,
.payment-info {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    text-align: left;
}

.confirmation-details h3,
.payment-info h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--dark-card);
    color: var(--gray-light);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 700;
}

.footer-section h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section p {
    color: var(--gray);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark);
    transform: translateY(-3px) translateX(0);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
    font-weight: 600;
    font-size: 1rem;
    background: #3B82F6 !important;
    color: #FFFFFF !important;
}

.alert-success {
    background: #00E676 !important;
    color: #FFFFFF !important;
    border: 2px solid #00C853 !important;
}

.alert-warning {
    background: #F59E0B !important;
    color: #FFFFFF !important;
    border: 2px solid #D97706 !important;
}

.alert-error {
    background: #DC3545 !important;
    color: #FFFFFF !important;
    border: 2px solid #B71C1C !important;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Logo y Navbar Mobile */
    .navbar {
        padding: 0.8rem 15px;
    }
    
    .nav-brand a {
        font-size: 1.1rem;
    }
    
    .logo-image {
        height: 32px;
        margin-right: 0.5rem;
    }
    
    .logo-text {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark-card);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        z-index: 10000;
        animation: slideDown 0.3s ease;
        border-top: 2px solid var(--primary-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        padding: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease;
        color: var(--white) !important;
        font-weight: 600;
    }
    
    .nav-menu a:hover {
        background: rgba(0, 217, 255, 0.1);
        color: var(--primary-color) !important;
        padding-left: 2.5rem;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 10001;
        position: relative;
    }
    
    /* User Menu Mobile */
    .user-menu-item {
        width: 100%;
    }
    
    .user-menu-toggle {
        width: 90%;
        margin: 0.5rem auto;
        justify-content: center;
        background: rgba(0, 217, 255, 0.1);
        color: var(--white) !important;
    }
    
    .user-menu-toggle:hover {
        background: rgba(0, 217, 255, 0.2);
    }
    
    .user-dropdown {
        position: static;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0.5rem;
        background: rgba(0, 0, 0, 0.3);
    }
    
    .user-dropdown.show {
        display: block;
    }
    
    .dropdown-item {
        color: var(--white) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-item:hover {
        background: rgba(0, 217, 255, 0.1);
        color: var(--primary-color) !important;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-detail-content {
        grid-template-columns: 1fr;
    }
    
    .event-list-item {
        flex-direction: column;
        text-align: center;
    }
    
    .event-list-actions {
        align-items: center;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .results-table-container {
        overflow-x: auto;
    }

    .banner-ad {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }

    .banner-logo {
        width: 100px;
        height: 100px;
    }

    .banner-content h3 {
        font-size: 1.5rem;
    }

    .banner-content p {
        font-size: 1rem;
    }
}


/* Media Query para pantallas muy pequeñas (móviles en vertical) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.7rem 10px;
    }
    
    .nav-brand a {
        font-size: 0.95rem;
    }
    
    .logo-image {
        height: 28px;
        margin-right: 0.4rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
        letter-spacing: 0.2px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Media Query para pantallas extra pequeñas */
@media (max-width: 360px) {
    .navbar {
        padding: 0.6rem 8px;
    }
    
    .nav-brand a {
        font-size: 0.85rem;
    }
    
    .logo-image {
        height: 24px;
        margin-right: 0.3rem;
    }
    
    .logo-text {
        font-size: 0.8rem;
        letter-spacing: 0.1px;
    }
    
    .container {
        padding: 0 10px;
    }
}
