:root {
    --fondo: #0f0b1a;
    --superficie: #19132b;
    --borde: #2e2450;
    --texto: #ece8f8;
    --texto-suave: #a79ec7;
    --morado: #a78bfa;
    --morado-fuerte: #7c3aed;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    font-family: "Space Grotesk", system-ui, sans-serif;
    color: var(--texto);
    background:
        radial-gradient(ellipse 60% 40% at 50% -5%, rgba(124, 58, 237, 0.35), transparent 70%),
        var(--fondo);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 1.5rem 4rem;
}

header {
    text-align: center;
    max-width: 36rem;
    margin-bottom: 3.5rem;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.estado {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.4rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--borde);
    border-radius: 999px;
    background: var(--superficie);
    color: var(--texto-suave);
    font-size: 0.95rem;
}

.estado::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--morado);
    box-shadow: 0 0 10px var(--morado);
}

main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: 40rem;
}

.tarjeta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5rem;
    min-height: 11rem;
    padding: 1.6rem;
    border: 1px solid var(--borde);
    border-radius: 14px;
    background: var(--superficie);
    color: var(--texto);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.tarjeta:hover {
    border-color: var(--morado);
    background: #1e1636;
}

.tarjeta:focus-visible {
    outline: 2px solid var(--morado);
    outline-offset: 3px;
}

.tarjeta h2 {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.25;
}

.tarjeta p {
    margin-top: 0.5rem;
    color: var(--texto-suave);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tarjeta span {
    align-self: flex-start;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--morado-fuerte);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.tarjeta:hover span { background: var(--morado); color: #1a1033; }

@media (prefers-reduced-motion: reduce) {
    .tarjeta { transition: none; }
}