/* GastroBar.click: paginas de solucion (2026-11-20).
   Direccion: ficha tecnica editorial sobre el sistema claro del sitio.
   Usa solo los tokens de style.css (--primary, --text-main, --border-light, --radius-*).
   Todas las clases llevan el prefijo sol- para no chocar con el resto. */

.sol-hero { text-align: left; padding: 40px 0 44px; margin-bottom: 40px; }
.sol-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.sol-hero-grid.sol-no-media { grid-template-columns: minmax(0, 820px); }
.sol-hero h1 {
  font-size: clamp(2rem, 1.25rem + 2.7vw, 3.3rem);
  line-height: 1.07;
  letter-spacing: -0.022em;
  margin-bottom: 20px;
}
.sol-hero .lead { max-width: 58ch; font-size: 1.12rem; line-height: 1.65; }
.sol-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-sol-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  color: var(--text-main); background: transparent;
  border: 1.5px solid var(--text-main); cursor: pointer; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-sol-ghost:hover { background: var(--text-main); color: #fff; transform: translateY(-2px); }
.btn-sol-ghost:active { transform: translateY(0); }
.btn-sol-ghost:focus-visible, .sol-related a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.sol-media {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: #090D16; box-shadow: var(--shadow-lg);
  aspect-ratio: var(--sol-ar, 16 / 9); max-height: 560px; justify-self: end; width: 100%;
}
.sol-media.sol-tall { max-width: 330px; justify-self: center; background: transparent; box-shadow: none; }
.sol-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.sol-media:hover img { transform: scale(1.025); }

/* Cifras clave: tres datos duros, separados por reglas finas */
.sol-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--text-main); border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.sol-fact { padding: 28px 28px 28px 0; }
.sol-fact + .sol-fact { padding-left: 28px; border-left: 1px solid var(--border-light); }
.sol-fact-num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 700;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1; color: var(--primary-dark);
  letter-spacing: -0.03em;
}
.sol-fact-text { margin-top: 12px; color: var(--text-muted); font-size: 1rem; line-height: 1.5; max-width: 30ch; }

.sol-section { padding: 52px 0; }
.sol-section + .sol-section { border-top: 1px solid var(--border-light); }
.sol-h2 {
  font-family: var(--font-heading); font-size: clamp(1.55rem, 1.1rem + 1.4vw, 2.2rem);
  line-height: 1.15; letter-spacing: -0.015em; color: var(--text-main); margin-bottom: 12px;
}
.sol-lede { color: var(--text-muted); font-size: 1.08rem; line-height: 1.65; max-width: 64ch; margin-bottom: 28px; }
.sol-note { margin-top: 18px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; max-width: 70ch; }

/* Pasos: libro de registro numerado */
.sol-steps { list-style: none; margin: 0; padding: 0; counter-reset: sol-step; max-width: 860px; }
.sol-steps li {
  counter-increment: sol-step; display: grid; grid-template-columns: 76px 1fr; gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--border-light); color: var(--text-muted);
  font-size: 1.04rem; line-height: 1.6;
}
.sol-steps li:last-child { border-bottom: 1px solid var(--border-light); }
.sol-steps li::before {
  content: counter(sol-step, decimal-leading-zero);
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 700; font-size: 1.7rem;
  color: var(--primary); line-height: 1.2;
}
.sol-steps strong { display: block; color: var(--text-main); font-size: 1.12rem; margin-bottom: 4px; }

/* Texto a la izquierda, lista con marcas a la derecha */
.sol-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.sol-split p { color: var(--text-muted); font-size: 1.04rem; line-height: 1.7; margin-bottom: 14px; }
.sol-list { list-style: none; margin: 0; padding: 0; }
.sol-list li {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  padding: 14px 0; border-top: 1px solid var(--border-light); color: var(--text-main);
  font-size: 1.02rem; line-height: 1.55; font-weight: 600;
}
.sol-list li:last-child { border-bottom: 1px solid var(--border-light); }
.sol-list svg { width: 20px; height: 20px; stroke: #0E9F6E; fill: none; stroke-width: 2.6; margin-top: 2px; }

/* Dos caminos lado a lado (facturacion) */
.sol-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.sol-path { padding: 32px; }
.sol-path + .sol-path { border-left: 1px solid var(--border-light); background: var(--light-bg); }
.sol-path h3 { font-family: var(--font-heading); font-size: 1.35rem; color: var(--text-main); margin-bottom: 10px; line-height: 1.2; }
.sol-path p { color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
.sol-path-tag { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.82rem; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; display: block; }

/* Tabla */
.sol-table-wrap { overflow-x: auto; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: #fff; -webkit-overflow-scrolling: touch; }
.sol-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.sol-table th, .sol-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 0.98rem; line-height: 1.5; vertical-align: top; }
.sol-table thead th { background: var(--light-bg); color: var(--text-main); font-weight: 800; white-space: nowrap; }
.sol-table tbody tr:last-child td { border-bottom: none; }
.sol-table td:first-child { font-weight: 700; color: var(--text-main); width: 26%; }
.sol-table td { color: var(--text-muted); }
.sol-table .sol-num { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 700; color: var(--text-main); white-space: nowrap; }
.sol-table tbody tr { transition: background-color .15s ease; }
.sol-table tbody tr:hover { background: var(--primary-light); }

/* Paginas relacionadas: filas con flecha, sin tarjetas */
.sol-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-top: 2px solid var(--text-main); }
.sol-related a {
  display: grid; grid-template-columns: 1fr 24px; gap: 8px; align-items: start;
  padding: 22px 22px 22px 0; border-bottom: 1px solid var(--border-light); text-decoration: none; color: var(--text-main);
}
.sol-related a strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.sol-related a span { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.sol-related svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 2.4; margin-top: 3px; transition: transform .2s ease; }
.sol-related a:hover strong { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 4px; }
.sol-related a:hover svg { transform: translateX(5px); }

/* Cierre */
.sol-close {
  background: var(--void-bg, #06080D); color: var(--void-text, #F2F5F9);
  border-radius: var(--radius-xl); padding: 44px; margin: 8px 0 72px;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.sol-close h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1.15; color: #fff; margin-bottom: 8px; }
.sol-close p { color: var(--void-text-muted, #9BA8BC); max-width: 52ch; line-height: 1.6; }

.sol-faq { max-width: 860px; }

@keyframes sol-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sol-hero-copy > * { animation: sol-in .6s cubic-bezier(.2,.7,.2,1) both; }
.sol-hero-copy > *:nth-child(2) { animation-delay: .07s; }
.sol-hero-copy > *:nth-child(3) { animation-delay: .14s; }
.sol-hero-copy > *:nth-child(4) { animation-delay: .21s; }
.sol-media { animation: sol-in .7s .15s cubic-bezier(.2,.7,.2,1) both; }

@media (max-width: 900px) {
  .sol-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .sol-media, .sol-media.sol-tall { justify-self: center; max-height: none; }
  .sol-media.sol-tall { max-width: 300px; }
  .sol-facts { grid-template-columns: 1fr; }
  .sol-fact, .sol-fact + .sol-fact { padding: 22px 0; border-left: none; }
  .sol-fact + .sol-fact { border-top: 1px solid var(--border-light); }
  .sol-split, .sol-paths { grid-template-columns: 1fr; gap: 28px; }
  .sol-paths { gap: 0; }
  .sol-path + .sol-path { border-left: none; border-top: 1px solid var(--border-light); }
  .sol-path { padding: 24px; }
  .sol-steps li { grid-template-columns: 56px 1fr; gap: 14px; }
  .sol-close { padding: 30px 24px; }
  .sol-section { padding: 40px 0; }
  .btn-sol-ghost, .sol-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sol-hero-copy > *, .sol-media { animation: none; }
  .sol-media img, .btn-sol-ghost, .sol-related svg, .sol-table tbody tr { transition: none; }
  .sol-media:hover img, .btn-sol-ghost:hover { transform: none; }
}
