/*
 * components.css
 * Componentes UI compartidos entre todas las páginas.
 */

/* ── Tipografía ─────────────────────────────────────────── */

h1 { font-size: clamp(1.5rem, 2.5vw, 2rem);  margin-bottom: 10px; }
h2 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 10px; }

/* ── Badge / etiqueta pill ──────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    overflow-wrap: anywhere;
    background: rgba(45, 122, 58, 0.1);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

/* ── Botones ────────────────────────────────────────────── */

button {
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.1;
    cursor: pointer;
    min-height: 42px;
    transition: filter .2s ease;
}

button:hover    { filter: brightness(0.96); }
button:disabled { cursor: not-allowed; opacity: 0.5; }

.btn-primary   { background: var(--primary);   color: #fff; }
.btn-secondary { background: var(--secondary); color: var(--primary-dark); }
.btn-danger    { background: var(--danger);    color: #fff; }

/* ── Alertas / mensajes ─────────────────────────────────── */

.alert {
    border-left: 4px solid var(--primary);
    background: rgba(45, 122, 58, 0.07);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.alert.error {
    border-left-color: #8b1a1a;
    background: rgba(139, 26, 26, 0.08);
    color: #6b1010;
}

/* ── Utilidades ─────────────────────────────────────────── */

.hidden { display: none; }

/* ── Powered by ─────────────────────────────────────────── */

.powered-by {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.powered-by a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.powered-by a:hover {
    text-decoration: underline;
}
