/* ============================================================
   ARCHIVE-SYMBOLS — ARCHIVO NATHANIEL CROWE
   Índice de símbolos — tarjetas crípticas con barra de peligro
   Autocontenido con prefijo body.post-type-archive-symbols
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   RESET GENERATEPRESS
   ══════════════════════════════════════════════════════════════ */
body.post-type-archive-symbols,
body.post-type-archive-symbols .site,
body.post-type-archive-symbols .site-content,
body.post-type-archive-symbols .site-main,
body.post-type-archive-symbols .content-area {
    background: var(--crowe-paper) !important;
    background-color: var(--crowe-paper) !important;
    padding: 0 !important;
    max-width: none !important;
}

body.post-type-archive-symbols .inside-article,
body.post-type-archive-symbols .entry-header,
body.post-type-archive-symbols .post-inner,
body.post-type-archive-symbols .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

body.post-type-archive-symbols article,
body.post-type-archive-symbols .post {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ══════════════════════════════════════════════════════════════
   WRAPPER Y LAYOUT
   ══════════════════════════════════════════════════════════════ */
body.post-type-archive-symbols .crowe-archive-wrap {
    background: var(--crowe-paper);
    background-image: repeating-linear-gradient(
        0deg, transparent, transparent 27px,
        rgba(160, 130, 90, 0.04) 27px,
        rgba(160, 130, 90, 0.04) 28px
    );
    min-height: 100vh;
}

body.post-type-archive-symbols .crowe-archive {
    padding: 0 0 60px;
}

body.post-type-archive-symbols .crowe-archive__inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   BARRAS SUPERIOR E INFERIOR
   ══════════════════════════════════════════════════════════════ */
body.post-type-archive-symbols .crowe-home-topbar {
    background: var(--crowe-accent-dark);
    border-bottom: 2px solid var(--crowe-accent);
}

body.post-type-archive-symbols .crowe-home-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 8px 0;
}

body.post-type-archive-symbols .crowe-home-topbar__id {
    font-family: var(--crowe-mono);
    font-size: 0.6rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #7a5a38;
}

body.post-type-archive-symbols .crowe-home-topbar__status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--crowe-mono);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #a07840;
}

body.post-type-archive-symbols .crowe-home-topbar__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6a9a50;
    animation: crowe-sym-blink 2.4s ease-in-out infinite;
}

@keyframes crowe-sym-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

body.post-type-archive-symbols .crowe-home-sysbar {
    background: var(--crowe-accent-dark);
    border-top: 2px solid var(--crowe-accent);
    margin-top: 48px;
}

body.post-type-archive-symbols .crowe-home-sysbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 8px 0;
    font-family: var(--crowe-mono);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6a4a28;
}

/* ══════════════════════════════════════════════════════════════
   CABECERA
   ══════════════════════════════════════════════════════════════ */
body.post-type-archive-symbols .crowe-archive-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 48px 0 0;
    margin-bottom: 32px;
}

body.post-type-archive-symbols .crowe-archive-header__left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.post-type-archive-symbols .crowe-archive-header__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--crowe-mono);
    font-size: 0.64rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--crowe-ink-faint);
}

body.post-type-archive-symbols .crowe-archive-header__eyebrow-line {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--crowe-border);
    flex-shrink: 0;
}

body.post-type-archive-symbols .crowe-archive-header__title {
    margin: 0;
    font-family: var(--crowe-serif);
    font-size: clamp(2.4rem, 1.8rem + 2vw, 3.8rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--crowe-ink);
}

body.post-type-archive-symbols .crowe-archive-header__lead {
    margin: 4px 0 0;
    font-family: var(--crowe-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--crowe-ink-muted);
}

body.post-type-archive-symbols .crowe-archive-header__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--crowe-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--crowe-ink-faint);
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 52px;
}

body.post-type-archive-symbols .crowe-archive-header__breadcrumb a {
    color: var(--crowe-ink-muted);
    text-decoration: none;
}

body.post-type-archive-symbols .crowe-archive-header__breadcrumb a:hover {
    color: var(--crowe-accent);
}

/* ══════════════════════════════════════════════════════════════
   FILTROS
   ══════════════════════════════════════════════════════════════ */
body.post-type-archive-symbols .crowe-archive-filters {
    margin-bottom: 28px;
    border: 1px solid var(--crowe-border-soft);
    background: var(--crowe-paper-dark);
    overflow: hidden;
}

body.post-type-archive-symbols .crowe-archive-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 16px;
    background: rgba(30,15,5,0.04);
    border-bottom: 1px solid var(--crowe-border-soft);
}

body.post-type-archive-symbols .crowe-archive-filters__label {
    font-family: var(--crowe-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--crowe-ink-faint);
}

body.post-type-archive-symbols .crowe-archive-filters__reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--crowe-mono);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--crowe-red);
    text-decoration: none;
    border: 1px solid rgba(139,32,16,0.25);
    padding: 2px 8px;
}

body.post-type-archive-symbols .crowe-archive-filters__groups {
    display: flex;
    flex-direction: column;
}

body.post-type-archive-symbols .crowe-archive-filter-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px dotted var(--crowe-border-soft);
}

body.post-type-archive-symbols .crowe-archive-filter-group:last-child {
    border-bottom: none;
}

body.post-type-archive-symbols .crowe-archive-filter-group__label {
    font-family: var(--crowe-mono);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--crowe-ink-faint);
    min-width: 80px;
    flex-shrink: 0;
    padding-top: 4px;
}

body.post-type-archive-symbols .crowe-archive-filter-group__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.post-type-archive-symbols .crowe-archive-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-family: var(--crowe-mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--crowe-ink-muted);
    background: rgba(196,174,142,0.15);
    border: 1px solid var(--crowe-border-soft);
    transition: background 150ms ease, color 150ms ease;
}

body.post-type-archive-symbols .crowe-archive-pill:hover {
    background: rgba(107,60,24,0.1);
    color: var(--crowe-ink-mid);
}

body.post-type-archive-symbols .crowe-archive-pill--active {
    background: var(--crowe-accent-dark) !important;
    border-color: var(--crowe-accent) !important;
    color: #c8a870 !important;
}

/* Pills de peligrosidad con color */
body.post-type-archive-symbols .crowe-archive-pill--danger-low    { border-left: 2px solid #4a7a4a; }
body.post-type-archive-symbols .crowe-archive-pill--danger-medium { border-left: 2px solid #8a6820; }
body.post-type-archive-symbols .crowe-archive-pill--danger-high   { border-left: 2px solid #a03820; }
body.post-type-archive-symbols .crowe-archive-pill--danger-critical {
    border-left: 2px solid var(--crowe-red);
    color: var(--crowe-red) !important;
}

/* ══════════════════════════════════════════════════════════════
   CABECERA DE RESULTADOS
   ══════════════════════════════════════════════════════════════ */
body.post-type-archive-symbols .crowe-archive-results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--crowe-border-soft);
    font-family: var(--crowe-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--crowe-ink-faint);
}

body.post-type-archive-symbols .crowe-archive-results-header__filtered {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--crowe-ink-muted);
}

body.post-type-archive-symbols .crowe-archive-results-header__tag {
    padding: 1px 6px;
    border: 1px solid var(--crowe-border-soft);
    font-size: 0.56rem;
    color: var(--crowe-accent);
    background: rgba(107,60,24,0.06);
}

/* ══════════════════════════════════════════════════════════════
   GRID DE SÍMBOLOS — 4 columnas
   ══════════════════════════════════════════════════════════════ */
body.post-type-archive-symbols .crowe-symbols-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ══════════════════════════════════════════════════════════════
   TARJETA DE SÍMBOLO
   ══════════════════════════════════════════════════════════════ */
body.post-type-archive-symbols .crowe-symbol-card {
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid var(--crowe-border-soft) !important;
    background: var(--crowe-paper-dark) !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
    position: relative;
}

body.post-type-archive-symbols .crowe-symbol-card:hover {
    border-color: var(--crowe-border) !important;
    box-shadow: 0 8px 24px rgba(30,15,5,0.07) !important;
    transform: translateY(-2px);
}

/* Barra de peligrosidad superior */
body.post-type-archive-symbols .crowe-symbol-card__danger-strip {
    height: 4px !important;
    background: var(--crowe-border-soft) !important;
    flex-shrink: 0 !important;
}

body.post-type-archive-symbols .crowe-symbol-card__danger-strip--low     { background: #4a7a4a !important; }
body.post-type-archive-symbols .crowe-symbol-card__danger-strip--medium  { background: #8a6820 !important; }
body.post-type-archive-symbols .crowe-symbol-card__danger-strip--high    { background: #a03820 !important; }
body.post-type-archive-symbols .crowe-symbol-card__danger-strip--critical {
    background: var(--crowe-red) !important;
    animation: crowe-sym-danger-pulse 2.8s ease-in-out infinite;
}

@keyframes crowe-sym-danger-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* Imagen / Placeholder */
body.post-type-archive-symbols .crowe-symbol-card__media {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: 1 / 1 !important;
    background: var(--crowe-paper-mid) !important;
    border-bottom: 1px solid var(--crowe-border-soft) !important;
    overflow: hidden !important;
    padding: 12px !important;
    text-decoration: none !important;
}

body.post-type-archive-symbols .crowe-symbol-card__img {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: sepia(0.15) contrast(1.1) !important;
    transition: filter 300ms ease, transform 300ms ease;
}

body.post-type-archive-symbols .crowe-symbol-card:hover .crowe-symbol-card__img {
    filter: sepia(0.05) contrast(1.12) !important;
    transform: scale(1.04);
}

body.post-type-archive-symbols .crowe-symbol-card__placeholder {
    width: 80px !important;
    height: 80px !important;
    color: var(--crowe-ink-faint) !important;
    opacity: 0.4 !important;
}

/* Cuerpo */
body.post-type-archive-symbols .crowe-symbol-card__body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    padding: 14px 14px 12px !important;
    gap: 7px !important;
    background: transparent !important;
}

/* Meta: código + tipo */
body.post-type-archive-symbols .crowe-symbol-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

body.post-type-archive-symbols .crowe-symbol-card__code {
    font-family: var(--crowe-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--crowe-accent);
}

body.post-type-archive-symbols .crowe-symbol-card__type {
    font-family: var(--crowe-mono);
    font-size: 0.54rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--crowe-ink-faint);
    padding: 1px 5px;
    border: 1px solid var(--crowe-border-soft);
}

/* Título */
body.post-type-archive-symbols .crowe-symbol-card__title {
    margin: 0 !important;
    font-family: var(--crowe-serif) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: var(--crowe-ink) !important;
}

body.post-type-archive-symbols .crowe-symbol-card__title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: opacity 160ms ease;
}

body.post-type-archive-symbols .crowe-symbol-card__title a:hover {
    opacity: 0.8 !important;
}

/* Nombre alternativo */
body.post-type-archive-symbols .crowe-symbol-card__alt {
    margin: 0 !important;
    font-family: var(--crowe-serif) !important;
    font-style: italic !important;
    font-size: 0.76rem !important;
    color: var(--crowe-ink-soft) !important;
    line-height: 1.3 !important;
}

/* Descripción */
body.post-type-archive-symbols .crowe-symbol-card__desc {
    margin: 0 !important;
    font-family: var(--crowe-serif) !important;
    font-style: italic !important;
    font-size: 0.78rem !important;
    line-height: 1.65 !important;
    color: var(--crowe-ink-soft) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Footer */
body.post-type-archive-symbols .crowe-symbol-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dotted var(--crowe-border-soft);
    flex-wrap: wrap;
}

body.post-type-archive-symbols .crowe-symbol-card__tags {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

body.post-type-archive-symbols .crowe-symbol-card__origin {
    font-family: var(--crowe-mono);
    font-size: 0.54rem;
    letter-spacing: 0.12em;
    color: var(--crowe-ink-faint);
}

body.post-type-archive-symbols .crowe-symbol-card__danger {
    font-family: var(--crowe-mono);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 1px 5px;
    border: 1px solid currentColor;
}

body.post-type-archive-symbols .crowe-symbol-card__danger--low     { color: #4a7a4a; }
body.post-type-archive-symbols .crowe-symbol-card__danger--medium  { color: #8a6820; }
body.post-type-archive-symbols .crowe-symbol-card__danger--high    { color: #a03820; }
body.post-type-archive-symbols .crowe-symbol-card__danger--critical { color: var(--crowe-red); }
body.post-type-archive-symbols .crowe-symbol-card__danger--unknown,
body.post-type-archive-symbols .crowe-symbol-card__danger--none    { color: var(--crowe-ink-faint); }

body.post-type-archive-symbols .crowe-case-card__cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: var(--crowe-mono) !important;
    font-size: 0.56rem !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: var(--crowe-ink-muted) !important;
    text-decoration: none !important;
    transition: color 160ms ease !important;
    white-space: nowrap;
}

body.post-type-archive-symbols .crowe-case-card__cta:hover {
    color: var(--crowe-accent) !important;
}

/* ══════════════════════════════════════════════════════════════
   SIN RESULTADOS Y PAGINACIÓN
   ══════════════════════════════════════════════════════════════ */
body.post-type-archive-symbols .crowe-archive-empty {
    padding: 60px 0;
    display: flex;
    justify-content: center;
}

body.post-type-archive-symbols .crowe-archive-empty__inner {
    max-width: 420px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    border: 1px solid var(--crowe-border-soft);
    background: var(--crowe-paper-dark);
}

body.post-type-archive-symbols .crowe-archive-empty__title {
    font-family: var(--crowe-serif);
    font-size: 1.4rem;
    color: var(--crowe-ink);
    margin: 0;
}

body.post-type-archive-symbols .crowe-archive-empty__text {
    font-family: var(--crowe-mono);
    font-size: 0.72rem;
    line-height: 1.7;
    color: var(--crowe-ink-muted);
    margin: 0;
}

body.post-type-archive-symbols .crowe-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    font-family: var(--crowe-mono);
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--crowe-ink-mid);
    background: rgba(244,234,216,0.7);
    border: 1px solid var(--crowe-border);
}

body.post-type-archive-symbols .crowe-archive-pagination {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--crowe-border-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

body.post-type-archive-symbols .crowe-archive-pagination__inner {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

body.post-type-archive-symbols .crowe-archive-pagination__inner .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-family: var(--crowe-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-decoration: none;
    color: var(--crowe-ink-muted);
    border: 1px solid var(--crowe-border-soft);
    background: var(--crowe-paper-dark);
}

body.post-type-archive-symbols .crowe-archive-pagination__inner .page-numbers.current {
    background: var(--crowe-accent-dark);
    border-color: var(--crowe-accent);
    color: #c8a870;
}

body.post-type-archive-symbols .crowe-archive-pagination__info {
    font-family: var(--crowe-mono);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--crowe-ink-faint);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1060px) {
    body.post-type-archive-symbols .crowe-symbols-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    body.post-type-archive-symbols .crowe-archive__inner {
        width: calc(100% - 32px);
    }
    body.post-type-archive-symbols .crowe-archive-header {
        flex-direction: column;
        gap: 12px;
        padding-top: 32px;
    }
    body.post-type-archive-symbols .crowe-symbols-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    body.post-type-archive-symbols .crowe-archive-filter-group {
        flex-direction: column;
        gap: 8px;
    }
}
