/* ==============================
   FOOTER
============================== */
.main-footer {
    background-color: var(--gray-100);
    color: var(--gray-500);
    text-align: center;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 0.8rem;
    margin-top: auto;
    border-top: 1px solid var(--gray-200);
}

/* El header/nav superior antiguo (.main-header/.main-nav/.header-link/#menu-toggle)
   fue reemplazado por el shell unificado (.hdr + drawer) en shell.css. */

/* ===============================
   TÍTULO DE PÁGINA
=============================== */
.page-title {
    text-align: center;
    font-size: clamp(1.375rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* ===============================
   SUBTÍTULOS
=============================== */
.subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* ===============================
   FORMULARIO CENTRADO
=============================== */
.form-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===============================
   BOTÓN PRIMARIO GLOBAL
=============================== */
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--green);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.12s ease-out, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.button-link:hover {
    background-color: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--white);
}

.button-link:active {
    transform: scale(0.97);
    box-shadow: none;
}

/* ===============================
   BOTÓN PRIMARIO GLOBAL
=============================== */
.primary-button {
    padding: 0.75rem 1.25rem;
    background-color: var(--green);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.12s ease-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
}

.primary-button:hover {
    background-color: var(--green-dark);
    color: var(--white);
    text-decoration: none;
}

.primary-button:active {
    transform: scale(0.97);
}

.primary-button.secondary {
    background-color: var(--gray-600);
}

.primary-button.secondary:hover {
    background-color: var(--gray-700);
}

.primary-button.outline {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}

.primary-button.outline:hover {
    background: var(--green);
    color: var(--white);
}

.primary-input {
    padding: 0.75rem 1rem;
    font-size: 0.975rem;
    font-family: var(--font-sans);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.primary-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-soft);
}

/* ===============================
   SKIP TO CONTENT (accesibilidad)
=============================== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--gold);
    color: var(--green);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 9999;
    text-decoration: none;
    font-size: 0.9rem;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
}

/* ===============================
   INFO MESSAGE — estado de ayuda
=============================== */
.info-message {
    padding: 0.875rem 1.25rem;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    font-size: 0.9rem;
    text-align: center;
}

.info-message.success {
    background-color: var(--success-50);
    border-color: var(--green-line);
    color: var(--green);
    font-weight: 600;
}

.info-message.error {
    background-color: var(--danger-50);
    border-color: #e8c0b4;
    color: var(--danger);
    font-weight: 600;
}

/* ===============================
   INFO BLOCK — bloque de datos
=============================== */
.info-block {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.info-block .item-heading {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-100);
}

/* ===============================
   INFO LIST — lista de pares clave/valor
=============================== */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-list li {
    font-size: 0.925rem;
    color: var(--gray-700);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--gray-100);
}

.info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ===============================
   EDIT LINK — enlace a admin
=============================== */
.edit-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease;
}

.edit-link:hover {
    color: var(--gold-deep);
    text-decoration: underline;
}

/* ===============================
   PRIMARY FORM — formulario centrado
=============================== */
.primary-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.primary-form input,
.primary-form select,
.primary-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.975rem;
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--gray-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.primary-form input:focus,
.primary-form select:focus,
.primary-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-soft);
}

.primary-form label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
    display: block;
}

.primary-form p {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* ===============================
   EMPTY STATE — sin resultados
=============================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--gray-400);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

.empty-state p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin: 0;
}

/* ===============================
   BREADCRUMB (libretas) — navegador de jerarquía, fijo al hacer scroll
=============================== */
.lb-crumbs {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 1.25rem;
    padding: 0.75rem 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}
.lb-crumbs a {
    color: var(--gold-deep);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}
.lb-crumbs a:hover {
    color: var(--gold);
    text-decoration: underline;
}
.lb-crumbs .sep {
    color: var(--gold);
    font-size: 0.85rem;
}
.lb-crumbs .active {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
