/*
Theme Name: Las Casas Base Theme
Description: Tema base limpia, mobile-first
Version: 1.1
*/

/* ===== HEADER ===== */
.lc-site-header {
    width: 100%;
    background: #000;
}

.lc-header-top {
    background: #d5d0d0;
}

.lc-header-brand {
    width: min(1440px, calc(100% - 24px));
    margin: 0 auto;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 0;
}

.lc-brand-link {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(30px, 6vw, 82px);
    line-height: 1;
    color: #5d4a20;
    text-decoration: none;
}

.lc-brand-link:hover {
    color: #5d4a20;
    text-decoration: none;
}

.lc-header-bottom {
    background: #000;
    position: relative;
}

.lc-header-bottom-inner {
    width: min(1440px, calc(100% - 24px));
    margin: 0 auto;
    min-height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.lc-main-nav {
    min-width: 0;
}

.lc-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.lc-menu li {
    margin: 0;
    padding: 0;
}

.lc-menu a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.2;
}

.lc-menu a:hover,
.lc-menu .current-menu-item > a,
.lc-menu .current_page_item > a {
    color: #e2c48e;
}

.lc-account-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lc-account-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

/* ===== HEADER TOGGLE (drawer) ===== */
.lc-header-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.lc-header-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e2c48e;
    border-radius: 2px;
}

.lc-header-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #050505;
    border-top: 1px solid rgba(226, 196, 142, 0.18);
    border-bottom: 1px solid rgba(226, 196, 142, 0.18);
    z-index: 999;
}

.lc-header-drawer-inner {
    width: min(1440px, calc(100% - 24px));
    margin: 0 auto;
    padding: 14px 0 18px;
}

.lc-header-drawer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lc-header-drawer-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lc-header-drawer-menu li:last-child {
    border-bottom: 0;
}

.lc-header-drawer-menu a {
    display: block;
    padding: 14px 0;
    color: #f5f5f5;
    text-decoration: none;
    font-size: 18px;
}

.lc-header-drawer-menu a:hover,
.lc-header-drawer-menu .current-menu-item > a {
    color: #e2c48e;
}

.lc-header-drawer-account {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f5f5f5;
    text-decoration: none;
    font-size: 18px;
}

.lc-header-drawer-account-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== FOOTER ===== */
.lc-site-footer {
    background: #000;
    border-top: 1px solid rgba(226, 196, 142, 0.22);
    padding: 18px 0;
}

.lc-footer-inner {
    width: min(1440px, calc(100% - 24px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
}

.lc-footer-right {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.lc-footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}

.lc-footer-menu a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 16px;
}

.lc-footer-menu a:hover,
.lc-footer-menu .current-menu-item > a {
    color: #e2c48e;
}

.lc-footer-toggle {
    display: none;
}

/* ===== MOBILE ===== */
@media (max-width: 980px) {
    .lc-main-nav,
    .lc-account-link {
        display: none;
    }

    .lc-header-toggle {
        display: inline-flex;
    }

    .lc-header-bottom-inner {
        grid-template-columns: auto 1fr;
    }

    .lc-footer-inner {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 16px;
    }

    .lc-footer-right {
        justify-content: flex-start;
        width: 100%;
    }

    .lc-footer-menu {
        justify-content: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .lc-header-brand {
        min-height: 74px;
    }

    .lc-brand-link {
        font-size: clamp(24px, 8vw, 44px);
    }

    .lc-header-bottom-inner {
        min-height: 64px;
    }

    .lc-header-drawer-menu a,
    .lc-header-drawer-account {
        font-size: 17px;
    }

    .lc-footer-menu a {
        font-size: 15px;
    }
}
