:root {
    --ride-blue: #286eda;
    --ride-blue-dark: #1554b8;
    --ride-ink: #12233f;
    --ride-muted: #60708a;
    --ride-surface: #f5f8fd;
    --ride-border: #dce5f2;
    --ride-white: #ffffff;
    --ride-shadow: 0 22px 60px rgba(18, 35, 63, 0.13);
    --ride-container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    color: var(--ride-ink);
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
    background: var(--ride-white);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    display: block;
    min-width: 0;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value {
    min-width: 0;
    text-align: left;
}

.web-container {
    width: min(
        calc(100% - 40px),
        var(--ride-container)
    );
    margin-inline: auto;
}


/* =====================================================
   ENCABEZADO Y NAVEGACIÓN
===================================================== */

.web-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(
        255,
        255,
        255,
        0.18
    );
}

.web-navbar {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.web-brand img {
    width: 184px;
    height: auto;
    filter: brightness(0) invert(1);
}

.web-navigation {
    display: flex;
    align-items: center;
    gap: 25px;
    color: #fff;
}

.web-navigation > a:not(.web-book-button) {
    position: relative;
    font-size: 0.84rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.web-navigation > a:not(.web-book-button)::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    content: "";
    background: #fff;
    transform: scaleX(0);
    transition: transform 0.16s ease;
}

.web-navigation > a:hover::after {
    transform: scaleX(1);
}

.web-book-button,
.solid-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    background: var(--ride-blue);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(
        40,
        110,
        218,
        0.28
    );
}


/* =====================================================
   SELECTOR DE IDIOMA
===================================================== */

.web-language {
    position: relative;
}

.web-language-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px;
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.web-language-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: none;
    width: 150px;
    padding: 8px;
    color: var(--ride-ink);
    background: #fff;
    border: 1px solid var(--ride-border);
    border-radius: 12px;
    box-shadow: var(--ride-shadow);
}

[dir="rtl"] .web-language-menu {
    right: auto;
    left: 0;
}

.web-language.is-open .web-language-menu {
    display: grid;
}

.web-language-menu a {
    padding: 9px 10px;
    font-size: 0.86rem;
    text-decoration: none;
    border-radius: 7px;
}

.web-language-menu a:hover,
.web-language-menu a[aria-current="page"] {
    color: var(--ride-blue);
    background: #eef5ff;
}


/* =====================================================
   BOTÓN DEL MENÚ MÓVIL
===================================================== */

.web-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #fff;
    font-size: 1.55rem;
    background: rgba(
        255,
        255,
        255,
        0.12
    );
    border: 1px solid rgba(
        255,
        255,
        255,
        0.24
    );
    border-radius: 10px;
    cursor: pointer;
}

.web-navigation-header,
.web-menu-overlay {
    display: none;
}

.web-menu-close {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    background: transparent;
    border: 0;
    cursor: pointer;
}


/* =====================================================
   NAVBAR DE PÁGINAS INTERNAS
===================================================== */

.web-page-inner .web-header {
    background: #fff;
    border-bottom-color: var(--ride-border);
    box-shadow: 0 8px 30px rgba(
        18,
        35,
        63,
        0.08
    );
}

.web-page-inner .web-brand img {
    filter: none;
}

.web-page-inner .web-navigation {
    color: var(--ride-ink);
}

.web-page-inner
.web-navigation
> a:not(.web-book-button)::after {
    background: var(--ride-blue);
}

.web-page-inner .web-language-button {
    color: var(--ride-ink);
}

.web-page-inner .web-menu-toggle {
    color: var(--ride-ink);
    background: #eef5ff;
    border-color: var(--ride-border);
}


/* =====================================================
   PIE DE PÁGINA
===================================================== */

.web-footer {
    padding: 68px 0 22px;
    color: rgba(
        255,
        255,
        255,
        0.75
    );
    background: #0f1c30;
}

.web-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 1fr;
    gap: 70px;
}

.web-footer-logo {
    width: 190px;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}

.web-footer p {
    max-width: 410px;
    line-height: 1.7;
}

.web-footer h2 {
    margin: 0 0 17px;
    color: #fff;
    font-size: 0.94rem;
}

.web-footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.web-footer a {
    text-decoration: none;
}

.web-footer a:hover {
    color: #fff;
}

.web-footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 52px;
    padding-top: 20px;
    font-size: 0.76rem;
    border-top: 1px solid rgba(
        255,
        255,
        255,
        0.12
    );
}


/* =====================================================
   BOTÓN FLOTANTE DE WHATSAPP
===================================================== */

.web-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    display: flex;
    height: 56px;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    background: #20b95a;
    border: 4px solid #fff;
    border-radius: 999px;
    box-shadow: 0 13px 35px rgba(
        0,
        0,
        0,
        0.24
    );
}

.web-whatsapp i {
    font-size: 1.35rem;
}


/* =====================================================
   TABLET Y MENÚ LATERAL
===================================================== */

@media (max-width: 1080px) {
    .web-menu-toggle {
        display: grid;
    }

    .web-navigation {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1002;
        display: flex;
        width: min(470px, 82vw);
        padding: 0 32px 28px;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        overflow-y: auto;
        color: var(--ride-ink);
        background: #fff;
        border-radius: 0;
        box-shadow: 12px 0 35px rgba(18, 35, 63, 0.16);
        transform: translateX(-105%);
        visibility: hidden;
        transition:
            transform 0.22s ease,
            visibility 0.22s ease;
    }

    .web-navigation.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .web-navigation-header {
        position: relative;
        display: flex;
        min-height: 112px;
        margin-bottom: 8px;
        align-items: center;
        justify-content: flex-start;
    }

    .web-navigation-header img {
        width: 155px;
        height: auto;
        filter: none;
    }

    .web-menu-close {
        position: absolute;
        top: 22px;
        right: -72px;
        z-index: 1003;
        display: grid;
    }

    .web-navigation
    > a:not(.web-book-button) {
        width: 100%;
        padding: 17px 0;
        color: var(--ride-ink);
        font-size: 0.9rem;
        font-weight: 650;
        border-bottom: 1px solid var(--ride-border);
        transition:
            color 0.15s ease,
            background 0.15s ease;
    }

    .web-navigation
    > a:not(.web-book-button):hover {
        color: var(--ride-blue);
    }

    .web-navigation
    > a:not(.web-book-button)::after {
        display: none;
    }

    .web-language {
        width: 100%;
        margin-top: 24px;
    }

    .web-language-button {
        width: 100%;
        min-height: 52px;
        padding: 0 18px;
        justify-content: center;
        gap: 12px;
        color: var(--ride-ink);
        background: #fff;
        border: 1px solid #eef1f6;
        border-radius: 12px;
        box-shadow: 0 10px 28px rgba(18, 35, 63, 0.09);
    }

    .web-language-button .bi-chevron-down {
        margin-left: auto;
    }

    [dir="rtl"]
    .web-language-button
    .bi-chevron-down {
        margin-right: auto;
        margin-left: 0;
    }

    .web-language-menu {
        position: absolute;
        top: auto;
        right: 0;
        bottom: calc(100% + 8px);
        width: 100%;
        margin-top: 0;
        box-shadow: var(--ride-shadow);
    }

    .web-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: block;
        padding: 0;
        background: rgba(5, 18, 37, 0.48);
        border: 0;
        opacity: 0;
        visibility: hidden;
        cursor: default;
        transition:
            opacity 0.22s ease,
            visibility 0.22s ease;
    }

    .web-menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

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

    [dir="rtl"] .web-navigation {
        right: 0;
        left: auto;
        box-shadow: -12px 0 35px rgba(18, 35, 63, 0.18);
        transform: translateX(105%);
    }

    [dir="rtl"] .web-navigation.is-open {
        transform: translateX(0);
    }

    [dir="rtl"] .web-menu-close {
        right: auto;
        left: -72px;
    }

    [dir="rtl"] .web-language-menu {
        right: auto;
        left: 0;
    }
}


/* =====================================================
   TELÉFONOS
===================================================== */

@media (max-width: 700px) {
    .web-container {
        width: min(
            calc(100% - 28px),
            var(--ride-container)
        );
    }

    .web-navbar {
        min-height: 76px;
    }

    .web-brand img {
        width: 145px;
    }

    .web-navigation {
        width: min(390px, 82vw);
        padding-right: 24px;
        padding-left: 24px;
    }

    .web-menu-close {
        right: -66px;
    }

    [dir="rtl"] .web-menu-close {
        right: auto;
        left: -66px;
    }

    .web-footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .web-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .web-whatsapp {
        right: 16px;
        bottom: 16px;
        width: 56px;
        padding: 0;
        justify-content: center;
    }

    .web-whatsapp span {
        display: none;
    }
}
