/* ==========================================================================
   guia.css — páginas de nicho dentro de /clinicas/
   --------------------------------------------------------------------------
   Reutiliza los tokens y componentes de clinicas.css. Añade la capa editorial:
   hero de artículo, respuesta corta, métricas, prosa, tablas, pasos, FAQ y
   cierre. Sin animaciones: el contenido es el protagonista y no depende de JS.
   ========================================================================== */

.g-page {
  padding-top: 66px;
  background: var(--cl-white);
}

/* --------------------------------------------------------------------------
   Migas de pan
   -------------------------------------------------------------------------- */

.g-breadcrumb {
  padding: 26px 0 0;
  font-size: 0.8rem;
  color: var(--cl-muted);
}

.g-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.g-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.g-breadcrumb li + li::before {
  content: "/";
  color: var(--cl-line-2);
}

.g-breadcrumb a {
  color: var(--cl-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.g-breadcrumb a:hover {
  color: var(--cl-red);
  border-bottom-color: var(--cl-red);
}

/* --------------------------------------------------------------------------
   Hero del artículo
   -------------------------------------------------------------------------- */

.g-hero {
  padding: clamp(34px, 5vw, 58px) 0 clamp(26px, 4vw, 40px);
}

.g-hero h1 {
  max-width: 21ch;
  font-size: clamp(2.05rem, 4.6vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.g-hero h1 em {
  font-style: normal;
  color: var(--cl-red);
}

.g-hero__lead {
  max-width: 66ch;
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  color: var(--cl-muted);
}

.g-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--cl-muted);
}

.g-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.g-hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cl-red);
}

.g-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Respuesta corta + métricas
   -------------------------------------------------------------------------- */

.g-answer {
  margin-top: 8px;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--cl-line);
  border-left: 4px solid var(--cl-red);
  border-radius: var(--cl-radius);
  box-shadow: 0 18px 44px -32px rgba(20, 24, 28, 0.32);
}

.g-answer__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cl-red);
}

.g-answer p {
  margin-top: 10px;
  font-size: 1.07rem;
  line-height: 1.55;
}

.g-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid var(--cl-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--cl-line);
  gap: 1px;
}

.g-kpi {
  padding: 16px 18px;
  background: #fff;
}

.g-kpi b {
  display: block;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.g-kpi span {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--cl-muted);
}

/* --------------------------------------------------------------------------
   Prosa
   -------------------------------------------------------------------------- */

.g-prose {
  max-width: 820px;
  padding-top: clamp(44px, 6vw, 68px);
  padding-bottom: 10px;
}

.g-prose h2 {
  margin: 54px 0 16px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.g-prose h2:first-child {
  margin-top: 0;
}

.g-prose h3 {
  margin: 32px 0 10px;
  font-size: 1.12rem;
  line-height: 1.3;
}

.g-prose p {
  margin-bottom: 16px;
}

.g-prose a {
  color: var(--cl-red-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.g-prose a:hover {
  color: var(--cl-red);
}

.g-prose ul,
.g-prose ol {
  margin: 0 0 20px;
}

.g-prose ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.g-prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cl-red);
}

.g-prose ol {
  counter-reset: item;
}

.g-prose ol li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  counter-increment: item;
}

.g-prose ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 4px;
  top: 0;
  font-weight: 700;
  color: var(--cl-red);
}

.g-prose strong {
  font-weight: 600;
}

/* Tablas */

.g-table-wrap {
  margin: 22px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--cl-line);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.g-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
  background: #fff;
}

.g-table th,
.g-table td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--cl-line);
}

.g-table th {
  background: #f4f0eb;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cl-muted);
}

.g-table tbody tr:last-child td {
  border-bottom: 0;
}

.g-table td:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.g-table--totals td {
  font-weight: 600;
  background: #fffaf8;
}

/* Aviso y llamadas de atención */

.g-note {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--cl-muted);
}

.g-callout {
  margin: 26px 0;
  padding: 20px 22px;
  background: rgba(240, 88, 54, 0.06);
  border-radius: 12px;
  font-size: 0.98rem;
}

.g-callout strong {
  color: var(--cl-red-dark);
}

.g-callout p:last-child {
  margin-bottom: 0;
}

/* Pasos */

.g-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 30px;
}

.g-step {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--cl-line);
  border-radius: 14px;
}

.g-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cl-ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.g-step h3 {
  margin: 12px 0 7px;
  font-size: 0.98rem;
}

.g-step p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--cl-muted);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.g-faq-section {
  padding: 0 0 clamp(54px, 7vw, 80px);
}

.g-faq-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.025em;
}

/* --------------------------------------------------------------------------
   Otras especialidades
   -------------------------------------------------------------------------- */

.g-related {
  padding: clamp(48px, 7vw, 72px) 0;
  background: #fff;
  border-top: 1px solid var(--cl-line);
}

.g-related h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: -0.02em;
}

.g-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.g-card {
  display: block;
  padding: 20px;
  background: var(--cl-white);
  border: 1px solid var(--cl-line);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s var(--cl-ease), border-color 0.2s ease;
}

.g-card:hover {
  transform: translateY(-2px);
  border-color: var(--cl-red);
}

.g-card b {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.g-card span {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--cl-muted);
}

/* --------------------------------------------------------------------------
   Cierre
   -------------------------------------------------------------------------- */

.g-cta {
  padding: clamp(56px, 8vw, 84px) 0;
  background: var(--cl-ink);
  color: #fff;
}

.g-cta .cl-tag {
  color: rgba(255, 255, 255, 0.7);
}

.g-cta h2 {
  max-width: 24ch;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.g-cta p {
  max-width: 62ch;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
}

.g-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.g-btn-light {
  background: #fff;
  color: var(--cl-ink);
}

.g-btn-light:hover {
  background: #f2ebe6;
  transform: translateY(-2px);
}

.g-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.g-btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Pie y descargo
   -------------------------------------------------------------------------- */

.g-page .cl-foot {
  background: var(--cl-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.g-disclaimer {
  padding: 18px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--cl-muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .g-steps {
    grid-template-columns: 1fr;
  }

  .g-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g-hero h1 {
    max-width: none;
  }

  .g-prose h2 {
    margin-top: 42px;
  }
}

@media (max-width: 640px) {
  .g-kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .g-hero h1 {
    font-size: clamp(1.72rem, 7.9vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .g-cards {
    grid-template-columns: 1fr;
  }

  .g-answer {
    padding: 22px 20px;
  }

  .g-hero__cta .cl-btn {
    width: 100%;
  }

  .g-table {
    min-width: 480px;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g-card,
  .cl-btn {
    transition: none;
  }
}
