:root {
    --accent: #ff4141;
    --text: #ffffff;
    --surface: rgba(31, 31, 31, 0.95);
    --header-height-desktop: 100px;
    --header-height-tablet: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100%;
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .6)),
        url("../img/background-image.webp") center / cover no-repeat fixed;
}

.header-gruop {
    display: flex;
    align-items: center;
    min-height: var(--header-height-desktop);
    background-color: var(--surface);
    padding: 10px 40px;
    gap: 16px;
}

.header-gruop img {
    width: 75px;
    flex-shrink: 0;
}

.header-gruop h1 {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.right-group {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    width: 148px;
    min-height: 52px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color .2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-sesion {
    color: rgba(0, 0, 0, 0.85);
    background-color: rgba(255, 255, 255, 0.92);
}

.btn-register {
    color: rgba(255, 255, 255, 0.9);
    background-color: var(--surface);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

main {
    width: min(1100px, 90vw);
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height-desktop));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 0;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hero h2 {
    font-size: clamp(2rem, 5.5vw, 4rem);
    max-width: 14ch;
    line-height: 1.15;
}

.hero p {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    max-width: 55ch;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

footer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-align: center;
    padding: 1.5rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

:where(a, button):focus-visible {
    outline: 3px solid #ff9f9f;
    outline-offset: 3px;
}

.btn-ver-pagina {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ff4d4d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.btn-ver-pagina:hover {
    background-color: #e63b3b;
}

@media (max-width: 1024px) {
    .header-gruop {
        min-height: var(--header-height-tablet);
        padding: 10px 24px;
        gap: 12px;
    }

    .header-gruop img {
        width: 60px;
    }

    .header-gruop h1 {
        font-size: clamp(20px, 3vw, 34px);
    }

    .btn {
        width: 136px;
        min-height: 48px;
        font-size: 15px;
    }

    main {
        width: min(900px, 92vw);
        min-height: calc(100vh - var(--header-height-tablet));
        padding: 2.5rem 0;
    }

    .hero h2 {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .header-gruop {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: unset;
        padding: 16px 16px 12px;
        gap: 10px;
        text-align: center;
    }

    .header-gruop img {
        width: 52px;
    }

    .header-gruop h1 {
        font-size: 20px;
        letter-spacing: 0.5px;
    }

    .right-group {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .right-group .btn {
        flex: 1;
        max-width: 160px;
        min-height: 44px;
        font-size: 14px;
    }

    main {
        width: 100%;
        min-height: calc(100vh - 170px);
        padding: 2.5rem 20px 2rem;
        gap: 1.5rem;
        justify-content: flex-start;
    }

    .hero h2 {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
        max-width: 100%;
    }

    .hero p {
        font-size: 0.95rem;
        max-width: 100%;
        color: rgba(255, 255, 255, 0.82);
    }

    footer {
        font-size: 0.78rem;
        padding: 1rem 0 0.8rem;
    }
}
