/*
 Theme Name:   Somos Migrantes Child
 Theme URI:    https://www.somosmigrantes.com/
 Description:  Tema hijo personalizado de Blocksy para Somos Migrantes con banner adaptado y soporte multilingüe
 Author:       CaoX
 Template:     blocksy
 Version:      1.0.3
 Text Domain:  somosmigrantes-child
*/

/* 1. Banner Superior Somos Migrantes */
.sm-top-banner-wrapper {
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 2px solid #eef2f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.sm-top-banner-wrapper a {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.sm-top-banner-wrapper img {
    max-width: 100%;
    width: 960px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sm-top-banner-wrapper a:hover img {
    opacity: 0.96;
}

/* 2. Ocultar totalmente el contenedor de branding vacío en el header */
.site-branding[data-id="logo"],
[data-device="desktop"] [data-column="start"],
[data-device="mobile"] [data-column="start"] {
    display: none !important;
}

/* 3. Centrar barra de navegación y menú principal */
[data-row="middle"] .ct-container {
    justify-content: center !important;
}

[data-device="desktop"] [data-column="end"] {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

[data-device="desktop"] [data-column="end"] [data-items="primary"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px;
}

/* 4. Altura de la barra de navegación */
[data-header*="type-1"] .ct-header [data-row*="middle"] {
    --height: 58px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

/* 5. Estilo de enlaces de navegación */
.header-menu-1 > ul > li > a {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    color: #1a202c !important;
}

.header-menu-1 > ul > li > a:hover {
    color: #0d6efd !important;
}

/* 6. Selector de Idioma (Language Switcher) */
.sm-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid #e2e8f0;
}

.sm-lang-switcher a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 2px 6px;
    border-radius: 12px;
}

.sm-lang-switcher a:hover {
    color: #0f172a;
}

.sm-lang-switcher a.active {
    background: #0d6efd;
    color: #ffffff !important;
}

.sm-lang-divider {
    color: #cbd5e1;
    font-weight: 300;
}
