/* Variables globales */
:root {
    --color-primary: #3e2723;
    --color-secondary: #7c5e3c;
    --color-accent: #b4845c;
    --color-text: #3e2723;
    --color-text-light: #7c5e3c;
    --color-background: #e9dac6;
    --color-background-alt: #c8b6a6;
    --color-border: #a98467;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Presentación */
#presentation {
    text-align: center;
    padding: 0;
    margin-bottom: -3rem;
}

#presentation h1 {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

#projects {
    padding: 0;
    margin-top: 0;
}

#projects h2 {
    font-size: 2rem;
    margin: 0 0 1rem;
    text-align: center;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Proyectos */
.projects {
    padding: 4rem 0 2rem 0;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text);
    font-size: 2.5rem;
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 320px));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    justify-content: center;
}

.project-card {
    background: var(--color-background-alt);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    height: 400px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.project-card.disabled {
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
    filter: grayscale(0) brightness(0.75);
}

.project-card.disabled::before {
    content: 'Próximamente';
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    z-index: 2;
    opacity: 1 !important;
    filter: none !important;
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 0.75rem;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    background: var(--color-background-alt);
}

.project-content h3 {
    margin: 0 0 0.25rem 0;
    color: var(--color-text);
    font-size: 1.1rem;
}

.project-content p {
    margin: 1.2rem 0;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    text-align: left;
    word-break: break-word;
}

.project-content, .markdown-content {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--color-background-alt);
    padding: 2.5rem 0;
    margin-top: 8rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: wrap;
}

footer a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
}

footer a:hover {
    color: var(--color-text);
    background: var(--color-background);
    border-color: var(--color-border);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

footer a::after {
    content: '';
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(280px, 320px));
    }
    .project-card {
        height: 380px;
    }
    .project-image {
        height: 280px;
    }
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #presentation h1 {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects h2 {
        font-size: 2rem;
    }
    .projects-grid {
        grid-template-columns: minmax(280px, 320px);
    }
    .project-card {
        height: 360px;
    }
    .project-image {
        height: 260px;
    }
    .projects div[style*="margin-top:2rem"] {
        margin-top: 1rem !important;
    }
    .education h2 {
        font-size: 2rem;
    }
    .education-grid {
        display: grid !important;
        grid-template-columns: minmax(280px, 320px) !important;
        max-width: 1000px !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
        justify-content: center !important;
    }
    .education-card {
        width: 100% !important;
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 480px) {
    .projects div[style*="margin-top:2rem"] {
        margin-top: 0.5rem !important;
    }
    
    .education-grid {
        display: grid !important;
        grid-template-columns: minmax(240px, 1fr) !important;
        max-width: 1000px !important;
        margin: 0 auto !important;
        padding: 0 0.5rem !important;
        justify-content: center !important;
    }
    
    footer .container {
        gap: 1.5rem;
        flex-direction: column;
        padding: 0 0.5rem;
    }
    
    footer a {
        padding: 0.75rem 1rem;
        width: 140px;
        font-size: 0.95rem;
    }
    .education-card {
        width: 100% !important;
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.inline-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* Educación */
.education {
    padding: 1rem 0;
    background: var(--color-background);
}

.education h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text);
    font-size: 2.5rem;
    font-weight: 600;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    justify-content: center;
    align-items: center;
}

.education-card {
    background: var(--color-background-alt);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    height: 200px;
    min-width: 300px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--color-accent);
}

.education-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.education-content h3 {
    margin: 0 0 1rem 0;
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 600;
}

.education-content p {
    margin: 0 0 1rem 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.education-provider {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
} 