/* -------------------------------------------------- */
/* MOBILE FIRST — Layout, Navbar, Hero, Cards, Footer */
/* -------------------------------------------------- */

/* ---- LAYOUT ---- */

.container {
    padding: 1rem 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

/* ---- NAVBAR ---- */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    background-color: transparent;
    padding: 0 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled,
.navbar.solid {
    background-color: var(--color-gris-oscuro);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.navbar-logo {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-gris-claro);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--color-gris-claro);
    font-size: 1.8rem;
    cursor: pointer;
    display: block;
    line-height: 1;
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-gris-oscuro);
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.nav-menu.active {
    max-height: 320px;
}

.nav-menu li a {
    display: block;
    padding: 0.9rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-menu li a:hover {
    color: #fff;
}

/* ---- HERO (INDEX) ---- */

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-gris-claro);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content p {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.75rem;
}

/* ---- DIVIDER ---- */

hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---- CATEGORY GRID (HOME) ---- */

.category-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 3rem 0;
}

.category-card {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 55vw;
    min-height: 240px;
    overflow: hidden;
    color: var(--color-gris-claro);
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.4s ease;
    z-index: 1;
}

.category-card:hover::before {
    background-color: rgba(0, 0, 0, 0.55);
}

.category-card h4 {
    position: relative;
    z-index: 2;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #fff;
    transition: letter-spacing 0.4s ease;
}

.category-card:hover h4 {
    letter-spacing: 0.18em;
}

#card-pinturas {
    background-image: url('../img/painting2.jpg');
    background-size: cover;
    background-position: center;
}

#card-dibujos {
    background-image: url('../img/drawing2.jpg');
    background-size: cover;
    background-position: center;
}

#card-digital {
    background-image: url('../img/digital3.png');
    background-size: cover;
    background-position: center;
}

/* ---- CONTACT SECTION ---- */

.section-redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gris-oscuro);
    padding: 4rem 2rem;
    text-align: center;
}

.section-redes h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.7;
}

.social-links svg {
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.social-links a:hover img,
.social-links a:hover svg {
    opacity: 1;
}

/* ---- FOOTER ---- */

.footer {
    background-color: var(--color-gris-oscuro);
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- MEDIA QUERY (768px+) ---- */

@media (min-width: 768px) {

    .container {
        max-width: 1200px;
        padding: 1rem 3rem;
    }

    .menu-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        max-height: none;
        width: auto;
        background-color: transparent;
        display: flex;
        flex-direction: row;
        overflow: visible;
    }

    .nav-menu li a {
        padding: 0.5rem 1rem;
        border-top: none;
    }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 4rem 0;
    }

    .category-card {
        height: 55vh;
        min-height: 360px;
    }
}
