:root {
    --bg: #f5f1ea;
    --surface: #ffffff;

    --primary: #111827;
    --accent: #9a6a45;
    --accent-light: #d8c3ad;

    --text: #171717;
    --text-soft: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;
}

header {
    position: sticky;
    top: 0;

    width: 100%;

    background-color: var(--bg);

    z-index: 1000;

    border-bottom: 1px solid transparent;

    transition: border-color 0.3s ease;
}

.navbar {
    width: 90%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 28px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    list-style: none;

    display: flex;
    align-items: center;

    gap: 32px;
}

.logo,
.nav-links a,
.nav-contact {
    text-decoration: none;
    color: var(--text);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;

    letter-spacing: 3px;
}

.nav-links a{
    font-size: 0.9rem;

    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-contact {
    padding: 11px 20px;

    border: 1px solid var(--primary);

    font-size: 0.85rem;
    letter-spacing: 1px;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.nav-contact:hover {
    background-color: var(--primary);
    color: var(--bg);
}

/* =========================
   HERO
========================= */
.hero {
    width: 90%;
    max-width: 1400px;

    margin: 0 auto;

    min-height: calc(100vh - 100px);

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 80px;
}

.hero-image {
    width: 100%;
    height: 650px;

    background-color: var(--primary);

    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}

.hero-content {
    max-width: 580px;
}

.hero-label {
    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 600;

    letter-spacing: 3px;

    margin-bottom: 22px;
}

.hero h1 {
    color: var(--primary);

    font-size: clamp(4rem, 6vw, 6.5rem);
    font-weight: 500;

    line-height: 0.95;
    letter-spacing: -3px;

    margin-bottom: 30px;
}

.hero-description {
    max-width: 480px;

    color: var(--text-soft);

    font-size: 1.05rem;
    line-height: 1.8;

    margin-bottom: 35px;
}

.hero-button {
    display: inline-flex;
    align-items: center;

    gap: 15px;

    padding: 15px 24px;

    background-color: var(--primary);
    color: var(--bg);

    text-decoration: none;

    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.hero-button:hover {
    background-color: var(--accent);
}

.hero-button span {
    transition: transform 0.3s ease;
}

.hero-button:hover span {
    transform: translateX(5px);
}

.hero-season {
    color: var(--text-soft);

    font-size: 0.75rem;
    letter-spacing: 2px;

    margin-top: 45px;
}

/* =========================
   COLECCIÓN
========================= */
.collection {
    width: 90%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 120px 0;
}

.collection-header {
    max-width: 700px;

    margin-bottom: 45px;
}

.section-label {
    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;

    margin-bottom: 18px;
}

.collection-header h2 {
    color: var(--primary);

    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 500;

    line-height: 1.05;
    letter-spacing: -2px;
}

.collection-filters {
    display: flex;
    align-items: center;

    gap: 30px;

    margin-bottom: 50px;
}

.filter-button {
    background: none;
    border: none;

    padding: 0 0 8px;

    color: var(--text-soft);

    font-size: 0.9rem;

    cursor: pointer;

    position: relative;

    transition: color 0.3s ease;
}

.filter-button::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 1px;

    background-color: var(--accent);

    transition: width 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    color: var(--primary);
}

.filter-button.active::after {
    width: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 28px;

    opacity: 1;
    transform: translateY(0);

    transition: 
        opacity 0.25s ease,
        transform 0.25s ease;
}

.products-grid.filtering {
    opacity: 0;
    transform: translateY(8px);
}

.product-card {
    min-width: 0;

    border: 1px solid rgba(17, 24, 39, 0.12);

    padding: 12px;

    transition: border-color 0.3s ease,

}


.product-card:hover {
    border-color: var(--accent);
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 5;

    overflow: hidden;

    background-color: var(--accent-light);

    margin-bottom: 22px;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-info {
    position: relative;
}

.product-category {
    color: var(--accent);

    font-size: 0.7rem;
    font-weight: 600;

    letter-spacing: 2px;

    margin-bottom: 10px;
}

.product-info h3 {
    color: var(--primary);

    font-size: 1.25rem;
    font-weight: 500;

    margin-bottom: 8px;
}

.product-price {
    color: var(--text-soft);

    font-size: 0.95rem;

    margin-bottom: 18px;
}

.product-view {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 0;

    background: none;
    border: none;

    color: var(--primary);

    font-size: 0.85rem;
    font-weight: 500;

    cursor: pointer;
}

.product-view span {
    transition: transform 0.3s ease;
}

.product-view:hover span {
    transform: translateX(5px);
}

#coleccion {
    scroll-margin-top: 100px;
}

.product-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 2000;
}
.modal-content {
    position: relative;
    background-color: var(--bg);
    width: 90%;
    max-width: 900px;
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.modal-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;

    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;

    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent);
}
.modal-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.modal-category {
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--accent);
}

.modal-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.modal-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-soft);
}

.sizes-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.size-button {
    min-width: 46px;
    height: 42px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid rgba(17, 24, 39, 0.2);
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.size-button:hover {
    border-color: var(--accent);
}

.size-button.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.modal-consult {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
    padding: 13px 20px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background-color: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.modal-consult::after {
    content: "→";
}

.modal-consult:hover {
    background-color: #704422;
    border-color: #704422;
}

.modal-consult:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

#nosotros,
#contacto {
    scroll-margin-top: 90px;
}

.about-section,
.contact-section {
    padding: clamp(48px, 8vw, 96px) 24px;
}

.about-section {
    background-color: #f4efe7;
}

.about-content,
.contact-content {
    max-width: 720px;
    margin: 0 auto;
}

.about-content h2,
.contact-content h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.about-content p,
.contact-content p {
    margin: 0 0 14px;
    line-height: 1.7;
}

.contact-section {
    text-align: center;
    border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.contact-content .modal-consult {
    text-decoration: none;
}