
/* IG LIST PLUGIN — CSS centralizado (v1.0.4e)
   Coloca este archivo en: /wp-content/plugins/ig-list-plugin/assets/ig-list.css
   Notas:
   - Se han eliminado todos los estilos embebidos en plantillas.
   - Este CSS cubre .iglp-* (filtros/paginación/layout) y las tarjetas .evento-* y .revista-*.
*/

/* =========== CONTENEDOR Y LAYOUT GENERAL =========== */
.iglp-wrapper{margin:20px 0}
.iglp-loading{opacity:.6;pointer-events:none;transition:opacity .2s}

/* Filtros */
.iglp-filters{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:0 0 20px}
.iglp-filter-button{background:#f2f2f2;border:none;color: #173a53; border-radius:999px;padding:10px 16px;cursor:pointer;font-weight:600;font-size:14px;line-height:1;transition:all .2s}
.iglp-filter-button:hover{transform:translateY(-1px)}
.iglp-filter-button.active{background:#173a53;color:#fff}

/* Resultados: grid adaptable */
.iglp-results, .ig-contenedor {display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px;margin: 30px 0px;}

/* Paginación */
.iglp-pagination{display:flex;gap:8px;justify-content:center;margin-top:22px}
.iglp-nav a.iglp-page, .iglp-pagination a.iglp-page{display:inline-flex;align-items:center;margin: 0 2px;justify-content:center;min-width:36px;height:36px;padding:0 10px;border-radius:8px;background:#173a53;text-decoration:none;color:#fff;font-weight:600;transition:transform .15s, box-shadow .15s}
.iglp-nav a.iglp-page:hover, .iglp-pagination a.iglp-page:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,.08)}
.iglp-nav .iglp-page.current, .iglp-pagination .iglp-page.current{background:#111;color:#fff}

/* =========== TARJETAS GENERALES =========== */
.iglp-card{display:block;background:#fff;border:1px solid #eee;border-radius:14px;padding:18px;text-decoration:none;color:inherit;box-shadow:0 2px 10px rgba(0,0,0,.04);transition:transform .15s, box-shadow .15s}
.iglp-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.06)}
.iglp-item {display: flex;flex-direction: column;border: 1px solid #ddd;border-radius: 6px;padding: 0px; background: #fff;overflow: hidden;transition: transform 0.3s ease, box-shadow 0.3s ease;}
.iglp-item:hover {transform: scale(1.03);box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05); border: 1px solid #ddd;}

/* =========== DEFAULT (.evento-*) =========== */
.default-item {display: flex; padding: 24px;flex-direction: column;border: 0px solid #ddd;border-radius: 6px;background: #fff;overflow: hidden;transition: transform 0.3s ease, box-shadow 0.3s ease;}
.default-imagen {height: 250px;overflow: hidden;}
.default-imagen img {width: 100%;height: 100%;object-fit: cover;}
.default-content{display:flex;flex-direction:column;gap:2px}
.default-title{font-size:24px;line-height:1.25;margin:0;font-weight:700;color:#222}
.default-fecha{font-size:14px;color:#666;margin:0}
.default-extracto{font-size:14px;color:#444;margin:0}
.default-boton{display: inline-block; width: fit-content; padding: 10px 20px;background-color: #173a53;width:fit-content;color: #fff !important;border-radius: 100px;font-weight: 700;font-size: 14px;text-transform: uppercase;margin-top: 15px;transition: background-color 0.3s ease;}
.default-boton .icono-mas{display:none;line-height:1}
.default-boton:hover{filter:brightness(1.05)}

/* =========== EVENTOS (.evento-*) =========== */
.evento-item {display: flex;flex-direction: column;border: 0px solid #ddd;border-radius: 6px;background: #fff;overflow: hidden;transition: transform 0.3s ease, box-shadow 0.3s ease;}
.evento-item:hover {transform: scale(1.03);box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);border: 1px solid #ddd;}
.evento-imagen {height: 250px;overflow: hidden;}
.evento-imagen img {width: 100%;height: 100%;object-fit: cover;}
.evento-content{display:flex;flex-direction:column;gap:2px; padding: 35px 25px; text-align: center;}
.evento-title{font-size:24px;line-height:1.25;margin:0;font-weight:700;color:#222}
.evento-fecha{font-size:14px;color:#666;margin:0}
.evento-extracto{font-size:14px;color:#444;margin:0}
.evento-boton{display: inline-block; width: fit-content; margin: 0 auto; padding: 10px 20px;background-color: #173a53;color: #fff !important;border-radius: 100px;font-weight: 700;font-size: 14px;text-transform: uppercase;margin-top: 15px;transition: background-color 0.3s ease;}
.evento-boton .icono-mas{display:none;line-height:1}
.evento-boton:hover{filter:brightness(1.05)}

/* Extra: si existen clases dinámicas en $term_classes se pueden apuntalar con chips */
[class*="term-"], .evento-term-chip{display:inline-block;margin-right:6px;margin-bottom:6px}

/* =========== REVISTA (.revista-*) =========== */
.revista-grid{display:flex;flex-wrap:wrap;gap:30px;align-items:stretch}
.revista-item{display:flex;flex-direction:column;background:#fff;border:1px solid #eee;border-radius:14px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.revista-imagen{width:100%;display:block;background:#f7f7f7}
.revista-imagen img{width:100%;height:auto;display:block;object-fit:contain}
.revista-content{display:flex;flex-direction:column;gap:12px;padding:16px}
.revista-title{font-size:24px;line-height:1.3;margin:0;color:#222}
.revista-title a{color:inherit;text-decoration:none}
.revista-boton{align-self:flex-start;display:inline-block;margin-top:6px;padding:10px 16px;border-radius:999px;background:#111;color:#fff;text-transform:uppercase;letter-spacing:.02em;font-weight:700;font-size:12px;text-decoration:none}
.revista-boton:hover{filter:brightness(1.05)}

/* === EMPRESA ITEM === */
.empresa-item {display: flex;flex-direction: column;align-items: center;justify-content: center;border: none;padding: 30px;background-color: #fff;border-radius: 6px;text-align: center;transition: transform 0.3s ease, box-shadow 0.3s ease;min-height: 300px;text-decoration: none; /* por si el contenedor es <a> */}
.empresa-item:hover {transform: scale(1.05);box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);}
.empresa-logo { margin-bottom: 5px; }
.empresa-logo img {max-width: 240px;max-height: 140px;object-fit: contain;margin: 0 auto;display: block;}
.empresa-content {display: flex;flex-direction: column;align-items: center;}
.empresa-content h2 {margin: 15px 0;color: #333; font-size: 18px; font-weight: bold;}
.empresa-info {font-size: 16px;color: #666;margin: 10px 0;}

/* Botón genérico adaptado al bloque EMPRESA */
.empresa-content .leer-mas {display: inline-flex;align-items: center;gap: 8px;padding: 10px 20px;background-color: #173a53;color: #fff !important;border-radius: 30px;font-size: 14px;font-weight: 700;text-transform: uppercase;font-family: 'Inter', sans-serif;line-height: 1;transition: background-color 0.2s ease;}
.empresa-content .leer-mas .texto-boton { display: inline-block; }
.empresa-content .leer-mas .icono-mas { display: inline-block; }
.empresa-content .leer-mas:hover {background-color: #005a8c;}

/* =========== UTILES =========== */
.iglp-hidden{display:none !important}