        :root {
            --primary-color: #d4512a;
            --secondary-color: #8b4513;
            --accent-color: #f4a460;
            --text-color: #333;
            --background-color: #f8f9fa;
            --card-shadow: 0 2px 10px rgba(0,0,0,0.1);
            --border-radius: 10px;
        }

        .gallery-section {
            padding: 2rem;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            min-height: 100vh;
        }

        .gallery-header {
            text-align: center;
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--card-shadow);
        }

        .gallery-header h2 {
            color: var(--primary-color);
            font-size: 2rem;
            margin-bottom: 0.5rem;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 1.5rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .gallery-card {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--card-shadow);
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
        }

        .gallery-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        }

        .upload-card {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            min-height: 200px;
            cursor: pointer;
            border: 2px dashed rgba(255,255,255,0.3);
        }

        .upload-card:hover {
            border-color: rgba(255,255,255,0.6);
        }

        .upload-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .upload-card h3 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }

        .upload-card p {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .photo-container {
            position: relative;
            height: 180px;
            overflow: hidden;
        }

        .photo-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .photo-container:hover img {
            transform: scale(1.05);
        }

        .photo-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            display: flex;
            align-items: end;
            padding: 1rem;
            color: white;
        }

        .photo-container:hover .photo-overlay {
            opacity: 1;
        }

        .card-content {
            padding: 1rem;
        }

        .card-title {
            font-size: 1rem;
            font-weight: bold;
            color: var(--primary-color);
            margin-bottom: 0.3rem;
            line-height: 1.2;
        }

        .card-description {
            color: #666;
            margin-bottom: 0.8rem;
            line-height: 1.3;
            font-size: 0.9rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .card-author {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.8rem;
            padding-bottom: 0.8rem;
            border-bottom: 1px solid #eee;
        }

        .author-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.8rem;
        }

        .author-info {
            flex: 1;
        }

        .author-name {
            font-weight: 500;
            color: var(--text-color);
            font-size: 0.9rem;
        }

        .upload-date {
            font-size: 0.7rem;
            color: #999;
        }

        .card-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .like-section {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .like-btn {
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 0.3rem;
            border-radius: 50%;
        }

        .like-btn:hover {
            background: rgba(255, 107, 53, 0.1);
        }

        .like-btn.liked {
            color: var(--accent-color);
            animation: likeAnimation 0.3s ease;
        }

        @keyframes likeAnimation {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        .like-count {
            font-weight: 500;
            color: var(--text-color);
            font-size: 0.9rem;
        }

        .action-buttons {
            display: flex;
            gap: 0.3rem;
        }

        .action-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 0.4rem 0.8rem;
            border-radius: 15px;
            cursor: pointer;
            font-size: 0.8rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.2rem;
        }

        .action-btn:hover {
            background: var(--secondary-color);
            transform: translateY(-1px);
        }

        .download-btn {
            background: var(--accent-color);
        }

        .download-btn:hover {
            background: #e55a2b;
        }

        /* Modal mejorado */
        .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(10px);
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: white;
            border-radius: var(--border-radius);
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

        .close {
            position: absolute;
            right: 1rem;
            top: 1rem;
            font-size: 2rem;
            cursor: pointer;
            color: #999;
            transition: color 0.3s ease;
        }

        .close:hover {
            color: var(--accent-color);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--text-color);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.8rem;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            transition: border-color 0.3s ease;
            box-sizing: border-box;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .cta-btn {
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 25px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 500;
            transition: all 0.3s ease;
            width: 100%;
        }

        .cta-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        /* Modal de imagen mejorado */
        .image-modal {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
        }

        .image-modal .modal-content {
            background: white;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            max-width: 90%;
            max-height: 90%;
            padding: 1rem;
            border-radius: var(--border-radius);
            position: relative;
        }

        .image-modal-close {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 2rem;
            cursor: pointer;
            color: #666;
            background: rgba(255, 255, 255, 0.9);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 1001;
        }

        .image-modal-close:hover {
            color: var(--primary-color);
            background: white;
            transform: scale(1.1);
        }

        .image-modal-img {
            max-width: 100%;
            max-height: 70vh;
            border-radius: var(--border-radius);
            display: block;
            margin: 0 auto;
        }

        .image-modal-caption {
            background: white;
            color: var(--text-color);
            padding: 1rem;
            border-radius: var(--border-radius);
            margin-top: 1rem;
            text-align: center;
        }

        .image-modal-caption h3 {
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        .message {
            padding: 1rem;
            border-radius: var(--border-radius);
            margin-bottom: 2rem;
            text-align: center;
            font-weight: 500;
        }

        .message.success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .message.error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        @media (max-width: 768px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 1rem;
            }
            
            .gallery-section {
                padding: 1rem;
            }
            
            .gallery-header h2 {
                font-size: 1.8rem;
            }

            .photo-container {
                height: 150px;
            }

            .card-content {
                padding: 0.8rem;
            }

            .action-btn {
                padding: 0.3rem 0.6rem;
                font-size: 0.7rem;
            }
        }