.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--yellow), #ecc329);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-content {
    position: relative;
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-mobile-panel {
    display: contents;
}

.mobile-menu-heading,
.mobile-menu-backdrop {
    display: none;
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 260px;
    max-height: 58px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.main-nav a {
    font-weight: 800;
    font-size: 15px;
    position: relative;
}

.main-nav a small {
    display: none;
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 100%;
    height: 3px;
    background: var(--black);
    border-radius: 99px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-form {
    width: 270px;
    display: flex;
    background: var(--white);
    padding: 5px;
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.search-form input {
    width: 100%;
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: 14px;
}

.search-form button {
    width: 42px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    border: none;
    background: var(--black);
    color: var(--white);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 22px;
    cursor: pointer;
}

.menu-toggle-lines {
    width: 21px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle-lines > span {
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.18s ease;
    transform-origin: center;
}

.site-header.is-menu-open .menu-toggle-lines > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle-lines > span:nth-child(2) {
    opacity: 0;
}

.site-header.is-menu-open .menu-toggle-lines > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Ajuste fino del header */
.site-header .container {
    width: min(1320px, calc(100% - 24px));
}

.header-content {
    gap: 40px;
}

.brand {
    margin-right: 28px;
}

.brand img {
    width: 340px;
    max-height: 72px;
}

.main-nav {
    margin-left: 0;
}

.header-actions {
    margin-left: auto;
}

.header-whatsapp {
    background: var(--black);
    color: var(--white);
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 900;
    white-space: nowrap;
}
.header-search {
    width: 240px;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 13px;
    padding: 5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.header-search input {
    width: 100%;
    border: none;
    outline: none;
    padding: 0 10px;
    font-size: 14px;
    background: transparent;
}

.header-search button {
    width: 38px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
}

.header-search button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.menu-toggle:focus-visible,
.header-search:focus-within,
.header-whatsapp:focus-visible {
    outline: 3px solid rgba(11, 11, 11, 0.25);
    outline-offset: 3px;
}

@media (max-width: 1200px) {
    .header-search {
        width: 200px;
    }
}
