/* Estilos compartidos de las páginas de contenido (bloqueo web, agenda e inventario) */

.page-hero {
  padding-top: 8.5rem;
  padding-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.13) 0%, rgba(248, 250, 252, 0) 50%),
              radial-gradient(circle at 5% 90%, rgba(14, 165, 233, 0.1) 0%, rgba(248, 250, 252, 0) 50%);
}

/* Migas de pan: sutiles y fuera del flujo, para no desplazar el contenido del hero */
.page-hero > .container { position: relative; }

.breadcrumb-nav {
  position: absolute;
  top: -2.6rem;
  left: 1.5rem;
  right: 1.5rem;
  margin: 0;
}

.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--text-muted);
}

.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb svg { width: 13px; height: 13px; flex-shrink: 0; }
.breadcrumb [aria-current] { color: var(--primary); font-weight: 700; }
.breadcrumb li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1.5px solid var(--text-light);
  border-right: 1.5px solid var(--text-light);
  transform: rotate(45deg);
  margin: 0 0.65rem 0 0.3rem;
}

@media (max-width: 576px) {
  .breadcrumb-nav { left: 1rem; right: 1rem; top: -2.4rem; }
}

.page-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.page-hero h1 span { color: var(--primary); }

.page-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.page-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split.reverse > :first-child { order: 2; }

.split h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.split p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.check-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 2.2rem;
  color: var(--text-main);
  font-size: 0.97rem;
  line-height: 1.55;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.panel-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.layer {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.layer strong { display: block; font-size: 0.88rem; }
.layer span { display: block; font-size: 0.78rem; color: #475569; margin-top: 0.15rem; }
.layer.red { background: #FFF5F5; border-left: 4px solid #EF4444; }
.layer.red strong { color: #991B1B; }
.layer.amber { background: #FFFBEB; border-left: 4px solid #F59E0B; }
.layer.amber strong { color: #92400E; }
.layer.blue { background: #EFF6FF; border-left: 4px solid #3B82F6; }
.layer.blue strong { color: #1E40AF; }
.layer.green { background: #ECFDF5; border-left: 4px solid #10B981; }
.layer:last-child { margin-bottom: 0; }
.layer.green strong { color: #065F46; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 1.5rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-main); }
.step p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}

.cards-3 .feature-card, .cards-2 .feature-card { padding: 1.75rem 1.5rem; }
.cards-3 .feature-desc, .cards-2 .feature-desc { font-size: 0.93rem; line-height: 1.6; }

.cta-band {
  background: var(--primary-gradient);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; color: #fff; }
.cta-band p { max-width: 620px; margin: 0 auto 1.5rem; color: rgba(255, 255, 255, 0.9); line-height: 1.6; }
.cta-band .btn { background: #fff; color: var(--primary); }

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.related a {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: left;
  transition: all var(--transition-normal);
}

.related a:hover { border-color: var(--border-focus); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.related strong { display: block; color: var(--text-main); margin-bottom: 0.25rem; }
.related .rel-text span { font-size: 0.9rem; color: var(--text-muted); }

.rel-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rel-icon svg { width: 24px; height: 24px; }

.btn-ic { display: inline-flex; margin-right: 0.55rem; vertical-align: middle; }
.btn-ic svg { width: 20px; height: 20px; }
.cta-band .btn { display: inline-flex; align-items: center; justify-content: center; }

.text-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); font-weight: 700; text-decoration: underline; }
.text-link svg { width: 20px; height: 20px; flex-shrink: 0; }

.note {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
}

.phone-wrap { display: flex; justify-content: center; }

.shot {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: var(--shadow-md);
}

.shot img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

.band-alt { background: var(--bg-surface); }

@media (max-width: 992px) {
  .page-hero h1 { font-size: 2.1rem; }
  .split, .steps, .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .split { gap: 2rem; }
  .split.reverse > :first-child { order: 0; }
  .page-hero { text-align: center; }
  .page-hero .page-actions { justify-content: center; }
  .steps { gap: 2.25rem; }
}

.fineprint {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 520px;
}
@media (max-width: 992px) { .fineprint { margin-left: auto; margin-right: auto; } }

/* Guías (artículos) */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; color: var(--text-main); margin: 2.75rem 0 1rem; }
.article h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin: 1.75rem 0 0.6rem; }
.article p { color: var(--text-main); font-size: 1.04rem; line-height: 1.8; margin-bottom: 1.15rem; }
.article ul, .article ol { margin: 0 0 1.4rem 1.4rem; color: var(--text-main); line-height: 1.75; font-size: 1.02rem; }
.article li { margin-bottom: 0.5rem; padding-left: 0.2rem; }
.article a:not(.btn) { color: var(--primary); font-weight: 600; text-decoration: underline; }
.article .callout { background: var(--primary-light); border-left: 4px solid var(--primary); border-radius: 8px; padding: 1.1rem 1.3rem; margin: 1.75rem 0; }
.article .callout p { margin: 0; font-size: 0.98rem; }
.article .callout p + p { margin-top: 0.7rem; }
.article .callout.warn { background: #FFFBEB; border-left-color: #F59E0B; }
.article .table-wrap { overflow-x: auto; margin: 1.5rem 0 1.75rem; border: 1px solid var(--border-color); border-radius: 10px; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 520px; }
.article th { background: var(--primary-light); color: var(--text-main); text-align: left; font-weight: 700; padding: 0.7rem 0.9rem; }
.article td { padding: 0.65rem 0.9rem; border-top: 1px solid var(--border-color); color: var(--text-main); vertical-align: top; }

.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.article-meta strong { color: var(--text-main); }

.toc { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.1rem 1.4rem; margin: 0 0 2rem; }
.toc-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.article .toc ol { margin: 0 0 0 1.2rem; font-size: 0.97rem; }
.article .toc li { margin-bottom: 0.3rem; }

.guide-card { display: block; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm); text-align: left; transition: all var(--transition-normal); }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-focus); }
.guide-card .guide-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem; }
.guide-card h2, .guide-card h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.3; color: var(--text-main); margin-bottom: 0.6rem; }
.guide-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; margin-bottom: 0.9rem; }
.guide-card .guide-meta { font-size: 0.82rem; color: #64748b; }

@media (max-width: 992px) {
  .article h2 { font-size: 1.4rem; margin-top: 2.25rem; }
  .article p, .article ul, .article ol { font-size: 1rem; }
}

/* Imagen principal de las guías (captura real de EscolarApp, datos ficticios) */
.article-figure { margin: 0 0 2.25rem; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-md); }
.article-figure figcaption { margin-top: 0.7rem; font-size: 0.9rem; line-height: 1.55; color: var(--text-muted); text-align: center; }

/* Hero más ancho para que las capturas de la app se lean: el contenedor crece y la
   columna de la imagen ocupa más que la del texto (solo en escritorio). */
@media (min-width: 993px) {
  .page-hero > .container { max-width: 1400px; }
  .page-hero .split:has(> .shot) { grid-template-columns: 5fr 7fr; gap: 2.5rem; }
}
