:root {
    --font-primary: 'Tenor Sans', sans-serif;
    --font-secondary: 'Sanchez', serif;
    --color-bg: #f4f1ea;
    /* Warm Taupe/Cream */
    --color-text: #4a4a4a;
    /* Soft Charcoal */
    --color-headings: #2c2c2c;
    /* Darker Charcoal */
    --color-accent: #b0a18e;
    /* Muted Taupe/Gold */
    --color-light-grey: #e8e6e1;
    /* Warm Grey */
    --spacing-unit: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    /* Body text serif for elegance */
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 2;
    /* Generous line height */
    overflow-x: hidden;
    font-size: 1rem;
}

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

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

ul {
    list-style: none;
}

/* Header */
header {
    padding: 1.5rem 6%;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(244, 241, 234, 0.95);
    /* Matches bg color */
    z-index: 1000;
    transition: all 0.5s ease;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header.scrolled {
    padding: 0.8rem 6%;
    background-color: rgba(244, 241, 234, 0.98);
}

.logo img {
    height: 90px;
    /* Bigger logo */
    transition: height 0.3s ease;
    filter: brightness(0.8) sepia(0.2) hue-rotate(10deg);
    /* Subtle warmth to logo */
}

header.scrolled .logo img {
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 3.5rem;
}

.nav-links a {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-headings);
    position: relative;
    font-weight: 400;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.4s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Sections */
section {
    padding: 10rem 10%;
    /* More whitespace */
    position: relative;
}

h2 {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    /* Smaller, more elegant */
    text-align: center;
    margin-bottom: 6rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-headings);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
    margin: 2rem auto 0;
}

/* Hero */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('img/ARAVACA 10215850.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
    padding: 0;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    /* Lighter overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.5s ease-out;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-family: var(--font-primary);
    font-size: 4.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 400;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-block;
    padding: 1rem 2rem;
}

/* Gallery - Asymmetric Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* 12 column grid for more control */
    gap: 2rem;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    grid-column: span 4;
    /* Default span */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    filter: sepia(0.1) brightness(0.95);
    /* Subtle vintage feel */
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: sepia(0) brightness(1.05);
}

/* Custom Spans for Asymmetry */
.span-2 {
    grid-column: span 8;
    /* Wider */
}

.row-2 {
    grid-row: span 2;
}

/* About */
#sobre-mi {
    background-color: var(--color-light-grey);
    text-align: center;
    padding: 12rem 15%;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: var(--color-text);
    line-height: 2.4;
    font-weight: 300;
}

.about-content p::first-letter {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    float: left;
    line-height: 0.8;
    margin-right: 1rem;
    margin-top: 0.5rem;
    color: var(--color-accent);
}

/* Brands */
.brands-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6rem;
    align-items: center;
}

.brands-list li {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.4s ease;
}

.brands-list li:hover {
    color: var(--color-headings);
    transform: translateY(-3px);
}

/* Map */
#ubicacion {
    padding: 0;
    margin-bottom: -5px;
    /* Fix gap */
}

#ubicacion h2 {
    margin-top: 8rem;
    margin-bottom: 4rem;
}

.map-container {
    width: 100%;
    height: 500px;
    filter: grayscale(100%) contrast(0.9) brightness(1.1);
    /* Faded map */
    transition: filter 0.6s ease;
}

.map-container:hover {
    filter: grayscale(0%);
}

/* Contact */
#contacto {
    text-align: center;
    background-color: #1c1c1c;
    /* Darker footer area */
    color: #e0e0e0;
    padding: 8rem 5%;
}

#contacto h2 {
    color: #fff;
    border-bottom: none;
}

#contacto h2::after {
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-info p {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.contact-info a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 3px;
}

.contact-info a:hover {
    border-bottom-color: #fff;
    color: #fff;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.socials a {
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    border: none;
    color: #888;
}

.socials a:hover {
    color: #fff;
}

/* Footer */
footer {
    background-color: #141414;
    color: #777;
    padding: 6rem 8% 3rem;
    font-size: 0.85rem;
    font-family: var(--font-primary);
    letter-spacing: 1px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 4rem;
}

.footer-logo img {
    height: 50px;
    opacity: 0.7;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.footer-links h3,
.footer-contact h3 {
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
    color: #777;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: 100;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.close-lightbox:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 3.5rem;
        letter-spacing: 4px;
    }

    h2 {
        font-size: 2.5rem;
    }

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

    .span-2,
    .row-2 {
        grid-column: auto;
        grid-row: auto;
    }

    section {
        padding: 5rem 5%;
    }
}