/*
Theme Name: Maluquer Quattro
Template: generatepress
Version: 1.0.0
*/

/* ==================================================
   HEADER MALUQUER QUATTRO
   Logo izquierda + menú derecha + desplegable + móvil
================================================== */

:root {
    --maluquer-green: #183034;
    --maluquer-green-dark: #102326;
    --maluquer-gold: #c8a35a;
    --maluquer-gold-light: #e8c77a;
    --maluquer-cream: #f8f2e8;
    --maluquer-white: #ffffff;
    --maluquer-text: #1f2a2a;
    --maluquer-border: rgba(200, 163, 90, .28);
    --maluquer-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

/* Evita que el contenido quede debajo del header fijo */
body {
    padding-top: 102px;
}

body.maluquer-menu-open {
    overflow: hidden;
}

.maluquer-header,
.maluquer-header * {
    box-sizing: border-box;
}

.maluquer-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    background: var(--maluquer-green);
    border-bottom: 1px solid var(--maluquer-border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    transition: all .25s ease;
}

.maluquer-header.is-scrolled {
    background: rgba(24, 48, 52, .96);
    backdrop-filter: blur(12px);
    box-shadow: var(--maluquer-shadow);
}

.maluquer-header__inner {
    width: min(1240px, calc(100% - 40px));
    min-height: 102px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

/* Logo izquierda */

.maluquer-header__logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 180px;
    min-width: 180px;
    min-height: 78px;
    text-decoration: none !important;
}

.maluquer-header__logo img {
    display: block;
    width: 100%;
    max-height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .18));
}

/* Navegación escritorio */

.maluquer-header__nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.maluquer-header__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.maluquer-header__nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--maluquer-white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all .22s ease;
    white-space: nowrap;
}

.maluquer-header__nav a:hover,
.maluquer-header__nav a:focus {
    color: var(--maluquer-green);
    background: var(--maluquer-gold-light);
    transform: translateY(-1px);
}

.maluquer-dropdown-link {
    gap: 6px;
}

.maluquer-dropdown-arrow {
    font-size: 12px;
    line-height: 1;
    transform: translateY(-1px);
}

/* Botón reservar */

.maluquer-header__reserve {
    background: var(--maluquer-gold);
    color: var(--maluquer-green) !important;
    box-shadow: 0 10px 24px rgba(200, 163, 90, .28);
}

.maluquer-header__reserve:hover,
.maluquer-header__reserve:focus {
    background: var(--maluquer-white) !important;
    color: var(--maluquer-green) !important;
}

/* Submenú escritorio */

.maluquer-menu-item-has-children {
    position: relative;
}

.maluquer-submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 255px;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 4px !important;
    background: var(--maluquer-green-dark);
    border: 1px solid var(--maluquer-border);
    border-radius: 18px;
    box-shadow: var(--maluquer-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .22s ease;
}

.maluquer-submenu::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    width: 100%;
    height: 16px;
}

.maluquer-menu-item-has-children:hover .maluquer-submenu,
.maluquer-menu-item-has-children:focus-within .maluquer-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.maluquer-submenu li {
    width: 100%;
}

.maluquer-submenu a {
    width: 100%;
    justify-content: flex-start;
    min-height: 40px;
    padding: 11px 13px;
    border-radius: 12px;
    color: var(--maluquer-white);
    font-size: 12px;
    letter-spacing: .03em;
    text-transform: none;
}

.maluquer-submenu a:hover,
.maluquer-submenu a:focus {
    background: var(--maluquer-gold);
    color: var(--maluquer-green-dark);
    transform: none;
}

/* Botón hamburguesa */

.maluquer-header__toggle {
    display: none;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border: 1px solid var(--maluquer-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.maluquer-header__toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: var(--maluquer-white);
    transition: all .22s ease;
}

.maluquer-header__toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.maluquer-header__toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.maluquer-header__toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menú móvil */

.maluquer-mobile-menu {
    display: none;
}

/* Responsive header */

@media (max-width: 1100px) {
    .maluquer-header__nav a {
        font-size: 12px;
        padding: 10px 10px;
    }

    .maluquer-header__logo {
        width: 160px;
        min-width: 160px;
    }
}

@media (max-width: 1024px) {
    body {
        padding-top: 88px;
    }

    .maluquer-header__inner {
        width: min(100% - 28px, 1180px);
        min-height: 88px;
        gap: 18px;
    }

    .maluquer-header__nav {
        display: none;
    }

    .maluquer-header__logo {
        width: 160px;
        min-width: 160px;
        min-height: 70px;
    }

    .maluquer-header__logo img {
        max-height: 70px;
    }

    .maluquer-header__toggle {
        display: inline-flex;
    }

    .maluquer-mobile-menu {
        position: fixed;
        top: 88px;
        left: 0;
        z-index: 9998;
        width: 100%;
        height: calc(100vh - 88px);
        padding: 22px 18px 34px;
        background:
            radial-gradient(circle at top left, rgba(200, 163, 90, .18), transparent 34%),
            var(--maluquer-green-dark);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: all .25s ease;
        display: block;
    }

    .maluquer-mobile-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .maluquer-mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .maluquer-mobile-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        padding: 14px 16px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 16px;
        color: var(--maluquer-white);
        background: rgba(255, 255, 255, .06);
        font-family: Arial, Helvetica, sans-serif;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: .05em;
        text-transform: uppercase;
        text-decoration: none !important;
    }

    .maluquer-mobile-menu a:hover,
    .maluquer-mobile-menu a:focus {
        background: var(--maluquer-gold);
        color: var(--maluquer-green-dark);
    }

    .maluquer-mobile-dropdown__head {
        display: grid;
        grid-template-columns: 1fr 52px;
        gap: 8px;
        align-items: center;
    }

    .maluquer-mobile-dropdown__btn {
        width: 52px;
        height: 52px;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 16px;
        background: var(--maluquer-gold);
        color: var(--maluquer-green-dark);
        font-size: 24px;
        font-weight: 800;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: all .22s ease;
    }

    .maluquer-mobile-dropdown__btn span {
        display: block;
        line-height: 1;
        transition: transform .22s ease;
    }

    .maluquer-mobile-dropdown.is-open .maluquer-mobile-dropdown__btn span {
        transform: rotate(45deg);
    }

    .maluquer-mobile-submenu {
        display: none !important;
        padding: 10px 0 0 14px !important;
        gap: 8px !important;
    }

    .maluquer-mobile-dropdown.is-open .maluquer-mobile-submenu {
        display: flex !important;
    }

    .maluquer-mobile-submenu a {
        min-height: 46px;
        font-size: 13px;
        text-transform: none;
        letter-spacing: .02em;
        background: rgba(255, 255, 255, .04);
    }

    .maluquer-mobile-reserve {
        background: var(--maluquer-gold) !important;
        color: var(--maluquer-green-dark) !important;
        justify-content: center !important;
        box-shadow: 0 12px 28px rgba(200, 163, 90, .25);
    }
}

@media (max-width: 520px) {
    body {
        padding-top: 82px;
    }

    .maluquer-header__inner {
        min-height: 82px;
        width: calc(100% - 22px);
    }

    .maluquer-header__logo {
        width: 138px;
        min-width: 138px;
        min-height: 64px;
    }

    .maluquer-header__logo img {
        max-height: 64px;
    }

    .maluquer-mobile-menu {
        top: 82px;
        height: calc(100vh - 82px);
    }
}

/* ==================================================
   FOOTER MALUQUER QUATTRO - COMPACTO
================================================== */

.maluquer-footer,
.maluquer-footer * {
    box-sizing: border-box;
}

.maluquer-footer {
    --maluquer-footer-green: #092b2f;
    --maluquer-footer-green-dark: #061f22;
    --maluquer-footer-card: rgba(255, 255, 255, .055);
    --maluquer-footer-gold: #d9ae48;
    --maluquer-footer-gold-light: #f0d27c;
    --maluquer-footer-white: #ffffff;
    --maluquer-footer-soft: rgba(255, 255, 255, .72);
    --maluquer-footer-border: rgba(255, 255, 255, .12);
    --maluquer-footer-gold-border: rgba(217, 174, 72, .42);
    --maluquer-footer-shadow: 0 18px 38px rgba(0, 0, 0, .22);

    width: 100%;
    background:
        radial-gradient(circle at top left, rgba(217, 174, 72, .10), transparent 32%),
        linear-gradient(135deg, #061b1e 0%, var(--maluquer-footer-green) 54%, #06363c 100%);
    color: var(--maluquer-footer-white);
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.maluquer-footer a {
    text-decoration: none !important;
}

/* Footer principal */

.maluquer-footer__main {
    padding: 48px 0 42px;
}

.maluquer-footer__container {
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr .6fr .95fr;
    gap: 56px;
    align-items: start;
}

/* Marca */

.maluquer-footer__brand {
    max-width: 440px;
}

.maluquer-footer__logo {
    display: inline-flex;
    width: 100%;
    max-width: 310px;
    margin-bottom: 22px;
}

.maluquer-footer__logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    box-shadow: var(--maluquer-footer-shadow);
}

.maluquer-footer__brand p {
    max-width: 440px;
    margin: 0;
    color: var(--maluquer-footer-soft);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
}

.maluquer-footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.maluquer-footer__badges span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 15px;
    border: 1px solid var(--maluquer-footer-gold-border);
    border-radius: 999px;
    color: var(--maluquer-footer-gold-light);
    font-size: 13px;
    font-weight: 800;
}

/* Títulos footer */

.maluquer-footer h2 {
    position: relative;
    margin: 0 0 36px;
    color: var(--maluquer-footer-white);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .02em;
}

.maluquer-footer h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--maluquer-footer-gold-light), var(--maluquer-footer-gold));
}

/* Navegación footer */

.maluquer-footer__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.maluquer-footer__nav li {
    margin-bottom: 16px;
}

.maluquer-footer__nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--maluquer-footer-soft);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    transition: all .22s ease;
}

.maluquer-footer__nav a::before {
    content: "›";
    color: var(--maluquer-footer-gold-light);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-1px);
}

.maluquer-footer__nav a:hover,
.maluquer-footer__nav a:focus {
    color: var(--maluquer-footer-gold-light);
    transform: translateX(4px);
}

/* Contacto */

.maluquer-footer__contact {
    width: 100%;
}

.maluquer-footer__contact-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 13px;
    align-items: center;
    min-height: 76px;
    padding: 15px 17px;
    margin-bottom: 13px;
    border: 1px solid var(--maluquer-footer-border);
    border-radius: 17px;
    background: var(--maluquer-footer-card);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.maluquer-footer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--maluquer-footer-gold-light), var(--maluquer-footer-gold));
    color: #061f22;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.maluquer-footer__contact-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--maluquer-footer-white);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.maluquer-footer__contact-card a,
.maluquer-footer__contact-card span {
    color: var(--maluquer-footer-soft);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    word-break: break-word;
}

.maluquer-footer__contact-card a:hover,
.maluquer-footer__contact-card a:focus {
    color: var(--maluquer-footer-gold-light);
}

/* Botón reservar footer */

.maluquer-footer__reserve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    padding: 14px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--maluquer-footer-gold-light), var(--maluquer-footer-gold));
    color: #061f22 !important;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .16);
    transition: all .22s ease;
}

.maluquer-footer__reserve:hover,
.maluquer-footer__reserve:focus {
    background: var(--maluquer-footer-white);
    color: #061f22 !important;
    transform: translateY(-2px);
}

/* Subfooter */

.maluquer-footer__bottom {
    border-top: 1px solid var(--maluquer-footer-border);
    background: rgba(0, 0, 0, .14);
}

.maluquer-footer__bottom-inner {
    width: min(1180px, calc(100% - 56px));
    min-height: 62px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.maluquer-footer__bottom p {
    margin: 0;
    color: var(--maluquer-footer-soft);
    font-size: 14px;
    font-weight: 500;
}

.maluquer-footer__legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0;
}

.maluquer-footer__legal a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--maluquer-footer-soft);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    transition: color .22s ease;
}

.maluquer-footer__legal a:not(:last-child)::after {
    content: "|";
    display: inline-block;
    margin: 0 14px;
    color: rgba(255, 255, 255, .45);
    font-weight: 500;
}

.maluquer-footer__legal a:hover,
.maluquer-footer__legal a:focus {
    color: var(--maluquer-footer-gold-light);
}

/* ==================================================
   RESPONSIVE FOOTER
================================================== */

@media (max-width: 1180px) {
    .maluquer-footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 42px;
    }

    .maluquer-footer__brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .maluquer-footer__logo {
        max-width: 300px;
    }

    .maluquer-footer__brand p {
        max-width: 680px;
    }
}

@media (max-width: 820px) {
    .maluquer-footer__main {
        padding: 42px 0 36px;
    }

    .maluquer-footer__container {
        width: min(100% - 32px, 720px);
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .maluquer-footer__brand {
        text-align: center;
        margin: 0 auto;
    }

    .maluquer-footer__logo {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .maluquer-footer__brand p {
        margin-left: auto;
        margin-right: auto;
        font-size: 15px;
        line-height: 1.65;
    }

    .maluquer-footer__badges {
        justify-content: center;
    }

    .maluquer-footer h2 {
        font-size: 20px;
        margin-bottom: 32px;
        text-align: center;
    }

    .maluquer-footer h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .maluquer-footer__nav ul {
        text-align: center;
    }

    .maluquer-footer__nav li {
        margin-bottom: 14px;
    }

    .maluquer-footer__nav a {
        font-size: 15px;
    }

    .maluquer-footer__contact-card {
        min-height: auto;
        padding: 14px 15px;
    }

    .maluquer-footer__contact-card a,
    .maluquer-footer__contact-card span {
        font-size: 15px;
    }

    .maluquer-footer__reserve {
        min-height: 48px;
        font-size: 15px;
    }

    .maluquer-footer__bottom-inner {
        width: min(100% - 32px, 720px);
        min-height: auto;
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }

    .maluquer-footer__legal {
        order: 1;
        width: 100%;
        justify-content: center;
        flex-direction: row !important;
        gap: 0;
        text-align: center;
    }

    .maluquer-footer__legal a {
        font-size: 13px;
    }

    .maluquer-footer__legal a:not(:last-child)::after {
        margin: 0 9px;
    }

    .maluquer-footer__bottom p {
        order: 2;
        width: 100%;
        text-align: center;
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (max-width: 520px) {
    .maluquer-footer__main {
        padding: 36px 0 32px;
    }

    .maluquer-footer__container {
        width: calc(100% - 28px);
        gap: 34px;
    }

    .maluquer-footer__logo {
        max-width: 250px;
        margin-bottom: 20px;
    }

    .maluquer-footer__brand p {
        font-size: 14px;
    }

    .maluquer-footer__badges {
        gap: 8px;
        margin-top: 22px;
    }

    .maluquer-footer__badges span {
        min-height: 36px;
        padding: 8px 13px;
        font-size: 13px;
    }

    .maluquer-footer h2 {
        font-size: 19px;
    }

    .maluquer-footer__contact-card {
        grid-template-columns: 40px 1fr;
        gap: 12px;
        border-radius: 16px;
    }

    .maluquer-footer__icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .maluquer-footer__contact-card strong {
        font-size: 12px;
    }

    .maluquer-footer__contact-card a,
    .maluquer-footer__contact-card span {
        font-size: 14px;
    }

    .maluquer-footer__legal {
        justify-content: center;
        flex-direction: row !important;
        flex-wrap: wrap;
    }

    .maluquer-footer__legal a {
        font-size: 12px;
    }

    .maluquer-footer__legal a:not(:last-child)::after {
        margin: 0 7px;
    }

    .maluquer-footer__bottom p {
        font-size: 12px;
    }
}