/* =========================================================================
   COPAB — Marcas representadas (sitio público)
   /marcas (grilla) y /marcas/{slug} (banner al estilo del mockup 3, p. ej. "Grama sintética *Realturf*").
   Las tarjetas de recursos y el llamado de asesoría ancho vienen de pages/solutions.css.
   ========================================================================= */

/* ---------- /marcas ---------- */
.brands-count { margin: 0 0 1.25rem; font-size: .9rem; font-weight: 600; color: var(--c-muted); }
.brand-card { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.brand-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: rgba(122, 185, 41, .55); }
.brand-card:focus-within { border-color: var(--c-green); box-shadow: 0 0 0 .2rem rgba(122, 185, 41, .25), var(--shadow); }
.brand-card-logo { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; padding: 1.25rem 1.5rem; background: #fff; border-bottom: 1px solid var(--c-line); }
.brand-card-logo img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .35s; }
.brand-card:hover .brand-card-logo img { transform: scale(1.04); }
.brand-card-initials { width: 84px; height: 84px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c-navy-800); color: var(--c-green-300); font-size: 1.8rem; font-weight: 800; letter-spacing: .02em; }
.brand-card-body { flex: 1; display: flex; flex-direction: column; padding: 1rem 1.15rem 1.1rem; }
.brand-card-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 .25rem; }
.brand-card-title a { color: var(--c-ink); }
.brand-card-title a:hover { color: var(--c-blue); }
.brand-card-title a:focus-visible { outline: none; }
.brand-card-tagline { font-size: .86rem; color: var(--c-muted); margin: 0 0 .85rem; }
.brand-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--c-line); font-size: .82rem; }
.brand-card-count { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--c-navy-700); }
.brand-card-count i { color: var(--c-green-600); }
.brand-card-count.is-empty { font-weight: 500; color: var(--c-muted); }
.brand-card-link { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; font-weight: 600; color: var(--c-blue); }
.brand-card-link i { transition: transform .2s; }
.brand-card:hover .brand-card-link i { transform: translateX(3px); }

/* ---------- /marcas/{slug}: banner (mockup 3) ---------- */
.brand-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--c-navy-800); color: rgba(255, 255, 255, .88); }
.brand-hero-media { position: absolute; inset: 0; z-index: -2; }
.brand-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-hero.has-image::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(0deg, rgba(8, 24, 58, .9) 0%, rgba(8, 24, 58, 0) 42%),
        linear-gradient(90deg, rgba(8, 24, 58, .94) 0%, rgba(8, 24, 58, .8) 38%, rgba(8, 24, 58, .35) 72%, rgba(8, 24, 58, .2) 100%);
}
.brand-hero-inner { padding-top: 1.1rem; padding-bottom: 2.25rem; }
.brand-breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .45); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .7); font-size: .8rem; margin-bottom: 1.5rem; }
.brand-breadcrumb a { color: rgba(255, 255, 255, .8); }
.brand-breadcrumb a:hover, .brand-breadcrumb a:focus-visible { color: #fff; }
.brand-hero-content { max-width: 640px; }
.brand-hero-logo { display: inline-flex; align-items: center; justify-content: center; height: 64px; min-width: 120px; padding: .45rem .9rem; margin-bottom: 1.1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.brand-hero-logo img { max-height: 48px; max-width: 180px; width: auto; object-fit: contain; display: block; }
.brand-hero-initials { font-size: 1.5rem; font-weight: 800; color: var(--c-navy-800); }
.brand-hero-title { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 800; line-height: 1.08; margin: 0 0 1rem; }
.brand-hero-text { font-size: 1.05rem; line-height: 1.6; color: rgba(255, 255, 255, .88); margin: 0 0 1.5rem; max-width: 600px; }
.brand-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.brand-hero-facts { margin-top: 2rem; }
.brand-hero-facts .feature-list { gap: 1rem 2.25rem; }
@media (min-width: 992px) {
    .brand-hero.has-image .brand-hero-inner { min-height: 440px; display: flex; flex-direction: column; }
    .brand-hero.has-image .brand-hero-facts { margin-top: auto; padding-top: 2rem; }
}
@media (max-width: 767.98px) {
    .brand-hero.has-image::before { background: linear-gradient(180deg, rgba(8, 24, 58, .86) 0%, rgba(8, 24, 58, .82) 55%, rgba(8, 24, 58, .94) 100%); }
    .brand-hero-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 575.98px) {
    .brand-hero-facts .feature-list { flex-direction: column; gap: .75rem; }
}

/* ---------- /marcas/{slug}: contenido ---------- */
.brand-about .advisor-card { margin-top: .25rem; }
.brand-products .product-card-footer { flex-wrap: wrap; }
.brand-products .product-card-footer > .btn { flex: 1 1 100%; }
