/* ===== Header Pro - Terrazas Propiedades ===== */
.header-pro {
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.header-pro .container {
    overflow: hidden;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    margin: 0;
}

.header-pro.is-scrolled .container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

.header-pro .header__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

/* Brand */
.header-pro .header__brand__link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-pro .header__brand__logo {
    width: 50px;
    height: auto;
    display: block;
}

.header-pro .header__brand__icon {
    font-size: 28px;
    color: var(--primary);
}

.header-pro .header__brand__name {
    font-weight: 800;
    font-size: 22px;
    color: #1c1c1c;
}

.header-pro .header__brand__name strong {
    color: var(--primary);
}

/* Menu centrado */
.header-pro .header__menu {
    padding: 0;
}

.header-pro .header__menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-pro .header__menu ul li a {
    letter-spacing: 1px;
    text-decoration: none;
    color: #1c1c1c;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.header-pro .header__menu ul li a:hover,
.header-pro .header__menu ul li.activ > a {
    color: var(--primary);
}

/* Pill rosa */
.header-pro .header__right__pill {
    background: var(--primary);
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-pro .header__pill__btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.header-pro .header__pill__btn:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.header-pro .header__pill__btn i {
    font-size: 15px;
}

/* Pill divider "|" */
.header-pro .header__pill__divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 4px;
}

/* User info inside pill */
.header-pro .header__pill__user {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    padding: 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-pro .header__pill__user i {
    font-size: 15px;
}

/* Logout btn inside pill */
.header-pro .header__pill__logout {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.header-pro .header__pill__logout:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

/* Burger mobile */
.header-pro .header__burger {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1c1c1c;
    padding: 8px;
    display: none;
}

/* ===== Mobile Drawer ===== */
.mobile-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1100;
}

.mobile-drawer-overlay.active {
    display: block;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1200;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, .2);
}

.mobile-drawer.active {
    left: 0;
}

.mobile-drawer__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-drawer__header img {
    width: 45px;
    height: auto;
}

.mobile-drawer__header .drawer-icon {
    font-size: 28px;
    color: var(--primary);
}

.mobile-drawer__header span {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
}

.mobile-drawer__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
}

.mobile-drawer__section {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-drawer__section-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

.mobile-drawer__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-drawer__nav li a {
    display: block;
    padding: 12px 0;
    color: #1c1c1c;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.2s;
}

.mobile-drawer__nav li a:hover {
    color: var(--primary);
}

.mobile-drawer__contact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-drawer__contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #1c1c1c;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-drawer__contact-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-drawer__contact-btn i {
    color: var(--primary);
    font-size: 16px;
}

.mobile-drawer__auth {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.mobile-drawer__auth a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.mobile-drawer__auth-login {
    background: var(--primary);
    color: #fff !important;
}

.mobile-drawer__auth-register {
    background: #fff;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .header-pro .header__main {
        padding: 10px 0;
    }

    .header-pro .header__menu,
    .header-pro .header__right__pill {
        display: none !important;
    }

    .header-pro .header__burger {
        display: block;
    }

    .header-pro .header__auth-btns {
        display: none !important;
    }
}

/* Auth buttons desktop (guest) */
.header-pro .header__auth-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.header-pro .header__auth-btn {
    padding: 7px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.header-pro .header__auth-btn--login {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.header-pro .header__auth-btn--login:hover {
    background: var(--primary-dark);
    color: #fff;
}

.header-pro .header__auth-btn--register {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.header-pro .header__auth-btn--register:hover {
    background: var(--primary);
    color: #fff;
}
