@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

/* =========================================================
   CASA HOME — ENCABEZADO COMPLETO PROFESIONAL
   Barra superior blanca
   Navegación principal verde institucional
   CTA lila profesional
   Logo centrado
   Responsive completo para PC, tablet y celular
========================================================= */

:root {
    --cg-shell-green: #020a23;
    --cgh-green: var(--cg-shell-green);
    --cgh-green-hover: #0c1b48;
    --cgh-green-soft: #f5f3ed;
    --cgh-orange: #e87917;
    --cgh-orange-hover: #cf650d;
    --cgh-white: #ffffff;
    --cgh-text: #181b23;
    --cgh-muted: #616876;
    --cgh-border: #e0e2e5;
    --cgh-shadow: rgba(8, 20, 59, 0.14);
    --cgh-purple: #b51aa3;
    --cgh-purple-hover: #9d168f;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--cgh-text);
    background: var(--cgh-white);
    font-family: "Manrope", "Montserrat", "Segoe UI", Arial, sans-serif;
}

body.cgh-menu-open {
    overflow: hidden;
}

/* =========================================================
   BARRA SUPERIOR
========================================================= */

.cgh-top {
    position: relative;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    width: 100%;
    padding: 0 42px;
    border-bottom: 1px solid var(--cgh-border);
    background: var(--cgh-white);
    color: var(--cgh-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.cgh-top-left,
.cgh-top-right {
    display: flex;
    align-items: center;
}

.cgh-top-left {
    gap: 8px;
    white-space: nowrap;
}

.cgh-top-left svg {
    flex: 0 0 auto;
    color: var(--cgh-green);
}

.cgh-top-right {
    gap: 22px;
}

.cgh-top-right>a {
    position: relative;
    color: var(--cgh-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cgh-top-right>a:hover {
    color: var(--cgh-orange);
}

.cgh-top-right>a:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -11px;
    width: 1px;
    height: 13px;
    content: "";
    background: #d5d8dd;
    transform: translateY(-50%);
}

.cgh-top-pagar {
    font-weight: 800;
    color: var(--cgh-orange) !important;
}

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

.cgh-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto auto;
    align-items: center;
    /* De 88 a 70: la barra ocupaba mucho para lo que lleva. */
    min-height: 70px;
    width: 100%;
    padding: 0 42px;
    border-bottom: 0;
    background: var(--cgh-green);
    box-shadow: 0 10px 28px rgba(8, 20, 59, 0.18);
}

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

.cgh-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 70px;
    text-decoration: none;
}

.cgh-logo img {
    display: block;
    width: 150px;
    max-width: 100%;
    max-height: 48px;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* =========================================================
   MENÚ PRINCIPAL
========================================================= */

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

.cgh-menu>li {
    position: relative;
}

.cgh-menu>li>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 7px;
    padding: 0 15px;
    border-radius: 9px;
    color: var(--cgh-white);
    font-family: "Manrope", "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.1px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.cgh-menu>li>a:hover,
.cgh-menu>li.active>a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cgh-white);
}

.cgh-menu>li>a svg {
    width: 12px;
    height: 12px;
    color: currentColor;
    transition: transform 0.2s ease;
}

.cgh-menu>li.active>a svg {
    transform: rotate(180deg);
}

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

.cgh-submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 1100;
    display: none;
    min-width: 230px;
    padding: 8px;
    border: 1px solid var(--cgh-border);
    border-radius: 14px;
    background: var(--cgh-white);
    box-shadow: 0 18px 42px var(--cgh-shadow);
}

.cgh-sub.active .cgh-submenu {
    display: block;
}

.cgh-submenu::before {
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    content: "";
    border-top: 1px solid var(--cgh-border);
    border-left: 1px solid var(--cgh-border);
    background: var(--cgh-white);
    transform: rotate(45deg);
}

.cgh-submenu a {
    position: relative;
    z-index: 1;
    display: block;
    padding: 11px 13px;
    border-radius: 9px;
    color: #2a2d33;
    font-family: "Manrope", "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.cgh-submenu a:hover {
    background: var(--cgh-green-soft);
    color: var(--cgh-green);
}

/* =========================================================
   BOTÓN CONTACTO
========================================================= */

.cgh-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 170px;
    margin-left: 18px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: #28396f;
    color: #ffffff;
    font-family: "Manrope", "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.1px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(181, 26, 163, 0.22);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cgh-cta::before,
.cgh-cta::after {
    display: none !important;
    content: none !important;
}

.cgh-cta:hover {
    background: var(--cgh-purple-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 11px 25px rgba(157, 22, 143, 0.28);
}

.cgh-cta:active {
    transform: translateY(0);
}

/* =========================================================
   MENÚ DEL CLIENTE
========================================================= */

.cgh-cliente-wrap {
    position: relative;
}

.cgh-cliente-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 31px;
    padding: 3px 9px 3px 4px;
    border: 1px solid #d8dadf;
    border-radius: 999px;
    background: var(--cgh-green-soft);
    color: var(--cgh-green);
    font: inherit;
    cursor: pointer;
}

.cgh-avatar,
.cgh-avatar-ini {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 50%;
}

.cgh-avatar {
    object-fit: cover;
}

.cgh-avatar-ini {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cgh-green);
    color: var(--cgh-white);
    font-size: 11px;
    font-weight: 800;
}

.cgh-cliente-nombre {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cgh-chevron {
    transition: transform 0.2s ease;
}

.cgh-cliente-wrap.open .cgh-chevron {
    transform: rotate(180deg);
}

.cgh-drop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1200;
    display: none;
    width: 260px;
    padding: 8px;
    border: 1px solid var(--cgh-border);
    border-radius: 14px;
    background: var(--cgh-white);
    color: var(--cgh-text);
    box-shadow: 0 18px 42px var(--cgh-shadow);
}

.cgh-cliente-wrap.open .cgh-drop {
    display: block;
}

.cgh-drop-head {
    padding: 12px 12px 14px;
    border-bottom: 1px solid var(--cgh-border);
}

.cgh-drop-head p {
    margin: 0 0 4px;
    color: var(--cgh-muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cgh-drop-head strong {
    display: block;
    overflow: hidden;
    color: var(--cgh-text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cgh-drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 9px;
    color: #2a2d33;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.cgh-drop-item:hover {
    background: var(--cgh-green-soft);
    color: var(--cgh-green);
}

.cgh-drop-item svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.cgh-drop-sep {
    height: 1px;
    margin: 6px 0;
    background: var(--cgh-border);
}

.cgh-drop-danger {
    color: #b42318;
}

.cgh-drop-danger:hover {
    background: #fff1f0;
    color: #b42318;
}

/* =========================================================
   BOTÓN HAMBURGUESA
========================================================= */

.cgh-burger {
    display: none;
    width: 43px;
    height: 43px;
    margin-left: 12px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.cgh-burger span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--cgh-white);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.cgh-burger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.cgh-burger.active span:nth-child(2) {
    opacity: 0;
}

.cgh-burger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.cgh-solo-mobile {
    display: none;
}

/* =========================================================
   TABLET GRANDE
========================================================= */

@media (max-width: 1180px) {
    .cgh-top {
        padding-right: 24px;
        padding-left: 24px;
    }

    .cgh-nav {
        grid-template-columns: 165px minmax(0, 1fr) auto auto;
        padding-right: 24px;
        padding-left: 24px;
    }

    .cgh-logo img {
        width: 136px;
    }

    .cgh-menu {
        gap: 2px;
    }

    .cgh-menu>li>a {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 13.5px;
        line-height: 1.35;
    }

    .cgh-cta {
        padding-right: 17px;
        padding-left: 17px;
    }
}

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

@media (max-width: 900px) {
    .cgh-top {
        justify-content: center;
        min-height: 34px;
        padding: 0 14px;
        font-size: 10px;
    }

    .cgh-top-left {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .cgh-top-right {
        display: none;
    }

    .cgh-nav {
        grid-template-columns: minmax(0, 1fr) auto auto;
        min-height: 74px;
        padding: 0 16px;
    }

    .cgh-logo {
        min-height: 74px;
    }

    .cgh-logo img {
        width: 128px;
        max-height: 54px;
    }

    .cgh-cta {
        min-height: 42px;
        margin-left: 0;
        padding: 0 15px;
        border-radius: 9px;
        font-size: 11px;
    }

    .cgh-burger {
        display: block;
    }

    .cgh-menu {
        position: fixed;
        top: 108px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1050;
        display: block;
        overflow-y: auto;
        width: 100%;
        padding: 16px;
        background: var(--cgh-white);
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);
        transition:
            transform 0.25s ease,
            opacity 0.25s ease,
            visibility 0.25s ease;
    }

    .cgh-menu.open {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .cgh-menu>li {
        width: 100%;
        border-bottom: 1px solid var(--cgh-border);
    }

    .cgh-menu>li>a {
        justify-content: space-between;
        width: 100%;
        min-height: 54px;
        padding: 0 6px;
        border-radius: 0;
        color: var(--cgh-text);
        font-family: "Manrope", "Montserrat", "Segoe UI", Arial, sans-serif;
        font-size: 14.5px;
        font-weight: 700;
        line-height: 1.4;
    }

    .cgh-menu>li>a:hover,
    .cgh-menu>li.active>a {
        background: transparent;
        color: var(--cgh-green);
    }

    .cgh-menu>li>a svg {
        color: currentColor;
    }

    .cgh-submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        margin: 0 0 10px;
        padding: 0 0 4px 12px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .cgh-sub.active .cgh-submenu {
        display: block;
    }

    .cgh-submenu::before {
        display: none;
    }

    .cgh-submenu a {
        padding: 11px 12px;
        border-left: 2px solid var(--cgh-green);
        border-radius: 0;
        font-size: 12.5px;
    }

    .cgh-solo-mobile {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0 0 16px;
        border-bottom: 1px solid var(--cgh-border);
    }

    .cgh-solo-mobile a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 10px;
        border: 1px solid var(--cgh-border);
        border-radius: 9px;
        background: var(--cgh-green-soft);
        color: var(--cgh-green);
        font-size: 10.5px;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
    }
}

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

@media (max-width: 520px) {
    .cgh-top-left {
        font-size: 9px;
    }

    .cgh-nav {
        grid-template-columns: minmax(0, 1fr) auto auto;
        min-height: 70px;
        padding-right: 12px;
        padding-left: 12px;
        column-gap: 8px;
    }

    .cgh-logo {
        min-height: 70px;
        justify-content: flex-start;
    }

    .cgh-logo img {
        width: 112px;
        max-height: 48px;
    }

    .cgh-cta {
        min-height: 40px;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 10px;
    }

    .cgh-burger {
        width: 40px;
        height: 40px;
        margin-left: 0;
    }

    .cgh-menu {
        top: 104px;
        padding: 13px;
    }

    .cgh-solo-mobile {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .cgh-top {
        min-height: 32px;
        padding: 0 8px;
    }

    .cgh-top-left {
        gap: 5px;
        font-size: 8.3px;
    }

    .cgh-nav {
        min-height: 66px;
        padding-right: 8px;
        padding-left: 8px;
        column-gap: 6px;
    }

    .cgh-logo {
        min-height: 66px;
    }

    .cgh-logo img {
        width: 100px;
        max-height: 44px;
    }

    .cgh-cta {
        min-height: 38px;
        padding: 0 10px;
        font-size: 9.5px;
    }

    .cgh-burger {
        width: 38px;
        height: 38px;
    }

    .cgh-menu {
        top: 98px;
    }
}

/* =========================================================
   ACCESIBILIDAD
========================================================= */

.cgh-menu a:focus-visible,
.cgh-cta:focus-visible,
.cgh-burger:focus-visible,
.cgh-cliente-btn:focus-visible,
.cgh-drop-item:focus-visible {
    outline: 3px solid rgba(232, 121, 23, 0.45);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   PERFECCIONAMIENTO MÓVIL
   Iconos profesionales solo en celulares
========================================================= */

@media (max-width: 900px) {

    /* Encabezado móvil más compacto */
    .cgh-nav {
        min-height: 70px;
        padding-right: 12px;
        padding-left: 14px;
        column-gap: 9px;
    }

    .cgh-logo {
        min-height: 70px;
    }

    .cgh-logo img {
        width: 116px;
        max-height: 47px;
    }

    /* Botón menos alto y mejor proporcionado */
    .cgh-cta {
        width: auto;
        height: 40px;
        min-width: 148px;
        min-height: 40px;
        margin-left: 0;
        padding: 0 20px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 800;
        box-shadow: 0 6px 15px rgba(181, 26, 163, 0.22);
    }

    .cgh-burger {
        width: 40px;
        height: 40px;
        margin-left: 0;
        border-radius: 11px;
    }

    /* Panel móvil */
    .cgh-menu {
        top: 104px;
        padding: 14px 16px 26px;
        background: #ffffff;
    }

    /* Enlaces principales con iconos */
    .cgh-menu>li:not(.cgh-solo-mobile)>a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 58px;
        gap: 12px;
        padding: 7px 42px 7px 6px;
        border-radius: 10px;
        color: #171a23;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;
    }

    .cgh-menu>li:not(.cgh-solo-mobile)>a::before {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        border: 1px solid #e0dcd3;
        border-radius: 10px;
        background: #f5f3ee;
        color: var(--cgh-green);
        font-family: "Font Awesome 6 Free";
        font-size: 15px;
        font-weight: 900;
        line-height: 1;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
    }

    /* Iconos del menú principal: el primer li es cgh-solo-mobile */
    .cgh-menu>li:nth-child(2)>a::before {
        content: "\f015";
    }

    /* Inicio */
    .cgh-menu>li:nth-child(3)>a::before {
        content: "\f0c0";
    }

    /* Nosotros */
    .cgh-menu>li:nth-child(4)>a::before {
        content: "\f3c5";
    }

    /* Lotes */
    .cgh-menu>li:nth-child(5)>a::before {
        content: "\f1ad";
    }

    /* Proyectos */
    .cgh-menu>li:nth-child(6)>a::before {
        content: "\f015";
    }

    /* Casas */
    .cgh-menu>li:nth-child(7)>a::before {
        content: "\f02d";
    }

    /* Catálogo */

    .cgh-menu>li:not(.cgh-solo-mobile) {
        padding: 3px 0;
        border-bottom: 1px solid #e3e5e8;
    }

    .cgh-menu>li:not(.cgh-solo-mobile)>a:hover,
    .cgh-menu>li:not(.cgh-solo-mobile).active>a {
        background: #f5f8f6;
        color: var(--cgh-green);
    }

    /* Flecha del submenú a la derecha */
    .cgh-menu>li.cgh-sub>a>svg {
        position: absolute;
        right: 12px;
        width: 14px;
        height: 14px;
    }

    /* Accesos superiores en móvil */
    .cgh-solo-mobile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        padding: 0 0 14px;
    }

    .cgh-solo-mobile a {
        position: relative;
        justify-content: flex-start;
        min-height: 46px;
        gap: 9px;
        padding: 0 11px;
        border: 1px solid #e4e1d9;
        border-radius: 11px;
        background: #f7f5f1;
        color: #17203d;
        font-size: 10.5px;
        font-weight: 700;
        text-align: left;
    }

    .cgh-solo-mobile a::before {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 27px;
        height: 27px;
        flex: 0 0 27px;
        border-radius: 8px;
        background: #ffffff;
        color: var(--cgh-green);
        font-family: "Font Awesome 6 Free";
        font-size: 12px;
        font-weight: 900;
        box-shadow: 0 2px 7px rgba(8, 20, 59, 0.08);
        -webkit-font-smoothing: antialiased;
    }

    .cgh-solo-mobile a:nth-child(1)::before {
        content: "\f3ed";
    }

    /* Plataforma */
    .cgh-solo-mobile a:nth-child(2)::before {
        content: "\f09d";
    }

    /* Paga aquí */
    .cgh-solo-mobile a:nth-child(3)::before {
        content: "\f1ea";
    }

    /* Blog */
    .cgh-solo-mobile a:nth-child(4)::before {
        content: "\f54e";
    }

    /* Comprar */
    .cgh-solo-mobile a:nth-child(5)::before {
        content: "\f007";
    }

    /* Cuenta */

    /* Submenú móvil */
    .cgh-submenu {
        margin: 3px 0 10px 48px;
        padding: 2px 0 3px 10px;
        border-left: 2px solid #dad5c8;
    }

    .cgh-submenu a {
        min-height: 42px;
        padding: 10px 12px;
        border: 0;
        border-radius: 8px;
        color: #363a43;
        font-size: 12.5px;
    }
}

@media (max-width: 520px) {
    .cgh-nav {
        min-height: 68px;
        padding-right: 10px;
        padding-left: 11px;
        column-gap: 7px;
    }

    .cgh-logo {
        min-height: 68px;
    }

    .cgh-logo img {
        width: 103px;
        max-height: 43px;
    }

    .cgh-cta {
        height: 38px;
        min-width: 132px;
        min-height: 38px;
        padding: 0 15px;
        font-size: 10.5px;
    }

    .cgh-burger {
        width: 38px;
        height: 38px;
    }

    .cgh-menu {
        top: 102px;
        padding: 12px 13px 24px;
    }

    .cgh-solo-mobile {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 390px) {
    .cgh-logo img {
        width: 94px;
    }

    .cgh-cta {
        height: 36px;
        min-width: 118px;
        min-height: 36px;
        padding: 0 12px;
        font-size: 9.5px;
    }

    .cgh-burger {
        width: 36px;
        height: 36px;
    }

    .cgh-menu {
        top: 98px;
    }

    .cgh-solo-mobile {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   AJUSTE FINAL CELULAR
   Dirección más grande
   Accesos superiores con radio 10px
   Logo + Contáctanos + menú ocupan todo el ancho
========================================================= */

@media (max-width: 900px) {

    /* Dirección superior un poco más grande */
    .cgh-top {
        min-height: 40px;
        padding: 0 12px;
    }

    .cgh-top-left {
        justify-content: center;
        width: 100%;
        gap: 7px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.35;
        text-align: center;
    }

    .cgh-top-left svg {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
    }

    /* Encabezado verde usando todo el ancho */
    .cgh-nav {
        display: grid;
        grid-template-columns: minmax(90px, 1fr) auto auto;
        align-items: center;
        width: 100%;
        min-height: 72px;
        padding: 0 12px;
        gap: 10px;
    }

    /* Logo ocupa todo el espacio disponible de la izquierda */
    .cgh-logo {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        min-height: 72px;
    }

    .cgh-logo img {
        display: block;
        width: 112px;
        max-width: 100%;
        max-height: 48px;
        object-fit: contain;
    }

    /* Botón Contáctanos más compacto */
    .cgh-cta {
        width: auto;
        min-width: 132px;
        height: 40px;
        min-height: 40px;
        margin: 0;
        padding: 0 18px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
        white-space: nowrap;
    }

    /* Botón hamburguesa */
    .cgh-burger {
        display: block;
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin: 0;
        border-radius: 10px;
    }

    /* Plataforma, Paga Aquí, Blog, Comprar y Mi cuenta */
    .cgh-solo-mobile {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 10px;
        padding: 0 0 15px;
    }

    .cgh-solo-mobile a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 54px;
        padding: 0 12px;

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

        background: #f1f6f3;
        color: #101217;

        font-size: 13px;
        font-weight: 700;
        line-height: 1.25;
        text-decoration: none;
    }

    .cgh-solo-mobile a::before {
        width: 29px;
        height: 29px;
        flex: 0 0 29px;
        border-radius: 8px;
    }

    /* Mi cuenta ocupa media columna, igual que los otros */
    .cgh-solo-mobile a:last-child {
        grid-column: auto;
    }

    /* Menú principal */
    .cgh-menu {
        top: 112px;
        width: 100%;
        padding: 12px 13px 26px;
    }
}

@media (max-width: 520px) {

    .cgh-nav {
        grid-template-columns: minmax(82px, 1fr) auto auto;
        padding: 0 10px;
        gap: 7px;
    }

    .cgh-logo img {
        width: 102px;
        max-height: 44px;
    }

    .cgh-cta {
        min-width: 126px;
        height: 38px;
        min-height: 38px;
        padding: 0 15px;
        font-size: 10px;
    }

    .cgh-burger {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .cgh-solo-mobile a {
        min-height: 52px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 12px;
    }
}

@media (max-width: 390px) {

    .cgh-top-left {
        font-size: 9.5px;
    }

    .cgh-nav {
        grid-template-columns: minmax(76px, 1fr) auto auto;
        padding: 0 8px;
        gap: 5px;
    }

    .cgh-logo img {
        width: 92px;
    }

    .cgh-cta {
        min-width: 112px;
        height: 36px;
        min-height: 36px;
        padding: 0 12px;
        font-size: 9px;
    }

    .cgh-burger {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .cgh-solo-mobile {
        gap: 8px;
    }

    .cgh-solo-mobile a {
        min-height: 50px;
        font-size: 11px;
    }
}

/* =========================================================
   CELULAR — LOGO + CONTACTANOS + MENU A TODO EL ANCHO
========================================================= */

@media (max-width: 900px) {

    .cgh-nav {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(120px, 150px) 42px !important;
        align-items: center !important;

        width: 100% !important;
        min-height: 72px !important;

        padding: 0 10px !important;
        gap: 8px !important;

        background: var(--cgh-green) !important;
    }

    .cgh-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        width: 100% !important;
        min-width: 0 !important;
        min-height: 72px !important;
    }

    .cgh-logo img {
        display: block !important;

        width: 108px !important;
        max-width: 100% !important;
        max-height: 46px !important;

        height: auto !important;
        object-fit: contain !important;
    }

    .cgh-cta {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        min-width: 0 !important;

        height: 40px !important;
        min-height: 40px !important;

        margin: 0 !important;
        padding: 0 14px !important;

        border-radius: 999px !important;

        font-size: 10.5px !important;
        white-space: nowrap !important;
    }

    .cgh-burger {
        display: block !important;

        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;

        margin: 0 !important;
        padding: 0 !important;

        border-radius: 10px !important;
    }
}

@media (max-width: 520px) {

    .cgh-nav {
        grid-template-columns: minmax(0, 1fr) 124px 38px !important;

        min-height: 68px !important;

        padding: 0 8px !important;
        gap: 6px !important;
    }

    .cgh-logo {
        min-height: 68px !important;
    }

    .cgh-logo img {
        width: 98px !important;
        max-height: 42px !important;
    }

    .cgh-cta {
        height: 38px !important;
        min-height: 38px !important;

        padding: 0 10px !important;

        font-size: 9.8px !important;
    }

    .cgh-burger {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }
}

@media (max-width: 390px) {

    .cgh-nav {
        grid-template-columns: minmax(0, 1fr) 108px 36px !important;

        min-height: 66px !important;

        padding: 0 7px !important;
        gap: 5px !important;
    }

    .cgh-logo {
        min-height: 66px !important;
    }

    .cgh-logo img {
        width: 86px !important;
    }

    .cgh-cta {
        height: 36px !important;
        min-height: 36px !important;

        padding: 0 8px !important;

        font-size: 9px !important;
    }

    .cgh-burger {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
}

.cgh-solo-mobile a::before {

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

    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    border-radius: 10px;

    background: #ffffff;

    color: var(--cgh-green);

    font-family: "Font Awesome 6 Free";

    font-size: 13px;

    font-weight: 900;

    box-shadow:
        0 3px 8px rgba(8, 20, 59, .08);

}


/* =========================================================
   AJUSTE FINAL — CELULAR
   Logo más grande sin aumentar la altura del encabezado,
   texto de Contáctanos más grande y dirección más visible.
========================================================= */

@media (max-width: 900px) {

    /* Dirección superior más grande */
    .cgh-top {
        min-height: 42px !important;
        padding: 0 12px !important;
    }

    .cgh-top-left {
        gap: 8px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
    }

    .cgh-top-left svg {
        width: 16px !important;
        height: 16px !important;
        flex: 0 0 16px !important;
    }

    /* Mantiene el tamaño general del bloque verde */
    .cgh-nav {
        grid-template-columns:
            minmax(0, 1fr) minmax(122px, 150px) 42px !important;

        min-height: 72px !important;
        height: 72px !important;
        padding: 0 10px !important;
        gap: 8px !important;
        overflow: hidden !important;
    }

    /* El logo ocupa aproximadamente la mitad disponible */
    .cgh-logo {
        width: 100% !important;
        min-width: 0 !important;
        height: 72px !important;
        min-height: 72px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
    }

    .cgh-logo img {
        width: min(46vw, 178px) !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 56px !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

    /* Texto de Contáctanos más grande */
    .cgh-cta {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 14px !important;
        font-size: 12.5px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 520px) {

    .cgh-top {
        min-height: 41px !important;
    }

    .cgh-top-left {
        font-size: 11.5px !important;
    }

    .cgh-nav {
        grid-template-columns:
            minmax(0, 1fr) 124px 38px !important;

        min-height: 68px !important;
        height: 68px !important;
        padding: 0 8px !important;
        gap: 6px !important;
    }

    .cgh-logo {
        height: 68px !important;
        min-height: 68px !important;
    }

    .cgh-logo img {
        width: min(47vw, 166px) !important;
        max-height: 52px !important;
    }

    .cgh-cta {
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 10px !important;
        font-size: 11.5px !important;
    }
}

@media (max-width: 390px) {

    .cgh-top {
        min-height: 40px !important;
        padding: 0 7px !important;
    }

    .cgh-top-left {
        gap: 6px !important;
        font-size: 10.5px !important;
    }

    .cgh-top-left svg {
        width: 15px !important;
        height: 15px !important;
        flex: 0 0 15px !important;
    }

    .cgh-nav {
        grid-template-columns:
            minmax(0, 1fr) 108px 36px !important;

        min-height: 66px !important;
        height: 66px !important;
        padding: 0 7px !important;
        gap: 5px !important;
    }

    .cgh-logo {
        height: 66px !important;
        min-height: 66px !important;
    }

    .cgh-logo img {
        width: min(47vw, 151px) !important;
        max-height: 49px !important;
    }

    .cgh-cta {
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 8px !important;
        font-size: 10.5px !important;
    }
}


/* =========================================================
   AJUSTE FINAL MÓVIL
   - Botón Contáctanos más grande
   - Botón hamburguesa más grande
   - Accesos móviles con radio 15 px
   - Texto junto al ícono, sin separación excesiva
========================================================= */
@media (max-width: 900px) {

    /* Reparto del encabezado sin aumentar la altura verde */
    .cgh-nav {
        grid-template-columns:
            minmax(0, 1fr) minmax(142px, 172px) 48px !important;
        gap: 9px !important;
        min-height: 72px !important;
        height: 72px !important;
    }

    /* Botón Contáctanos más grande */
    .cgh-cta {
        width: 100% !important;
        min-width: 0 !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 20px !important;
        border-radius: 999px !important;
        font-size: 13.5px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    /* Botón de las tres rayas más grande */
    .cgh-burger {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 13px !important;
    }

    .cgh-burger span {
        width: 23px !important;
        height: 2.5px !important;
        margin: 5px auto !important;
    }

    .cgh-burger.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg) !important;
    }

    .cgh-burger.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg) !important;
    }

    /* Plataforma, Paga Aquí, Blog, Compra de Terrenos y Mi cuenta */
    .cgh-solo-mobile {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .cgh-solo-mobile a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 56px !important;
        gap: 10px !important;
        padding: 8px 12px !important;
        border: 1px solid #d7d9de !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        background: #f1f6f3 !important;
        color: #101217 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-align: left !important;
    }

    .cgh-solo-mobile a::before {
        width: 31px !important;
        height: 31px !important;
        flex: 0 0 31px !important;
        margin: 0 !important;
        border-radius: 10px !important;
    }
}

@media (max-width: 520px) {

    .cgh-nav {
        grid-template-columns:
            minmax(0, 1fr) 134px 44px !important;
        gap: 7px !important;
        min-height: 68px !important;
        height: 68px !important;
    }

    .cgh-cta {
        height: 43px !important;
        min-height: 43px !important;
        padding: 0 14px !important;
        font-size: 12.5px !important;
    }

    .cgh-burger {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }

    .cgh-solo-mobile a {
        min-height: 55px !important;
        gap: 9px !important;
        padding: 8px 10px !important;
        border-radius: 15px !important;
        font-size: 12.5px !important;
    }
}

@media (max-width: 390px) {

    .cgh-nav {
        grid-template-columns:
            minmax(0, 1fr) 118px 42px !important;
        gap: 6px !important;
        min-height: 66px !important;
        height: 66px !important;
    }

    .cgh-cta {
        height: 41px !important;
        min-height: 41px !important;
        padding: 0 11px !important;
        font-size: 11.5px !important;
    }

    .cgh-burger {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

    .cgh-solo-mobile {
        gap: 8px !important;
    }

    .cgh-solo-mobile a {
        min-height: 53px !important;
        gap: 8px !important;
        padding: 7px 9px !important;
        border-radius: 15px !important;
        font-size: 11.5px !important;
    }

    .cgh-solo-mobile a::before {
        width: 29px !important;
        height: 29px !important;
        flex-basis: 29px !important;
    }
}


/* =========================================================
   AJUSTE FINAL — DIRECCIÓN Y COLOR DEL BOTÓN CONTACTO
========================================================= */

@media (max-width: 900px) {
    .cgh-top-left {
        font-size: 13.5px !important;
        font-weight: 700 !important;
    }

    .cgh-cta,
    .cgh-cta:hover,
    .cgh-cta:focus,
    .cgh-cta:focus-visible,
    .cgh-cta:active,
    .cgh-cta:visited {
        background: #28396f !important;
        color: #ffffff !important;
        border-color: #28396f !important;
        box-shadow: 0 8px 20px rgba(40, 57, 111, 0.25) !important;
    }

    .cgh-cta:hover {
        transform: translateY(-1px);
    }

    .cgh-cta:active {
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .cgh-top-left {
        font-size: 12.5px !important;
    }
}

@media (max-width: 390px) {
    .cgh-top-left {
        font-size: 11.5px !important;
    }
}


/* =========================================================
   AJUSTE GLOBAL — CONTÁCTANOS SIEMPRE VERDE
   Aplica en laptop, escritorio, tablet y celular.
========================================================= */
.cgh-cta,
.cgh-cta:link,
.cgh-cta:visited,
.cgh-cta:hover,
.cgh-cta:focus,
.cgh-cta:focus-visible,
.cgh-cta:active {
    background-color: #28396f !important;
    color: #ffffff !important;
    border-color: #28396f !important;
    box-shadow: 0 8px 20px rgba(40, 57, 111, 0.25) !important;
}

.cgh-cta:hover {
    background-color: #28396f !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.cgh-cta:active {
    background-color: #28396f !important;
    color: #ffffff !important;
    transform: translateY(0);
}

/* =========================================================
   MENU DE CELULAR — CAPA FINAL

   La hoja arrastra varias capas que se contradicen: unas pintan el
   panel de blanco y otras dejan el marino del nav, y el texto se
   quedaba en marino sobre marino, ilegible. En vez de desenredarlas,
   aqui se fija el menu entero de una vez.

   Va al final y con !important donde las reglas viejas tambien lo
   usan, para no depender de en que capa se cambie algo manana.
========================================================= */

@media (max-width: 1180px) {

    /* No se toca el top: ya esta ajustado por punto de corte mas
       arriba en esta misma hoja y cae bien bajo la cabecera. */
    .cgh-menu {
        padding: 18px 16px 30px !important;
        background: #030e30 !important;
    }

    .cgh-menu > li {
        list-style: none;
        border: 0 !important;
    }

    /* ---------- ACCESOS RAPIDOS ---------- */

    .cgh-menu > li.cgh-solo-mobile {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 0 0 18px !important;
        padding: 0 0 18px !important;
        border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
    }

    .cgh-menu > li.cgh-solo-mobile > a {
        display: flex !important;
        align-items: center;
        gap: 9px;
        min-height: 46px;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 1px solid rgba(255, 255, 255, .13) !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, .06) !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.25;
        text-decoration: none;
    }

    .cgh-menu > li.cgh-solo-mobile > a:hover,
    .cgh-menu > li.cgh-solo-mobile > a:focus-visible {
        border-color: rgba(255, 255, 255, .28) !important;
        background: rgba(255, 255, 255, .12) !important;
    }

    /* El icono va dentro del propio boton, sin recuadro aparte: a este
       tamano un chip blanco pesaba mas que el texto. */
    .cgh-menu > li.cgh-solo-mobile > a::before {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: none !important;
        color: #e0a104 !important;
        font-size: 15px !important;
        box-shadow: none !important;
    }

    /* ---------- NAVEGACION ---------- */

    .cgh-menu > li:not(.cgh-solo-mobile) > a {
        display: flex !important;
        align-items: center;
        gap: 13px;
        min-height: 52px;
        padding: 0 4px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        letter-spacing: -.1px;
        text-decoration: none;
    }

    .cgh-menu > li:not(.cgh-solo-mobile) + li:not(.cgh-solo-mobile) > a {
        border-top: 1px solid rgba(255, 255, 255, .08) !important;
    }

    .cgh-menu > li:not(.cgh-solo-mobile) > a:hover,
    .cgh-menu > li:not(.cgh-solo-mobile) > a:focus-visible,
    .cgh-menu > li.activo > a {
        background: transparent !important;
        color: #e0a104 !important;
    }

    .cgh-menu > li:not(.cgh-solo-mobile) > a::before {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        display: grid !important;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, .12) !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, .06) !important;
        color: #ffffff !important;
        font-size: 14px !important;
        box-shadow: none !important;
    }

    /* ---------- SUBMENU ---------- */

    .cgh-menu .cgh-submenu {
        margin: 0 0 4px 47px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .cgh-menu .cgh-submenu a {
        display: block !important;
        padding: 9px 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: rgba(255, 255, 255, .72) !important;
        font-size: 13.5px !important;
        font-weight: 450 !important;
    }

    .cgh-menu .cgh-submenu a:hover {
        color: #e0a104 !important;
    }
}
