/* Guias para organizadores (/organizer/guides/{slug}, Views/OrganizerPages/Guide.cshtml). Formato A del
   lienzo: indice a la izquierda, articulo al centro, tarjeta de crear evento a la derecha. Abajo de
   1024 px: indice desplegable arriba, tarjeta al final y barra fija con el paso en que vas. */

.gd-page { background: var(--bg-card); }

.gd-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-8) var(--space-9);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
}

/* Indice (computadora): fijo mientras se baja */
.gd-toc {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--text-small);
}
.gd-toc__label,
.gd-related__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.gd-toc__link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
}
.gd-toc__link:hover { color: var(--text-primary); background: var(--surface-40); }
.gd-toc__link.is-current { background: var(--surface); color: var(--text-primary); font-weight: 700; }

/* Articulo */
.gd-article {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--text-primary);
}
.gd-draft {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--wine-15);
  color: var(--text-primary);
  font-size: var(--text-small);
  font-weight: 600;
}
/* La etiqueta es pr-eyebrow (precios.css); aqui solo se quita su margen: el articulo ya separa con gap. */
.gd-eyebrow { margin: 0; }
.gd-article > .mk-crumbs { margin: 0; }
.gd-title {
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.03em;
}
.gd-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--text-secondary); }
.gd-meta {
  margin: 0 0 var(--space-2);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--surface);
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.gd-section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 88px; padding-top: var(--space-3); }
.gd-section h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
/* Solo los parrafos del articulo (hijos directos): las preguntas (mk-faq) traen su propio estilo. */
.gd-section > p,
.gd-section > ul li { font-size: 17px; line-height: 1.7; color: var(--text-secondary); }
.gd-section > p { margin: 0; }
.gd-section ul { margin: 0; padding-left: 22px; }
.gd-section a { color: var(--text-primary); font-weight: 600; }
.gd-section strong { color: var(--text-primary); }

.gd-section .gd-tip {
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--wine-15);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
}

/* "Así se hace en Tixzel": texto + captura del panel */
.gd-howto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
}
.gd-howto--text { grid-template-columns: minmax(0, 1fr); }
.gd-howto__copy { display: flex; flex-direction: column; gap: 8px; }
.gd-howto__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.gd-section .gd-howto__copy p { font-size: 16px; line-height: 1.6; color: var(--text-primary); }
.gd-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border-subtle); }
.gd-shot--link { display: block; min-width: 0; text-decoration: none; }
.gd-shot--link:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 5px; border-radius: 12px; }
.gd-shot__expand { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--text-secondary); }
.gd-shot--link:hover .gd-shot__expand { text-decoration: underline; }
.gd-shot--link img { cursor: zoom-in; }
/* El visor (v-lightbox) muestra la captura casi a pantalla completa y la barra fija de celular queda abajo. */
.gd-lightbox { z-index: 9000; }
.gd-lightbox .v-lightbox__img { background: var(--bg-card); }
.gd-shot--pending {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 140px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--bg-card);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.gd-shot--pending strong { color: var(--text-primary); }

/* Tarjeta de crear evento (mk-faqcta__cta, marketing.css) + funciones relacionadas. Lo fijo al bajar es
   la columna entera, no la tarjeta sola. */
.gd-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.gd-cta.mk-faqcta__cta { position: static; }
.gd-cta .mk-faqcta__photo { height: 170px; }
.gd-cta .mk-faqcta__title { font-size: 24px; }
.gd-related {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--surface);
  border-radius: 18px;
  font-size: var(--text-small);
}
.gd-related a { color: var(--text-primary); font-weight: 600; }

.gd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-primary);
  color: var(--text-on-accent);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.gd-btn:hover { background: var(--accent-primary-hover); color: var(--text-on-accent); }

/* Solo en celular */
.gd-toc-mobile,
.gd-aside-inline,
.gd-bar { display: none; }

/* Entre tableta y laptop, dos columnas dejan espacio para leer junto a la captura. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .gd-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding-inline: var(--space-5); }
  .gd-aside { display: none; }
  .gd-aside-inline { display: flex; flex-direction: column; gap: 16px; margin-top: var(--space-5); }
}

@media (max-width: 1023px) {
  .gd-grid { grid-template-columns: minmax(0, 1fr); padding: var(--space-5) var(--space-4) 120px; gap: 0; }
  .gd-toc,
  .gd-aside { display: none; }
  .gd-article { max-width: none; gap: 16px; }
  .gd-title { font-size: 32px; line-height: 1.12; }
  .gd-lead { font-size: 17px; }
  .gd-section h2 { font-size: 24px; }
  .gd-section > p,
  .gd-section > ul li { font-size: 16px; }
  .gd-section { scroll-margin-top: 80px; }

  .gd-toc-mobile { display: block; border: 1px solid var(--surface); border-radius: 16px; background: var(--bg-canvas); }
  .gd-toc-mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: var(--text-small);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
  }
  .gd-toc-mobile summary::-webkit-details-marker { display: none; }
  .gd-toc-mobile[open] summary i { transform: rotate(180deg); }
  .gd-toc-mobile nav { display: flex; flex-direction: column; padding: 0 8px 10px; }
  .gd-toc-mobile .gd-toc__link { padding: 10px; font-size: 15px; }

  .gd-howto { grid-template-columns: minmax(0, 1fr); padding: 18px; }

  .gd-aside-inline { display: flex; flex-direction: column; gap: 16px; margin-top: var(--space-5); }

  .gd-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
  }
  .gd-bar__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .gd-bar__step { font-size: 12px; color: var(--text-muted); }
  .gd-bar__title { font-size: var(--text-small); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gd-bar .gd-btn { height: 44px; font-size: 14px; }
}
.gd-lightbox [hidden] { display: none; }
