:root {
    --primary-color: #2b5278;
    --primary-hover: #1d3852;
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #cccccc;
    --focus-ring: #005fcc;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
}

nav a:hover, nav a:focus-visible {
    text-decoration: underline;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background: var(--card-bg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: var(--primary-hover);
}

button:focus-visible, input:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.oculto {
    display: none !important;
}

.info-contenido {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #eef2f6;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.contenedor-busqueda {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contenedor-busqueda input {
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.grid-caracteristicas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.tarjeta {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    background-color: white;
}

.tarjeta h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.tarjeta .categoria {
    display: inline-block;
    font-size: 0.8rem;
    background-color: #e2e8f0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.mensaje-vacio {
    color: #c53030;
    font-weight: bold;
    padding: 1rem 0;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #e2e8f0;
    margin-top: 2rem;
}