@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;800&display=swap");

/* =========================================================
   Encabezado compartido de MG Eventos
   (logo + menú; en celular, menú de 3 rayitas)
   Todas las páginas usan este archivo: un cambio aquí
   se aplica a todo el sitio.
   ========================================================= */

:root {
    --mg-dorado: #C4924F;
    --mg-dorado-texto: #8A5E2E;
    --mg-texto: #141B2D;
    --mg-borde: #EEEEEE;
}

.mg-header {
    position: relative;
    z-index: 50;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--mg-borde);
}

.mg-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Logo: círculo + divisor + eslogan, siempre enlaza al inicio */
.mg-brand {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.mg-brand-circulo { width: 50px; height: 50px; object-fit: contain; display: block; }
.mg-brand-divisor { width: 1px; height: 40px; background: var(--mg-dorado); align-self: center; }
.mg-brand-eslogan,
.mg-eslogan-txt {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 800;
    color: var(--mg-dorado);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.mg-brand-eslogan { font-size: 13.5px; line-height: 1; padding-bottom: 7px; letter-spacing: 0.09em; font-weight: 400; }  /* letra normal: más elegante */
/* La ə final: blanca dentro de un sello negro con borde dorado.
   vertical-align: middle centra el sello en la mitad de las minúsculas;
   el pequeño padding-bottom sube la ə para centrar su dibujo en el sello. */
.mg-schwa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 0.9em;
    height: 0.9em;
    padding-bottom: 0.1em;
    margin: 0 0.18em;   /* mismo espacio a la "n" y a la "c" */
    vertical-align: middle;
    border-radius: 50%;
    background: #0B0B0B;
    box-shadow: 0 0 0 1px var(--mg-dorado);
    color: #FFFFFF;
    font-size: 1em;
    line-height: 1;
    letter-spacing: 0;
}

/* Inicio: solo el círculo (el eslogan grande está en la portada) */
.mg-header--solo-logo .mg-brand-divisor,
.mg-header--solo-logo .mg-brand-eslogan { display: none; }

.mg-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.mg-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 2px solid var(--mg-dorado);
    border-radius: 999px;
    background: transparent;
    color: var(--mg-texto);
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mg-nav-link:hover { background: var(--mg-dorado); color: var(--mg-texto); transform: translateY(-1px); }

.mg-nav-link.active,
.mg-nav-link.active:hover { background: var(--mg-dorado); cursor: default; transform: none; }

.mg-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 2px solid var(--mg-dorado);
    border-radius: 50%;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.mg-menu-toggle .mg-icon-close { display: none; }
.mg-menu-toggle[aria-expanded="true"] .mg-icon-open { display: none; }
.mg-menu-toggle[aria-expanded="true"] .mg-icon-close { display: block; }

/* Celular: menú de 3 rayitas */
@media (max-width: 760px) {
    .mg-header-inner { padding: 10px 16px; }
    .mg-brand { gap: 7px; }
    .mg-brand-circulo { width: 44px; height: 44px; }
    .mg-brand-divisor { height: 34px; }
    .mg-brand-eslogan { font-size: 12.5px; padding-bottom: 6px; }

    .mg-menu-toggle { display: flex; }

    .mg-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 10px;
        padding: 12px 16px 18px;
        background: #ffffff;
        border-bottom: 1px solid var(--mg-borde);
        box-shadow: 0 16px 32px rgba(20, 27, 45, 0.14);
    }

    .mg-header.nav-open .mg-nav { display: flex; }

    .mg-nav-link { padding: 14px 20px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .mg-nav-link { transition: none; }
}

/* =========================================================
   Enlaces legales del pie de página (todas las páginas)
   ========================================================= */
.mg-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.6;
}

.mg-footer-links a {
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.mg-footer-links a:hover { color: var(--mg-dorado-texto); text-decoration: underline; }
.mg-footer-links span { color: #9ca3af; }

/* Logo apilado del pie de página: círculo y eslogan debajo */
.mg-footer-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 2px auto 10px;
    text-decoration: none;
}
.mg-footer-brand img { width: 48px; height: 48px; object-fit: contain; display: block; }
.mg-footer-brand .mg-eslogan-txt { font-size: 13px; line-height: 1.2; letter-spacing: 0.09em; }
.mg-footer-brand:hover img { transform: scale(1.04); transition: transform 0.2s ease; }

/* Línea de derechos del pie de página: discreta */
.mg-copy {
    font-size: 11.5px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #9CA3AF;
}

/* La "n" antes del sello no suma espaciado extra: así el aire es igual a ambos lados en todos los navegadores */
.sin-espacio { letter-spacing: 0; }
