
/* =========================================================
   COLABORAWEB | TOPBAR PREMIUM
   Responsive | Espaciado centralizado
========================================================= */

.cw-topbar {
    /* Colores */
    --topbar-bg: #0d1b31;
    --topbar-text: #edf5ff;
    --topbar-muted: #a8bad1;
    --topbar-green: #10d982;
    --topbar-blue: #42a5ff;

    /* Contenedor y espaciado global */
    --topbar-container: 1440px;
    --topbar-gutter: clamp(10px, 2.5vw, 24px);
    --topbar-gap: clamp(8px, 1.5vw, 22px);
    --topbar-height: 62px;
    --topbar-icon-size: 34px;
    --topbar-icon-radius: 11px;
    --topbar-cta-height: 38px;
    --topbar-cta-padding: 15px;

    position: relative;
    z-index: 100;
    width: 100%;
    color: var(--topbar-text);
    background:
        radial-gradient(
            ellipse at 15% 0%,
            rgba(8, 124, 240, 0.13),
            transparent 42%
        ),
        linear-gradient(
            105deg,
            #0b1729 0%,
            #10243d 55%,
            #0b192d 100%
        );
    border-bottom: 1px solid rgba(160, 195, 230, 0.14);
    isolation: isolate;
}

.cw-topbar,
.cw-topbar * {
    box-sizing: border-box;
}

.cw-topbar__inner {
    width: min(
        calc(100% - var(--topbar-gutter) * 2),
        var(--topbar-container)
    );
    min-height: var(--topbar-height);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--topbar-gap);
}

.cw-topbar__contact,
.cw-topbar__right {
    display: flex;
    align-items: center;
    gap: var(--topbar-gap);
    min-width: 0;
}

.cw-topbar__contact {
    flex: 1 1 auto;
}

.cw-topbar__right {
    flex: 0 0 auto;
}

.cw-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    transition: color 180ms ease;
}

.cw-topbar__item:hover {
    color: #ffffff;
}

.cw-topbar__icon {
    display: grid;
    place-items: center;
    flex: 0 0 var(--topbar-icon-size);
    width: var(--topbar-icon-size);
    height: var(--topbar-icon-size);
    color: #77b9ff;
    background: rgba(66, 165, 255, 0.10);
    border: 1px solid rgba(100, 175, 255, 0.17);
    border-radius: var(--topbar-icon-radius);
    transition:
        color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.cw-topbar__icon svg,
.cw-topbar__cta svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cw-topbar__icon--whatsapp {
    color: var(--topbar-green);
    background: rgba(16, 217, 130, 0.09);
    border-color: rgba(16, 217, 130, 0.20);
}

.cw-topbar__item:hover .cw-topbar__icon {
    transform: translateY(-1px);
    background: rgba(66, 165, 255, 0.17);
}

.cw-topbar__item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cw-topbar__label {
    color: var(--topbar-muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.cw-topbar__value {
    color: #f1f6fd;
    font-size: 12px;
    font-weight: 550;
    line-height: 1.35;
    white-space: nowrap;
}

.cw-topbar__separator {
    flex: 0 0 1px;
    width: 1px;
    height: 28px;
    background: rgba(180, 205, 230, 0.17);
}

.cw-topbar__availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c1d0e3;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}

.cw-topbar__status-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    background: var(--topbar-green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 217, 130, 0.45);
}

.cw-topbar__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: var(--topbar-cta-height);
    padding-inline: var(--topbar-cta-padding);
    overflow: hidden;
    color: #06251a;
    background: linear-gradient(115deg, #18e393, #83f0b8);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 11px;
    box-shadow: 0 4px 14px rgba(16, 217, 130, 0.13);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}

.cw-topbar__cta svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
}

.cw-topbar__cta:hover {
    color: #06251a;
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 7px 22px rgba(16, 217, 130, 0.23);
}

.cw-topbar__arrow {
    opacity: 0.7;
    transition: transform 180ms ease;
}

.cw-topbar__cta:hover .cw-topbar__arrow {
    transform: translate(2px, -2px);
}

/* =========================================================
   PORTÁTILES Y TABLETS GRANDES
========================================================= */

@media (max-width: 1100px) {
    .cw-topbar {
        --topbar-height: 58px;
        --topbar-icon-size: 30px;
        --topbar-icon-radius: 9px;
        --topbar-gap: 12px;
        --topbar-cta-height: 36px;
        --topbar-cta-padding: 11px;
    }

    .cw-topbar__value {
        font-size: 11px;
    }

    .cw-topbar__availability {
        font-size: 10px;
    }
}

/* =========================================================
   TABLETS Y MÓVILES
   Todos los elementos permanecen visibles
========================================================= */

@media (max-width: 700px) {
    .cw-topbar {
        --topbar-gutter: 10px;
        --topbar-gap: 8px;
        --topbar-icon-size: 26px;
        --topbar-icon-radius: 8px;
        --topbar-cta-height: 33px;
        --topbar-cta-padding: 9px;
    }

    .cw-topbar__inner {
        min-height: 0;
        padding-block: 9px;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 9px;
    }

    .cw-topbar__contact {
        flex: 0 1 auto;
        width: 100%;
        justify-content: center;
        gap: clamp(7px, 3vw, 18px);
    }

    .cw-topbar__right {
        flex: 0 1 auto;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .cw-topbar__item {
        gap: 6px;
    }

    .cw-topbar__icon svg {
        width: 14px;
        height: 14px;
    }

    .cw-topbar__label {
        display: none;
    }

    .cw-topbar__value {
        font-size: 11px;
        letter-spacing: -0.1px;
    }

    .cw-topbar__separator {
        display: block;
        flex: 0 0 1px;
        height: 24px;
    }

    .cw-topbar__email {
        display: inline-flex;
    }

    .cw-topbar__availability {
        display: inline-flex;
        font-size: 10px;
        white-space: normal;
    }

    .cw-topbar__cta {
        min-height: var(--topbar-cta-height);
        gap: 6px;
        padding-inline: var(--topbar-cta-padding);
        border-radius: 9px;
        font-size: 11px;
    }

    .cw-topbar__cta svg {
        flex-basis: 15px;
        width: 15px;
        height: 15px;
    }

    .cw-topbar__arrow {
        display: none;
    }
}

/* =========================================================
   MÓVILES PEQUEÑOS
========================================================= */

@media (max-width: 420px) {
    .cw-topbar {
        --topbar-gutter: 8px;
        --topbar-gap: 6px;
        --topbar-icon-size: 23px;
        --topbar-cta-height: 31px;
        --topbar-cta-padding: 7px;
    }

    .cw-topbar__inner {
        padding-block: 8px;
        gap: 8px;
    }

    .cw-topbar__contact {
        gap: 7px;
    }

    .cw-topbar__item {
        gap: 4px;
    }

    .cw-topbar__value {
        font-size: 10px;

        letter-spacing: -0.25px;
    }

    .cw-topbar__icon svg {
        width: 12px;
        height: 12px;
    }

    .cw-topbar__separator {
        height: 20px;
    }

    .cw-topbar__availability {
        font-size: 10px;
    }

    .cw-topbar__cta {
        font-size: 10px;
    }

    .cw-topbar__cta > svg:first-child {
        display: none;
    }
}

/* =========================================================
   MÓVILES MUY ESTRECHOS
========================================================= */

@media (max-width: 350px) {
    .cw-topbar {
        --topbar-gutter: 6px;
        --topbar-gap: 5px;
        --topbar-icon-size: 20px;
        --topbar-cta-padding: 6px;
    }

    .cw-topbar__contact {
        gap: 5px;
    }

    .cw-topbar__item {
        gap: 3px;
    }

    .cw-topbar__value {
        font-size: 9px;
        letter-spacing: -0.35px;
    }

    .cw-topbar__availability {
        font-size: 9px;
    }

    .cw-topbar__cta {
        font-size: 9px;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .cw-topbar *,
    .cw-topbar *::before,
    .cw-topbar *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
