* {
    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);
}

/* Aurora / mesh-gradient background */
#aurora {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    filter: blur(70px) saturate(120%);
}

#aurora .blob {
    position: absolute;
    width: 46vmax;
    height: 46vmax;
    border-radius: 50%;
    opacity: 0.55;
    will-change: transform;
}

#aurora .b1 {
    background: radial-gradient(circle at 30% 30%, rgba(129, 140, 248, 0.85), transparent 60%);
    top: -14vmax;
    left: -8vmax;
    animation: drift1 26s ease-in-out infinite;
}

#aurora .b2 {
    background: radial-gradient(circle at 30% 30%, rgba(125, 211, 252, 0.75), transparent 60%);
    top: -6vmax;
    right: -12vmax;
    animation: drift2 32s ease-in-out infinite;
}

#aurora .b3 {
    background: radial-gradient(circle at 30% 30%, rgba(249, 168, 212, 0.7), transparent 60%);
    bottom: -16vmax;
    left: 8vmax;
    animation: drift3 30s ease-in-out infinite;
}

#aurora .b4 {
    background: radial-gradient(circle at 30% 30%, rgba(196, 181, 253, 0.7), transparent 60%);
    bottom: -12vmax;
    right: -6vmax;
    animation: drift4 36s ease-in-out infinite;
}

@keyframes drift1 {
    50% {
        transform: translate(14vmax, 10vmax) scale(1.15);
    }
}

@keyframes drift2 {
    50% {
        transform: translate(-12vmax, 12vmax) scale(1.1);
    }
}

@keyframes drift3 {
    50% {
        transform: translate(10vmax, -12vmax) scale(1.2);
    }
}

@keyframes drift4 {
    50% {
        transform: translate(-10vmax, -8vmax) scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    #aurora .blob {
        animation: none;
    }
}

/* Cursor spotlight — feature words revealed around the pointer */
#spotlight {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    --mx: 50%;
    --my: 42%;
    /* Gradiente moderno en -webkit-mask-image es válido; el inspector del IDE va atrasado */
    /*noinspection CssInvalidPropertyValue*/
    -webkit-mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000 0%, #000 34%, transparent 72%);
    mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000 0%, #000 34%, transparent 72%);
}


#spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(330px circle at var(--mx) var(--my),
    rgba(129, 140, 248, 0.14), transparent 60%);
}

#spotlight .sw-words {
    position: absolute;
    inset: 0;
}

#spotlight .sw-word {
    position: absolute;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(40, 40, 75, 0.62);
    transform: translate(-50%, -50%);
}

/* Each word grows and fades out — Flash-style zoom, revealed by the spotlight */
#spotlight .sw-zoom {
    display: inline-block;
    will-change: transform, opacity;
}

@keyframes swZoom {
    0% {
        transform: scale(0.45);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: scale(2.1);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    #spotlight .sw-zoom {
        animation: none !important;
    }
}

@media (hover: none) {
    #spotlight {
        display: none;
    }
}

.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);
}

#fc-logo {
    display: block;
    height: 52px;
    margin: 0 auto 36px;
    border-radius: 12px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.18));
    opacity: 0;
    transform: translateY(-10px);
}

.screenshot-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 240px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(16px);
}

.screenshot-wrap img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 14px;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.32),
    0 16px 36px rgba(0, 0, 0, 0.22),
    0 5px 12px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.06);
    display: block;
}

.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;
}

.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);
    }
}
