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

body {
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: rgb(255, 255, 255);
}

.page-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

/* Migaja de vuelta a la portada */
.home-link {
    position: absolute;
    top: 20px;
    left: 26px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: rgba(60, 60, 80, 0.45);
    transition: color 0.2s ease;
}

.home-link:hover {
    color: rgba(20, 20, 30, 0.8);
}

.footer-home {
    color: inherit;
    text-decoration: none;
}

.footer-home:hover {
    text-decoration: underline;
}

.principal {
    position: relative;
    width: 820px;
    max-width: 100%;
    padding: 52px 52px 56px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
    opacity: 0;
    transform: translateY(30px);
}

/* El h1 envuelve el logo en un enlace a la portada: sin esto el navegador
   subraya y colorea el logotipo tipográfico como un enlace cualquiera. */
.principal h1 a {
    color: inherit;
    text-decoration: none;
}

#fs-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 0 auto 36px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
    opacity: 0;
    transform: translateY(-10px);
}

.screenshot-wrap {
    display: block;
    width: fit-content;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13),
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(16px);
    line-height: 0;
}

.screenshot-wrap img {
    width: auto;
    max-width: 100%;
    display: block;
}

/* Capturas de una ventana suelta: ya traen su propio borde y sus esquinas
   redondeadas (~7 px). Redondear el marco por encima se come esas esquinas, así
   que aquí el radio se acerca al de la ventana y el marco solo pone la sombra. */
.screenshot-wrap.shot-window {
    border-radius: 5px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.description {
    margin-top: 32px;
    font-size: 15px;
    color: rgba(40, 40, 60, 0.7);
    line-height: 1.75;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
}

.requirements {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(60, 60, 80, 0.4);
    text-align: center;
    letter-spacing: 0.02em;
    opacity: 0;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 32px 0;
    opacity: 0;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 22px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: rgba(40, 40, 60, 0.8);
    transition: border-color 0.2s, background 0.2s;
    letter-spacing: 0.01em;
}

.btn:hover {
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.9);
}

.btn-primary {
    background: rgba(30, 30, 50, 0.88);
    border-color: transparent;
    color: rgba(255, 255, 255, 0.92);
}

.btn-primary:hover {
    background: rgba(20, 20, 40, 0.96);
    border-color: transparent;
}

.notice {
    margin: 18px auto 0;
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: rgba(120, 74, 6, 0.9);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    max-width: 560px;
    opacity: 0;
}

.notice strong {
    font-weight: 600;
}

.footer {
    margin-top: 28px;
    font-size: 12px;
    color: rgba(60, 60, 80, 0.38);
    letter-spacing: 0.04em;
    text-align: center;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer a:hover {
    color: rgba(60, 60, 80, 0.65);
}

.footer img {
    width: 18px;
    opacity: 0.5;
    vertical-align: middle;
}

/* Modal */
#modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#modal-box {
    position: relative;
    width: min(880px, 96vw);
    max-height: 90vh;
    background: rgb(255, 255, 255);
    border-radius: 22px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow-y: auto;
}

#modal-content {
    padding: 28px 32px 32px;
}

#modal-close {
    position: sticky;
    top: 11px;
    float: right;
    margin: 11px 12px 0 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.07);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
    transition: background 0.18s;
    z-index: 10;
}

#modal-close:hover {
    background: rgba(0, 0, 0, 0.13);
}

@media (max-width: 720px) {
    .principal {
        padding: 36px 22px 42px;
        border-radius: 22px;
    }

    #modal-overlay {
        align-items: flex-end;
    }

    #modal-box {
        width: 100%;
        max-height: 92dvh;
        border-radius: 20px 20px 0 0;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    #modal-content {
        padding: 16px 16px 28px;
    }

    #modal-close {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
}

@media (max-height: 500px) {
    #modal-overlay {
        align-items: flex-start;
        padding-top: 44px;
    }

    #modal-box {
        max-height: calc(100dvh - 44px);
        border-radius: 18px;
        width: min(880px, 96vw);
    }
}
