/* =====================================================
   MI FÁBRICA DE FIESTAS
   CABECERA + MENÚ GLOBAL
===================================================== */

:root {
    --mff-background: #FEFAF7;
    --mff-white: #FFFFFF;
    --mff-gold: #936819;
    --mff-dark: #171717;
    --mff-text: #39332E;
}

/* GENERAL */

.mff-global-menu,
.mff-global-menu * {
    box-sizing: border-box;
}

.mff-global-menu {
    width: 100%;
}

.mff-global-menu button {
    font-family: "Jost", Arial, sans-serif;
}

.mff-global-menu a {
    text-decoration: none;
}

.mff-global-menu :focus-visible {
    outline: 2px solid var(--mff-gold);
    outline-offset: 4px;
}

/* =====================================================
   1. CABECERA GLOBAL
===================================================== */

.mff-site-header {
    position: relative;
    z-index: 99980;

    width: 100%;
    height: 82px;

    background: var(--mff-white);
    border: none;
    box-shadow: none;
}

.mff-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 1600px;
    height: 100%;

    margin: 0 auto;
    padding: 0 60px;
}

/* LOGOTIPO CABECERA */

.mff-global-menu .mff-header-logo {
    display: inline-flex;
    align-items: center;

    max-width: calc(100% - 135px);

    margin: 0;
    padding: 0;

    font-family: "Dream Avenue", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.15;
    letter-spacing: 0.5px;

    color: var(--mff-dark);
    text-decoration: none;

    transition: color .3s ease;
}

.mff-global-menu .mff-header-logo:hover,
.mff-global-menu .mff-header-logo:focus-visible {
    color: var(--mff-gold);
}

.mff-header-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 260px;
    max-height: 65px;
    object-fit: contain;
}

/* =====================================================
   2. BOTÓN MENÚ SIN BORDES NI SOMBRAS
===================================================== */

.mff-global-menu .mff-menu-toggle {
    position: relative;
    top: auto;
    right: auto;
    z-index: 99990;

    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 13px;

    width: auto;
    min-width: 0;
    height: 48px;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    color: var(--mff-dark);
    cursor: pointer;

    transition: color .3s ease;
}

/* TODOS LOS ESTADOS SIN FONDO */

.mff-global-menu .mff-menu-toggle:hover,
.mff-global-menu .mff-menu-toggle:focus,
.mff-global-menu .mff-menu-toggle:focus-visible,
.mff-global-menu .mff-menu-toggle:active,
.mff-global-menu .mff-menu-toggle[aria-expanded="true"] {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--mff-gold);
}

/* TEXTO MENÚ */

.mff-global-menu .mff-toggle-label {
    display: inline-block;

    width: auto;
    height: auto;
    margin: 0;
    padding: 0;

    font-family: "Jost", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 3px;
    text-transform: uppercase;

    color: inherit;
    background: transparent;
    white-space: nowrap;
    transform: none;
}

/* ICONO HAMBURGUESA */

.mff-global-menu .mff-toggle-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 24px;
    height: 22px;

    margin: 0;
    padding: 0;
    background: transparent;
    transform: none;
}

.mff-global-menu .mff-toggle-icon span {
    display: block;
    width: 24px;
    height: 1.5px;
    min-height: 1.5px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;
    background: currentColor;

    transition: transform .3s ease;
}

.mff-global-menu .mff-menu-toggle:hover
.mff-toggle-icon span:first-child {
    transform: translateX(3px);
}

.mff-global-menu .mff-menu-toggle:hover
.mff-toggle-icon span:last-child {
    transform: translateX(-3px);
}

/* =====================================================
   3. MENÚ DESPLEGABLE
===================================================== */

.mff-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: grid;
    grid-template-columns: 50% 50%;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    background: var(--mff-background);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .45s ease,
        visibility .45s ease;
}

.mff-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =====================================================
   4. SLIDER IZQUIERDO
===================================================== */

.mff-menu-visual.mff-menu-slider {
    position: relative;
    isolation: isolate;

    width: 100%;
    height: 100%;
    min-height: 0;

    overflow: hidden;
}

/* IMÁGENES SUPERPUESTAS */

.mff-menu-slider .mff-menu-slide {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: visible;
    z-index: 0;
    pointer-events: none;

    transition: opacity 1.3s ease-in-out;
}

/* IMAGEN ACTIVA */

.mff-menu-slider .mff-menu-slide.is-active {
    opacity: 1;
    z-index: 2;
}

/* FOTOGRAFÍAS */

.mff-menu-slider .mff-menu-slide img,
.mff-menu-overlay.is-open
.mff-menu-slider .mff-menu-slide img {
    display: block;

    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;

    object-fit: cover;
    object-position: center;

    transform: none;
    animation: none;
}

/* SIN INDICADORES NI FLECHAS */

.mff-slider-indicators {
    display: none !important;
}

/* =====================================================
   5. PANEL DERECHO
===================================================== */

.mff-menu-content {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;
    min-height: 0;

    overflow-x: hidden;
    overflow-y: auto;

    background: var(--mff-background);
}

/* =====================================================
   6. BOTÓN CERRAR
===================================================== */

.mff-global-menu .mff-menu-close {
    position: absolute;
    top: 28px;
    right: 36px;
    z-index: 10;

    display: block;
    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;

    color: var(--mff-dark);
    cursor: pointer;

    transition: color .3s ease;
}

/* ICONO X */

.mff-global-menu .mff-menu-close span {
    position: absolute;
    top: 18px;
    left: 2px;

    display: block;
    width: 34px;
    height: 1.5px;

    background: currentColor;
}

.mff-global-menu .mff-menu-close span:first-child {
    transform: rotate(45deg);
}

.mff-global-menu .mff-menu-close span:last-child {
    transform: rotate(-45deg);
}

.mff-global-menu .mff-menu-close:hover,
.mff-global-menu .mff-menu-close:focus-visible,
.mff-global-menu .mff-menu-close:active {
    color: var(--mff-gold);
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* =====================================================
   7. CONTENIDO INTERIOR
===================================================== */

.mff-menu-inner {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    min-height: min-content;

    padding: 75px 30px 35px;
    text-align: center;
}

/* =====================================================
   8. LOGO DEL MENÚ DESPLEGADO
===================================================== */

.mff-menu-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    margin-bottom: 8px;
}

.mff-global-menu .mff-menu-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    max-width: 100%;

    color: var(--mff-dark);
    text-decoration: none;

    transition: color .3s ease;
}

.mff-menu-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 320px;
    max-height: 130px;
    object-fit: contain;
}

.mff-menu-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: "Dream Avenue", Georgia, serif;
    font-size: clamp(36px, 4vw, 70px);
    font-weight: 400;
    font-style: normal;
    line-height: 1.08;

    color: inherit;
    text-align: center;
}

.mff-menu-logo-text span {
    color: inherit;
}

.mff-global-menu .mff-menu-logo-link:hover,
.mff-global-menu .mff-menu-logo-link:focus-visible {
    color: var(--mff-gold);
}

.mff-global-menu .mff-menu-logo-link:hover
.mff-menu-logo-text {
    color: var(--mff-gold);
}

/* SUBTÍTULO */

.mff-menu-subtitle {
    margin: 12px 0 25px;
    padding: 0;

    font-family: "Jost", Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 3px;
    text-transform: uppercase;

    color: var(--mff-text);
}

/* =====================================================
   9. ENLACES DEL MENÚ
===================================================== */

.mff-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.mff-menu-links li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mff-global-menu .mff-menu-links a {
    display: inline-block;
    padding: 2px 6px;

    font-family: Georgia, serif;
    font-size: clamp(25px, 2.8vw, 43px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.25;

    color: var(--mff-text);
    text-decoration: none;

    transition:
        color .3s ease,
        transform .3s ease;
}

.mff-global-menu .mff-menu-links a:hover,
.mff-global-menu .mff-menu-links a:focus-visible {
    color: var(--mff-gold);
    transform: translateX(8px);
}

/* =====================================================
   10. REDES SOCIALES
===================================================== */

.mff-menu-social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;

    margin-top: 32px;

    font-family: "Jost", Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;

    color: var(--mff-text);
}

.mff-menu-social a {
    color: inherit;
    text-decoration: none;
    transition: color .3s ease;
}

.mff-menu-social a:hover,
.mff-menu-social a:focus-visible {
    color: var(--mff-gold);
}

/* =====================================================
   11. GALERÍA INFERIOR
   SOLO MÓVIL
===================================================== */

.mff-menu-gallery {
    display: none;
}

/* BLOQUEAR SCROLL */

body.mff-menu-active {
    overflow: hidden !important;
}

/* =====================================================
   12. TABLET
===================================================== */

@media (max-width: 1024px) {

    .mff-header-container {
        padding: 0 35px;
    }

    .mff-header-logo {
        font-size: 28px;
    }

    .mff-menu-overlay {
        grid-template-columns: 42% 58%;
    }

    .mff-menu-logo-text {
        font-size: 46px;
    }

    .mff-menu-links a {
        font-size: 32px;
    }

    .mff-menu-inner {
        padding-left: 22px;
        padding-right: 22px;
    }
}

/* =====================================================
   13. MÓVIL
===================================================== */

@media (max-width: 767px) {

    /* CABECERA */

    .mff-site-header {
        height: 68px;
    }

    .mff-header-container {
        padding: 0 18px;
    }

    .mff-global-menu .mff-header-logo {
        max-width: calc(100% - 105px);
        font-size: clamp(16px, 4.5vw, 23px);
        line-height: 1.15;
        letter-spacing: 0;
    }

    .mff-header-logo-img {
        max-width: 180px;
        max-height: 52px;
    }

    /* BOTÓN MENÚ */

    .mff-global-menu .mff-menu-toggle {
        min-width: 0;
        height: 42px;
        gap: 9px;
        padding: 0;
    }

    .mff-global-menu .mff-toggle-label {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .mff-global-menu .mff-toggle-icon,
    .mff-global-menu .mff-toggle-icon span {
        width: 20px;
    }

    /* OVERLAY */

    .mff-menu-overlay {
        display: block;
        height: 100dvh;
    }

    /* OCULTAR SLIDER */

    .mff-menu-visual.mff-menu-slider {
        display: none;
    }

    /* PANEL */

    .mff-menu-content {
        width: 100%;
        height: 100dvh;
    }

    /* CERRAR */

    .mff-global-menu .mff-menu-close {
        top: 22px;
        right: 24px;
    }

    /* CONTENIDO */

    .mff-menu-inner {
        padding: 75px 20px 25px;
    }

    /* LOGO */

    .mff-menu-logo-img {
        max-width: 230px;
        max-height: 100px;
    }

    .mff-menu-logo-text {
        font-size: clamp(32px, 9vw, 48px);
    }

    /* SUBTÍTULO */

    .mff-menu-subtitle {
        margin: 10px 0 22px;
        font-size: 10px;
        letter-spacing: 2px;
    }

    /* NAVEGACIÓN */

    .mff-menu-links {
        gap: 8px;
    }

    .mff-menu-links a {
        font-size: clamp(27px, 7.5vw, 38px);
    }

    /* REDES */

    .mff-menu-social {
        margin-top: 25px;
    }

    /* GALERÍA INFERIOR */

    .mff-menu-gallery {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;

        width: 100%;
        height: 90px;
        flex-shrink: 0;

        padding: 0 6px 6px;
    }

    .mff-menu-gallery img {
        display: block;
        width: 100%;
        height: 100%;
        min-width: 0;
        object-fit: cover;
    }
}

/* =====================================================
   14. MÓVILES PEQUEÑOS
===================================================== */

@media (max-width: 380px) {

    .mff-header-container {
        padding: 0 14px;
    }

    .mff-global-menu .mff-header-logo {
        font-size: 16px;
    }

    .mff-menu-logo-text {
        font-size: 30px;
    }

    .mff-menu-links {
        gap: 5px;
    }

    .mff-menu-links a {
        font-size: 27px;
    }

    .mff-menu-gallery {
        height: 65px;
    }
}

/* =====================================================
   15. PANTALLAS DE POCA ALTURA
===================================================== */

@media (max-height: 650px) and (min-width: 768px) {

    .mff-menu-inner {
        justify-content: flex-start;
        padding-top: 65px;
    }

    .mff-menu-logo-text {
        font-size: 38px;
    }

    .mff-menu-subtitle {
        margin-bottom: 15px;
    }

    .mff-menu-links a {
        font-size: 27px;
    }

    .mff-menu-social {
        margin-top: 18px;
    }
}

/* =====================================================
   16. ACCESIBILIDAD
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .mff-menu-overlay,
    .mff-menu-slide,
    .mff-menu-links a,
    .mff-menu-toggle {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Ocultar cabecera original de Hello Elementor */

#site-header {
    display: none !important;
}
