/*!
    
 =========================================================
 * WebEngine CMS
 * https://webenginecms.org/
 =========================================================
 
 * Author Lautaro Angelico (https://lautaroangelico.com/)
 * Copyright (c) 2013-2020 Lautaro Angelico, All Rights Reserved
 
 * Licensed under the MIT license
 * http://opensource.org/licenses/MIT
 
 =========================================================
 
*/
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    border-top: none !important;
}

a:focus, a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.form-control {
	background: #fafafa;
	border: 1px solid #e3e3e3;
	color: #666;
}
.form-control:focus {
	border: 1px solid #ccc;
}

/* http://stackoverflow.com/questions/19562903/remove-padding-from-columns-in-bootstrap-3 */
.nopadding {
   padding: 0 !important;
   margin: 0 !important;
}

/* http://stackoverflow.com/questions/20547819/vertical-align-with-bootstrap-3 */
.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.thumbnail {
    background-color: #f1f1f1;
    border: 1px solid #e3e3e3;
}
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
  border-color: #ff0000;
}
/* =========================================================
   UserCP - Logros personales (we-pachv-*)
   ========================================================= */

.we-pachv-wrap{max-width:980px;margin:0 auto;padding:10px 10px 16px}

/* TOP */
.we-pachv-top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.we-pachv-title{display:flex;align-items:center;gap:10px;font-weight:900;color:#222;font-size:16px}
.we-pachv-title i{color:var(--ColorTemplate,#6b1b1b)}
.we-pachv-chips{display:flex;gap:10px;flex-wrap:wrap}
.we-pachv-chip{display:flex;align-items:baseline;gap:8px;padding:7px 10px;border-radius:999px;background:#fff;border:1px solid rgba(0,0,0,.10);box-shadow:0 10px 22px rgba(0,0,0,.06);font-size:12px}
.we-pachv-chip span{color:rgba(0,0,0,.55);font-weight:800}
.we-pachv-chip b{color:#222;font-weight:900}
.we-pachv-chip-strong{border-left:4px solid var(--ColorTemplate,#6b1b1b)}

/* Secciones */
.we-pachv-section{margin-top:12px}
.we-pachv-section-title{
  display:flex;align-items:center;gap:10px;
  font-weight:900;font-size:13px;color:#222;
  padding:10px 10px;border-radius:14px;
  background:linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.06));
  border:1px solid rgba(0,0,0,.10);
  box-shadow:0 10px 22px rgba(0,0,0,.06);
  margin-bottom:10px;
}
.we-pachv-section-title i{color:var(--ColorTemplate,#6b1b1b)}

/* Grid */
.we-pachv-grid{display:grid;gap:12px;grid-template-columns:repeat(3, minmax(0, 1fr))}
@media (max-width:980px){.we-pachv-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}}
@media (max-width:640px){.we-pachv-grid{grid-template-columns:1fr}}

/* Cards base */
.we-pachv-card{
  background:#fff;
  border-radius:14px;
  box-shadow:0 12px 26px rgba(0,0,0,.07);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid rgba(0,0,0,.10);
}

/* Marco rojo/verde */
.we-pachv-card.pending{ border:1.5px solid rgba(220, 60, 60, .55); }
.we-pachv-card.done{ border:1.5px solid rgba(35, 170, 85, .55); }

.we-pachv-card-top{
  display:grid;
  grid-template-columns:42px 1fr auto;
  gap:10px;
  align-items:center;
  padding:10px;
  border-bottom:1px solid rgba(0,0,0,.06);
  background:linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.06));
}

.we-pachv-ico{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  border:1px solid rgba(0,0,0,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.70), rgba(0,0,0,.05));
  color:rgba(0,0,0,.70);
  font-size:16px;
}
.we-pachv-card.pending .we-pachv-ico{ color: rgba(220, 60, 60, .95); }
.we-pachv-card.done .we-pachv-ico{ color: rgba(35, 170, 85, .95); }

/* ✅ Título: 3 líneas + tooltip */
.we-pachv-ttl{
  font-weight:900;color:#222;font-size:12.5px;line-height:1.15;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  max-height:44px;
  cursor:help; /* sugiere tooltip */
}

.we-pachv-badge{
  padding:5px 9px;border-radius:999px;font-weight:900;font-size:11px;
  border:1px solid rgba(0,0,0,.10);white-space:nowrap
}
.we-pachv-badge.pending{background:rgba(220,60,60,.08);color:rgba(220,60,60,.95);border-color:rgba(220,60,60,.18)}
.we-pachv-badge.done{background:rgba(35,170,85,.10);color:rgba(35,170,85,.95);border-color:rgba(35,170,85,.18)}
.we-pachv-badge.paid{background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.10)), var(--ColorTemplate,#6b1b1b);color:#fff;border-color:rgba(0,0,0,.12)}

.we-pachv-card-mid{padding:10px 10px 8px;display:flex;flex-direction:column;gap:8px}
.we-pachv-hint{font-weight:800;font-size:11.5px;color:rgba(0,0,0,.65)}
.we-pachv-reward{
  margin-top:auto;text-align:center;padding:8px 10px;border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.75), rgba(0,0,0,.04));
  font-weight:900;color:#222;font-size:12px
}
.we-pachv-reward span{color:rgba(0,0,0,.55);font-weight:900}

.we-pachv-card-foot{
  padding:9px 10px;display:flex;justify-content:space-between;gap:10px;
  border-top:1px solid rgba(0,0,0,.06);
  background:rgba(0,0,0,.02)
}
.we-pachv-meta{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:11px;color:rgba(0,0,0,.65)}
.we-pachv-meta i{color:rgba(0,0,0,.45)}
.we-pachv-meta.muted{color:rgba(0,0,0,.35)}

.we-pachv-empty{
  background:#fff;border:1px solid rgba(0,0,0,.10);
  border-radius:14px;padding:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  color:rgba(0,0,0,.70);font-weight:800
}
.we-pachv-note{margin-top:10px;text-align:center;color:rgba(0,0,0,.55);font-weight:800;font-size:12px}

/* Guest (no logueado) */
.we-pachv-guest{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid rgba(0,0,0,.10);border-left:4px solid var(--ColorTemplate,#6b1b1b);border-radius:14px;padding:14px;box-shadow:0 10px 26px rgba(0,0,0,.08)}
.we-pachv-guest-ico{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.10));border:1px solid rgba(0,0,0,.10);color:var(--ColorTemplate,#6b1b1b);font-size:18px}
.we-pachv-guest-title{font-weight:900;color:#222;font-size:14px;margin-top:2px}
.we-pachv-guest-text{color:rgba(0,0,0,.70);font-weight:700;font-size:12px;line-height:1.35;margin-top:4px}
.we-pachv-guest-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.we-pachv-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;font-weight:900;font-size:12px;color:#fff;background:var(--ColorTemplate,#6b1b1b);border:1px solid rgba(0,0,0,.12);text-decoration:none}
.we-pachv-btn:hover{filter:brightness(1.05);text-decoration:none}
.we-pachv-btn-ghost{background:#fff;color:var(--ColorTemplate,#6b1b1b);border:1px solid rgba(0,0,0,.14)}
.we-pachv-btn-ghost:hover{background:rgba(0,0,0,.03)}
/* ============================
   Achievements – Title fix
   ============================ */

/* el título de cada card: centrado, mejor wrapping y +1 línea */
.we-pachv-ttl{
  text-align: center;
  max-height: 48px;                /* antes 32px: permite 3 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 3;           /* antes 2: evita cortes feos */
  -webkit-box-orient: vertical;
  overflow: hidden;

  line-height: 1.1;
  word-break: normal;
  overflow-wrap: anywhere;         /* evita overflow raro */
  hyphens: none;                   /* no cortar palabras */
  text-wrap: balance;              /* si el navegador lo soporta, centra “de” mejor */
}

/* Alinea verticalmente el título dentro del header para que quede prolijo */
.we-pachv-card-top{
  align-items: center;
}

/* opcional: hace que el bloque del título se vea más “card-like” y estable */
.we-pachv-ttl{
  padding: 0 2px;
}