:root {
    --bg-base: #07111f;
    --bg-soft: rgba(7, 17, 31, 0.72);
    --panel: rgba(10, 23, 40, 0.92);
    --panel-strong: rgba(8, 18, 32, 0.96);
    --border: rgba(160, 196, 255, 0.16);
    --text-main: #f4f7fb;
    --text-soft: #b6c4d9;
    --text-muted: #8a9bb4;
    --brand: #ac5dd0;
    --brand-strong: #9244bb;
    --brand-soft: #d8a6ec;
    --brand-tint: rgba(172, 93, 208, 0.16);
    --accent: #c889e5;
    --danger: #ff8c8c;
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.24);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container-max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
    background:
        linear-gradient(135deg, rgba(6, 15, 28, 0.9), rgba(5, 14, 24, 0.82)),
        url('../images/fondo.webp') center / cover no-repeat;
    color: var(--text-main);
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header"
        "main"
        "footer";
    min-height: 100vh;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

header {
    grid-area: header;
    position: relative;
    z-index: 2;
}

main {
    grid-area: main;
    position: relative;
    z-index: 2;
}

.page-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.backdrop-orb {
    position: absolute;
    border-radius: 999px;
    opacity: 0.38;
}

.orb-primary {
    width: 26rem;
    height: 26rem;
    top: -6rem;
    right: -5rem;
    background: radial-gradient(circle, rgba(172, 93, 208, 0.3), rgba(172, 93, 208, 0));
}

.orb-secondary {
    width: 24rem;
    height: 24rem;
    bottom: -7rem;
    left: -4rem;
    background: radial-gradient(circle, rgba(200, 137, 229, 0.24), rgba(200, 137, 229, 0));
}

.backdrop-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 70px 70px;
    opacity: 0.12;
}

.container-xl {
    width: min(100% - 2rem, var(--container-max));
}

.eyebrow,
.section-kicker,
.brand-kicker {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand);
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-soft));
    color: #130a18;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(172, 93, 208, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(172, 93, 208, 0.24);
    filter: brightness(1.02);
}

button,
input,
textarea,
select {
    font: inherit;
}

button:not(:disabled) {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.78;
}

.site-footer {
    grid-area: footer;
    position: relative;
    z-index: 2;
    width: min(100% - 2rem, var(--container-max));
    margin: 1.5rem auto 1.25rem;
    padding: 1.1rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(8, 18, 32, 0.92);
    box-shadow: var(--shadow-xl);
}

.footer-copy,
.footer-credit {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.footer-copy p,
.footer-credit {
    margin: 0;
}

.footer-title {
    margin: 0;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.site-footer a {
    color: var(--text-main);
}

.site-footer a:hover {
    color: var(--brand);
}

.site-footer img {
    width: 18px;
    height: 18px;
    animation: latido 2.4s infinite ease-in-out;
}

@keyframes latido {
    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.18);
    }

    70% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .site-footer {
        border-radius: 28px;
        flex-direction: column;
        text-align: center;
    }

    .footer-copy,
    .footer-credit {
        justify-content: center;
        flex-wrap: wrap;
    }
}