/* =========================================================
   CASAS.CO.CR 2026
   HEADER
========================================================= */

.header26 {
    --h26-blue: #073b70;
    --h26-blue-dark: #062b52;
    --h26-red: #d71920;
    --h26-red-hover: #bb1117;
    --h26-text: #1d2935;
    --h26-border: #e7ebef;

    position: relative;
    z-index: 1000;

    width: var(--anchoP);
    background: #ffffff;
    margin:0px auto ;

    border-bottom: 1px solid var(--h26-border);

    
}


/* =========================================================
   CONTENEDOR
========================================================= */

.header26__inner {
    width: 100%;
    min-height: 105px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 30px;
    
}


/* =========================================================
   LOGO
========================================================= */

.header26__logo {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    text-decoration: none;
}

.header26__logo img {
    display: block;

    width: auto;
    height: 85px;
}


/* =========================================================
   NAVEGACIÓN
========================================================= */

.header26__nav {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 24px;
}

.header26__menu {
    list-style: none;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;

    gap: 4px;
}

.header26__menu > li {
    position: relative;

    margin: 0;
    padding: 0;
}

.header26__menu a,
.header26__submenu-button {
    border: 0;
    background: transparent;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    color: var(--h26-text);

    text-decoration: none;

    cursor: pointer;

    white-space: nowrap;
}

.header26__menu > li > a,
.header26__submenu-button {
    min-height: 44px;

    padding: 0 11px;

    display: flex;
    align-items: center;

    gap: 5px;

    border-radius: 7px;

    transition:
        color .2s ease,
        background-color .2s ease;
}

.header26__menu > li > a:hover,
.header26__submenu-button:hover {
    color: var(--h26-blue);
    background: #f5f8fb;
}


/* =========================================================
   FLECHA
========================================================= */

.header26__arrow {
    position: relative;
    top: -1px;

    font-size: 15px;
    line-height: 1;

    transition: transform .2s ease;
}


/* =========================================================
   SUBMENÚ
========================================================= */

.header26__submenu {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    z-index: 20;

    width: max-content;
    min-width: 245px;
    max-width: 330px;

    margin: 0;
    padding: 8px;

    list-style: none;

    background: #ffffff;

    border: 1px solid #e5e9ed;
    border-radius: 10px;

    box-shadow: 0 14px 35px rgba(0, 30, 60, .14);

    opacity: 0;
    visibility: hidden;

    transform: translateY(6px);

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;
}

.header26__submenu li {
    margin: 0;
}

.header26__submenu a {
    display: block;

    padding: 10px 13px;

    border-radius: 6px;

    line-height: 1.35;

    white-space: normal;
}

.header26__submenu a:hover {
    color: var(--h26-blue);
    background: #f3f7fb;
}


/* DESKTOP: HOVER */

@media (min-width: 1101px) {

    .header26__has-submenu:hover > .header26__submenu,
    .header26__has-submenu:focus-within > .header26__submenu {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .header26__has-submenu:hover > .header26__submenu-button
    .header26__arrow {
        transform: rotate(180deg);
    }
}


/* =========================================================
   ACCIONES
========================================================= */

.header26__actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 12px;
}

.header26__login {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 10px 4px;

    color: var(--h26-blue-dark);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;
}

.header26__login:hover {
    color: var(--h26-red);
}

.header26__user-icon {
    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: transparent;

    border: 2px solid var(--h26-blue);
    border-radius: 50%;

    position: relative;
}

.header26__user-icon::before {
    content: "";

    position: absolute;

    top: 4px;
    left: 50%;

    width: 6px;
    height: 6px;

    transform: translateX(-50%);

    background: var(--h26-blue);

    border-radius: 50%;
}

.header26__user-icon::after {
    content: "";

    position: absolute;

    bottom: 3px;
    left: 50%;

    width: 12px;
    height: 6px;

    transform: translateX(-50%);

    background: var(--h26-blue);

    border-radius: 8px 8px 4px 4px;
}


/* PUBLICAR */

.header26__publish {
    min-height: 44px;

    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    color: #ffffff;

    background: var(--h26-red);

    border-radius: 7px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    box-shadow: 0 5px 15px rgba(215, 25, 32, .18);

    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.header26__publish:hover {
    color: #ffffff;

    background: var(--h26-red-hover);

    transform: translateY(-1px);

    box-shadow: 0 7px 18px rgba(215, 25, 32, .24);
}


/* =========================================================
   HAMBURGUESA
========================================================= */

.header26__toggle {
    display: none;

    width: 44px;
    height: 44px;

    margin-left: auto;
    padding: 9px;

    border: 0;
    border-radius: 7px;

    background: transparent;

    cursor: pointer;
}

.header26__toggle span {
    display: block;

    width: 25px;
    height: 2px;

    margin: 5px auto;

    background: var(--h26-blue-dark);

    border-radius: 5px;

    transition:
        transform .25s ease,
        opacity .25s ease;
}


/* =========================================================
   PANTALLAS INTERMEDIAS
========================================================= */

@media (max-width: 1350px) and (min-width: 1101px) {

    .header26__inner {
        gap: 16px;
    }

    .header26__logo img {
        height: 55px;
    }

    .header26__nav {
        gap: 14px;
    }

    .header26__menu > li > a,
    .header26__submenu-button {
        padding-left: 7px;
        padding-right: 7px;

        font-size: 13px;
    }

    .header26__login {
        font-size: 13px;
    }

    .header26__publish {
        padding-left: 13px;
        padding-right: 13px;

        font-size: 13px;
    }
}


/* =========================================================
   TABLET / MÓVIL
========================================================= */

@media (max-width: 1100px) {

    .header26__inner {
        width: 94%;
        min-height: 76px;

        position: relative;
    }

    .header26__logo img {
        height: 54px;
    }

    .header26__toggle {
        display: block;
    }


    /* MENÚ DESPLEGABLE */

    .header26__nav {
        position: absolute;

        top: 100%;
        left: -3%;

        width: 106%;

        max-height: calc(100vh - 76px);
        overflow-y: auto;

        display: none;

        padding: 14px 3% 22px;

        background: #ffffff;

        border-top: 1px solid #edf0f3;
        border-bottom: 1px solid #dfe5ea;

        box-shadow: 0 18px 30px rgba(0, 30, 60, .12);
    }

    .header26__nav.is-open {
        display: block;
    }

    .header26__menu {
        display: block;
    }

    .header26__menu > li {
        width: 100%;

        border-bottom: 1px solid #edf0f3;
    }

    .header26__menu > li > a,
    .header26__submenu-button {
        width: 100%;
        min-height: 50px;

        padding: 0 5px;

        justify-content: space-between;

        font-size: 15px;

        border-radius: 0;

        text-align: left;
    }


    /* SUBMENÚ MÓVIL */

    .header26__submenu {
        position: static;

        width: 100%;
        min-width: 0;
        max-width: none;

        display: none;

        padding: 0 0 10px 14px;

        border: 0;
        border-radius: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        transform: none;
    }

    .header26__has-submenu.is-open > .header26__submenu {
        display: block;
    }

    .header26__has-submenu.is-open >
    .header26__submenu-button
    .header26__arrow {
        transform: rotate(180deg);
    }

    .header26__submenu a {
        padding: 10px 12px;

        color: #44515d;

        font-size: 14px;
        font-weight: 500;
    }


    /* ACCIONES */

    .header26__actions {
        width: 100%;

        margin-top: 18px;

        display: grid;
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .header26__login,
    .header26__publish {
        min-height: 48px;

        justify-content: center;
    }

    .header26__login {
        border: 1px solid #dce3e9;
        border-radius: 7px;
    }


    /* HAMBURGUESA ABIERTA */

    .header26__toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .header26__toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .header26__toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}


/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 600px) {

    .header26__inner {
        min-height: 68px;
    }

    .header26__logo img {
        height: 47px;
    }

    .header26__nav {
        max-height: calc(100vh - 68px);
    }

    .header26__actions {
        grid-template-columns: 1fr;
    }

    .header26__publish {
        width: 100%;
    }
}