:root {
    --black: #111111;
    --white: #ffffff;
    --cream: #fbfaf7;
    --line: #ddd9d2;
    --muted: #716d67;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--black);
    font-family: var(--sans);
    overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 3px;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251,250,247,.97);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--black);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    width: min(1320px, calc(100% - 48px));
    min-height: 74px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-brand img {
    width: 78px;
    height: 48px;
    object-fit: contain;
}
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 11px;
}
.desktop-nav a { transition: opacity .2s ease; }
.desktop-nav a:hover { opacity: .5; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* TYPE */
.eyebrow,
.section-kicker,
.catalog-meta span,
.catalog-submeta > span,
.address-box > span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* LANDING */
.landing {
    width: min(1320px, calc(100% - 48px));
    min-height: 205px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 40px;
    align-items: center;
    padding: 34px 0 30px;
}
.landing-copy h1 {
    margin: 12px 0 5px;
    font-family: var(--serif);
    font-size: 64px;
    font-weight: 500;
    line-height: .9;
    letter-spacing: -1px;
}
.landing-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}
.landing-logo-wrap {
    display: flex;
    justify-content: flex-end;
}
.landing-logo {
    width: 110px;
    height: 100px;
    object-fit: contain;
}

/* ENTRY */
.entry-grid {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.entry-card {
    position: relative;
    min-height: 565px;
    overflow: hidden;
    background: #e9e7e3;
}
.entry-card-image,
.entry-card-image img,
.entry-card-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.entry-card-image img {
    object-fit: cover;
    transition: transform .6s ease;
}
.entry-men .entry-card-image img { object-position: center 23%; }
.entry-women .entry-card-image img { object-position: center 28%; }
.entry-card:hover .entry-card-image img { transform: scale(1.025); }
.entry-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.58), rgba(0,0,0,.02) 65%);
}
.entry-card-content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    color: var(--white);
}
.entry-card-content > span {
    font-size: 9px;
    letter-spacing: 3px;
}
.entry-card-content h2 {
    margin: 9px 0 14px;
    font-family: var(--serif);
    font-size: 55px;
    line-height: 1;
    font-weight: 500;
}
.entry-card-content p {
    margin: 0;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.entry-card-content strong { margin-left: 10px; }

/* WHOLESALE */
.wholesale-banner {
    width: min(1320px, calc(100% - 48px));
    min-height: 145px;
    margin: 0 auto;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: var(--black);
    color: var(--white);
}
.wholesale-banner h2 {
    margin: 5px 0 0;
    font-family: var(--serif);
    font-size: 45px;
    line-height: 1;
    font-weight: 500;
}
.wholesale-banner p {
    margin: 0;
    color: #d6d2cc;
    font-size: 12px;
}
.wholesale-banner strong { margin-left: 12px; color: #fff; }
.wholesale-banner .eyebrow { color: #888; }

/* CATALOG */
.catalog-section {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 110px 0 30px;
}
.men-catalog { padding-top: 95px; }
.catalog-heading {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: end;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}
.catalog-heading h2 {
    margin: 8px 0 0;
    font-family: var(--serif);
    font-size: 58px;
    font-weight: 500;
    line-height: .9;
}
.catalog-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.catalog-product { min-width: 0; }
.catalog-photo {
    position: relative;
    height: 575px;
    overflow: hidden;
    background: #efeeeb;
}
.catalog-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(.9);
    transition: transform .35s ease;
}
.catalog-photo:hover img { transform: scale(.93); }
.catalog-photo-tall img {
    object-fit: contain;
    transform: scale(.98);
}
.catalog-photo-tall:hover img { transform: scale(1); }
.product-open {
    position: absolute;
    right: 14px;
    bottom: 14px;
    min-width: 132px;
    min-height: 44px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 0;
    background: rgba(255,255,255,.94);
    color: var(--black);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}
.catalog-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    padding: 20px 0 12px;
    border-bottom: 1px solid var(--line);
}
.catalog-meta span { color: #938f89; letter-spacing: 2px; }
.catalog-meta h3 {
    margin: 8px 0 0;
    font-family: var(--serif);
    font-size: 31px;
    line-height: 1;
    font-weight: 500;
}
.catalog-meta > strong {
    font-size: 22px;
    white-space: nowrap;
}
.catalog-submeta {
    min-height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
}
.catalog-submeta > span {
    color: #9a958f;
    letter-spacing: 1px;
    font-size: 8px;
}
.mini-colors {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.mini-dot {
    width: 14px;
    height: 14px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.16);
    background: var(--dot);
    cursor: pointer;
}
.mini-dot.active {
    outline: 2px solid var(--black);
    outline-offset: 3px;
}

/* STATEMENT */
.statement {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 125px 0 130px;
}
.statement h2 {
    margin: 13px 0 28px;
    font-family: var(--serif);
    font-size: 72px;
    line-height: .9;
    letter-spacing: -1.5px;
    font-weight: 500;
}
.statement h2 em { font-style: italic; }
.statement > p {
    margin: 0;
    max-width: 460px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* CONTACT */
.contact-section {
    background: var(--black);
    color: var(--white);
}
.contact-inner {
    width: min(1320px, calc(100% - 48px));
    min-height: 440px;
    margin: auto;
    padding: 90px 0;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
}
.contact-copy h2 {
    margin: 12px 0 24px;
    font-family: var(--serif);
    font-size: 70px;
    line-height: .9;
    font-weight: 500;
}
.contact-copy p {
    max-width: 460px;
    margin: 0;
    color: #b9b5ae;
    font-size: 13px;
    line-height: 1.7;
}
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}
.contact-button {
    min-height: 56px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    color: var(--black);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.contact-facebook {
    border: 1px solid #777;
    background: transparent;
    color: var(--white);
}
.address-box {
    border-top: 1px solid #333;
    padding-top: 25px;
}
.address-box > span { color: #777; }
.address-box p {
    margin: 12px 0 0;
    color: #dedbd5;
    font-size: 12px;
    line-height: 1.8;
}

/* FOOTER */
.site-footer {
    min-height: 105px;
    width: 100%;
    padding: 18px max(24px, calc((100vw - 1320px) / 2));
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
    background: var(--black);
    border-top: 1px solid #2e2e2e;
    color: #8e8a84;
    font-size: 8px;
    letter-spacing: 2px;
}
.site-footer img {
    width: 82px;
    height: 48px;
    object-fit: contain;
}
.site-footer > div:nth-child(2) { text-align: center; }
.site-footer > div:nth-child(3) { text-align: right; }

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}
.modal.active { display: block; }
.modal-background {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.68);
}
.modal-window {
    position: absolute;
    inset: 5vh 5vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--cream);
    overflow: auto;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 1px solid var(--black);
    background: var(--cream);
    font-size: 24px;
    cursor: pointer;
}
.modal-photo {
    min-height: 620px;
    background: #efeeeb;
}
.modal-photo img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: contain;
    padding: 20px;
}
.modal-details {
    padding: 70px 58px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.modal-eyebrow {
    color: #99948f;
    font-size: 9px;
    letter-spacing: 3px;
}
.modal-details h2 {
    margin: 12px 0 20px;
    font-family: var(--serif);
    font-size: 52px;
    line-height: .92;
    font-weight: 500;
}
.modal-price {
    margin-bottom: 18px;
    font-size: 25px;
    font-weight: 600;
}
.modal-description {
    max-width: 400px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}
.modal-size,
.modal-colors {
    padding-top: 19px;
    margin-top: 10px;
    border-top: 1px solid var(--line);
}
.modal-size > span,
.modal-colors > span {
    display: block;
    margin-bottom: 10px;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 600;
}
.size-list {
    display: flex;
    gap: 7px;
    margin-bottom: 11px;
}
.modal-size-button {
    width: 43px;
    height: 38px;
    border: 1px solid #d2cec8;
    background: transparent;
    cursor: pointer;
    font-size: 11px;
}
.modal-size-button.active,
.modal-size-button:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
#modalSizePrice { font-size: 11px; }
.modal-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.modal-color {
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.18);
    cursor: pointer;
}
.modal-color.active {
    outline: 2px solid var(--black);
    outline-offset: 3px;
}
#modalSelectedColor {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 10px;
}
.modal-whatsapp {
    margin-top: 28px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--black);
    color: var(--white);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.contact-section a:focus-visible,
.modal-whatsapp:focus-visible {
    outline-color: var(--white);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-placeholder { display: none; }
    .entry-card { min-height: 500px; }
    .contact-inner { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 680px) {
    .header-inner {
        width: calc(100% - 28px);
        min-height: 64px;
    }
    .header-brand img { width: 72px; height: 42px; }
    .desktop-nav { display: none; }
    .menu-toggle {
        display: block;
        width: 40px;
        height: 40px;
        padding: 8px;
        border: 1px solid var(--black);
        background: transparent;
        cursor: pointer;
    }
    .menu-toggle span {
        display: block;
        width: 18px;
        height: 1px;
        margin: 5px auto;
        background: var(--black);
    }
    .mobile-nav {
        padding: 5px 14px 14px;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
    }
    .mobile-nav.open { display: flex; flex-direction: column; }
    .mobile-nav a {
        padding: 13px 8px;
        border-bottom: 1px solid var(--line);
        font-size: 11px;
    }

    .landing {
        width: calc(100% - 28px);
        min-height: 165px;
        grid-template-columns: 1fr 95px;
        gap: 15px;
        padding: 24px 0 22px;
    }
    .landing-copy h1 { font-size: 46px; }
    .landing-copy p { font-size: 13px; }
    .landing-logo { width: 82px; height: 80px; }

    .entry-grid {
        width: calc(100% - 28px);
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .entry-card { min-height: 420px; }
    .entry-card-content {
        left: 15px;
        right: 15px;
        bottom: 17px;
    }
    .entry-card-content > span { font-size: 7px; letter-spacing: 2px; }
    .entry-card-content h2 { font-size: 35px; margin: 7px 0 11px; }
    .entry-card-content p { font-size: 8px; }

    .wholesale-banner {
        width: calc(100% - 28px);
        min-height: 125px;
        padding: 22px 18px;
        gap: 12px;
    }
    .wholesale-banner h2 { font-size: 34px; }
    .wholesale-banner p { font-size: 10px; max-width: 150px; line-height: 1.5; }

    .catalog-section {
        width: calc(100% - 28px);
        padding: 68px 0 20px;
    }
    .men-catalog { padding-top: 62px; }
    .catalog-heading {
        display: block;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .catalog-heading h2 { font-size: 43px; }
    .catalog-heading p { margin-top: 15px; max-width: 300px; font-size: 12px; }
    .product-grid { grid-template-columns: 1fr; gap: 48px; }
    .catalog-photo { height: 395px; }
    .catalog-photo img { transform: scale(.86); }
    .catalog-photo:hover img { transform: scale(.86); }
    .catalog-photo-tall img { transform: scale(.98); }
    .catalog-photo-tall:hover img { transform: scale(.98); }
    .product-open { min-width: 125px; min-height: 42px; right: 9px; bottom: 9px; }
    .catalog-meta { padding: 16px 0 10px; }
    .catalog-meta h3 { font-size: 28px; }
    .catalog-meta > strong { font-size: 20px; }
    .catalog-submeta { align-items: flex-start; flex-direction: column; gap: 9px; }
    .mini-colors { justify-content: flex-start; }

    .statement {
        width: calc(100% - 28px);
        padding: 82px 0 90px;
    }
    .statement h2 { font-size: 48px; line-height: .92; letter-spacing: -1px; }

    .contact-inner {
        width: calc(100% - 28px);
        min-height: 0;
        padding: 72px 0 68px;
        gap: 40px;
    }
    .contact-copy h2 { font-size: 49px; }
    .contact-copy p { font-size: 12px; }

    .site-footer {
        min-height: 150px;
        padding: 24px 14px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        text-align: center;
    }
    .site-footer > div:nth-child(2),
    .site-footer > div:nth-child(3) { text-align: center; }

    .modal-window {
        inset: 2.5vh 3vw;
        display: block;
        overflow-y: auto;
    }
    .modal-photo { height: 38vh; min-height: 285px; }
    .modal-photo img { height: 100%; min-height: 285px; padding: 10px; }
    .modal-details { padding: 47px 21px 24px; }
    .modal-details h2 { font-size: 43px; }
    .modal-close { top: 7px; right: 7px; width: 36px; height: 36px; }
}

@media (max-width: 420px) {
    .entry-card { min-height: 390px; }
    .entry-card-content h2 { font-size: 32px; }
    .landing-copy h1 { font-size: 43px; }
}

/* REFINAMIENTOS RESPONSIVE — FASE 2 */
main,
.site-header,
.site-footer { min-width: 0; }

@media (min-width: 681px) and (max-width: 1024px) {
    .entry-card {
        min-height: clamp(440px, 52vw, 500px);
    }
    .catalog-photo {
        height: clamp(430px, 53vw, 540px);
    }
    .modal-window {
        inset: 4vh 4vw;
        grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    }
    .modal-photo,
    .modal-photo img { min-height: 0; }
}

@media (max-width: 740px) {
    .header-inner {
        width: calc(100% - 28px);
        min-height: 64px;
    }
    .header-brand img { width: 72px; height: 42px; }
    .desktop-nav { display: none; }
    .menu-toggle {
        display: block;
        width: 44px;
        height: 44px;
        padding: 8px;
        border: 1px solid var(--black);
        background: transparent;
        cursor: pointer;
    }
    .menu-toggle span {
        display: block;
        width: 18px;
        height: 1px;
        margin: 5px auto;
        background: var(--black);
    }
    .mobile-nav {
        padding: 5px 14px 14px;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
    }
    .mobile-nav.open { display: flex; flex-direction: column; }
    .mobile-nav a {
        min-height: 48px;
        padding: 13px 8px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--line);
        font-size: 12px;
    }
}

@media (max-width: 680px) {
    .landing {
        grid-template-columns: minmax(0, 1fr) 82px;
        gap: 12px;
    }
    .landing-logo { width: 76px; height: 76px; }

    .catalog-photo {
        height: auto;
        aspect-ratio: 4 / 5;
    }
    .catalog-photo img { transform: scale(.88); }
    .catalog-photo-tall img { transform: scale(.96); }
    .product-open {
        min-height: 46px;
        right: 10px;
        bottom: 10px;
    }
    .catalog-meta { gap: 12px; }
    .catalog-submeta { min-height: 0; }
    .mini-colors { gap: 9px; }
    .mini-dot {
        width: 26px;
        height: 26px;
    }

    .modal-window {
        inset: 12px;
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .modal-close {
        position: sticky;
        top: 8px;
        align-self: flex-end;
        width: 40px;
        height: 40px;
        margin: 8px 8px -48px 0;
    }
    .modal-photo {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
    .modal-photo img {
        height: 100%;
        min-height: 0;
        padding: 12px;
    }
    .modal-details { padding: 42px 21px 26px; }
    .modal-details h2 { font-size: clamp(34px, 10vw, 43px); }
    .modal-size-button {
        width: 48px;
        height: 44px;
    }
    .modal-color-list { gap: 13px; }
    .modal-color {
        width: 28px;
        height: 28px;
    }
    .modal-whatsapp {
        min-height: 54px;
        margin-top: 24px;
    }
}

@media (max-width: 540px) {
    .entry-grid { grid-template-columns: 1fr; }
    .entry-card {
        min-height: 0;
        aspect-ratio: 4 / 5;
    }
    .entry-card-content { left: 20px; right: 20px; bottom: 20px; }
    .entry-card-content > span { font-size: 8px; }
    .entry-card-content h2 { font-size: 42px; }
    .entry-card-content p { font-size: 10px; }

    .wholesale-banner {
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .wholesale-banner p { max-width: none; }
}

@media (max-width: 360px) {
    .landing {
        grid-template-columns: minmax(0, 1fr) 66px;
        gap: 8px;
    }
    .landing-copy h1 { font-size: 40px; }
    .landing-logo { width: 64px; height: 64px; }
    .catalog-meta h3 { font-size: 25px; }
    .catalog-meta > strong { font-size: 18px; }
    .product-open { min-width: 118px; }
}

@media (max-width: 740px) and (max-height: 600px) {
    .modal-window { inset: 8px 12px; }
    .modal-photo { aspect-ratio: 16 / 7; }
    .modal-details { padding-top: 30px; }
    .modal-details h2 { font-size: 32px; }
}
