
/* LOGO OVERRIDE — cubre custom_logo de WP y logo manual */
.plx-logo-icon img,
.plx-header__logo-img img,
.plx-header__logo img,
.custom-logo-link img,
a.custom-logo-link img.custom-logo {
    height: 52px !important;
    width: auto !important;
    max-width: none !important;
    display: block;
}
/*
 * header-brandberry.css
 * Header transparente con efecto flip — plasticalomas.com
 * VERSION 2.0 — CSS limpio desde cero
 */

/* ─── SKIP LINK ─────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #0E1E2A;
    color: #FAF8F4;
    padding: 8px 24px;
    font-size: 11px;
    z-index: 9999;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ─── HEADER ────────────────────────────────────────────── */
.plx-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    z-index: 100;
    background: transparent;
    border-bottom: 0.5px solid rgba(250,248,244,0.08);
    transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.plx-header.is-scrolled {
    background: rgba(14,30,42,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(214,211,203,0.12);
    box-shadow: 0 1px 32px rgba(0,0,0,0.18);
}

.plx-header.is-solid {
    background: #0E1E2A;
    border-bottom-color: rgba(214,211,203,0.1);
}

/* ─── LOGO ──────────────────────────────────────────────── */
.plx-header__logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
}

.plx-logo-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.plx-logo-icon img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.plx-logo-text {
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 16px;
    font-weight: 300;
    color: #FAF8F4;
    letter-spacing: 0.04em;
    line-height: 1.15;
}
.plx-logo-text em { font-style: italic; }
.plx-logo-text span {
    display: block;
    font-family: var(--font-sans, 'Manrope', sans-serif);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(250,248,244,0.35);
    margin-top: 1px;
}
.plx-header__logo-img img { height: 44px; width: auto; display: block; }

/* ─── NAV CENTRAL CON EFECTO FLIP ──────────────────────── */
.plx-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.plx-nav__item {
    position: relative;
    display: block;
    height: 30px;
    padding: 0 16px;
    overflow: hidden;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    font-family: var(--font-sans, 'Manrope', sans-serif);
}
.plx-nav__item:focus-visible { outline: 2px solid #8B6F47; outline-offset: 2px; }

.plx-nav__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
    pointer-events: none;
}
.plx-nav__item:hover .plx-nav__inner { transform: translateY(-100%); }

.plx-nav__label,
.plx-nav__label-hover {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 30px;
    height: 30px;
    white-space: nowrap;
    display: block;
}
.plx-nav__label { color: rgba(250,248,244,0.5); transition: color 0.2s; }
.plx-nav__label-hover { color: #8B6F47; }

.plx-nav__item.is-active .plx-nav__label { color: rgba(250,248,244,0.9); }
.plx-nav__item.is-active::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    transform: translateX(-50%);
    width: 16px; height: 1px;
    background: #8B6F47;
}

/* ─── MEGA-MENÚ ─────────────────────────────────────────── */
.plx-mega {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(14,30,42,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 0.5px solid rgba(214,211,203,0.1);
    border-bottom: 0.5px solid rgba(214,211,203,0.1);
    padding: 40px 48px;
    display: none;
    grid-template-columns: repeat(4,1fr);
    gap: 32px;
    z-index: 99;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.plx-mega.is-open { display: grid; opacity: 1; transform: translateY(0); }

/* Variante: dropdown simple de Equipo — 2 links verticales, sin columnas */
.plx-mega--2col {
    position: fixed;
    top: 68px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-6px);
    grid-template-columns: 1fr;
    width: auto;
    min-width: 220px;
    padding: 12px;
    gap: 0;
    margin-top: 12px;
}

.plx-mega--2col.is-open {
    transform: translateX(-50%) translateY(0);
}

.equipo-mega__link {
    display: block;
    font-family: var(--font-sans, 'Manrope', sans-serif);
    font-size: 13px;
    letter-spacing: 0.02em;
    color: rgba(250,248,244,0.65);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 2px;
    transition: color 0.2s, background 0.2s, padding-left 0.25s;
}

.equipo-mega__link:hover,
.equipo-mega__link:focus-visible {
    color: #FAF8F4;
    background: rgba(139,111,71,0.12);
    padding-left: 22px;
    outline: none;
}

.mega-col__title {
    display: block;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8B6F47;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid rgba(214,211,203,0.1);
    font-family: var(--font-sans, 'Manrope', sans-serif);
    text-decoration: none;
    transition: color 0.2s;
}
.mega-col__title:hover { color: #FAF8F4; }

.mega-col__link {
    display: block;
    font-family: var(--font-sans, 'Manrope', sans-serif);
    font-size: 12px;
    color: rgba(250,248,244,0.38);
    text-decoration: none;
    padding: 6px 0;
    letter-spacing: 0.04em;
    border-bottom: 0.5px solid rgba(214,211,203,0.06);
    transition: color 0.2s, padding-left 0.25s;
}
.mega-col__link:last-child { border-bottom: none; }
.mega-col__link:hover { color: #FAF8F4; padding-left: 6px; }

/* ─── LADO DERECHO ──────────────────────────────────────── */
.plx-header__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.plx-lang {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250,248,244,0.3);
}
.plx-lang a { color: rgba(250,248,244,0.3); text-decoration: none; transition: color 0.2s; }
.plx-lang a:hover, .plx-lang .current-lang { color: #FAF8F4; }

.plx-header__cta {
    font-family: var(--font-sans, 'Manrope', sans-serif);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0E1E2A;
    background: #FAF8F4;
    padding: 10px 22px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
    white-space: nowrap;
    display: inline-block;
}
.plx-header__cta:hover { background: #8B6F47; color: #FAF8F4; }

/* ─── HAMBURGUESA ───────────────────────────────────────── */
.plx-header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}
.plx-header__hamburger span {
    display: block;
    width: 22px; height: 1px;
    background: #FAF8F4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.plx-header__hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.plx-header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.plx-header__hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── MENÚ MOBILE — SOLO EN MÓVIL ──────────────────────── */
/* IMPORTANTE: display:none en TODOS los tamaños por defecto */
.plx-mobile-menu { display: none !important; }

/* ─── RESPONSIVE DESKTOP 1024px ────────────────────────── */
@media (max-width: 1024px) {
    .plx-header { padding: 0 32px; }
    .plx-nav { gap: 0; }
    .plx-nav__item { padding: 0 10px; }
    .plx-mega { padding: 32px; gap: 20px; }
}

/* ─── RESPONSIVE MOBILE 768px ──────────────────────────── */
@media (max-width: 768px) {

    /* Header */
    .plx-header { padding: 0 20px; height: 60px; }
    .plx-nav { display: none !important; }
    .plx-header__cta { display: none !important; }
    .plx-lang { display: none; }
    .plx-mega { display: none !important; }
    .plx-logo-text span { display: none; }
    .plx-header__hamburger { display: flex; }

    /* Menú mobile — activar solo en mobile */
    .plx-mobile-menu {
        display: flex !important;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: #0E1E2A;
        z-index: 999;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
        overflow: hidden;
        pointer-events: none;
    }

    .plx-mobile-menu.is-open {
        transform: translateX(0);
        pointer-events: all;
    }

    /* Texto decorativo de fondo */
    .plx-mobile-menu::before {
        content: 'Lomas';
        position: absolute;
        bottom: -30px; right: -10px;
        font-family: var(--font-serif, 'Cormorant Garamond', serif);
        font-size: clamp(80px, 30vw, 140px);
        font-weight: 300;
        color: transparent;
        -webkit-text-stroke: 1px rgba(139,111,71,0.07);
        pointer-events: none;
        line-height: 1;
        z-index: 0;
    }

    /* Header del menú */
    .plx-mm__header {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        border-bottom: 0.5px solid rgba(250,248,244,0.08);
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .plx-mm__logo-text {
        font-family: var(--font-serif, 'Cormorant Garamond', serif);
        font-size: 15px;
        font-weight: 300;
        color: #FAF8F4;
        letter-spacing: 0.03em;
    }
    .plx-mm__logo-text em { font-style: italic; }

    .plx-mm__close {
        width: 40px; height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 0.5px solid rgba(250,248,244,0.15);
        cursor: pointer;
        color: #FAF8F4;
        transition: border-color 0.2s, background 0.2s;
        flex-shrink: 0;
    }
    .plx-mm__close:hover { border-color: #8B6F47; background: rgba(139,111,71,0.1); }
    .plx-mm__close svg {
        width: 14px; height: 14px;
        stroke: currentColor; fill: none;
        stroke-width: 1.5; stroke-linecap: round;
    }

    /* Nav links */
    .plx-mm__nav {
        flex: 1;
        padding: 28px 24px 20px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        position: relative;
        z-index: 1;
    }

    .plx-mm__link {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding: 16px 0;
        border-bottom: 0.5px solid rgba(250,248,244,0.07);
        text-decoration: none;
        cursor: pointer;
        background: none;
        border-left: none;
        border-right: none;
        border-top: none;
        width: 100%;
        text-align: left;
        position: relative;
        overflow: hidden;
    }

    .plx-mm__link::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0;
        width: 0; height: 1px;
        background: #8B6F47;
        transition: width 0.35s ease;
    }
    .plx-mm__link:hover::after { width: 100%; }

    .plx-mm__link-num {
        font-size: 10px;
        letter-spacing: 0.14em;
        color: rgba(250,248,244,0.25);
        font-family: var(--font-sans, 'Manrope', sans-serif);
        margin-right: 12px;
        flex-shrink: 0;
    }

    .plx-mm__link-name {
        font-family: var(--font-serif, 'Cormorant Garamond', serif);
        font-size: 28px;
        font-weight: 300;
        color: #FAF8F4;
        line-height: 1;
        flex: 1;
        transition: color 0.2s, padding-left 0.3s;
    }
    .plx-mm__link-name em { font-style: italic; color: #8B6F47; }
    .plx-mm__link:hover .plx-mm__link-name { color: rgba(250,248,244,0.85); padding-left: 4px; }

    .plx-mm__link-arrow {
        font-size: 16px;
        color: rgba(250,248,244,0.2);
        transition: transform 0.3s, color 0.2s;
        flex-shrink: 0;
        padding-left: 12px;
    }
    .plx-mm__link:hover .plx-mm__link-arrow { transform: translate(3px,-3px); color: #8B6F47; }

    /* Sub-menú procedimientos */
    .plx-mm__sub {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: rgba(250,248,244,0.03);
        margin: 0 -24px;
        padding: 0 24px;
    }
    .plx-mm__sub.is-open { max-height: 240px; }

    .plx-mm__sub-item {
        display: block;
        font-size: 13px;
        letter-spacing: 0.04em;
        color: rgba(250,248,244,0.4);
        padding: 10px 0;
        border-bottom: 0.5px solid rgba(250,248,244,0.05);
        text-decoration: none;
        transition: color 0.2s, padding-left 0.2s;
        font-family: var(--font-sans, 'Manrope', sans-serif);
    }
    .plx-mm__sub-item:last-child { border-bottom: none; }
    .plx-mm__sub-item:hover { color: #FAF8F4; padding-left: 6px; }

    /* Footer del menú */
    .plx-mm__footer {
        padding: 20px 24px 36px;
        flex-shrink: 0;
        border-top: 0.5px solid rgba(250,248,244,0.07);
        position: relative;
        z-index: 1;
    }

    .plx-mm__cta {
        display: block;
        width: 100%;
        background: #FAF8F4;
        color: #0E1E2A;
        text-align: center;
        padding: 15px;
        font-family: var(--font-sans, 'Manrope', sans-serif);
        font-size: 11px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        text-decoration: none;
        transition: background 0.25s, color 0.25s;
        margin-bottom: 16px;
    }
    .plx-mm__cta:hover { background: #8B6F47; color: #FAF8F4; }

    .plx-mm__social {
        display: flex;
        gap: 12px;
        justify-content: center;
    }
    .plx-mm__social a {
        width: 36px; height: 36px;
        border: 0.5px solid rgba(250,248,244,0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(250,248,244,0.35);
        text-decoration: none;
        transition: border-color 0.2s, color 0.2s;
    }
    .plx-mm__social a:hover { border-color: #8B6F47; color: #8B6F47; }
    .plx-mm__social svg {
        width: 15px; height: 15px;
        fill: none; stroke: currentColor;
        stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
    }
    .plx-mm__social .fill svg { stroke: none; fill: currentColor; }

    /* Animaciones de entrada */
    .plx-mm__link,
    .plx-mm__footer {
        opacity: 0;
        transform: translateX(-16px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .plx-mobile-menu.is-open .plx-mm__link:nth-child(1) { transition-delay: 0.15s; }
    .plx-mobile-menu.is-open .plx-mm__link:nth-child(2) { transition-delay: 0.22s; }
    .plx-mobile-menu.is-open .plx-mm__link:nth-child(3) { transition-delay: 0.29s; }
    .plx-mobile-menu.is-open .plx-mm__link:nth-child(4) { transition-delay: 0.36s; }
    .plx-mobile-menu.is-open .plx-mm__link:nth-child(5) { transition-delay: 0.43s; }
    .plx-mobile-menu.is-open .plx-mm__footer            { transition-delay: 0.48s; }
    .plx-mobile-menu.is-open .plx-mm__link,
    .plx-mobile-menu.is-open .plx-mm__footer { opacity: 1; transform: translateX(0); }
}
