.nd-brands-dynamic{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.nd-brands-dynamic .nd-brand-card{min-width:0;padding:24px;border:1px solid #e5e5e5;border-radius:16px;background:#fff}.nd-brands-dynamic img{width:100%;height:140px;object-fit:contain}.nd-brands-dynamic h3{font-size:1.1rem;margin:16px 0 10px}.nd-brands-dynamic p{font-size:.95rem}.nd-brand-links{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0}.nd-brand-links a{display:inline-block}@media(max-width:900px){.nd-brands-dynamic{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.nd-brands-dynamic{grid-template-columns:1fr}}

/* Misma estructura y tipografía de los enlaces editoriales del tema. */
.nd-brands>.nd-section-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;gap:20px}
.nd-brands>.nd-section-head>.nd-textlink{margin-left:auto!important;flex-shrink:0;text-align:right}
.nd-brands .nd-textlink a{font-family:var(--wp--preset--font-family--montserrat,Montserrat,sans-serif);font-weight:700;color:#126487;text-decoration:none;border-bottom:1px solid var(--nd-gold);padding-bottom:4px}
.nd-brands .nd-textlink a:hover,.nd-brands .nd-textlink a:focus-visible{color:#163e5b}
.nd-brands-dynamic .nd-brand-story{margin-top:18px!important}
@media(max-width:640px){.nd-brands>.nd-section-head{gap:12px;align-items:flex-end}.nd-brands>.nd-section-head h2{min-width:0}.nd-brands>.nd-section-head>.nd-textlink{max-width:105px;flex-shrink:0}}

/* Portada: una fila horizontal. El directorio conserva su grilla. */
.nd-brands-carousel .nd-brands-dynamic{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0;overscroll-behavior-x:contain;padding:2px 2px 14px;position:relative;scrollbar-width:thin;scrollbar-color:var(--nd-gold) #f2f2f2}
.nd-brands-carousel .nd-brands-dynamic>.nd-brand-card{flex:0 0 calc((100% - 72px)/4);box-sizing:border-box;scroll-snap-align:start;display:flex;flex-direction:column}
.nd-brands-carousel .nd-brand-story{margin-top:auto!important;padding-top:18px}
.nd-brands .nd-brand-controls[hidden]{display:none!important}
.nd-brand-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:14px 0 22px}
.nd-brand-controls button{font-family:Montserrat,sans-serif;font-size:13px;font-weight:700;line-height:1.4;border:1px solid #d4af37;border-radius:8px;background:#fff;color:#163e5b;min-height:44px;padding:10px 16px;cursor:pointer}
.nd-brand-controls button:hover{background:#f6f1e1}
.nd-brand-controls button:focus-visible,.nd-brands-dynamic:focus-visible{outline:3px solid #126487;outline-offset:3px}
.nd-brand-prev,.nd-brand-next{min-width:44px}
.nd-brand-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:900px){.nd-brands-carousel .nd-brands-dynamic>.nd-brand-card{flex-basis:calc((100% - 24px)/2)}}
@media(max-width:600px){.nd-brands-carousel .nd-brands-dynamic>.nd-brand-card{flex-basis:100%}.nd-brand-controls{justify-content:center}}
@media(prefers-reduced-motion:reduce){.nd-brands-carousel .nd-brands-dynamic{scroll-behavior:auto}}
