/* =========================================================
   SMM Header Styling — Suffix 25fc5646 (v3 · fix lang móvil)
   Distribución: LOGO (izq) · MENÚ (centro) · ACCIONES (der)
   ========================================================= */

/* ---------------------------------------------------------
   CONTENEDOR
--------------------------------------------------------- */
.smm-header-container {
    background-color: #1a1a1a;
    font-family: 'Montserrat', 'Helvetica', sans-serif;
    width: 100%;
    padding: 14px 40px;
    box-sizing: border-box;
    position: relative;
    z-index: 9999;
}

/* 3 zonas reales: LOGO (auto) · MENÚ (1fr, centrado) · ACCIONES (auto) */
.smm-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

/* ---------------------------------------------------------
   LOGO
--------------------------------------------------------- */
.smm-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.smm-logo a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.smm-logo img {
    display: block;
    max-height: 46px;
    width: auto;
    object-fit: contain;
}

.smm-logo-fallback {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

/* ---------------------------------------------------------
   ZONA 2 · NAVEGACIÓN (centro)
--------------------------------------------------------- */
.smm-navigation {
    display: flex;
    align-items: center;
    justify-content: center;   /* ← flex-start si lo quieres pegado al logo */
    min-width: 0;
}

.smm-menu-list,
.smm-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 38px;
}

.smm-menu-item,
.smm-navigation ul li {
    margin: 0;
    padding: 0;
}

.smm-menu-item a,
.smm-navigation ul li a {
    display: inline-block;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .3s ease;
}

.smm-menu-item a:hover,
.smm-menu-item.active a,
.smm-navigation ul li a:hover,
.smm-navigation ul li.current-menu-item a {
    color: #ffffff;
}

/* ---------------------------------------------------------
   ACCIONES DERECHA (idioma + teléfono + CTA)
--------------------------------------------------------- */
.smm-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

/* Compatibilidad con la estructura anterior (.smm-desktop-menu-wrapper) */
.smm-desktop-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.smm-desktop-menu-wrapper .smm-navigation { flex: 1 1 auto; }
.smm-desktop-menu-wrapper > .smm-lang-switcher { margin-left: auto; }

/* ---------------------------------------------------------
   SELECTOR DE IDIOMA — estilo "segmented control" ES | EN
--------------------------------------------------------- */
.smm-lang-switcher {
    display: inline-flex;
    align-items: center;
    border: 1px solid #444444;
    border-radius: 3px;
    overflow: hidden;
    line-height: 1;
    font-size: 0;               /* elimina espacios/“/” sueltos entre enlaces */
}

.smm-lang-switcher a,
.smm-lang-switcher .glink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #9a9a9a;
    background-color: transparent;
    transition: background-color .25s ease, color .25s ease;
}

.smm-lang-switcher a + a,
.smm-lang-switcher .glink + .glink {
    border-left: 1px solid #444444;
}

.smm-lang-switcher a:hover,
.smm-lang-switcher .glink:hover {
    color: #ffffff;
    background-color: #2a2a2a;
}

/* Idioma activo (GTranslate marca el actual con .gt-current-lang) */
.smm-lang-switcher a.active,
.smm-lang-switcher a.active *,
.smm-lang-switcher .glink.gt-current-lang,
.smm-lang-switcher .glink.gt-current-lang * {
    background-color: #ffffff !important;
    color: #1f1f1f !important;
}

.smm-lang-switcher a.active:hover,
.smm-lang-switcher .glink.gt-current-lang:hover {
    background-color: #f0f0f0 !important;
    color: #1f1f1f !important;
}

/* Imágenes de bandera de GTranslate ocultas (solo texto ES / EN) */
.smm-lang-switcher img,
.smm-mobile-lang img {
    display: none !important;
}

/* Si en vez de shortcodes se usa el widget <select> de GTranslate */
.smm-header-container .gtranslate_wrapper {
    display: inline-flex !important;
    align-items: center;
}

.smm-header-container .gtranslate_wrapper select {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    font-family: inherit !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    outline: none !important;
    font-weight: 600 !important;
    transition: border-color .3s ease, background-color .3s ease;
}

.smm-header-container .gtranslate_wrapper select:hover {
    border-color: #ff3a2d !important;
    background-color: #333333 !important;
}

/* ---------------------------------------------------------
   TELÉFONO
--------------------------------------------------------- */
.smm-phone a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    white-space: nowrap;
}

.smm-phone-icon {
    color: #ff3a2d;
    display: inline-flex;
    align-items: center;
    font-size: 15px;
}

.smm-phone-icon svg {
    width: 15px;
    height: 15px;
    fill: #ff3a2d;
}

/* ---------------------------------------------------------
   BOTÓN CTA
--------------------------------------------------------- */
.smm-cta {
    display: flex;
    align-items: center;
}

.smm-cta-btn {
    background-color: #ff3a2d;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    white-space: nowrap;
    text-transform: uppercase;
    transition: background-color .3s ease, transform .2s ease;
}

.smm-cta-btn:hover {
    background-color: #e02f23;
    color: #ffffff;
    transform: translateY(-1px);
}

.smm-cta-icon {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.smm-cta-icon svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

/* ---------------------------------------------------------
   HAMBURGUESA
--------------------------------------------------------- */
.smm-mobile-trigger {
    --burger-line-width: 26px;
    --burger-line-thickness: 2px;
    --burger-line-gap: 6px;

    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--burger-line-gap);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    z-index: 10001;
    transition: background-color .3s ease, border-radius .3s ease;
    box-sizing: content-box;
}

.smm-burger-bar {
    display: block;
    width: var(--burger-line-width);
    height: var(--burger-line-thickness);
    background-color: #ffffff;
    transition: all .3s cubic-bezier(.25, 1, .5, 1);
}

.smm-mobile-trigger.open .smm-burger-bar:nth-child(1) {
    transform: translateY(calc(var(--burger-line-gap) + var(--burger-line-thickness))) rotate(45deg);
}

.smm-mobile-trigger.open .smm-burger-bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.smm-mobile-trigger.open .smm-burger-bar:nth-child(3) {
    transform: translateY(calc(-1 * (var(--burger-line-gap) + var(--burger-line-thickness)))) rotate(-45deg);
}

/* ---------------------------------------------------------
   DRAWER MÓVIL
--------------------------------------------------------- */
.smm-mobile-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    padding: 25px 20px;
    box-sizing: border-box;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid #2d2d2d;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .5);
    z-index: 9998;
}

.smm-mobile-drawer.open {
    display: flex;
}

.smm-mobile-menu-list,
.smm-mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.smm-mobile-menu-item a,
.smm-mobile-navigation ul li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    text-transform: uppercase;
    padding: 12px 0;
    border-bottom: 1px solid #2d2d2d;
    transition: color .3s ease;
}

.smm-mobile-menu-item a:hover,
.smm-mobile-menu-item.active a,
.smm-mobile-navigation ul li a:hover,
.smm-mobile-navigation ul li.current-menu-item a {
    color: #ffffff;
}

.smm-mobile-extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid #2d2d2d;
    padding-top: 18px;
}

/* ---------------------------------------------------------
   SELECTOR DE IDIOMA · MÓVIL
--------------------------------------------------------- */
.smm-mobile-lang {
    display: inline-flex;
    align-items: center;
    border: 1px solid #444444;
    border-radius: 3px;
    overflow: hidden;
    font-size: 0;
}

.smm-mobile-lang a,
.smm-mobile-lang .glink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #9a9a9a;
    background-color: transparent;
    transition: background-color .25s ease, color .25s ease;
}

.smm-mobile-lang a + a,
.smm-mobile-lang .glink + .glink {
    border-left: 1px solid #444444;
}

/* Inactivo + hover */
.smm-mobile-lang a:not(.active),
.smm-mobile-lang .glink:not(.gt-current-lang) {
    color: #9a9a9a;
    background-color: transparent;
}

.smm-mobile-lang a:not(.active):hover,
.smm-mobile-lang .glink:not(.gt-current-lang):hover {
    color: #ffffff;
    background-color: #2a2a2a;
}

/* ACTIVO — fondo blanco, texto negro (el * cubre spans internos de GTranslate) */
.smm-mobile-lang a.active,
.smm-mobile-lang a.active *,
.smm-mobile-lang .glink.gt-current-lang,
.smm-mobile-lang .glink.gt-current-lang * {
    background-color: #ffffff !important;
    color: #1f1f1f !important;
}

.smm-mobile-lang a.active:hover,
.smm-mobile-lang .glink.gt-current-lang:hover {
    background-color: #f0f0f0 !important;
    color: #1f1f1f !important;
}

/* ---------------------------------------------------------
   TELÉFONO Y CTA · MÓVIL
--------------------------------------------------------- */
.smm-mobile-phone a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.smm-mobile-phone-icon {
    color: #ff3a2d;
    display: inline-flex;
    align-items: center;
}

.smm-mobile-phone-icon svg {
    width: 16px;
    height: 16px;
    fill: #ff3a2d;
}

.smm-mobile-cta {
    margin-top: 5px;
}

.smm-mobile-cta-btn {
    background-color: #ff3a2d;
    color: #ffffff;
    text-decoration: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    transition: background-color .3s ease;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 1400px) {
    .smm-header-container { padding: 14px 24px; }
    .smm-menu-list,
    .smm-navigation ul { gap: 26px; }
    .smm-header-actions { gap: 16px; }
    .smm-header-inner { gap: 20px; }
}

@media (max-width: 1200px) {
    .smm-menu-item a,
    .smm-navigation ul li a { font-size: 12px; letter-spacing: 1.2px; }
    .smm-menu-list,
    .smm-navigation ul { gap: 18px; }
    .smm-phone a { font-size: 13px; letter-spacing: .5px; }
    .smm-cta-btn { padding: 11px 16px; font-size: 12px; letter-spacing: 1px; }
}

@media (max-width: 1024px) {
    .smm-header-inner { grid-template-columns: auto 1fr; }
    .smm-navigation,
    .smm-header-actions,
    .smm-desktop-menu-wrapper { display: none; }
    .smm-mobile-trigger { display: flex; justify-self: end; }
    .smm-header-container { padding: 12px 18px; }
    .smm-logo img { max-height: 38px; }
}