:root {
    --uniforma-bg: #fbf8f4;
    --uniforma-bg-soft: #f7f3ee;
    --uniforma-text: #2b211b;
    --uniforma-muted: #6d625a;
    --uniforma-gold: #b77a2b;
    --uniforma-gold-dark: #8a5a20;
    --uniforma-border: #e4d8cc;
    --uniforma-white: #ffffff;
}

/* Ocultar headers nativos de Divi */
#main-header,
#top-header,
.et-l--header,
header.et-l,
.et_builder_inner_content > header {
    display: none !important;
}

/* Compensa el header fixed */
body {
    padding-top: 72px;
}

.uniforma-header,
.uniforma-header * {
    box-sizing: border-box;
}

.uniforma-header {
    width: 100%;
    background: rgba(251, 248, 244, 0.98);
    border-bottom: 1px solid rgba(228, 216, 204, 0.75);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.uniforma-header__container {
    width: 100%;
    max-width: 1920px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 42px;
    display: grid;
    grid-template-columns: 270px 1fr 110px;
    align-items: center;
    gap: 24px;
}

.uniforma-header__logo {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    text-decoration: none;
}

.uniforma-header__logo img {
    display: block;
    width: 255px;
    max-width: 100%;
    height: auto;
}

.uniforma-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.uniforma-header__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 29px 0;
    border: 0;
    background: transparent;
    color: #111111;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.uniforma-header__link:hover {
    color: var(--uniforma-gold);
}

.uniforma-header__dropdown-toggle svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.uniforma-header__nav-item {
    position: relative;
}

.uniforma-header__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 220px;
    padding: 10px;
    background: var(--uniforma-white);
    border: 1px solid var(--uniforma-border);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(43, 33, 27, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: 0.2s ease;
    z-index: 30;
}

.uniforma-header__has-dropdown:hover .uniforma-header__dropdown,
.uniforma-header__has-dropdown.is-open .uniforma-header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.uniforma-header__dropdown a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--uniforma-text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: 0.2s ease;
}

.uniforma-header__dropdown a:hover {
    background: var(--uniforma-bg-soft);
    color: var(--uniforma-gold);
}

.uniforma-header__actions {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.uniforma-header__icon {
    position: relative;
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.uniforma-header__icon:hover {
    color: var(--uniforma-gold);
}

.uniforma-header__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.uniforma-header__cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--uniforma-text);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.uniforma-header__mobile-btn {
    display: none;
    width: 32px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.uniforma-header__mobile-btn span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 6px 0;
    background: var(--uniforma-text);
    transition: 0.2s ease;
}

.uniforma-header__mobile-btn.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.uniforma-header__mobile-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.uniforma-header__mobile-btn.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.uniforma-header__mobile-nav {
    display: none;
    background: var(--uniforma-bg);
    border-top: 1px solid var(--uniforma-border);
    padding: 12px 22px 24px;
}

.uniforma-header__mobile-nav.is-open {
    display: block;
}

.uniforma-header__mobile-nav a,
.uniforma-header__mobile-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid rgba(228, 216, 204, 0.85);
    background: transparent;
    color: var(--uniforma-text);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.uniforma-header__mobile-dropdown {
    display: none;
    padding: 6px 0 10px 16px;
}

.uniforma-header__mobile-dropdown.is-open {
    display: block;
}

.uniforma-header__mobile-dropdown a {
    color: var(--uniforma-muted);
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    padding: 11px 0;
}

/* Tablet */
@media (max-width: 1280px) {
    .uniforma-header__container {
        grid-template-columns: 235px 1fr 100px;
        padding: 0 28px;
    }

    .uniforma-header__logo img {
        width: 225px;
    }

    .uniforma-header__nav {
        gap: 32px;
    }

    .uniforma-header__link {
        font-size: 12px;
    }
}

/* Mobile menu */
@media (max-width: 1050px) {
    .uniforma-header__container {
        grid-template-columns: 230px 1fr;
    }

    .uniforma-header__nav {
        display: none;
    }

    .uniforma-header__mobile-btn {
        display: block;
    }
}

/* Mobile */
@media (max-width: 640px) {
    body {
        padding-top: 66px;
    }

    .uniforma-header__container {
        min-height: 66px;
        padding: 0 18px;
        grid-template-columns: 1fr auto;
        gap: 16px;
    }

    .uniforma-header__logo img {
        width: 185px;
    }

    .uniforma-header__actions {
        gap: 14px;
    }

    .uniforma-header__icon,
    .uniforma-header__icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 430px) {
    .uniforma-header__logo img {
        width: 160px;
    }

    .uniforma-header__actions {
        gap: 11px;
    }
}