/* Evento 013: menus existentes de paginas con head-algo.php, excluido head.php. */
@font-face {
    font-family: "Menu Riviera Nights";
    src: url("../fonts/riviera-nights-medium.woff") format("woff");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
#nav {
    align-items: center;
    background-color: rgba(42, 74, 42, 0.4);
}
#nav #menu-principal,
#nav > ul {
    justify-content: center;
    align-content: center;
}
#nav #menu-principal a,
#nav > ul > li > a {
    font-family: "Menu Riviera Nights", Helvetica, Arial, sans-serif;
    font-weight: 500;
}
@media screen and (min-width: 737px) {
    #nav #menu-principal,
    #nav > ul {
        height: auto;
        min-height: 3.25em;
        padding-right: 175px;
    }
    #nav #menu-principal a,
    #nav > ul > li > a {
        font-size: 12px;
        letter-spacing: 2px;
        line-height: 22px;
        padding: 0.35em 0.45em;
    }
}
@media screen and (max-width: 736px) {
    #nav .logo {
        align-self: center;
    }
    #nav .logo .logo-movil {
        height: 3em;
        top: 0;
    }
}
@media (hover: hover) and (pointer: fine) {
    #nav #menu-principal > li > a,
    #nav > ul > li > a {
        position: relative;
        overflow: hidden;
    }
    #nav #menu-principal > li > a::before,
    #nav #menu-principal > li > a::after,
    #nav > ul > li > a::before,
    #nav > ul > li > a::after {
        content: "";
        position: absolute;
        left: 0.45em;
        right: 0.45em;
        bottom: 1px;
        height: 1px;
        background: #9bf1ff;
        opacity: 0;
        pointer-events: none;
    }
    #nav #menu-principal > li > a::after,
    #nav > ul > li > a::after {
        height: 2px;
        background: linear-gradient(90deg, transparent 45%, #9bf1ff 45%, #9bf1ff 55%, transparent 55%);
        transform: translateX(-55%);
    }
    #nav #menu-principal > li > a:hover,
    #nav > ul > li > a:hover {
        color: #9bf1ff;
    }
    #nav #menu-principal > li > a:hover::before,
    #nav > ul > li > a:hover::before {
        opacity: 0.3;
    }
    #nav #menu-principal > li > a:hover::after,
    #nav > ul > li > a:hover::after {
        opacity: 1;
        animation: menu-interiores-013 1.2s linear infinite;
    }
    @keyframes menu-interiores-013 {
        from { transform: translateX(-55%); }
        to { transform: translateX(55%); }
    }
    @media (prefers-reduced-motion: reduce) {
        #nav #menu-principal > li > a:hover::after,
        #nav > ul > li > a:hover::after {
            animation: none;
            transform: none;
        }
    }
}

/* Evento 015: subrayado blanco en reposo; azul movil en hover. */
#nav #menu-principal > li > a,
#nav > ul > li > a {
    position: relative;
    overflow: hidden;
}
#nav #menu-principal > li > a::before,
#nav > ul > li > a::before {
    content: "";
    position: absolute;
    left: 0.45em;
    right: 0.45em;
    bottom: 1px;
    height: 1px;
    background: #ffffff;
    opacity: 1;
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
#nav #menu-principal > li > a:hover::before,
#nav > ul > li > a:hover::before {
    background: #9bf1ff;
    opacity: 0.3;
}
}

/* Evento 015: todas las anclas de la ficha juntas, debajo del menu general. */
#nav #menu-principal > li.menu-secciones {
    display: block;
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
}
#nav #menu-principal > li.menu-secciones > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: visible;
}
#nav #menu-principal .menu-secciones li {
    display: block;
    flex: 0 0 auto;
}
#nav #menu-principal .menu-secciones a {
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 18px;
    padding: 0.4em 0.5em;
    white-space: nowrap;
}

/* Evento 020: retirar enlaces superiores; fondo solo al bajar de la parte superior. */
#nav > #menu-principal {
    display: none;
}
#nav {
    background-color: transparent;
    box-shadow: none;
}
#nav.con-scroll {
    background-color: rgba(42, 74, 42, 0.4);
    box-shadow: 0 0 0.25em 0 rgba(0, 0, 0, 0.15);
}

/* 036: barra interior con el formato de la home; solo logo y boton MENU. */
#nav,
.background .trigger {
    --menu036-base: 17pt;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    text-shadow: none;
    -webkit-text-stroke: 0;
}
#nav {
    font-size: var(--menu036-base);
    letter-spacing: 0.25em;
    line-height: 3.25em;
}
#nav .logo {
    font-size: 0.8em;
    height: auto;
    line-height: inherit;
    padding: 0 1.5em;
    color: #ffffff;
    text-shadow: none;
}
#nav .logo strong {
    font-weight: 700;
    margin-right: 0.325em;
}
.background .trigger {
    font-size: calc(var(--menu036-base) * 0.8);
    height: 4.0625em;
    line-height: 4.0625em;
    letter-spacing: 0.3125em;
    right: 0;
    padding-left: 0.75em;
    padding-right: 2em;
}
.background .trigger .icono {
    height: 12px;
    margin-left: calc(1.875em - 24px);
}
.background .trigger span:nth-child(2) { top: 5px; }
.background .trigger span:last-child { top: 10px; }
.background .trigger.on span:first-child,
.background .trigger.on span:nth-child(2),
.background .trigger.on span:last-child { top: 5px; }
@media screen and (max-width: 1680px) {
    #nav, .background .trigger { --menu036-base: 14pt; }
    .background .trigger .icono { margin-left: calc(2.25em - 24px); }
}
@media screen and (max-width: 1280px) {
    #nav, .background .trigger { --menu036-base: 12pt; }
    .background .trigger .icono { margin-left: calc(2.5em - 24px); }
}
@media screen and (max-width: 736px) {
    #nav { line-height: 2.75em; }
    #nav .logo { height: 2.75em; line-height: 2.75em; padding: 0 0.625em; }
    .background .trigger {
        font-size: 0;
        height: calc(var(--menu036-base) * 2.75);
        width: calc(var(--menu036-base) * 2.6);
        padding-left: 0;
        padding-right: calc(var(--menu036-base) * 0.8);
        justify-content: flex-end;
    }
    .background .trigger .icono { margin-left: 0; }
}
@media screen and (max-width: 360px) {
    #nav, .background .trigger { --menu036-base: 11pt; }
}
@media (hover: hover) and (pointer: fine) {
    .background .trigger:hover { color: #9bf1ff; }
    .background .trigger:hover span { background-color: #9bf1ff; }
}

/* 037: idiomas interiores con la tipografia de la fila de la home. */
#nav .logo,
#menub > ul > li > a.logo,
#menub > ul > li > a[hreflang] {
    border-bottom: 0;
    text-decoration: none;
}
#menub > ul > li > a[hreflang] {
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 13.6pt;
    font-weight: 600;
    letter-spacing: 0.25em;
    line-height: 2.5em;
    text-shadow: none;
    -webkit-text-stroke: 0;
}
@media screen and (max-width: 1680px) {
    #menub > ul > li > a[hreflang] { font-size: 11.2pt; }
}
@media screen and (max-width: 1280px) {
    #menub > ul > li > a[hreflang] { font-size: 9.6pt; }
}
@media screen and (max-width: 360px) {
    #menub > ul > li > a[hreflang] { font-size: 8.8pt; }
}

/* 038: tipografia de los tres botones blancos del menu interior. */
#menub > ul > li > div > p.button {
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-shadow: none;
    -webkit-text-stroke: 0;
}

/* 039: enlaces interiores de todos los grupos del menu de barcos. */
#menub .dosbarcos > a.special,
#menub .dosbarcosUno > a.special,
#menub .dosbarcosDos > a.special {
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-shadow: none;
    -webkit-text-stroke: 0;
}
/* Conservar el aspecto de las flechas y circulos existentes. */
#menub .dosbarcos > a.special::before,
#menub .dosbarcosUno > a.special::before,
#menub .dosbarcosDos > a.special::before {
    letter-spacing: 0.08em;
    -webkit-text-stroke: 0.25px;
}
@media screen and (min-width: 737px) {
    #menub .dosbarcos > a.special::before,
    #menub .dosbarcosUno > a.special::before,
    #menub .dosbarcosDos > a.special::before {
        text-shadow: 0 0 0.5px rgba(53, 184, 143, 0.25);
    }
    #menub .dosbarcos > a.special:hover::before,
    #menub .dosbarcosUno > a.special:hover::before,
    #menub .dosbarcosDos > a.special:hover::before {
        text-shadow: 0 0 0.5px rgba(69, 200, 159, 0.25);
    }
}

/* 048: franja de contacto con la tipografia del menu interior. */
#footer3 .fixed_footer p,
#footer3 .fixed_footer a,
#footer3 .fixed_footer .label {
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-shadow: none;
    -webkit-text-stroke: 0;
    overflow-wrap: anywhere;
}
