/*
 * gmp-frontend.css
 * Estilos para la parte pública de la Galería Micológica Pro.
 * v15.55 - Diseño v15.53 con degradados en miniaturas, colores vibrantes y Paginación Premium.
 */

/* =========================================
 * 1. MIGAS DE PAN (Fuera de la tarjeta)
 * =========================================
 */
.gmp-breadcrumbs-wrapper {
    margin-bottom: 10px; margin-left: 2px;
    font-size: 0.8rem; color: #777; font-weight: 500; line-height: 1;
    margin-top: 0 !important; padding-top: 10px;
}
.gmp-breadcrumbs-wrapper a { text-decoration: none; color: #555; transition: color 0.2s; }
.gmp-breadcrumbs-wrapper a:hover { color: #000; text-decoration: underline; }
.gmp-breadcrumbs-wrapper .separator { margin: 0 5px; color: #bbb; }

/* =========================================
 * 2. TARJETA PRINCIPAL (Ficha Individual)
 * =========================================
 */
.gmp-ficha-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 40px;
    border-left-width: 10px; border-left-style: solid;
    border-top: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0;
}
.gmp-ficha-header {
    padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.gmp-ficha-title { margin: 0 !important; font-size: 1.6rem !important; font-weight: 800 !important; font-style: italic; line-height: 1.2; }
.gmp-header-badge { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); white-space: nowrap; }

/* CUERPO */
.gmp-ficha-body-wrapper {
    display: flex; flex-wrap: wrap; background-color: #e6e7e8; padding: 15px 25px 25px 25px; gap: 30px;
}

/* COLUMNA DATOS (Con Marca de Agua) */
.gmp-ficha-col-datos { 
    flex: 1 1 300px; min-width: 280px; 
    position: relative; 
    z-index: 1;
}

.gmp-ficha-col-media { flex: 1 1 350px; min-width: 300px; }
@media (max-width: 768px) { .gmp-ficha-body-wrapper { flex-direction: column; gap: 25px; } }

/* --- MARCA DE AGUA (LOGO) --- */
.gmp-watermark-logo {
    position: absolute;
    top: 8%; 
    transform: translateY(-50%);
    right: 10px; 
    width: 160px;
    height: auto;
    pointer-events: none;
    z-index: 0; 
}

/* =========================================
 * 3. COLORES SEMÁFORO (Global) - VIBRANTES v15.55
 * =========================================
 */
.gmp-style-mortal { border-color: #ef4444; }
.gmp-style-mortal .gmp-ficha-header { background: linear-gradient(to right, #ef4444 0%, #000 100%); }
.gmp-style-mortal .gmp-ficha-title { color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.gmp-style-mortal .gmp-header-badge { color: #ef4444; background: #ffffff; border: 2px solid #ef4444; }

.gmp-style-toxico { border-color: #ef4444; }
.gmp-style-toxico .gmp-ficha-header { background: #ef4444; }
.gmp-style-toxico .gmp-ficha-title { color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.gmp-style-toxico .gmp-header-badge { color: #ef4444; background: #ffffff; border: 2px solid #ef4444; }

.gmp-style-comestible { border-color: #16a34a; }
.gmp-style-comestible .gmp-ficha-header { background: #16a34a; }
.gmp-style-comestible .gmp-ficha-title { color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.gmp-style-comestible .gmp-header-badge { color: #16a34a; background: #ffffff; border: 2px solid #16a34a; }

.gmp-style-coccion { border-color: #16a34a; }
.gmp-style-coccion .gmp-ficha-header { background: linear-gradient(to right, #16a34a 0%, #ea580c 100%); }
.gmp-style-coccion .gmp-ficha-title { color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.gmp-style-coccion .gmp-header-badge { color: #ea580c; background: #ffffff; border: 2px solid #16a34a; }

.gmp-style-sinvalor { border-color: #fbbf24; }
.gmp-style-sinvalor .gmp-ficha-header { background: #fbbf24; }
.gmp-style-sinvalor .gmp-ficha-title { color: #000 !important; text-shadow: none; }
.gmp-style-sinvalor .gmp-header-badge { color: #b45309; background: #ffffff; border: 2px solid #fbbf24; }

.gmp-style-neutral { border-color: #999; }
.gmp-style-neutral .gmp-ficha-header { background: linear-gradient(to bottom, #e5e5e5 0%, #9ca3af 100%); }
.gmp-style-neutral .gmp-ficha-title { color: #333 !important; text-shadow: none; }
.gmp-style-neutral .gmp-header-badge { color: #333; background: #ffffff; border: 2px solid #999; }

/* =========================================
 * 4. DATOS Y TAXONOMÍA
 * =========================================
 */
.gmp-taxonomy-list { list-style: none; padding: 0; margin: 0 0 15px 0; position: relative; z-index: 1; }
.gmp-taxonomy-list li { margin-bottom: 2px; display: flex; align-items: baseline; line-height: 1.1; }
.gmp-label { font-size: 0.75rem; text-transform: uppercase; color: #888; font-weight: 700; min-width: 75px; letter-spacing: 0.5px; }
.gmp-value-bold { font-weight: 700; color: #444; }
.gmp-data-main { margin-top: 10px; position: relative; z-index: 1; } .big-name-row { margin-bottom: 12px; }
.gmp-species-name { font-size: 1.5rem; font-weight: 800; font-style: italic; color: #000; line-height: 1.2; }
.gmp-species-author { font-size: 0.95rem; font-weight: 400; color: #666; font-style: normal; margin-left: 6px; }
.gmp-value-italic { font-weight: 600; font-style: italic; color: #444; }

/* Botones Ficha */
.gmp-buttons-row { margin-top: 25px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.gmp-mini-btn {
    display: inline-block; font-size: 0.75rem; padding: 8px 16px; background-color: #2271b1; color: #fff !important; text-decoration: none !important; border-bottom: none !important; border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border: none; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: all 0.2s ease; cursor: pointer;
}
.gmp-mini-btn:hover { background-color: #135e96; color: #fff !important; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.25); }

/* =========================================
 * 5. GALERÍA MULTIMEDIA
 * =========================================
 */
.gmp-gallery-item { border-radius: 4px; border: 1px solid #ddd; overflow: hidden; cursor: pointer; position: relative; background: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.gmp-gallery-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); border-color: #999; }

/* REJILLA DE FOTOS */
.gmp-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.gmp-gallery-grid .gmp-gallery-item { aspect-ratio: 1 / 1; }
.gmp-gallery-grid .gmp-img-cover { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
 * 7. SHORTCODE (LISTADO + FILTROS)
 * =========================================
 */
.gmp-gallery-main-title { text-align: center; font-size: 2.2rem; font-weight: 900; text-transform: uppercase; margin-bottom: 25px; letter-spacing: 1px; margin-top: 50px; color: #000; }
.gmp-filters-container { background-color: #f9f9f9; border-bottom: 2px solid #e0e0e0; padding: 10px 15px; margin-bottom: 30px; border-radius: 6px; display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 15px; }
.gmp-filter-alphabetic { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex-grow: 1; }
.gmp-filter-link { display: inline-block; padding: 3px 6px; background: #dbeafe; border: 1px solid #ccc; text-decoration: none !important; color: #2271b1; border-radius: 3px; font-weight: 700; font-size: 0.8rem; min-width: 22px; text-align: center; transition: all 0.2s; }
.gmp-filter-link:hover, .gmp-filter-link.active { background: #2271b1; color: #fff; border-color: #2271b1; }

.gmp-especies-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; padding: 0; list-style: none; margin: 30px 0; }
.gmp-especie-item { background: #fff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: box-shadow 0.2s ease; border-top: 6px solid #ccc; position: relative; }

/* --- MINIATURAS CON DEGRADADO --- */
.gmp-especie-item.gmp-style-mortal { border-top: 6px solid !important; border-image: linear-gradient(to right, #ef4444 0%, #000000 100%) 1 0 0 0; }
.gmp-especie-item.gmp-style-coccion { border-top: 6px solid !important; border-image: linear-gradient(to right, #16a34a 0%, #ea580c 100%) 1 0 0 0; }
.gmp-especie-item.gmp-style-toxico { border-top-color: #ef4444; }
.gmp-especie-item.gmp-style-comestible { border-top-color: #16a34a; }
.gmp-especie-item.gmp-style-sinvalor { border-top-color: #fbbf24; }

.gmp-imagen-container { aspect-ratio: 4 / 3; width: 100%; overflow: hidden; position: relative; cursor: pointer; background: #f0f0f0; }
.gmp-title-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px 10px; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); text-align: center; display: flex; align-items: flex-end; justify-content: center; min-height: 60px; }
.gmp-especie-title { font-size: 1rem !important; font-weight: 700; font-style: italic; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.8); display: block; margin: 0; line-height: 1.3; }

/* =========================================
 * 13. PAGINACIÓN PREMIUM (CORRECCIÓN FALLO)
 * =========================================
 */
.gmp-pagination-wrapper {
    margin: 40px 0;
    text-align: center;
    width: 100%;
}

/* Limpieza de la lista de paginación */
.gmp-pagination-wrapper ul.page-numbers {
    display: inline-flex;
    list-style: none !important; /* Elimina los puntos/bullets */
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px;
    background: transparent;
    border: none;
}

.gmp-pagination-wrapper ul.page-numbers li {
    margin: 0 !important;
    padding: 0 !important;
    list-style-type: none !important; /* Refuerzo anti-puntos */
}

/* Estilo de cada botón numérico */
.gmp-pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    background: #ffffff;
    color: #2271b1;
    text-decoration: none !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Hover en los números */
.gmp-pagination-wrapper a.page-numbers:hover {
    background-color: #f0f6fb;
    border-color: #2271b1;
    color: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Página Actual (Destacada) */
.gmp-pagination-wrapper .page-numbers.current {
    background-color: #2271b1;
    color: #ffffff;
    border-color: #2271b1;
    cursor: default;
    box-shadow: 0 4px 10px rgba(34, 113, 177, 0.3);
}

/* Puntos suspensivos (...) */
.gmp-pagination-wrapper .page-numbers.dots {
    border: none;
    background: transparent;
    color: #888;
    box-shadow: none;
}

/* Botones Anterior/Siguiente especiales (si existen) */
.gmp-pagination-wrapper .prev.page-numbers,
.gmp-pagination-wrapper .next.page-numbers {
    padding: 0 15px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* =========================================
 * 8. LIGHTBOX PRO & OTROS (Resumido para brevedad)
 * =========================================
 */
.gmp-lightbox-overlay { position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.gmp-lightbox-overlay.active { display: flex; }
.gmp-modal-overlay { position: fixed; z-index: 99990; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.gmp-modal-overlay.active { display: flex; opacity: 1; }
.gmp-modal-wrapper { background: #fff; width: 90%; max-width: 1000px; max-height: 90vh; border-radius: 8px; position: relative; overflow-y: auto; }
.gmp-card-credit { display: flex; align-items: center; justify-content: flex-end; font-size: 0.75rem; color: #666; margin-top: 5px; }
