/* =========================================================================
   fdh-nav.css — Cabecera y pie de la web pública
   ========================================================================= */

/* ---------- Cabecera ---------- */

/* Aviso de promo + cabecera van pegados arriba como una sola pieza. */
.fdh-top {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.fdh-header {
    /* Siempre sólida: la cabecera no se superpone al hero, así que en
       transparente dejaba ver el fondo crema y el texto blanco desaparecía. */
    background: var(--fdh-tinta);
    transition: box-shadow .3s ease;
}

.fdh-header__inner {
    max-width: var(--fdh-ancho-ancho);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: var(--fdh-s3);
    padding: .85rem 1.25rem;
}

.fdh-header.compacta {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .22);
}

.fdh-header__logo {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
}

.fdh-header__logo img {
    height: 40px;
    width: auto;
}

.fdh-nav {
    display: flex;
    align-items: center;
    gap: .15rem;
    margin-left: auto;
}

.fdh-nav a {
    color: rgba(255, 255, 255, .82) !important;
    font-size: .84rem;
    font-weight: 400;
    padding: .55rem .72rem;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}

.fdh-nav a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .09);
}

.fdh-nav a.activo {
    color: #fff !important;
    font-weight: 600;
}

.fdh-nav a.activo::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--fdh-rosa);
    border-radius: 2px;
    margin-top: 3px;
}

.fdh-header__acciones {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 0 0 auto;
}

.fdh-header__cta {
    background: var(--fdh-oro);
    color: var(--fdh-tinta) !important;
    font-weight: 700;
    font-size: .82rem;
    padding: .62em 1.25em;
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease;
    border: 0;
    cursor: pointer;
}

.fdh-header__cta:hover {
    background: var(--fdh-oro-osc);
    transform: translateY(-1px);
    color: var(--fdh-tinta) !important;
}

.fdh-header__login {
    color: rgba(255, 255, 255, .8) !important;
    font-size: .82rem;
    text-decoration: none !important;
    padding: .55rem .6rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    background: none;
    border: 0;
    font-family: var(--fdh-texto);
}

.fdh-header__login:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .09);
}

.fdh-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, .1);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    place-items: center;
    flex: 0 0 auto;
}

.fdh-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative;
    transition: transform .25s ease, background .25s ease;
}

.fdh-burger span::before,
.fdh-burger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s ease;
}

.fdh-burger span::before {
    top: -6px;
}

.fdh-burger span::after {
    top: 6px;
}

body.fdh-menu-abierto .fdh-burger span {
    background: transparent;
}

body.fdh-menu-abierto .fdh-burger span::before {
    transform: translateY(6px) rotate(45deg);
}

body.fdh-menu-abierto .fdh-burger span::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Aviso de promo sobre la cabecera */
.fdh-avisobarra {
    /* Rosa oscuro: el texto va en blanco y a 13px, y sobre el rosa base se
       queda en 3.8:1 de contraste. */
    background: var(--fdh-rosa-osc);
    color: #fff !important;
    text-align: center;
    font-size: .82rem;
    font-weight: 500;
    padding: .55rem 1rem;
    display: block;
    text-decoration: none !important;
    position: relative;
    z-index: 1001;
}

.fdh-avisobarra a {
    color: #fff !important;
}

.fdh-avisobarra:hover {
    color: #fff !important;
    background: #9d2f4c;
    text-decoration: none !important;
}

.fdh-avisobarra b {
    font-weight: 700;
}

.fdh-avisobarra .reloj {
    font-variant-numeric: tabular-nums;
    background: rgba(0, 0, 0, .2);
    border-radius: 5px;
    padding: .1em .5em;
    margin-left: .4em;
}

@media (max-width: 1120px) {
    .fdh-burger {
        display: grid;
    }

    .fdh-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(340px, 86vw);
        background: var(--fdh-tinta);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 5.5rem 1.4rem 2rem;
        transform: translateX(105%);
        transition: transform .32s cubic-bezier(.3, .8, .4, 1);
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0, 0, 0, .35);
        margin-left: 0;
    }

    body.fdh-menu-abierto .fdh-nav {
        transform: none;
    }

    .fdh-nav a {
        font-size: 1.02rem;
        padding: .95rem .3rem;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        border-radius: 0;
    }

    .fdh-nav a.activo::after {
        display: none;
    }

    .fdh-nav a.activo {
        color: var(--fdh-oro) !important;
    }

    /* Con el menú fuera del flujo (es fixed), nada empuja las acciones hacia
       la derecha, y el burger se quedaba flotando a media cabecera. */
    .fdh-header__acciones {
        margin-left: auto;
    }

    .fdh-header__acciones .fdh-header__login {
        display: none;
    }

    body.fdh-menu-abierto {
        overflow: hidden;
    }

    .fdh-nav__movil-extra {
        display: block;
        margin-top: auto;
        padding-top: 1.5rem;
    }
}

@media (min-width: 1121px) {
    .fdh-nav__movil-extra {
        display: none;
    }
}

@media (max-width: 560px) {
    .fdh-header__cta {
        font-size: .74rem;
        padding: .58em 1em;
    }

    .fdh-header__logo img {
        height: 32px;
    }

    .fdh-header__inner {
        padding: .7rem .9rem;
        gap: .5rem;
    }
}

/* ---------- Pie ---------- */
.fdh-footer {
    background: var(--fdh-tinta);
    color: rgba(250, 247, 242, .72);
    padding: var(--fdh-s6) var(--fdh-s3) var(--fdh-s3);
    font-size: .9rem;
}

.fdh-footer__grid {
    max-width: var(--fdh-ancho);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--fdh-s4);
}

.fdh-footer h4 {
    color: #fff;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
    margin-bottom: var(--fdh-s2);
}

.fdh-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
}

.fdh-footer li {
    margin: 0;
}

.fdh-footer a {
    color: rgba(250, 247, 242, .72) !important;
    text-decoration: none !important;
    font-size: .88rem;
    transition: color .18s ease;
}

.fdh-footer a:hover {
    color: var(--fdh-oro) !important;
}

.fdh-footer__marca img {
    height: 40px;
    margin-bottom: var(--fdh-s2);
}

.fdh-footer__marca p {
    font-size: .88rem;
    font-weight: 300;
    max-width: 34ch;
    line-height: 1.6;
}

.fdh-footer__redes {
    display: flex;
    gap: .6rem;
    margin-top: var(--fdh-s2);
}

.fdh-footer__redes a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #fff !important;
    transition: background .2s ease, transform .2s ease;
}

.fdh-footer__redes a:hover {
    background: var(--fdh-rosa);
    transform: translateY(-2px);
    color: #fff !important;
}

.fdh-footer__legal {
    max-width: var(--fdh-ancho);
    margin: var(--fdh-s5) auto 0;
    padding-top: var(--fdh-s3);
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex-wrap: wrap;
    gap: var(--fdh-s2);
    justify-content: space-between;
    font-size: .78rem;
    color: rgba(250, 247, 242, .5);
}

.fdh-footer__legal a {
    font-size: .78rem;
}

/* Botón flotante de WhatsApp */
.fdh-wa {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 880;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    text-decoration: none !important;
    transition: transform .2s ease;
}

.fdh-wa:hover {
    transform: scale(1.08);
    color: #fff !important;
}

body.tiene-sticky .fdh-wa {
    bottom: 84px;
}

@media (max-width: 900px) {
    .fdh-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .fdh-footer__marca {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .fdh-footer__grid {
        grid-template-columns: 1fr;
    }

    .fdh-footer__legal {
        flex-direction: column;
        gap: .5rem;
    }
}
