/* --- LAYOUT GENERAL --- */
.inpex-wrap { display: flex; gap: 40px; font-family: inherit; align-items: flex-start; }
.inpex-side { width: 280px; flex-shrink: 0; }
.inpex-main { flex-grow: 1; }

/* --- FILTROS LATERALES --- */
.inpex-side-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid #000; padding-bottom: 10px; }
.inpex-side-header h3 { margin: 0; font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.inpex-input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; margin-bottom: 20px; box-sizing: border-box; }

.inpex-group { border-bottom: 1px solid #eee; }
.inpex-group-head { padding: 15px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; text-transform: uppercase; color: #333; transition: color .2s; }
.inpex-group-head:hover { color: #000; }
.inpex-chevron { font-size: 18px; transition: transform .3s; font-family: monospace; }
.inpex-group.open .inpex-chevron { transform: rotate(90deg); }
.inpex-checks { display: none; padding-bottom: 15px; }
.inpex-group.open .inpex-checks { display: block; }
.inpex-lbl { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; color: #555; cursor: pointer; line-height: 1.4; }
.inpex-lbl:hover { color: #000; }
.inpex-lbl input[type=checkbox] { margin: 0; width: 16px; height: 16px; border: 1px solid #ccc; border-radius: 3px; }

#reset-btn { width: 100%; padding: 10px; background: #fff; border: 1px solid #ddd; color: #555; font-weight: bold; cursor: pointer; margin-top: 20px; text-transform: uppercase; font-size: 12px; transition: .2s; }
#reset-btn:hover { background: #f0f0f0; border-color: #999; color: #000; }

/* --- GRID Y TARJETAS (LISTADO GENERAL) --- */
.inpex-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px; 
}

.inpex-card { 
    border: 1px solid #eee; 
    padding: 30px 20px; 
    border-radius: 8px; 
    background: #fff; 
    transition: .3s; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    height: 100%;
}

.inpex-card:hover { 
    border-color: var(--inpex-color) !important; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08); 
    transform: translateY(-5px); 
}

/* --- CÍRCULO DE LA IMAGEN (COMÚN) --- */
.inpex-card-img {
    width: 85px;          /* Un pelín más grande */
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid #f4f6f7; /* Borde gris suave externo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.inpex-card:hover .inpex-card-img {
    transform: scale(1.05);
}

/* --- CASO 1: TIENE LOGO REAL (Fondo Blanco) --- */
.inpex-card-img.has-logo {
    background-color: #ffffff; /* Fondo blanco para que no se vea el corte */
}

.inpex-card-img.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta el logo dentro sin cortarlo */
    padding: 2px;        /* Mínimo margen para aprovechar todo el círculo */
}

/* --- CASO 2: ICONO POR DEFECTO (Fondo de Color) --- */
.inpex-card-img.is-default {
    background-color: var(--inpex-color); /* Fondo verde/color */
    border: 3px solid #fff; /* Borde blanco interno extra */
}

.inpex-card-img.is-default img {
    width: 55%;        
    height: 55%;
    object-fit: contain;
    opacity: 1;
}


/* TÍTULO EN EL LISTADO */
.inpex-card h3 { 
    margin: 0; 
    font-size: 15px; 
    font-weight: 700; 
    line-height: 1.4; 
    width: 100%;
}

.inpex-card h3 a { 
    text-decoration: none; 
    color: #333; 
    transition: .2s; 
}

.inpex-card:hover h3 a { 
    color: var(--inpex-color) !important; 
}

/* Ocultar elementos antiguos */
.inpex-meta { display: none; }


/* --- FICHA INDIVIDUAL (SINGLE) --- */
/* Ocultar elementos del tema Astra */
.ast-single-post .entry-header, .ast-single-post .post-thumb, .ast-single-post .entry-meta,
.post-navigation, .ast-post-navigation, .navigation, .nav-links { display: none !important; }

.inpex-back-link { display: inline-block; margin-bottom: 15px; font-size: 13px; font-weight: 700; color: #666; text-decoration: none; cursor: pointer; text-transform: uppercase; }
.inpex-back-link:hover { color: #000; }

.inpex-hero { background: #f4f6f7; padding: 25px; border-radius: 6px; margin-bottom: 30px; display: flex; gap: 30px; align-items: center; }

/* IMAGEN EN LA FICHA INDIVIDUAL */
.inpex-circle-wrap { 
    width: 85px; 
    height: 85px; 
    border-radius: 50%; 
    
    /* FONDO DE COLOR PERSONALIZADO */
    background-color: var(--inpex-color);
    border: 3px solid #fff; /* Borde blanco interno */
    
    overflow: hidden; 
    flex-shrink: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

.inpex-circle-wrap img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    padding: 0; 
}

/* Ajuste específico para el icono BLANCO por defecto en Single */
.inpex-circle-wrap img.def-icon {
    width: 55% !important; 
    height: 55% !important;
    object-fit: contain;
}

h1.inpex-h1 { font-family: inherit !important; font-size: 22px !important; color: var(--inpex-color) !important; font-weight: 800 !important; text-transform: none !important; margin-top: 0 !important; margin-bottom: 15px !important; line-height: 1.2 !important; }

.inpex-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #555; margin-bottom: 5px; letter-spacing: 0.5px; }
.inpex-resp-box { display: flex; gap: 12px; align-items: center; }
.inpex-resp-img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.inpex-resp-txt { font-size: 14px; line-height: 1.3; }

/* --- PESTAÑAS (TABS) --- */
.inpex-tabs { border-bottom: 1px solid #ddd; display: flex; gap: 25px; margin-bottom: 25px; }
.inpex-btn { background: transparent !important; box-shadow: none !important; border: none !important; padding: 0 0 10px !important; font-size: 13px !important; font-weight: 700 !important; text-transform: uppercase !important; cursor: pointer; border-bottom: 3px solid transparent !important; color: #777 !important; transition: 0.3s; margin-bottom: -1px; border-radius: 0 !important; }
.inpex-btn:hover, .inpex-btn:focus { background: transparent !important; color: var(--inpex-color) !important; outline: none !important; }
.inpex-btn.active { background: transparent !important; color: var(--inpex-color) !important; border-bottom: 3px solid var(--inpex-color) !important; }

.inpex-tab-c { display: none; animation: fadeIn 0.4s; font-size: 16px; line-height: 1.6; color: #444; }
.inpex-tab-c.active { display: block; }
.inpex-list-box { background: #fafafa; padding: 25px; border-left: 4px solid var(--inpex-color); }

@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@media(max-width: 768px) { .inpex-hero { flex-direction: column; text-align: center; } .inpex-resp-box { flex-direction: column; } .inpex-wrap { flex-direction: column; } .inpex-side { width: 100%; } }