/* Selector de segmento compartido entre Hogar (/) y Empresas e industria (/industria) */

@view-transition {
    navigation: auto;
}

.header-main .container {
    gap: 1rem;
}

.segment-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.segment-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(3, 62, 36, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
}

.segment-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 16px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.segment-tab:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.segment-tab:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.segment-tab[aria-current="page"] {
    background: #ffffff;
    color: #035c35;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.segment-tab[aria-current="page"]:hover {
    background: #ffffff;
    color: #035c35;
}

@media (max-width: 768px) {
    .header-main .container {
        gap: 0.65rem;
    }

    .segment-switcher {
        padding: 3px;
        gap: 3px;
    }

    .segment-tab {
        min-height: 34px;
        padding: 6px 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 440px) {
    .header-main .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .segment-nav {
        margin-left: auto;
    }

    .segment-tab {
        padding: 6px 10px;
        font-size: 0.74rem;
    }
}
