/* ====== Página GUÍA (específico) ====== */
.guia-hero {
  padding: 80px 10%;
  text-align: center;
  background: #f4fdf9;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.guia-hero h1 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 10px;
}
.guia-hero p {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  color: #333;
}

/* TOC */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 20px 10%;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.toc-item {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eaf7f2;
  color: #138d75;
  text-decoration: none;
  font-weight: 700;
  transition: transform .15s ease, background .25s ease;
}
.toc-item:hover { transform: translateY(-2px); background: #d7f1e7; }

/* Fases */
.fase {
  padding: 60px 10%;
  background: #f9f9f9;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.fase + .fase { background: #ffffff; }

.fase-header {
  text-align: left;
  max-width: 1100px;
  margin: 0 auto 24px;
}
.fase-header .badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #16a085;
  background: #eaf7f2;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.fase-header h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 6px;
}
.fase-header p {
  color: #444;
  max-width: 900px;
}

/* Layout contenido fase */
.fase-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}
@media (max-width: 980px) {
  .fase-grid { grid-template-columns: 1fr; }
}

.fase-main h3 {
  margin: 18px 0 10px;
  color: #2c3e50;
}
.list {
  margin-left: 16px;
  padding-left: 8px;
}
.list li {
  margin: 6px 0;
  color: #333;
}
.list.num { list-style: decimal; }
.list:not(.num) { list-style: disc; }

.inline-link {
  color: #16a085;
  text-decoration: none;
  border-bottom: 1px dotted #16a085;
}
.inline-link:hover { opacity: .85; }

/* Aside mini card */
.mini-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 18px 18px 12px;
  align-self: start;
}
.mini-card h4 {
  margin-bottom: 8px;
  color: #2c3e50;
}
.mini-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 10px;
}
.mini-card li { margin: 6px 0; color: #444; }
.mini-card .meta { font-size: .9rem; color: #666; }

/* Botones guía (prefijo gbtn para no chocar con .btn global) */
.gbtn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .25s ease, border-color .25s ease;
}
.gbtn:hover { transform: translateY(-2px); }

.gbtn-green { background: #16a085; color: #fff; }
.gbtn-green:hover { background: #138d75; }

.gbtn-orange { background: #e67e22; color: #fff; }
.gbtn-orange:hover { background: #ca6f1e; }

.gbtn-outline { background: transparent; color: #16a085; border-color: #16a085; }
.gbtn-outline:hover { background: #eaf7f2; }

.gbtn-lg { padding: 14px 28px; border-radius: 12px; font-size: 1.05rem; }

/* Filas de CTAs */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* CTA final */
.guia-cta-final {
  padding: 60px 10%;
  text-align: center;
  background: #fef8f3;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.guia-cta-final h3 {
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 16px;
}
.guia-cta-final .cta-row {
  justify-content: center;
  margin-top: 10px;
}

/* Ajuste de espacio entre "¿Listo para avanzar?" y el footer */
.guia-cta-final {
  padding: 40px 10% 16px;  /* top, lados, bottom  */
  text-align: center;
  background: #fef8f3;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Por si acaso, pegamos bien el footer al CTA */
.site-footer {
  margin-top: 0;
}

/* === CTA final de guía: más espacio interno === */

.guia-cta-final{
  padding: 72px 10% 56px;   /* top, lados, bottom: más alto */
  text-align: center;
  background: #fef8f3;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 0;         /* que no deje hueco extra hacia abajo */
}

/* pegamos bien el footer a la sección */
.site-footer{
  margin-top: 0;
}
