/* ==========================================================================
   Notas y avistamientos — tarjetas ordenadas
   Estructura fija en tres bloques (etiquetas + título + ubicación + extracto | autor y fecha | botón), todas las
   tarjetas de una fila miden lo mismo y el pie siempre queda abajo. Paleta del sitio: #161616 / #262626 / verde / azul.
   ========================================================================== */

/* ---------- Secciones ---------- */
.notas-seccion { margin-bottom: 56px; }
.notas-seccion__head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.notas-seccion__head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: #f7fafc; white-space: nowrap; }
.notas-seccion__count { min-width: 26px; padding: 2px 9px; text-align: center; border-radius: 50px; background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.3); font-size: 12px; font-weight: 700; color: #4ade80; font-variant-numeric: tabular-nums; }
.notas-seccion__head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #2a2a2a, transparent); }

/* ---------- Cuadrícula ---------- */
.notas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; align-items: stretch; }
.notas-vacio { grid-column: 1 / -1; padding: 40px 24px; text-align: center; border-radius: 16px; border: 1px dashed #2a2a2a; background: #141414; }
.notas-vacio p { margin: 0; font-size: 14px; color: #9ca3af; }

/* ---------- Tarjeta ---------- */
.nota-card {
    --acento: #4ade80;
    --acento-fondo: rgba(74, 222, 128, 0.1);
    --acento-borde: rgba(74, 222, 128, 0.3);

    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;               /* anula el relleno base de .divulgacion-card */
    overflow: hidden;
    border-radius: 16px;
    background: #161616;
    border: 1px solid #262626;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.25s ease, box-shadow 0.3s ease;
}
.nota-card--comunidad { --acento: #60a5fa; --acento-fondo: rgba(96, 165, 250, 0.1); --acento-borde: rgba(96, 165, 250, 0.3); }
/* franja de color arriba: distingue oficial (verde) y comunidad (azul) sin saturar la tarjeta */
.nota-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--acento); opacity: 0.85; z-index: 2; }
@media (hover: hover) {
    .nota-card:hover { transform: translateY(-4px); border-color: var(--acento-borde); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
}

.nota-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: #0f0f0f; border-bottom: 1px solid #202020; }
.nota-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) { .nota-card:hover .nota-card__media img { transform: scale(1.05); } }

.nota-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 18px; }

.nota-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nota-tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 50px; background: var(--acento-fondo); border: 1px solid var(--acento-borde); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--acento); }
.nota-tag--especie { background: rgba(255, 255, 255, 0.04); border-color: #333; color: #d1d5db; letter-spacing: 0; }

.nota-card__title { margin: 4px 0 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: #f7fafc; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nota-card__loc { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #60a5fa; min-width: 0; }
.nota-card__loc i { flex: none; font-size: 12px; }
.nota-card__loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nota-card .nota-card__text { margin: 0; font-size: 14px; line-height: 1.6; color: #a0aec0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Pie: autor y fecha + botón ---------- */
.nota-card__foot { display: flex; flex-direction: column; gap: 14px; padding: 16px 22px 20px; border-top: 1px solid #222; background: rgba(255, 255, 255, 0.015); }
.nota-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #8b95a3; }
.nota-card__meta span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.nota-card__meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nota-card__meta span:last-child { flex: none; color: var(--acento); font-weight: 500; }
.nota-card__meta i { font-size: 11px; opacity: 0.9; }

.nota-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--acento-borde);
    background: var(--acento-fondo);
    color: var(--acento);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.nota-card__btn i { font-size: 11px; transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1); }
.nota-card__btn:hover { background: var(--acento); color: #0b1410; }
.nota-card__btn:hover i { transform: translateX(4px); }
.nota-card__btn:active { transform: scale(0.97); }
.nota-card__btn:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

@media (max-width: 640px) {
    .notas-grid { grid-template-columns: 1fr; gap: 18px; }
    .notas-seccion { margin-bottom: 44px; }
    .notas-seccion__head h2 { font-size: 18px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .nota-card, .nota-card__media img, .nota-card__btn, .nota-card__btn i { transition: none; }
    .nota-card:hover { transform: none; }
}

/* Extractos en columnas estrechas: alineados a la izquierda (justificar aquí deja huecos grandes entre palabras) */
.nota-card .nota-card__text { text-align: left; }

/* Caja de invitación a la comunidad (no depende de utilidades de Tailwind) */
.footer-comunidad-box h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #f7fafc; }
.footer-comunidad-box p { margin: 0; max-width: 62ch; font-size: 14px; line-height: 1.6; color: #9ca3af; }
