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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Neon glow effects */
@keyframes neonPulse {
    0%, 100% { 
        box-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 15px #00ffff;
    }
    50% { 
        box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
}

@keyframes neonGlow {
    0%, 100% { 
        text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 15px #00ffff;
    }
    50% { 
        text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
}

@keyframes cyberGlow {
    0%, 100% { 
        box-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 15px #ff00ff;
    }
    50% { 
        box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: rgba(0, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 20px 0;
    padding: 25px 35px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.logo h1 {
    color: #00ffff;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    animation: neonGlow 2s ease-in-out infinite alternate;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo p {
    color: rgba(0, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
    border: 1px solid #00ffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: neonPulse 2s ease-in-out infinite alternate;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.6);
    background: linear-gradient(45deg, #00ffff, #00bfff);
}

.btn-secondary {
    background: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Event Info */
.event-info {
    background: rgba(0, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 35px;
    margin: 25px 0;
    color: #ffffff;
    border: 2px solid #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(0, 255, 255, 0.1),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: neonPulse 4s ease-in-out infinite;
}

.event-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #00ffff);
    animation: cyberGlow 3s ease-in-out infinite;
}

.event-info::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 18px;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.event-details h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
}

.event-details p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-align: center;
}

.event-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    font-size: 1.2rem;
}

.location-link {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #00ffff;
    cursor: pointer;
}

.location-link:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    transform: scale(1.05);
}

.location-link:active {
    transform: scale(0.95);
}

/* Content Tabs */
.content-tabs {
    margin: 25px 0;
}

.tab-buttons {
    display: flex;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 15px;
    padding: 8px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.tab-btn.active {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(0, 128, 255, 0.2));
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.4);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Gallery */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: white;
}

.gallery-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.gallery-controls select {
    padding: 12px 16px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #00ffff;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-controls select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.gallery-controls select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    background: rgba(0, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #00ffff;
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.4),
        0 0 30px rgba(0, 255, 255, 0.1),
        inset 0 0 15px rgba(0, 255, 255, 0.05);
    animation: neonPulse 3s ease-in-out infinite;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.8),
        0 0 50px rgba(0, 255, 255, 0.3),
        0 8px 30px rgba(0, 255, 255, 0.4);
    border-color: #00ffff;
    animation: cyberGlow 1.5s ease-in-out infinite;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.2),
        inset 0 0 10px rgba(0, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    border-color: #00ffff;
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.6),
        0 0 25px rgba(0, 255, 255, 0.3),
        inset 0 0 15px rgba(0, 255, 255, 0.1);
}

.gallery-item-info {
    padding: 15px;
    color: white;
}

.gallery-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-item-description {
    font-size: 0.85rem;
    margin-bottom: 5px;
    opacity: 0.9;
    font-style: italic;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.gallery-item-meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

.gallery-item-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-approved {
    background: #4CAF50;
    color: white;
}

.status-pending {
    background: #FF9800;
    color: white;
}

.status-rejected {
    background: #f44336;
    color: white;
}

/* My Content */
.my-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: white;
}

.content-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b6b;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.my-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 255, 255, 0.2);
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(0, 255, 255, 0.3);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #00ffff);
    border-radius: 25px 25px 0 0;
    animation: cyberGlow 3s ease-in-out infinite;
}

.media-modal {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 35px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(0, 255, 255, 0.05);
}

.modal-header h3 {
    margin: 0;
    color: #00ffff;
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 0 0 10px #00ffff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Centrar título del modal de media */
.media-modal .modal-header h3 {
    text-align: center;
    width: 100%;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
    text-shadow: 0 0 10px #ff00ff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(0, 255, 255, 0.5);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background: rgba(0, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.upload-area:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    transform: scale(1.02);
}

.upload-area.dragover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    animation: neonPulse 1s ease-in-out infinite;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
    animation: neonGlow 2s ease-in-out infinite alternate;
}

.upload-area p {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.upload-hint {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    font-weight: 300;
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.file-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.file-preview-item img,
.file-preview-item video {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.file-preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 0.8rem;
}

.upload-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Auth Modal Styles */
.auth-modal {
    max-width: 450px;
}

.auth-form {
    animation: fadeIn 0.3s ease;
}

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

.auth-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 25px;
}

.auth-actions .btn {
    flex: 1;
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Password validation indicator */
.password-strength {
    margin-top: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.password-strength.weak {
    color: #ff6b6b;
}

.password-strength.medium {
    color: #ffa726;
}

.password-strength.strong {
    color: #4caf50;
}

/* Error messages for forms */
.form-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-error::before {
    content: "⚠️";
    font-size: 0.9rem;
}

/* Success messages for forms */
.form-success {
    color: #4caf50;
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-success::before {
    content: "✅";
    font-size: 0.9rem;
}

/* Media Modal */
.media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    min-height: 300px;
}

.media-container img,
.media-container video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.media-info {
    text-align: center;
}

.media-info p {
    margin-bottom: 15px;
    color: #666;
}

.media-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #999;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: white;
    font-size: 1.1rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Container */
.error-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.error-message {
    background: #ff6b6b;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
}

.error-message .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Load More */
.load-more {
    text-align: center;
    margin: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .gallery-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .gallery-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .my-content-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .content-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .event-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .auth-modal {
        width: 95%;
        margin: 10% auto;
    }
    
    .upload-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .event-details h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        margin: 10px 0;
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .auth-modal {
        width: 98%;
        margin: 5% auto;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .my-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-actions .btn {
        width: 100%;
        margin: 2px 0;
    }
    
    .user-info {
        font-size: 0.9rem;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* ==================== ESTILOS DE AUTENTICACIÓN ==================== */

.auth-modal {
    max-width: 450px;
    width: 90%;
    margin: 5% auto;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 20px;
}

.auth-actions .btn {
    flex: 1;
    min-width: 120px;
}

.form-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.user-info {
    color: #00ffff;
    font-weight: 500;
    margin-right: 15px;
    text-shadow: 0 0 5px #00ffff;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #ff6b6b;
    color: #0a0a0a;
    box-shadow: 0 0 15px #ff6b6b;
}

/* ==================== RESPONSIVE MEJORADO ==================== */

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .header-actions .btn {
        flex: 1;
        min-width: 120px;
        max-width: 150px;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .meta-item {
        justify-content: center;
    }
    
    .gallery-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .gallery-controls select {
        width: 100%;
    }
    
    .content-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-actions {
        flex-direction: column;
    }
    
    .auth-actions .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
    
    .upload-area p {
        font-size: 0.9rem;
    }
    
    .file-preview-item {
        width: 80px;
        height: 80px;
    }
    
    .gallery-item {
        border-radius: 8px;
    }
    
    .gallery-item img,
    .gallery-item video {
        border-radius: 6px;
    }
}

/* ==================== MEJORAS DE USABILIDAD MÓVIL ==================== */

@media (max-width: 768px) {
    /* Mejorar el área táctil */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .tab-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .gallery-item {
        min-height: 120px;
    }
    
    /* Mejorar la navegación por pestañas */
    .tab-buttons {
        display: flex;
        width: 100%;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
    }
    
    /* Optimizar modales para móvil */
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    /* Mejorar formularios */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    /* Mejorar la galería */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .my-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
}

/* ==================== ESTADOS DE CARGA Y ANIMACIONES ==================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-spinner {
    text-align: center;
    color: #00ffff;
    margin-bottom: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 255, 255, 0.3);
    border-top: 4px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    text-align: center;
    color: #00ffff;
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 0 10px #00ffff;
    animation: neonGlow 2s ease-in-out infinite;
}

/* ==================== MEJORAS DE ACCESIBILIDAD ==================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para mejor navegación por teclado */
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

/* Mejorar contraste para texto */
.gallery-item-info {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Empty state styling */
.empty-gallery,
.no-content {
    text-align: center;
    padding: 40px 20px;
    color: #00ffff;
    font-size: 1.1rem;
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.2),
        inset 0 0 15px rgba(0, 255, 255, 0.05);
    animation: neonPulse 3s ease-in-out infinite;
}

.empty-gallery::before,
.no-content::before {
    content: '📸';
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #00ffff;
}

/* Upload Progress Overlay */
.upload-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(5px);
}

.upload-progress-content {
    background: var(--bg-primary);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

.upload-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.upload-progress-header h3 {
    color: var(--accent-color);
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.upload-progress-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 20, 40, 0.9));
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 255, 0.1),
        0 0 15px rgba(0, 255, 255, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #00ffff 0%, 
        #00ccff 25%, 
        #0099ff 50%, 
        #00ccff 75%, 
        #00ffff 100%);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: progressGlow 1.2s ease-in-out infinite alternate;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0% { 
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.8),
            inset 0 0 10px rgba(255, 255, 255, 0.3);
    }
    100% { 
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 1),
            inset 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-weight: 500;
}

.current-file {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    min-height: 1.2rem;
}

/* Media Error Placeholder */
.media-error-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: rgba(255, 0, 0, 0.1);
    border: 2px dashed #ff4444;
    border-radius: 10px;
    color: #ff4444;
    text-align: center;
    padding: 1rem;
}

.error-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.error-text {
    font-size: 0.9rem;
    font-weight: 500;
}
