﻿/* ==============================================
   NAVBAR TRADUCEHOMBRES — Compartido en Landing
   ============================================== */

.th-navbar-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 248, 252, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(233, 30, 140, 0.12);
    transition: box-shadow 0.3s ease, background 0.3s ease;
    padding-top: env(safe-area-inset-top);
}

    .th-navbar-main.is-scrolled {
        background: rgba(255, 248, 252, 0.98);
        box-shadow: 0 4px 20px rgba(233, 30, 140, 0.1);
    }

.th-navbar-main__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Brand */
.th-navbar-main__brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    flex-shrink: 0;
}

.th-navbar-main__icon {
    font-size: 1.35rem;
    line-height: 1;
}

.th-navbar-main__name {
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e91e8c 0%, #9c27b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Links desktop */
.th-navbar-main__links {
    display: none; /* oculto en mobile */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.th-navbar-main__link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b6b8a;
    transition: all 0.25s ease;
    white-space: nowrap;
}

    .th-navbar-main__link:hover {
        background: rgba(233, 30, 140, 0.08);
        color: #e91e8c;
    }

.th-navbar-main__link--active {
    background: rgba(233, 30, 140, 0.1);
    color: #e91e8c;
}

/* Acciones derecha */
.th-navbar-main__actions {
    display: none; /* oculto en mobile */
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.th-navbar-main__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.th-navbar-main__btn--primary {
    background: linear-gradient(135deg, #e91e8c 0%, #9c27b0 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(233, 30, 140, 0.3);
}

    .th-navbar-main__btn--primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(233, 30, 140, 0.4);
        color: #fff;
    }

.th-navbar-main__btn--ghost {
    background: transparent;
    color: #e91e8c;
    border: 1.5px solid rgba(233, 30, 140, 0.25);
}

    .th-navbar-main__btn--ghost:hover {
        background: rgba(233, 30, 140, 0.08);
        border-color: #e91e8c;
        color: #e91e8c;
    }

/* Hamburguesa */
.th-navbar-main__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    -webkit-tap-highlight-color: transparent;
}

    .th-navbar-main__hamburger span {
        display: block;
        height: 2px;
        background: #e91e8c;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .th-navbar-main__hamburger.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .th-navbar-main__hamburger.is-open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .th-navbar-main__hamburger.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* Menú mobile */
.th-navbar-main__mobile {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    background: #fff8fc;
    border-top: 1px solid rgba(233, 30, 140, 0.1);
}

    .th-navbar-main__mobile.is-open {
        max-height: 300px;
        padding: 0.75rem 1.25rem 1rem;
    }

.th-navbar-main__mobile-link {
    display: block;
    padding: 0.875rem 1rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    border-radius: 12px;
    transition: all 0.2s ease;
}

    .th-navbar-main__mobile-link:hover,
    .th-navbar-main__mobile-link--active {
        background: rgba(233, 30, 140, 0.08);
        color: #e91e8c;
    }

.th-navbar-main__mobile-link--cta {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #e91e8c 0%, #9c27b0 100%);
    color: #fff !important;
    text-align: center;
}

    .th-navbar-main__mobile-link--cta:hover {
        background: linear-gradient(135deg, #c2185b 0%, #7b1fa2 100%);
        color: #fff !important;
        transform: none;
    }

/* Desktop — mostrar links y acciones, ocultar hamburguesa */
@media (min-width: 640px) {
    .th-navbar-main__links {
        display: flex;
    }

    .th-navbar-main__actions {
        display: flex;
    }

    .th-navbar-main__hamburger {
        display: none;
    }

    .th-navbar-main__mobile {
        display: none !important;
    }

    .th-navbar-main__inner {
        max-width: 900px;
    }
}
