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

:root {
    --bg-color: #FFFFFF;
    --text-main: #111111;
    --text-secondary: #666666;
    --accent-color: #333333;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

/* Header & Navigation */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--text-main);
}

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

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.nav-links li a.active,
.nav-links li a:hover {
    color: var(--text-main);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--text-main);
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #fff;
    color: var(--text-main);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid #ddd;
}

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

/* Grid Layouts */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

/* Grilla de 3 columnas: cada cuadro en su proporción natural */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 900px) {
    .masonry-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .masonry-gallery { grid-template-columns: 1fr; }
}

.work-item {
    cursor: pointer;
}

.work-thumb {
    width: 100%;
    height: auto;          /* respeta la proporción original de cada cuadro */
    display: block;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-thumb {
    opacity: 0.9;
}

.work-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.work-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 60px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}