﻿html, body {
    margin: 0;
    height: 100%;
}


:root {
    --ad-text: #0b0f12;
    --ad-muted: #4b5a63;
    --ad-primary: #0e6f79;
    --ad-primary-700: #0b5f68;
    --ad-footer: #083b44;
    --ad-footer-2: #062f36;
    --ad-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --ad-scene-h: 400px;
    --ad-scene-scale: 95%;
    --ad-scene-offset: 0px; 
}

.access-denied {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #FCFCFC;
    color: var(--ad-text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.access-denied__container {
    flex: 1 1 auto;
    width: min(980px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 48px);
}

.access-denied__title {
    font-size: clamp(40px, 4.2vw, 64px);
    line-height: 1.05;
    margin: 0 0 14px 0;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.access-denied__subtitle {
    margin: 0 0 26px 0;
    max-width: 720px;
    color: var(--ad-muted);
    font-size: 15px;
    line-height: 1.6;
}

.access-denied__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
    user-select: none;
}

    .ad-btn:active {
        transform: translateY(1px);
    }

.ad-btn--outline {
    color: var(--ad-primary);
    border-color: rgba(14, 111, 121, 0.45);
    background: #fff;
}

    .ad-btn--outline:hover {
        border-color: rgba(14, 111, 121, 0.9);
        background: rgba(14, 111, 121, 0.06);
    }

.ad-btn--primary {
    color: #fff;
    background: var(--ad-primary);
    box-shadow: var(--ad-shadow);
}

    .ad-btn--primary:hover {
        background: var(--ad-primary-700);
    }

.ad-btn__icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    font-weight: 700;
}


.access-denied__scene {
    flex: 0 0 var(--ad-scene-h);
    height: var(--ad-scene-h);
    width: 100%;
    background-image: url("/images/montannasLanding.jpg");
    background-repeat: no-repeat;
    /* Evita inflar montañas */
    background-size: var(--ad-scene-scale) auto;
    /* Pegado abajo + offset opcional para “subir” la escena */
    background-position: center calc(100% - var(--ad-scene-offset));
}


.access-denied__footer {
    flex: 0 0 auto;
    background: var(--ad-footer);
    color: rgba(255,255,255,0.88);
}

.access-denied__footer-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 34px clamp(18px, 4vw, 48px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.access-denied__footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.access-denied__logo {
    height: 80px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.access-denied__footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}

    .access-denied__footer-links a {
        color: inherit;
        text-decoration: none;
    }

        .access-denied__footer-links a:hover {
            color: rgba(255,255,255,0.95);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

.ad-divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.18);
}

.access-denied__footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ad-social {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.18);
    font-weight: 700;
    font-size: 12px;
}

    .ad-social:hover {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.32);
    }

.access-denied__footer-bottom {
    background: var(--ad-footer-2);
    color: rgba(255,255,255,0.60);
    font-size: 11px;
    padding: 18px clamp(18px, 4vw, 48px);
    text-align: center;
}

    .access-denied__footer-bottom span {
        display: block;
        width: min(1100px, 100%);   
        margin: 0 auto;
    }


@media (max-width: 860px) {
    :root {
        --ad-scene-h: 260px;
        --ad-scene-scale: 120%;
        --ad-scene-offset: 70px;
    }

    .access-denied__footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .access-denied__footer-social {
        justify-content: center;
    }
}

@media (max-width: 420px) {
    :root {
        --ad-scene-h: 230px;
        --ad-scene-scale: 130%;
        --ad-scene-offset: 95px;
    }

    .access-denied__footer-inner {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .access-denied__footer-bottom {
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

@media (max-height: 740px) {
    :root {
        --ad-scene-h: 235px;
        --ad-scene-offset: 0px;
    }
}
