@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@300;400;700&display=swap');

/* Variables CSS */
:root {
    --bg-color: #fef7f0;
    --text-color: #4a4a4a;
    --accent-color: #ff6b9d;
    --secondary-color: #c7ecee;
    --border-color: #d4af37;
    --shadow-color: rgba(255, 107, 157, 0.2);
    --link-color: #ff6b9d;
    --light-pink: #ffb3d1;
    --light-blue: #c7ecee;
    --warm-yellow: #fff2a8;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-image: 
        radial-gradient(circle at 20% 20%, var(--light-pink) 0, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--light-blue) 0, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--warm-yellow) 0, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 15px;
    border: 3px dashed var(--accent-color);
    box-shadow: 0 5px 15px var(--shadow-color);
    backdrop-filter: blur(10px);
}

.title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
}

.subtitle {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 300;
}

.welcome-box {
    background: rgba(255, 179, 209, 0.3);
    border: 2px solid var(--light-pink);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.welcome-box p {
    margin-bottom: 5px;
    font-size: 0.95em;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.navigation a {
    text-decoration: none;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.navigation a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px var(--shadow-color);
}

/* Sections */
.section {
    background: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section h2 {
    color: var(--accent-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

/* Pixel Art Gallery */
.pixel-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.art-item {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.art-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
    border-color: var(--accent-color);
}

.art-preview {
    margin-bottom: 10px;
}

.placeholder-pixel {
    width: 100%;
    height: 120px;
    background: linear-gradient(45deg, var(--light-blue), var(--warm-yellow));
    border: 2px dashed var(--text-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.placeholder-pixel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.art-item h3 {
    color: var(--accent-color);
    font-size: 1.1em;
    margin-bottom: 5px;
    font-weight: 700;
}

.art-item p {
    font-size: 0.9em;
    margin-bottom: 5px;
    color: var(--text-color);
}

.art-item small {
    color: #888;
    font-size: 0.8em;
}

/* Game Projects */
.game-project {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--light-blue);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.game-project h3 {
    color: var(--accent-color);
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--light-pink));
    border-radius: 8px;
    width: 0%;
    transition: width 2s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}

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

.progress-text {
    font-weight: 700;
    color: var(--accent-color);
    min-width: 100px;
}

.project-details p {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.project-details strong {
    color: var(--accent-color);
}

/* Blog */
.blog-entry {
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.blog-entry h3 {
    color: var(--accent-color);
    font-size: 1.2em;
    margin-bottom: 5px;
    font-weight: 700;
}

.blog-entry .date {
    color: #888;
    font-size: 0.8em;
    margin-bottom: 10px;
    font-style: italic;
}

.blog-entry p:last-child {
    margin-bottom: 0;
}

/* About */
.about-content {
    text-align: left;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1em;
}

.skills, .currently {
    background: rgba(199, 236, 238, 0.3);
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.skills h4, .currently h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.skills ul, .currently ul {
    list-style: none;
    padding-left: 0;
}

.skills li, .currently li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.skills li::before, .currently li::before {
    content: "♡";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border: 2px solid var(--secondary-color);
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.links h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.social-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.stats p {
    margin: 5px 0;
    font-size: 0.9em;
}

#visitor-count {
    color: var(--accent-color);
    font-weight: 700;
}

.credit p {
    margin: 5px 0;
    font-style: italic;
}

.credit small {
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 1.8em;
    }
    
    .navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .navigation a {
        width: 200px;
        text-align: center;
    }
    
    .pixel-gallery {
        grid-template-columns: 1fr;
    }
    
    .progress-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-text {
        text-align: center;
    }
    
    .footer-content {
        gap: 15px;
    }
}

/* Animaciones adicionales */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.art-item:nth-child(odd) {
    animation: float 6s ease-in-out infinite;
}

.art-item:nth-child(even) {
    animation: float 6s ease-in-out infinite 3s;
}

/* Efectos de entrada */
.section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }

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