/* ── PROMO BAR ── */
.promo-bar {
    background: var(--secondary-color);
    /* Vino más oscuro */
    color: var(--white);
    height: 40px;
    /* Ajustado por defecto */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-family: 'Work Sans', sans-serif;
    letter-spacing: 0.04em;
    position: relative;
    overflow: hidden;
    z-index: 1000;
    transition: height 0.35s ease, opacity 0.35s ease;
}

.promo-bar.hidden {
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.promo-inner {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    animation: marquee-pause 0s;
}

.promo-inner span.highlight {
    background: var(--accent-color);
    /* Amarillo Oro */
    color: var(--secondary-color);
    /* Texto oscuro para contraste */
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.promo-link {
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.promo-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px;
}

.promo-close:hover {
    color: var(--white);
}

/* ── NAVBAR WRAPPER ── */
.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: top 0.35s ease;
}

/* ── MAIN NAVBAR ── */
.navbar {
    background: var(--white);
    border-bottom: 1.5px solid #eee;
    height: 77px;
    /* Ajuste estándar */
    display: flex;
    align-items: center;
    padding: 0px 24px;
    gap: 0;
    transition: background 0.3s, box-shadow 0.3s, height 0.3s;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.897);
    box-shadow: var(--shadow-sm);
    height: 77px;
    backdrop-filter: blur(7px);
}

.navbar-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ── LOGO ── */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 5px;
}

.logo-img {
    width: 60px;
    height: 60px;
    display: block;
}

.logo-text {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* ── DESKTOP NAV LINKS ── */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 10px;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 3px;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: none;
    margin-top: 14px;
}

.nav-link:hover,
.nav-item.open>.nav-link {
    background: #fff5f7;
    color: var(--primary-color);
}

.nav-link .arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.22s;
    opacity: 0.5;
    flex-shrink: 0;
}

.nav-item.open>.nav-link .arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── DROPDOWN ── */
.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--white);
    border: 1.5px solid #eee;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    padding: 8px;
    z-index: 200;
}

.nav-item.open>.dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.855rem;
    font-weight: 400;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #fff5f7;
    color: var(--primary-color);
}

.dropdown-item .icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    transition: background 0.15s;
}

.dropdown-item:hover .icon {
    background: var(--primary-color);
    color: var(--white);
}

.dropdown-item .label {
    font-weight: 500;
    display: block;
    font-size: 0.84rem;
}

.dropdown-item .sub {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    font-weight: 400;
    margin-top: 1px;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 6px 4px;
}

/* Wide dropdown */
.dropdown.wide {
    min-width: 420px;
    left: 0;
    transform: translateX(0) translateY(-6px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.nav-item.open>.dropdown.wide {
    transform: translateX(0) translateY(0);
}

.dropdown.wide .dropdown-divider {
    grid-column: 1/-1;
}

/* ── RIGHT SECTION ── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── SEARCH ── */
.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 3px;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.search-toggle:hover {
    background: #fff5f7;
    color: var(--primary-color);
}

.search-box {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: right center;
    width: 250px;
    background: var(--white);
    border: 1.5px solid #eee;
    border-radius: 3px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s;
    opacity: 0;
    pointer-events: none;
    z-index: 300;
}

.search-box.open {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
    pointer-events: auto;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 12px;
    font-size: 0.875rem;
    font-family: 'Work Sans', sans-serif;
    background: transparent;
    color: var(--text-dark);
}

.search-box button {
    background: var(--primary-color);
    border: none;
    padding: 9px 12px;
    cursor: pointer;
    color: var(--white);
    display: flex;
    align-items: center;
    transition: background 0.18s;
}

.search-box button:hover {
    background: var(--secondary-color);
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.855rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #eee;
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff5f7;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(139, 0, 45, 0.25);
}

/* ── HAMBURGER ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1.5px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.hamburger:hover {
    border-color: var(--primary-color);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s, width 0.3s;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE MENU ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 82vw);
    background: var(--white);
    z-index: 1001;
    overflow-y: auto;
    padding: 0 0 40px;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.13);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1.5px solid #eee;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.mobile-close {
    background: var(--white);
    border: 1.5px solid #eee;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.18s;
    flex-shrink: 0;
}

.mobile-close:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-search {
    margin: 16px 20px;
    display: flex;
    align-items: center;
    border: 1.5px solid #eee;
    border-radius: 9px;
    overflow: hidden;
    background: #fafafa;
}

.mobile-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-family: 'Work Sans', sans-serif;
    background: transparent;
}

.mobile-search button {
    background: var(--primary-color);
    border: none;
    padding: 11px 14px;
    cursor: pointer;
    color: var(--white);
    display: flex;
    align-items: center;
}

.mobile-nav {
    list-style: none;
    padding: 0 12px;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: color 0.18s;
}

.mobile-nav-link:hover,
.mobile-nav-item.open>.mobile-nav-link {
    color: var(--primary-color);
}

.mobile-nav-link .m-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.25s;
    opacity: 0.4;
    flex-shrink: 0;
}

.mobile-nav-item.open>.mobile-nav-link .m-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 10px;
}

.mobile-nav-item.open>.mobile-dropdown {
    max-height: 600px;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.88rem;
    margin-bottom: 2px;
    transition: background 0.15s, color 0.15s;
}

.mobile-dropdown-item:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.mobile-dropdown-item .icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-dropdown-item .label {
    font-weight: 500;
    display: block;
    font-size: 0.85rem;
}

.mobile-dropdown-item .sub {
    font-size: 0.73rem;
    color: var(--text-light);
    display: block;
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 20px 0;
}

.mobile-buttons .btn {
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.93rem;
}

/* ── OVERLAY ── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ── DEMO CONTENT ── */
.demo-content {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 24px;
    text-align: center;
}

.demo-content h1 {
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.demo-content h1 span {
    color: var(--primary-color);
}

.demo-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1.5px solid #eee;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.demo-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .btn-outline.desktop-only,
    .btn-primary.desktop-only {
        display: none;
    }

    .search-wrap {
        display: none;
    }

    .logo {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 16px;
    }

    .promo-bar {
        font-size: 0.72rem;
    }

    .promo-inner {
        gap: 6px;
    }
}

/* Scrollbar */
.mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}