:root {
    --primary: #2ecc71;
    --dark: #1a202c;
    --light: #f7fafc;
    --text: #4a5568;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--light);
    color: var(--text);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--dark);
}

header h1 span { color: var(--primary); }

header p { margin-top: 10px; opacity: 0.8; }
/* --- Selector de Idiomas --- */
.lang-selector {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.lang-btn {
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: var(--light);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease-in-out;
}

.lang-btn:hover {
    background-color: #e2e8f0;
    color: var(--dark);
}

.lang-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    flex-grow: 1;
}

.grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
    max-width: 600px; /* Evita que la tarjeta sea excesivamente ancha en PC */
    margin: 0 auto;   /* Centra la lista en medio de la pantalla */
}

.card {
    width: 300px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.card-img {
    height: 180px;
    background: #edf2f7;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img img { width: 100%; height: 100%; object-fit: cover; }

.placeholder { color: #cbd5e0; font-weight: bold; }

.card-body { padding: 25px; }

.card-body h2 { margin: 0 0 10px; font-size: 1.25rem; color: var(--dark); }

.card-body p { font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px; height: 45px; overflow: hidden; }

.btn {
    display: inline-block;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 40px;
    font-size: 0.85rem;
    border-top: 1px solid #e2e8f0;
    background: var(--white);
}