/* Variables para cambiar colores rápido */
:root {
    --primary: #0062ff;
    --bg-body: #f4f7f9;
    --bg-card: #ffffff;
    --text-main: #333333;
    --border: #dddddd;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Contenedor de la Tarjeta */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

/* Cabecera (Botón) */
.card-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

/* Efecto al pasar el mouse */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Contenido que se despliega */
.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fdfdfd;
}

/* Cuando la tarjeta está activa */
.card.active .card-content {
    max-height: 600px; /* Suficiente para muchos enlaces */
    border-top: 1px solid #eee;
}

/* Lista de enlaces */
.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-list li a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.links-list li a:hover {
    background: #f0f7ff;
    color: var(--primary);
}
