/* ── NC Site Header v1.0.0 ── */

/* ════ BARRA SOCIAL ════ */

.nc-sh-bar {
    width: 100%;
    border-bottom: 1px solid #e8dfd3;
    box-sizing: border-box;
}

.nc-sh-bar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 5px 32px;
    box-sizing: border-box;
}

.nc-sh-social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nc-sh-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s ease;
    line-height: 0;
    text-decoration: none;
}

.nc-sh-social-link svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    display: block;
}

.nc-sh-bar-text {
    font-size: 0.78rem;
    color: #999;
    white-space: nowrap;
}

/* ════ CABECERA PRINCIPAL ════ */

.nc-sh-header {
    position: relative;
    width: 100%;
    background-color: #FAF7F2;
    border-bottom: 1px solid #f0ebe2;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.nc-sh-header.nc-sh-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.09);
}

.nc-sh-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 80px;
    padding: 0 32px;
    box-sizing: border-box;
    max-width: 100%;
}

/* ── Logo ── */
.nc-sh-logo {
    flex-shrink: 0;
    line-height: 0;
}

.nc-sh-logo a {
    display: inline-block;
    line-height: 0;
}

.nc-sh-logo img {
    display: block;
    max-width: 150px;
    height: auto;
}

.nc-sh-logo-mob {
    display: none;
}

.nc-sh-logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: inherit;
    text-decoration: none;
}

/* ── Navegación ── */
.nc-sh-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nc-sh-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 36px;
}

.nc-sh-nav li {
    position: relative;
    margin: 0;
    padding: 0;
}

.nc-sh-nav > ul > li > a {
    display: block;
    color: #777;
    text-decoration: none;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
    padding: 4px 0;
}

.nc-sh-nav > ul > li > a:hover,
.nc-sh-nav > ul > li.current-menu-item > a,
.nc-sh-nav > ul > li.current-page-ancestor > a {
    color: #D4AF37;
}

/* Submenú desplegable */
.nc-sh-nav ul ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.11);
    min-width: 190px;
    padding: 8px 0;
    border-radius: 6px;
    z-index: 200;
    flex-direction: column;
    gap: 0;
    border-top: 2px solid #D4AF37;
}

.nc-sh-nav ul li:hover > ul {
    display: flex;
}

.nc-sh-nav ul ul a {
    display: block;
    padding: 9px 20px;
    color: #333;
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nc-sh-nav ul ul a:hover {
    color: #D4AF37;
    background-color: #faf7f2;
}

/* ── Acciones ── */
.nc-sh-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* ── CTA ── */
.nc-sh-cta {
    display: inline-block;
    background-color: #D4AF37;
    color: #fff;
    padding: 9px 26px;
    border-radius: 25px;
    border: 2px solid #D4AF37;
    text-decoration: none;
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.nc-sh-cta:hover {
    background-color: transparent;
    color: #D4AF37;
    transform: translateY(-2px);
}

/* ── Hamburger ── */
.nc-sh-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
}

.nc-sh-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
    transform-origin: center center;
}

/* Animación X al abrir */
.nc-sh-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nc-sh-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nc-sh-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Botón toggler de submenú (inyectado por JS en móvil) */
.nc-sh-sub-toggler {
    background: none;
    border: none;
    padding: 0 0 0 6px;
    cursor: pointer;
    color: inherit;
    line-height: 0;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.nc-sh-submenu-open > .nc-sh-sub-toggler {
    transform: rotate(180deg);
}

/* ════ MODO MÓVIL (clase aplicada por JS según breakpoint) ════ */

.nc-sh-is-mobile .nc-sh-hamburger {
    display: flex;
}

.nc-sh-is-mobile .nc-sh-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #FAF7F2;
    z-index: 998;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top: 1px solid #f0ebe2;
}

.nc-sh-is-mobile .nc-sh-nav.nc-sh-open {
    display: block;
}

.nc-sh-is-mobile .nc-sh-nav > ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 20px 24px;
}

.nc-sh-is-mobile .nc-sh-nav > ul > li > a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    font-size: 0.85rem;
}

/* Submenús en móvil: estáticos */
.nc-sh-is-mobile .nc-sh-nav ul ul {
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
    background: transparent;
    min-width: 0;
    border-radius: 0;
    border-top: none;
}

.nc-sh-is-mobile .nc-sh-nav ul li:hover > ul {
    display: none; /* deshabilitar hover en móvil */
}

.nc-sh-is-mobile .nc-sh-nav li.nc-sh-submenu-open > ul {
    display: flex;
}

.nc-sh-is-mobile .nc-sh-nav ul ul a {
    padding: 8px 8px;
    border-bottom: none;
}

/* Ocultar logo móvil/escritorio según sea necesario */
.nc-sh-is-mobile .nc-sh-logo-desk { display: none; }
.nc-sh-is-mobile .nc-sh-logo-mob  { display: block; }

/* Ocultar CTA en móvil si está desactivado */
.nc-sh-is-mobile .nc-sh-cta-hide-mob {
    display: none !important;
}

/* Fallback CSS sin JS: ocultar hamburger siempre (JS lo activa) */
@media (max-width: 1024px) {
    /* Solo actúa si JS no ha podido correr */
    .nc-sh-hamburger:not(.nc-sh-js-ready) {
        display: flex;
    }
}
