/* =========================================================
   PSM – Landing MARCAS (Fase 4A.1)
   Solo se carga en la plantilla templates/page-brands.php. Prefijo: .psm-brands-
   ========================================================= */
.psm-brands { overflow-x: clip; }

.psm-brands-eyebrow { margin: 0 0 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--psm-deep-navy); }
.psm-brands-eyebrow--light { color: rgba(255,255,255,.92); font-weight: 500; }
.psm-brands-side { position: relative; flex-shrink: 0; max-width: calc(22em + 34px); margin: 0; padding-left: 34px; font-size: .8125rem; font-weight: 600; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.psm-brands-side::before { content: ""; position: absolute; left: 8px; top: 3px; width: 5px; height: 34px; background: var(--psm-performance-amber); transform: skewX(-22deg); }

/* ---------- Hero ---------- */
.psm-brands-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(120deg, #0B1626 0%, #0E1B2D 45%, #143459 100%); }
.psm-brands-hero-media { position: absolute; inset: 0; z-index: -2; }
.psm-brands-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.psm-brands-hero.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,22,38,.96) 0%, rgba(11,22,38,.86) 36%, rgba(14,27,45,.35) 62%, rgba(14,27,45,.1) 100%); }
.psm-brands-hero-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; min-height: 390px; padding-top: 34px; padding-bottom: 52px; }
.psm-brands-hero-content { max-width: 640px; }
.psm-brands-breadcrumb ol { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; font-size: .875rem; color: rgba(255,255,255,.85); }
.psm-brands-breadcrumb li + li::before { content: "›"; margin: 0 12px; color: rgba(255,255,255,.6); }
.psm-brands-breadcrumb a { color: rgba(255,255,255,.85); }
.psm-brands-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.psm-brands-breadcrumb [aria-current] { color: #fff; }
.psm-brands-hero-title { margin: 0; font-family: var(--font-headings); font-weight: 700; font-size: clamp(2.375rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; color: #fff; }
.psm-brands-hero-highlight { display: block; color: var(--psm-performance-amber); }
.psm-brands-hero-text { margin: 20px 0 0; max-width: 56ch; font-size: 1.125rem; line-height: 1.5; color: rgba(255,255,255,.94); }
.psm-brands-hero .psm-brands-side { margin-top: 44px; }

/* ---------- Intro ---------- */
.psm-brands-intro { padding: 40px 0 10px; background: #fff; }
.psm-brands-intro-title { margin: 0; font-family: var(--font-headings); font-weight: 700; font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.2; color: var(--psm-deep-navy); }
.psm-brands-intro-highlight { color: #1E88E5; }
.psm-brands-intro-text { margin: 10px 0 0; max-width: 78ch; font-size: 1.125rem; line-height: 1.5; color: #3A4A5E; }
.psm-brands-intro-secondary { margin: 14px 0 0; font-size: .875rem; color: var(--psm-technical-gray); }

/* ---------- Grid de marcas ---------- */
.psm-brands-grid-section { padding: 26px 0 56px; background: #fff; }
.psm-brands-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.psm-brands-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E3E8EE; border-radius: 4px; overflow: hidden; box-shadow: 0 6px 20px rgba(14,27,45,.06); transition: box-shadow var(--transition-fast), transform var(--transition-fast); }
.psm-brands-card:hover { box-shadow: 0 12px 30px rgba(14,27,45,.12); transform: translateY(-2px); }
.psm-brands-card-media { position: relative; display: block; aspect-ratio: 2.05 / 1; overflow: hidden; background: #E9EEF4; }
.psm-brands-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.psm-brands-card:hover .psm-brands-card-img { transform: scale(1.03); }
.psm-brands-card-media.is-fallback { background:
    linear-gradient(rgba(14,27,45,.06) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(14,27,45,.06) 1px, transparent 1px) 0 0 / 24px 100%,
    linear-gradient(135deg, #F4F7FA 0%, #E3EAF2 100%); }
.psm-brands-card-fallback { position: absolute; right: 22px; bottom: 18px; color: rgba(14,27,45,.18); }
.psm-brands-card-logo { position: absolute; left: 20px; top: 18px; display: inline-flex; align-items: center; max-width: 60%; padding: 6px 10px; border-radius: 3px; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(14,27,45,.08); }
.psm-brands-card-logo img { display: block; max-height: 38px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.psm-brands-card-logo.is-text { font-family: var(--font-headings); font-weight: 800; font-size: 1.5rem; letter-spacing: .01em; color: var(--psm-deep-navy); overflow-wrap: anywhere; }
.psm-brands-card-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info count" "cta cta"; column-gap: 16px; row-gap: 14px; align-items: start; padding: 18px 22px 22px; }
.psm-brands-card-info { grid-area: info; }
.psm-brands-card-name { margin: 0; font-family: var(--font-headings); font-weight: 700; font-size: 1.125rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1.2; }
.psm-brands-card-name a { color: var(--psm-deep-navy); }
.psm-brands-card-name a:hover { color: var(--psm-industrial-blue); }
.psm-brands-card-desc { margin: 6px 0 0; font-size: .875rem; line-height: 1.45; color: #4A5563; }
.psm-brands-card-count { grid-area: count; margin: 2px 0 0; display: flex; flex-direction: column; align-items: center; line-height: 1.1; color: var(--psm-deep-navy); }
.psm-brands-card-count strong { font-family: var(--font-headings); font-weight: 700; font-size: 1.25rem; }
.psm-brands-card-count span { font-size: .8125rem; color: var(--psm-technical-gray); }
.psm-brands-card-cta { grid-area: cta; align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-headings); font-weight: 700; font-size: .9375rem; color: #1E88E5; }
.psm-brands-card-cta span { transition: transform var(--transition-fast); }
.psm-brands-card-cta:hover { color: var(--psm-industrial-blue); }
.psm-brands-card-cta:hover span { transform: translateX(3px); }

/* ---------- Franja de valor ---------- */
.psm-brands-values { background: #F3F7FB; border-top: 1px solid #E6ECF2; border-bottom: 1px solid #E6ECF2; }
.psm-brands-values-list { list-style: none; margin: 0; padding: 30px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.psm-brands-value { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 28px; }
.psm-brands-value + .psm-brands-value::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: #D5DEE8; }
.psm-brands-value-icon { display: flex; color: #1E88E5; margin-bottom: 12px; }
.psm-brands-value-icon img { width: 42px; height: 42px; object-fit: contain; }
.psm-brands-value-title { margin: 0 0 6px; font-family: var(--font-headings); font-weight: 700; font-size: 1.0625rem; color: var(--psm-deep-navy); }
.psm-brands-value-text { margin: 0; max-width: 26ch; font-size: .875rem; line-height: 1.45; color: #4A5563; }

/* ---------- CTA soporte ---------- */
.psm-brands-cta { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(110deg, #0B1626 0%, #0E1B2D 50%, #1B3350 100%); }
.psm-brands-cta-media { position: absolute; inset: 0; z-index: -2; }
.psm-brands-cta-img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.psm-brands-cta.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,22,38,.96) 0%, rgba(11,22,38,.88) 40%, rgba(14,27,45,.35) 65%, rgba(14,27,45,.15) 100%); }
.psm-brands-cta-inner { padding-top: 42px; padding-bottom: 44px; }
.psm-brands-cta-title { margin: 0; font-family: var(--font-headings); font-weight: 700; font-size: clamp(1.875rem, 3vw, 2.625rem); line-height: 1.15; color: #fff; }
.psm-brands-cta-highlight { color: var(--psm-performance-amber); }
.psm-brands-cta-text { margin: 12px 0 0; max-width: 48ch; font-size: 1.0625rem; line-height: 1.45; color: rgba(255,255,255,.94); }
.psm-brands-cta-btn { margin-top: 22px; gap: 10px; padding: .8rem 1.6rem; font-family: var(--font-headings); font-size: .9375rem; border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .psm-brands-side { display: none; }
    .psm-brands-values-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
    .psm-brands-value:nth-child(odd)::before { display: none; }
}
@media (max-width: 767px) {
    .psm-brands-hero.has-bg::before { background: linear-gradient(180deg, rgba(11,22,38,.8) 0%, rgba(11,22,38,.92) 60%, rgba(11,22,38,.96) 100%); }
    .psm-brands-hero-inner { min-height: 0; padding-top: 24px; padding-bottom: 36px; }
    .psm-brands-breadcrumb ol { margin-bottom: 18px; font-size: .8125rem; }
    .psm-brands-eyebrow { letter-spacing: .26em; font-size: .75rem; }
    .psm-brands-hero-title { font-size: 2.125rem; }
    .psm-brands-hero-text { font-size: 1rem; }
    .psm-brands-intro { padding-top: 30px; }
    .psm-brands-intro-text { font-size: 1rem; }
    .psm-brands-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .psm-brands-grid-section { padding-bottom: 40px; }
    .psm-brands-card-body { padding: 16px 18px 18px; }
    .psm-brands-values-list { grid-template-columns: minmax(0, 1fr); padding: 24px 0; }
    .psm-brands-value { padding: 16px 12px; }
    .psm-brands-value + .psm-brands-value::before { left: 20%; right: 20%; top: 0; bottom: auto; width: auto; height: 1px; display: block; }
    .psm-brands-cta-inner { padding-top: 34px; padding-bottom: 40px; }
    .psm-brands-cta-btn { width: 100%; justify-content: center; }
}
