@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

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

body {
    background-color: #0d1117;
    font-family: 'Inter', sans-serif;
    color: #c9d1d9;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
}

.subtitle {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: #8b949e;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.card {
    background: #161b22;
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #30363d;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 150, 255, 0.1);
}

.nivel {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.precio {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 15px 0;
    color: #58a6ff;
}

.precio .periodo {
    font-size: 1rem;
    font-weight: 400;
    color: #8b949e;
}

ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
    flex-grow: 1;
    /* Hace que la lista ocupe el espacio disponible */
}

ul li {
    padding: 10px 0;
    border-bottom: 1px solid #21262d;
    font-size: 0.95rem;
}

ul li::before {
    content: '✓';
    color: #3fb950;
    margin-right: 10px;
    font-weight: bold;
}

.btn {
    background-color: #238636;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #2ea043;
}

/* Colores por nivel */
.nivel-1 {
    border-top: 4px solid #3fb950;
}

.nivel-2 {
    border-top: 4px solid #58a6ff;
}

.nivel-3 {
    border-top: 4px solid #f778ba;
}

.nivel-4 {
    border-top: 4px solid #d29922;
}

.nivel-1 .nivel {
    color: #3fb950;
}

.nivel-2 .nivel {
    color: #58a6ff;
}

.nivel-3 .nivel {
    color: #f778ba;
}

.nivel-4 .nivel {
    color: #d29922;
}

.nivel-1 .btn {
    background-color: #238636;
}

.nivel-1 .btn:hover {
    background-color: #2ea043;
}

.nivel-2 .btn {
    background-color: #1f6feb;
}

.nivel-2 .btn:hover {
    background-color: #388bfd;
}

.nivel-3 .btn {
    background-color: #db61a2;
}

.nivel-3 .btn:hover {
    background-color: #f778ba;
}

.nivel-4 .btn {
    background-color: #b78100;
}

.nivel-4 .btn:hover {
    background-color: #d29922;
}