/* =========================================================
   FICHA (Blog operativa) — Template CSS
   - NO redefine tokens globales
   - NO redefine body
   - Solo layout y componentes de la ficha
   ========================================================= */

/* Fondo / depth: usa el sistema global (body::before).
   Si querés el extra “ficha”, lo agregamos como overlay local sin pisar global. */
.gl-ficha-bgfx{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 18% 32%, rgba(147,168,95,.14), transparent 62%),
    radial-gradient(760px 520px at 72% 26%, rgba(67,81,2,.12), transparent 64%),
    radial-gradient(860px 560px at 58% 78%, rgba(147,168,95,.08), transparent 70%);
  filter: blur(10px);
  opacity: .65;
}

/* Contenedor ficha por encima del overlay */
.container{
  position: relative;
  z-index: 1;
}

/* =========================================================
   Layout ficha
   ========================================================= */

.gl-ficha{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.gl-ficha-aside{
  position: sticky;
  top: 84px;
  align-self: start;
  border-radius: var(--gl-radius);
  border: 1px solid var(--gl-border-1);
  background: linear-gradient(180deg, var(--gl-surface-1), var(--gl-surface-0));
  box-shadow: var(--gl-shadow-2);
  padding: 14px;
  overflow: hidden;
}

.gl-ficha-aside .kicker{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(147,168,95,.86);
  font-weight: 900;
  margin: 4px 2px 10px;
}

.gl-ficha-aside a{
  color: var(--gl-fg);
  text-decoration: none;
  display: block;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--gl-border-1);
  background: var(--gl-surface-1);
  margin-bottom: 10px;
  font-weight: 750;
  transition: transform var(--gl-t-fast), border-color var(--gl-t-fast), background var(--gl-t-fast);
}

.gl-ficha-aside a:hover{
  transform: translateY(-1px);
  background: var(--gl-surface-2);
  border-color: var(--gl-border-2);
}

.gl-ficha-aside .aside-note{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--gl-border-1);
  background: var(--gl-surface-0);
  color: var(--gl-fg-dim);
  font-size: 13px;
  line-height: 1.45;
}
.gl-ficha-aside .aside-note b{ color: var(--gl-fg); }

.gl-ficha-main{
  border-radius: var(--gl-radius);
  border: 1px solid var(--gl-border-1);
  background: linear-gradient(135deg, var(--gl-surface-2), var(--gl-surface-1));
  box-shadow: var(--gl-shadow-2);
  overflow: hidden;
}

.gl-ficha-head{
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--gl-border-1);
  background: var(--gl-surface-0);
}

.gl-meta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--gl-border-1);
  background: var(--gl-surface-0);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(147,168,95,.86);
  font-weight: 900;
}

.pill b{
  letter-spacing: normal;
  text-transform: none;
  color: var(--gl-fg);
  font-weight: 850;
}

.gl-ficha-main h1{
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.sub{
  margin:0;
  max-width: 78ch;
  color: var(--gl-fg-dim);
  line-height: 1.55;
  font-size: 15px;
}

.gl-ficha-body{
  padding: 18px 22px 22px;
}

.grid-2{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.card{
  border-radius: var(--gl-radius);
  border: 1px solid var(--gl-border-1);
  background: var(--gl-surface-1);
  padding: 14px;
  overflow: hidden;
}

.card-title{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(147,168,95,.84);
  font-weight: 900;
  margin: 2px 0 10px;
}

.card p{
  margin:0;
  color: var(--gl-fg-dim);
  line-height: 1.55;
  font-size: 14px;
}

/* Tabla */
.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 18px;
  border: 1px solid var(--gl-border-1);
  background: var(--gl-surface-0);
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(147,168,95,.10);
  vertical-align: top;
  font-size: 13.5px;
  line-height: 1.45;
}
.table th{
  text-align:left;
  color: rgba(147,168,95,.86);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
  background: var(--gl-surface-0);
}
.table td{ color: var(--gl-fg-dim); }
.table tr:last-child td{ border-bottom: none; }

/* Loop */
.loop{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.loop-step{
  border-radius: 18px;
  border: 1px solid var(--gl-border-1);
  background: var(--gl-surface-1);
  padding: 12px;
  min-height: 150px;
}
.loop-step .tag{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--gl-border-1);
  background: var(--gl-surface-0);
  color: rgba(147,168,95,.86);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.loop-step h3{
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--gl-fg);
}
.loop-step ul{
  margin: 0;
  padding-left: 16px;
  color: var(--gl-fg-dim);
  font-size: 13px;
  line-height: 1.45;
}
.loop-step li{ margin: 6px 0; }

/* Details */
details{
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid var(--gl-border-1);
  background: var(--gl-surface-0);
  overflow:hidden;
}
summary{
  cursor: pointer;
  list-style: none;
  padding: 12px 12px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--gl-fg);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker{ display:none; }
.details-body{
  padding: 0 12px 12px;
  color: var(--gl-fg-dim);
  font-size: 13.5px;
  line-height: 1.55;
  border-top: 1px solid rgba(147,168,95,.10);
}

/* Responsive */
@media (max-width: 980px){
  .gl-ficha{ grid-template-columns: 1fr; }
  .gl-ficha-aside{ position: relative; top: auto; }
  .loop{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}