/* Portfolio Creativo — Minimal Light Theme */

:root {
    --accent: #111111;
    --text: #111111;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --border: #eeeeee;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --radius: 4px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 1px 0 var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.navbar-logo {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
    transition: color 0.2s;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-links a:hover { color: var(--text); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
    text-align: center;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* Hero */
.hero {
    padding: 160px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.hero-tagline {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: var(--font);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.85;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
}

.project-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-alt);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-card-title {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.project-card-cat {
    color: rgba(255,255,255,0.7);
    font-size: 0.8125rem;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Category Pills */
.category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

.pill {
    padding: 8px 20px;
    font-size: 0.8125rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-light);
    transition: all 0.2s;
    font-weight: 400;
}

.pill:hover {
    border-color: var(--text);
    color: var(--text);
}

.pill-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pill-active:hover {
    color: #fff;
    border-color: var(--accent);
}

/* Page Header */
.page-header {
    padding-top: 140px;
    padding-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.page-subtitle {
    color: var(--text-light);
    margin-top: 8px;
    font-size: 1.0625rem;
}

/* Project Detail */
.project-hero {
    padding-top: 96px;
}

.project-hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 600px;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.project-content {
    max-width: 800px;
}

.project-category-link {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    display: inline-block;
    margin-bottom: 8px;
}

.project-category-link:hover {
    color: var(--accent);
}

.project-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.project-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.meta-value {
    font-weight: 500;
}

.project-description {
    margin-bottom: 32px;
    color: var(--text-light);
    line-height: 1.8;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.about-text .section-title {
    text-align: left;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9375rem;
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 12px;
    color: var(--text-light);
}

.contact-info a {
    color: var(--text);
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9375rem;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form textarea {
    resize: vertical;
}

.form-feedback {
    font-size: 0.875rem;
    min-height: 1.4em;
}

.form-feedback.success { color: #16a34a; }
.form-feedback.error { color: #dc2626; }

/* Page Content */
.page-content {
    max-width: 800px;
}

.page-image {
    border-radius: var(--radius);
    margin-bottom: 32px;
    width: 100%;
}

.page-body {
    line-height: 1.8;
    color: var(--text-light);
}

.page-body h2 { font-size: 1.5rem; font-weight: 600; margin: 32px 0 16px; color: var(--text); }
.page-body h3 { font-size: 1.25rem; font-weight: 600; margin: 24px 0 12px; color: var(--text); }
.page-body p { margin-bottom: 16px; }
.page-body ul, .page-body ol { margin-bottom: 16px; padding-left: 24px; }
.page-body li { margin-bottom: 8px; }

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 64px 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-inner p {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-light);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--text);
}

.powered-badge {
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.powered-badge a {
    font-size: 0.75rem;
    color: var(--text-light);
}

.powered-badge a:hover {
    color: var(--text);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-text .section-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .section { padding: 60px 0; }
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2rem; }
    .page-header { padding-top: 120px; }
    .page-title { font-size: 1.75rem; }
    .project-hero { padding-top: 80px; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 { font-size: 1.75rem; }
    .section-title { font-size: 1.5rem; }
}
