/* Estilos propios de /guias (se cargan después de ../styles.css) */

.g-head { padding: 150px 0 60px; }
.g-kicker { font-size: 16px; color: var(--ink-50); margin-bottom: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.g-kicker a { text-decoration: underline; text-underline-offset: 3px; }
.g-title {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 600; line-height: .98; letter-spacing: -0.03em;
  max-width: 1000px;
}
.g-lead { margin-top: 24px; max-width: 680px; font-size: 20px; color: rgba(17,17,17,.75); }

/* listado */
.g-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 140px; }
.g-card {
  position: relative; min-height: 420px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); color: var(--cream);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.g-card .post-img { position: absolute; inset: 0; transition: transform 1s var(--ease); }
.g-card:hover .post-img { transform: scale(1.05); }
.g-card .post-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.85)); }
.g-card-body { position: relative; padding: 22px; display: grid; gap: 8px; }
.g-card time, .g-card p { font-size: 15px; opacity: .85; }
.g-card h2 { font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.c1 { background: #e9e4dd url('../img/guias/resenas.jpg') center / cover no-repeat; }
.c2 { background: #FAF7F3 url('../img/guias/seo.jpg') center / cover no-repeat; }
.c3 { background: #111 url('../img/guias/carta.jpg') center / cover no-repeat; }

/* artículo */
.g-article { display: grid; grid-template-columns: 1fr 300px; gap: 80px; padding-bottom: 120px; }
.prose { max-width: 700px; font-size: 19px; line-height: 1.65; letter-spacing: -0.015em; color: rgba(17,17,17,.88); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin-top: 2em; }
.prose h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: .45em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .note {
  border-left: 3px solid var(--ink); padding: 4px 0 4px 18px;
  font-size: 17px; color: rgba(17,17,17,.75);
}
.prose .summary {
  background: var(--card); color: var(--cream);
  border-radius: var(--radius); padding: 22px 24px;
  font-size: 17px;
}
.prose .summary strong { color: var(--cream); }
.prose .summary ul { margin-top: 10px; }

.g-aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 16px; }
.g-cta {
  background: var(--card); color: var(--cream);
  border-radius: var(--radius); padding: 22px;
  display: grid; gap: 14px;
}
.g-cta h3 { font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.g-cta p { font-size: 15px; opacity: .8; }
.g-cta a {
  display: block; text-align: center;
  background: var(--cream); color: var(--ink);
  border-radius: 8px; padding: 11px; font-size: 15px; font-weight: 500;
  transition: opacity .2s;
}
.g-cta a:hover { opacity: .85; }
.g-cta a.ghost { background: transparent; color: var(--cream); border: 1px solid rgba(250,247,243,.3); }
.g-toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 15px; }
.g-toc strong { display: block; font-weight: 500; margin-bottom: 10px; }
.g-toc ol { padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-50); }
.g-toc a:hover { color: var(--ink); }

.g-related { padding: 0 0 140px; }
.g-related .h2 { margin-bottom: 40px; }

@media (max-width: 1000px) {
  .g-list { grid-template-columns: 1fr 1fr; }
  .g-article { grid-template-columns: 1fr; gap: 40px; }
  .g-aside { position: static; }
  .g-toc { display: none; }
}
@media (max-width: 720px) {
  .g-head { padding: 120px 0 40px; }
  .g-lead { font-size: 18px; }
  .g-list { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
}

/* barra de progreso de lectura */
.g-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--ink);
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 60;
}
/* índice: apartado activo */
.g-toc a { display: inline-block; transition: color .3s, translate .4s var(--ease); }
.g-toc a.active { color: var(--ink); font-weight: 500; translate: 4px 0; }
.g-toc li:has(a.active)::marker { color: var(--ink); }
html { scroll-padding-top: 90px; }

/* ilustración arriba, texto abajo sobre fondo oscuro */
.g-card .post-img { bottom: 44%; }
.g-card .post-img::after { background: linear-gradient(transparent 75%, rgba(17,17,17,.35)); }
