/* =========================================================
   LEXMAR Â· CABECERA COMÃšN
   Variante normal blanca + variante overlay para Comprar.
   ========================================================= */

:root {
    --lexmar-header-max: 1180px;
    --lexmar-header-height: 90px;
}

.lexmar-site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

.lexmar-site-header__inner {
    width: min(var(--lexmar-header-max), calc(100% - 48px));
    min-height: var(--lexmar-header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.lexmar-site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    text-decoration: none;
}

.lexmar-site-brand__logo {
    display: block;
    width: 171px;
    height: 54px;
    object-fit: contain;
    background: #fff;
}

.lexmar-site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(24px, 3vw, 38px);
}

.lexmar-site-nav__link {
    position: relative;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease;
}

.lexmar-site-nav__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width .25s ease;
}

.lexmar-site-nav__link:hover::after,
.lexmar-site-nav__link.is-active::after {
    width: 24px;
}

/* Cabecera normal: blanca */
.lexmar-site-header--default {
    background: #fff;
    border-bottom: 1px solid #eeeeee;
}

.lexmar-site-header--default .lexmar-site-nav__link {
    color: #40506a;
}

.lexmar-site-header--default .lexmar-site-nav__link:hover,
.lexmar-site-header--default .lexmar-site-nav__link.is-active {
    color: #00a4e4;
}

.lexmar-site-header--default .lexmar-site-nav__link::after {
    background: #00a4e4;
}

/* Variante Comprar: sobre imagen */
.lexmar-site-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    border-bottom: 0;
}

.lexmar-site-header--overlay .lexmar-site-nav__link {
    color: rgba(255,255,255,.94);
    text-shadow: 0 1px 8px rgba(0,0,0,.18);
}

.lexmar-site-header--overlay .lexmar-site-nav__link:hover {
    color: #7fd3f4;
}

.lexmar-site-header--overlay .lexmar-site-nav__link.is-active {
    color: #fff;
}

.lexmar-site-header--overlay .lexmar-site-nav__link::after {
    background: #fff;
}

.lexmar-site-header--overlay .lexmar-site-nav__link:hover::after {
    background: #7fd3f4;
}

.lexmar-menu-button,
.lexmar-mobile-nav {
    display: none;
}

@media (max-width: 820px) {
    :root {
        --lexmar-header-height: 78px;
    }

    .lexmar-site-header__inner {
        width: calc(100% - 28px);
    }

    .lexmar-site-brand__logo {
        width: 142px;
        height: 45px;
    }

    .lexmar-site-nav {
        display: none;
    }

    .lexmar-menu-button {
        display: flex;
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .lexmar-site-header--default .lexmar-menu-button {
        border: 1px solid #d7dce2;
        background: #fff;
    }

    .lexmar-site-header--overlay .lexmar-menu-button {
        border: 1px solid rgba(255,255,255,.45);
        background: rgba(255,255,255,.14);
        backdrop-filter: blur(10px);
    }

    .lexmar-menu-button span {
        width: 18px;
        height: 2px;
        border-radius: 999px;
        transition: transform .25s ease;
    }

    .lexmar-site-header--default .lexmar-menu-button span {
        background: #40506a;
    }

    .lexmar-site-header--overlay .lexmar-menu-button span {
        background: #fff;
    }

    .lexmar-menu-button.is-open span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .lexmar-menu-button.is-open span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .lexmar-mobile-nav {
        display: grid;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0 14px;
        background: rgba(255,255,255,.98);
        border-top: 1px solid #eee;
        transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
    }

    .lexmar-mobile-nav.is-open {
        max-height: 430px;
        opacity: 1;
        padding: 10px 14px 18px;
    }

    .lexmar-mobile-nav a {
        padding: 14px 12px;
        border-radius: 12px;
        color: #40506a;
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
    }

    .lexmar-mobile-nav a:hover {
        background: #f5f7f9;
    }
}

/* Hover azul en men¨² sobre Hero */
.lexmar-site-header--overlay .lexmar-site-nav a:hover {
    color: #7fd3f4;
}

.lexmar-site-header--overlay .lexmar-site-nav a:hover::after {
    background: #7fd3f4;
}


/* =========================================================
   LEXMAR Â· FOOTER COMÃšN
   ========================================================= */

.lexmar-site-footer {
    width: 100%;
    background: #3f4349;
    border-top: 1px solid rgba(255,255,255,.04);
    font-family: Arial, Helvetica, sans-serif;
}

.lexmar-site-footer__inner {
    width: min(var(--lexmar-header-max), calc(100% - 48px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.lexmar-site-footer__copyright {
    margin: 0;
    color: #aeb4bc;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.lexmar-site-footer__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(24px, 3vw, 38px);
    flex-wrap: wrap;
}

.lexmar-site-footer__nav a {
    color: #aeb4bc;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.5;
    transition: color .2s ease;
}

.lexmar-site-footer__nav a:hover {
    color: #ffffff;
}

@media (max-width: 820px) {
    .lexmar-site-footer__inner {
        width: calc(100% - 32px);
        min-height: auto;
        padding: 28px 0;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        text-align: center;
    }

    .lexmar-site-footer__copyright {
        white-space: normal;
    }

    .lexmar-site-footer__nav {
        justify-content: center;
        gap: 12px 22px;
    }
}

/* =========================================================
   LEXMAR - BOTON GLOBAL DE NAVEGACION PUBLICA
   Para volver, ir a zonas y navegacion entre paginas.
   ========================================================= */

.site-nav-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-height:42px;
    padding:0 17px;
    border:1px solid #00a4e4;
    border-radius:11px;
    background:#fff;
    color:#00a4e4;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
    font-size:13px;
    font-weight:700;
    line-height:1;
    text-decoration:none;
    white-space:nowrap;
    cursor:pointer;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.site-nav-button:hover,
.site-nav-button:focus,
.site-nav-button:visited{
    color:#00a4e4;
    text-decoration:none;
}

.site-nav-button:hover{
    transform:translateY(-2px);
    border-color:#008fc8;
    background:#eef9fd;
    color:#008fc8;
    box-shadow:0 9px 22px rgba(0,164,228,.16);
}

.site-nav-button:active{
    transform:translateY(0);
    box-shadow:0 4px 12px rgba(0,164,228,.12);
}

.site-nav-button__arrow{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    font-size:17px;
    line-height:1;
    transition:transform .18s ease;
}

.site-nav-button--back:hover .site-nav-button__arrow{
    transform:translateX(-3px);
}

.site-nav-button--forward:hover .site-nav-button__arrow{
    transform:translateX(3px);
}

@media (max-width:640px){
    .site-nav-button{
        min-height:40px;
        padding:0 15px;
        border-radius:10px;
        font-size:12px;
    }
}

