/* PescaWiki — Wiki de especies */

.wiki-hero {
    background: linear-gradient(135deg, #0a3d62, #1e88e5);
    color: white; padding: 60px 24px; text-align: center;
}
.wiki-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; font-weight: 800; }
.wiki-hero p { opacity: 0.9; margin-bottom: 28px; }

.wiki-search {
    display: flex; max-width: 560px; margin: 0 auto;
    background: white; border-radius: 50px; padding: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.wiki-search input {
    flex: 1; border: none; padding: 12px 20px;
    font-size: 15px; background: transparent;
    outline: none; font-family: inherit; color: var(--c-text);
}
.wiki-search button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--c-profundo), var(--c-agua));
    color: white; border: none; border-radius: 50px;
    cursor: pointer; font-weight: 600; font-family: inherit;
}

.wiki-filters {
    background: white; padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}
.filter-group { display: flex; align-items: center; gap: 14px; padding: 8px 0; flex-wrap: wrap; }
.filter-group label {
    font-weight: 600; color: var(--c-profundo);
    min-width: 80px; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    --chip-color: #1e88e5;
    padding: 8px 16px; background: white;
    border: 2px solid #e3f2fd; border-radius: 50px;
    font-size: 13px; font-weight: 500; color: var(--c-text);
    transition: all 0.2s; cursor: pointer;
}
.chip:hover { border-color: var(--chip-color); color: var(--chip-color); transform: translateY(-2px); }
.chip.active { background: var(--chip-color); border-color: var(--chip-color); color: white; }

.wiki-results-header { display: flex; justify-content: space-between; margin-bottom: 24px; padding: 0 4px; }
.wiki-results-header h2 { font-size: 18px; color: var(--c-muted); font-weight: 600; }

.wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.fish-card {
    background: white; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block; color: inherit; text-decoration: none;
    border: 1px solid rgba(10, 61, 98, 0.05);
}
.fish-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.fish-card-img {
    position: relative; height: 200px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.fish-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.fish-card:hover .fish-card-img img { transform: scale(1.08); }
.fish-placeholder { font-size: 80px; opacity: 0.5; }

.fish-habitat {
    position: absolute; top: 12px; right: 12px;
    color: white; padding: 4px 12px; border-radius: 50px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.fish-card-body { padding: 18px; }
.fish-card-body h3 { font-size: 17px; color: var(--c-profundo); margin-bottom: 4px; font-weight: 700; }
.sci-name { font-size: 12px; color: var(--c-muted); font-style: italic; margin-bottom: 12px; }
.fish-meta { display: flex; gap: 12px; font-size: 12px; color: var(--c-muted); flex-wrap: wrap; }
.fish-meta span { background: #f0f7ff; padding: 4px 10px; border-radius: 6px; font-weight: 500; }

.empty-state {
    text-align: center; padding: 80px 20px;
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.empty-icon { font-size: 72px; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { color: var(--c-muted); margin-bottom: 20px; }

.categoria-noticia {
    display: inline-block; padding: 4px 12px;
    background: var(--c-agua); color: white;
    border-radius: 6px; font-size: 11px;
    text-transform: uppercase; font-weight: 600;
    letter-spacing: 0.5px; margin-bottom: 8px;
}

/* ==================== ESPECIE DETALLE ==================== */
.especie-hero {
    color: white; padding: 60px 24px;
    position: relative;
}
.especie-hero-content { max-width: 1200px; margin: 0 auto; }
.back-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    display: inline-block; margin-bottom: 16px;
}
.back-link:hover { color: white; }

.especie-titulo h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800; margin-bottom: 6px;
}
.sci-name-large { font-size: 18px; font-style: italic; opacity: 0.9; margin-bottom: 16px; }

.especie-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
    background: rgba(255,255,255,0.25);
    color: white; padding: 6px 14px;
    border-radius: 50px; font-size: 13px;
    font-weight: 600; backdrop-filter: blur(8px);
}
.tag-dificultad { background: rgba(0,0,0,0.3); }

.especie-grid {
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 28px;
}

.especie-img {
    width: 100%; max-height: 400px; object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.card {
    background: white; border-radius: var(--radius);
    padding: 24px; margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.card h2 { color: var(--c-profundo); font-size: 20px; margin-bottom: 14px; }
.card h3 { color: var(--c-profundo); font-size: 17px; margin-bottom: 14px; }
.card p { color: var(--c-text); margin-bottom: 10px; }

.especie-ficha dl {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.especie-ficha dt { font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.especie-ficha dd { color: var(--c-profundo); font-weight: 700; margin-bottom: 8px; }

.zonas-list { list-style: none; }
.zona-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px; border-radius: 8px;
    background: #f8fbfe; margin-bottom: 8px;
}
.zona-color { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.zona-item small { display: block; color: var(--c-muted); font-size: 12px; }

.carnadas-list { display: grid; gap: 14px; }
.carnada-item {
    background: #f8fbfe; padding: 16px;
    border-radius: 10px; border-left: 4px solid #e3f2fd;
}
.carnada-item.favorita { border-left-color: #fb8c00; background: #fff8e1; }

.carnada-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.badge-favorita {
    background: #fb8c00; color: white;
    padding: 3px 10px; border-radius: 10px;
    font-size: 11px; font-weight: 700;
}

.carnada-meta { display: flex; gap: 8px; margin-bottom: 8px; }
.chip-tipo {
    background: #e3f2fd; color: #1565c0;
    padding: 3px 10px; border-radius: 10px;
    font-size: 11px; font-weight: 600;
}
.chip-efectividad { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.chip-efectividad.e-baja { background: #ffcdd2; color: #c62828; }
.chip-efectividad.e-media { background: #ffe0b2; color: #ef6c00; }
.chip-efectividad.e-alta { background: #c8e6c9; color: #2e7d32; }
.chip-efectividad.e-muy-alta { background: #43a047; color: white; }

/* ==================== NOTICIA DETALLE ==================== */
.noticia-hero { background: var(--c-profundo); color: white; min-height: 400px; position: relative; overflow: hidden; }
.noticia-portada {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.4; filter: blur(2px);
}
.noticia-hero-content {
    position: relative; max-width: 900px; margin: 0 auto;
    padding: 80px 24px 40px;
}
.noticia-hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 14px 0; font-weight: 800; }
.noticia-meta { display: flex; gap: 20px; font-size: 14px; opacity: 0.9; flex-wrap: wrap; }

.noticia-body-wrapper {
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 40px; max-width: 1200px;
}
.noticia-body { font-size: 16px; line-height: 1.8; }
.noticia-resumen {
    font-size: 19px; color: var(--c-muted);
    font-style: italic; padding-bottom: 20px;
    border-bottom: 1px solid #e3f2fd; margin-bottom: 24px;
}
.noticia-contenido h2, .noticia-contenido h3 { color: var(--c-profundo); margin: 24px 0 12px; }
.noticia-contenido p { margin-bottom: 16px; }
.noticia-contenido img { border-radius: 10px; margin: 20px 0; }
.noticia-video { margin: 24px 0; }
.noticia-video iframe { width: 100%; height: 400px; border-radius: 10px; border: none; }

.noticia-relacionadas h3 { color: var(--c-profundo); margin-bottom: 16px; }
.noticia-mini {
    display: flex; gap: 12px;
    padding: 12px; border-radius: 10px;
    background: white; margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    text-decoration: none; color: var(--c-text);
    transition: all 0.2s;
}
.noticia-mini:hover { transform: translateX(-4px); box-shadow: var(--shadow-md); }
.noticia-mini img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.noticia-mini strong { display: block; font-size: 14px; }
.noticia-mini small { color: var(--c-muted); font-size: 12px; }

@media (max-width: 768px) {
    .especie-grid, .noticia-body-wrapper { grid-template-columns: 1fr; }
    .especie-ficha dl { grid-template-columns: 1fr; }
}
