/* Páginas interiores de soluciones, plataforma, casos y sus índices. Solo variables de tokens.css: ni un color, una
   fuente o una forma fuera de ellas, así que los dos temas salen de la misma identidad que la portada. Lo que ya
   existe en home.css y site.css (ventana de solución, tarjetas, píldoras, cifras) se reutiliza tal cual. */

.catalog-page{padding-top:calc(84px + 56px);padding-bottom:96px;overflow-wrap:break-word}
.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0 0 40px;padding:0;font:500 13px/1.5 var(--font-work);color:var(--muted)}
.breadcrumbs li+li::before{content:"/";margin-right:8px;color:var(--subtle)}
.breadcrumbs a:hover{color:var(--accent)}
.breadcrumbs [aria-current="page"]{color:var(--text)}
.solution-head{max-width:880px;margin-bottom:48px}
.solution-head h1{font-size:clamp(34px,4vw,56px);line-height:1.08;margin-bottom:20px}
.solution-head .solution-lead{max-width:760px;margin-bottom:0}
.solution-head .solution-detail{max-width:760px;margin:16px 0 0;font:400 14px/1.6 var(--font-work);color:var(--muted)}
.solution-updated{margin:16px 0 0;font:500 13px/1.5 var(--font-work);color:var(--muted)}
.solution-updated time{color:var(--text)}
.catalog-section{margin-top:72px}
.catalog-section h2{margin-bottom:28px}
.catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px}
.catalog-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:28px}
.catalog-card h2,.catalog-card h3{font-size:clamp(20px,1.7vw,26px);line-height:1.2;margin:0}
.catalog-card p{margin:0}
.catalog-card .card-eyebrow{margin-bottom:0}
.catalog-card a:hover{color:var(--accent)}
.catalog-card .text-link{align-self:flex-start;margin-top:auto}

/* Solución: la misma composición que la ventana de la portada, en una página. */
.catalog-page .solution-body{margin-bottom:0}
.catalog-page .solution-body>*{min-width:0}
.solution-gallery{min-width:0}
.solution-gallery .solution-stage{margin:0;min-width:0}
.solution-gallery:not(.is-enhanced) .solution-stage+.solution-stage{margin-top:28px}
.catalog-page .solution-stage img{display:block;width:100%;height:auto;aspect-ratio:1400/840;object-fit:cover;object-position:top}
.solution-gallery.is-enhanced .solution-stage{display:none}
.solution-gallery.is-enhanced .solution-stage.is-current{display:block}
.solution-gallery-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.catalog-page .solution-thumbs button{width:88px;padding:0;border:2px solid var(--transparent);background:var(--surface-raised);opacity:.7}
.catalog-page .solution-thumbs button:hover{background:var(--surface-hover);opacity:1}
.catalog-page .solution-thumbs button[aria-current="true"]{border-color:var(--accent);opacity:1}
.catalog-page .solution-thumbs img{display:block;width:100%;height:auto;aspect-ratio:1400/840;object-fit:cover;object-position:top}
.catalog-page .solution-arrows button{width:36px;height:36px;border:1px solid var(--glass-edge);background:var(--faint);color:var(--text)}
.catalog-page .solution-arrows button:hover{background:var(--surface-hover)}
.catalog-page .solution-arrows button[aria-pressed="true"]{border-color:var(--accent);color:var(--accent)}
.solution-brief{min-width:0}
.solution-brief .pill{margin-top:8px}
.solution-empty{color:var(--muted);margin:0}

/* Comparación de KAUFEN WEB: las tarjetas y la rejilla son las de «Casos de esta solución»; aquí solo la intro, el par de
   opciones dentro de cada tarjeta y la nota de fuentes. */
.comparison-intro{max-width:760px;margin:0 0 28px}
.comparison-card dl{display:grid;grid-template-columns:1fr;gap:16px;margin:0}
.comparison-card dd{margin:4px 0 0}
.comparison-sources{margin:28px 0 0;font:500 13px/1.5 var(--font-work);color:var(--muted)}
.comparison-sources a{color:var(--accent)}

/* Caso: imágenes y métricas como en la portada, con la cita y el autor solo si existen. */
.case-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:48px;align-items:center}
.case-body>*{min-width:0}
.case-copy .case-metrics{margin-top:0}

@media(max-width:767px){
  .catalog-page{padding-top:calc(74px + 40px);padding-bottom:64px}
  .breadcrumbs ol{margin-bottom:28px}
  .solution-head{margin-bottom:32px}
  .catalog-section{margin-top:52px}
  .catalog-section h2{margin-bottom:20px}
  .catalog-card{padding:22px}
  .catalog-page .solution-thumbs button{width:64px}
  .case-body{grid-template-columns:1fr;gap:28px}
}
