@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1,
h2,
h3 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    width: 100%;
}

p,
a,
span {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* IMAGE ENHANCEMENT */
img {
    filter: contrast(1.1) saturate(1.1) brightness(1.05);
    /* Subtle AI-like enhancement */
    transition: filter 0.3s ease;
}

.bw-image {
    filter: grayscale(1) contrast(1.2) brightness(1.1);
    /* Specific enhancement for B&W */
}

/* FULL BLEED IMAGES */
.full-bleed {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: cover;
}

/* BLOCK 1: INICIO */
.block-work {
    background: #000;
    color: #fff;
    width: 100%;
}

.header-text {
    padding: 12vh 2rem;
}

.header-text h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 1.5rem;
}

.header-text p {
    font-size: clamp(1rem, 3vw, 1.5rem);
}

/* STRIPE STYLES */
.stripe-bw {
    width: 100%;
    background: #000;
}

.stripe-works {
    width: 100%;
    background: #000;
    /* This creates the "black margin" between works in the row */
    padding: 2rem 0;
    /* Vertical margin in black */
}

/* GALLERY GRID FOR HOME - ROW OF 3 */
.gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 2px;
    /* Subtle line between works if needed, or 0 for full-bleed feel */
    background: #000;
}

.gallery-row a {
    text-decoration: none;
    color: inherit;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #000;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.zocalo {
    background: #000;
    /* Black margin footer */
    color: #fff;
    padding: 1.5rem 0.5rem;
    text-align: center;
}

.zocalo h3 {
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* OBRAS PAGE STYLES (BLACK THEME) */
.obras-body {
    background-color: #000;
    color: #fff;
}

.obras-body .header-text h1,
.obras-body .header-text p {
    color: #fff;
}

.obras-body .back-home {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 1px solid #fff;
}

.obras-container {
    padding: 5vh 0;
}

.obra-card {
    margin-bottom: 15vh;
    width: 100%;
}

/* GROUPED IMAGES IN GALLERY */
.obra-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    padding: 0 2rem;
    align-items: center;
    /* Horizontally leveled */
}

.obra-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.obra-info {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
    padding: 0 2rem;
}

.availability-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.available {
    background: #1a1a1a;
    color: #4ade80;
    border: 1px solid #4ade80;
}

.not-available {
    background: #1a1a1a;
    color: #f87171;
    border: 1px solid #f87171;
}

.obra-description {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.8;
    opacity: 0.8;
}

/* CARRO DE COMPRAS / BUTTONS */
.btn-buy {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2rem;
    transition: all 0.3s;
    text-transform: uppercase;
    border: 1px solid #fff;
}

.btn-buy:hover {
    background: #000;
    color: #fff;
}

.obra-links {
    margin-top: 3rem;
    border-top: 1px solid #333;
    padding-top: 2rem;
}

.obra-links a {
    display: block;
    margin: 0.5rem 0;
    color: #888;
    text-decoration: underline;
    font-size: 0.75rem;
}

/* FOOTER */
footer {
    padding: 10vh 2rem;
    border-top: 1px solid #333;
    width: 100%;
}

.obras-body footer {
    border-top: 1px solid #333;
}

.gracias-text {
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.subtitle-footer {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.instagram-link,
.email-link {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    margin: 0.5rem;
    transition: all 0.3s;
}

.instagram-link:hover,
.email-link:hover {
    background: #fff;
    color: #000;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.bio-footer {
    margin-top: 5rem;
    opacity: 0.5;
    font-size: 0.65rem;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .gallery-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .obra-images {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .stripe-works {
        padding: 1rem 0;
    }

    .zocalo {
        padding: 1rem 0.5rem;
    }

    .header-text {
        padding: 8vh 1rem;
    }

    .obra-card {
        margin-bottom: 8vh;
    }

    .obra-info {
        padding: 0 1.5rem;
    }
}

/* MINIMALIST MENU */
.menu-trigger {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border: 1px solid #fff;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.menu-trigger:hover {
    background: #fff;
    color: #000;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-links {
    list-style: none;
    text-align: center;
    padding: 0;
}

.menu-links li {
    margin: 2rem 0;
}

.menu-links a {
    text-decoration: none;
    color: #fff;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    transition: opacity 0.3s;
    text-transform: uppercase;
}

.menu-links a:hover {
    opacity: 0.5;
}

/* ABOUT ME PAGE */
.about-body {
    background-color: #000;
    color: #fff;
}

.about-container {
    max-width: 900px;
    padding: 15vh 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    max-width: 600px;
    margin-bottom: 4rem;
    display: block;
    filter: none;
}

.about-text {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 2;
    max-width: 700px;
    text-align: center;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .menu-trigger {
        top: 1rem;
        left: 1rem;
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}