/*
 * Brands Solutions — perfiles de clientes.
 * Exclusivo de /clientes/{slug}; catálogo y estilos compartidos no se sobrescriben.
 */
.client-profile-page {
    --client-ink: #101010;
    --client-night: #0b0b0b;
    --client-white: #fff;
    --client-orange: #f35a24;
    --client-muted: #77716b;
    color: #f3f3f3;
}
.client-profile-page .site-header,
.client-profile-page .site-footer { background: #090909; }
.client-profile-page main { overflow: clip; }
.client-profile-page main a:focus-visible { outline: 2px solid var(--client-orange); outline-offset: 5px; }
.client-profile-page main section[id] { scroll-margin-top: 92px; }

/* Hero cinematográfico: contenido y fotografía pertenecen a un mismo lienzo. */
.client-profile-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: clamp(670px, 83svh, 940px);
    isolation: isolate;
    overflow: hidden;
    background: #0a0a0a;
    color: var(--client-white);
}
.client-profile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, #090909 0%, #090909fa 23%, #090909d7 43%, #09090951 75%, #09090918 100%),
        linear-gradient(0deg, #080808ce 0%, transparent 31%, #08080855 100%);
}
.client-profile-hero::before {
    content: '';
    position: absolute;
    top: -24%;
    left: -16%;
    z-index: -1;
    width: min(58vw, 750px);
    aspect-ratio: 1;
    border: 1px solid #ffffff13;
    border-radius: 50%;
    box-shadow: 0 0 0 110px #ffffff05, 0 0 0 220px #ffffff03;
    pointer-events: none;
}
.client-profile-visual {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -2;
    width: min(75%, 1380px);
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #171717;
}
.client-profile-visual > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.client-profile-hero-top,
.client-profile-copy,
.client-profile-hero-foot { position: relative; z-index: 1; }
.client-profile-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(32px, 4vw, 55px) clamp(24px, 7vw, 112px) 0;
}
.client-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; max-width: 75%; font-size: .78rem; }
.client-breadcrumb a { color: #ddd; text-decoration: none; transition: color .24s ease; }
.client-breadcrumb a:hover,
.client-breadcrumb a:focus-visible { color: var(--client-orange); }
.client-breadcrumb-sep { color: var(--client-orange); font-weight: 700; }
.client-breadcrumb-current { color: #aaa; overflow-wrap: anywhere; }
.client-profile-back { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.client-profile-back > span { color: var(--client-orange); font-size: 1.18rem; }
.client-profile-hero-label { flex-shrink: 0; color: #c6c6c6; font-size: .66rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.client-profile-hero-label span { color: var(--client-orange); margin-inline: 6px; }
.client-profile-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    width: min(82%, 1120px);
    padding: clamp(65px, 10vh, 120px) clamp(24px, 7vw, 112px) clamp(85px, 9vh, 110px);
}
.client-profile-kicker { display: inline-flex; align-items: center; gap: 13px; margin: 0 0 20px; color: #e0dcd7; text-transform: uppercase; letter-spacing: .19em; font-size: clamp(.66rem, .85vw, .77rem); font-weight: 700; }
.client-profile-kicker-line { width: 38px; height: 2px; background: var(--client-orange); }
.client-profile-copy h1 {
    margin: 0;
    max-width: 1020px;
    font-family: Pogonia, Manrope, sans-serif;
    font-size: clamp(2.6rem, 6vw, 6rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.06em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.client-profile-description { max-width: 570px; margin: 26px 0 0; color: #dedbd8; font-size: clamp(.94rem, 1.25vw, 1.06rem); line-height: 1.7; text-wrap: pretty; }
.client-profile-actions { margin-top: clamp(31px, 4vw, 52px); }
.client-profile-jump { display: inline-flex; align-items: center; justify-content: space-between; gap: clamp(30px, 4vw, 68px); padding: 15px 0; border-bottom: 1px solid var(--client-orange); color: #fff; font-size: .83rem; font-weight: 800; text-decoration: none; transition: color .25s ease; }
.client-profile-jump > span:last-child { color: var(--client-orange); font-size: 1.5rem; line-height: .9; transition: transform .25s ease; }
.client-profile-jump:hover { color: var(--client-orange); }
.client-profile-jump:hover > span:last-child { transform: translate(4px, 4px); }
.client-profile-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 67px; margin: 0 clamp(24px, 7vw, 112px); border-top: 1px solid #ffffff3b; color: #d1cfcb; font-size: .69rem; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.client-profile-foot-name { overflow-wrap: anywhere; }
.client-profile-foot-name > span,
.client-profile-count-divider { margin-inline: 7px; color: var(--client-orange); }
.client-profile-foot-counts { text-align: right; }

/* La alternativa sin fotografía usa únicamente identidad real, nunca material de otro cliente. */
.client-profile-hero.has-identity::after { background: linear-gradient(90deg, #080808 0%, #080808e6 45%, #08080848 100%); }
.client-profile-hero.has-identity .client-profile-visual { width: min(52%, 760px); background: transparent; }
.client-profile-hero.has-identity::after { background: linear-gradient(90deg, #080808 0%, #080808d9 38%, transparent 62%); }
.client-profile-identity-art { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 50% 50%, #6d331f53, transparent 48%), repeating-linear-gradient(90deg, transparent 0 69px, #ffffff08 69px 70px), #141414; }
.client-profile-identity-orbit { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(52vw, 520px); aspect-ratio: 1; border: 1px solid #ffffff30; border-radius: 50%; box-shadow: 0 0 0 50px #ffffff06, 0 0 0 102px #ffffff05; }
.client-profile-identity-logo { display: grid; place-items: center; width: clamp(160px, 25vw, 320px); aspect-ratio: 1; padding: 40px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 12px #f35a2436; }
.client-profile-identity-logo img { width: 100%; max-height: 175px; object-fit: contain; }
.client-profile-identity-monogram { color: #ffffff16; font-family: Pogonia, sans-serif; font-size: clamp(11rem, 27vw, 33rem); font-weight: 800; letter-spacing: -.12em; line-height: 1; }
.client-profile-identity-stamp { position: absolute; right: 9%; bottom: 17%; color: #d5d1cc; font-size: .7rem; font-weight: 800; letter-spacing: .18em; }
.client-profile-identity-stamp > span { color: var(--client-orange); }

/* Ritmo editorial compartido por marcas, trabajos e historias. */
.client-brand-explorer,
.client-related-section { padding: clamp(72px, 9vw, 142px) clamp(24px, 7vw, 112px); }
.client-section-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .6fr); align-items: end; gap: 30px; margin-bottom: clamp(34px, 5vw, 62px); }
.client-section-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; color: #b7b7b7; font-size: .7rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.client-section-dot { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--client-orange); }
.client-section-intro h2,
.client-related-empty-state h2 { margin: 0; font-family: Pogonia, Manrope, sans-serif; font-size: clamp(3rem, 6.3vw, 6.8rem); letter-spacing: -.07em; line-height: .98; font-weight: 800; text-wrap: balance; }
.client-section-intro h2 em,
.client-related-empty-state h2 em { color: var(--client-orange); font-style: normal; }
.client-section-description { max-width: 360px; margin: 0; color: #b0b0b0; font-size: .96rem; line-height: 1.72; }

/* Universo de marcas: tablero editorial, logos intactos, niveles por navegación. */
.client-brand-explorer { background: transparent; }
.client-brand-explorer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.client-brand-tile { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 332px; border: 1px solid #ffffff1f; background: #101010; color: #fff; text-decoration: none; overflow: hidden; transition: border-color .28s ease, transform .28s ease, box-shadow .28s ease; }
.client-brand-tile:hover { transform: translateY(-5px); border-color: var(--client-orange); box-shadow: 0 22px 45px #f35a2426; }
.client-brand-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; margin: 0 17px; border-bottom: 1px solid #ffffff1a; color: #a3a3a3; font-size: .63rem; letter-spacing: .04em; }
.client-brand-tile-head small { color: var(--client-orange); font-size: .7rem; font-weight: 800; }
.client-brand-tile-head > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-brand-tile-media { display: grid; place-items: center; flex: 1; min-height: 160px; margin: 14px 17px; padding: 20px; background: #fff; border-radius: 12px; }
.client-brand-tile-media img { display: block; max-width: 100%; max-height: 155px; width: auto; height: auto; object-fit: contain; transition: transform .32s ease; }
.client-brand-tile:hover .client-brand-tile-media img { transform: scale(1.035); }
.client-brand-tile-monogram { display: grid; place-items: center; width: 105px; height: 105px; border: 1px solid #f35a2466; border-radius: 50%; background: #181818; color: var(--client-orange); font-size: 2rem; font-weight: 800; }
.client-brand-tile-info { display: flex; flex-direction: column; gap: 8px; min-height: 90px; margin: 0 17px; padding: 15px 35px 17px 0; border-top: 1px solid #ffffff1a; }
.client-brand-tile-info strong { font-size: clamp(.94rem, 1.2vw, 1.07rem); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.client-brand-tile-info small { color: #a3a3a3; font-size: .7rem; }
.client-brand-tile-arrow { position: absolute; right: 17px; bottom: 19px; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #ffffff2e; border-radius: 50%; color: var(--client-orange); font-size: 1.05rem; transition: color .25s ease, background .25s ease; }
.client-brand-tile:hover .client-brand-tile-arrow { background: var(--client-orange); color: #fff; }

/* Proyectos: portada principal grande y grilla que crece dinámicamente. */
.client-projects-section { background: transparent; border-top: 1px solid #ffffff14; }
.client-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.client-work-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 440px; overflow: hidden; isolation: isolate; color: #fff; background: #161616; text-decoration: none; }
.client-work-card--featured { grid-column: 1 / -1; min-height: clamp(400px, 47vw, 630px); }
.client-work-media { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 70% 40%, #6f351d, transparent 65%), #1a1a1a; }
.client-work-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.16,1,.3,1); }
.client-work-card:hover .client-work-media img { transform: scale(1.055); }
.client-work-monogram { color: #ffffff24; font-family: Pogonia, Manrope, sans-serif; font-size: clamp(10rem, 21vw, 25rem); font-weight: 800; line-height: 1; }
.client-work-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #070707ed 0%, #08080888 41%, #08080805 100%); pointer-events: none; }
.client-work-content { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 16px; padding: clamp(27px, 4vw, 56px); }
.client-work-meta { display: flex; flex-wrap: wrap; gap: 9px 22px; color: #e3ddd8; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.client-work-meta > span + span::before { content: '/'; margin-right: 22px; color: var(--client-orange); }
.client-work-title { display: block; max-width: 700px; font-size: clamp(1.65rem, 2.6vw, 3.25rem); line-height: 1.1; font-family: Pogonia, Manrope, sans-serif; font-weight: 800; letter-spacing: -.05em; overflow-wrap: anywhere; }
.client-work-card--featured .client-work-title { font-size: clamp(2.1rem, 4.5vw, 5.2rem); }
.client-work-link { display: inline-flex; align-items: center; gap: 18px; align-self: flex-start; border-bottom: 1px solid var(--client-orange); padding-bottom: 7px; font-size: .8rem; font-weight: 800; }
.client-work-link > span { color: var(--client-orange); font-size: 1.3rem; transition: transform .22s ease; }
.client-work-card:hover .client-work-link > span { transform: translate(4px, -4px); }

/* Artículos: tarjetas horizontales sobre fondo oscuro, no cards clonadas de proyectos. */
.client-related-section--articles { background: transparent; color: #fff; border-top: 1px solid #ffffff14; }
.client-related-section--articles .client-section-eyebrow { color: #acaaa6; }
.client-related-section--articles .client-section-description { color: #aaa8a4; }
.client-article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid #363636; background: #363636; }
.client-article-card { display: flex; flex-direction: column; min-width: 0; min-height: 350px; background: #191919; color: #fff; text-decoration: none; transition: background .25s ease; }
.client-article-card:hover { background: #212121; }
.client-article-media { display: block; height: clamp(150px, 19vw, 245px); overflow: hidden; }
.client-article-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.client-article-card:hover .client-article-media img { transform: scale(1.04); }
.client-article-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 17px; padding: clamp(25px, 3vw, 44px); }
.client-article-meta { color: var(--client-orange); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.client-article-content > strong { font-family: Pogonia, Manrope, sans-serif; font-size: clamp(1.5rem, 2.4vw, 2.75rem); line-height: 1.14; letter-spacing: -.045em; overflow-wrap: anywhere; }
.client-article-summary { color: #b0ada9; font-size: .91rem; line-height: 1.65; }
.client-article-link { display: inline-flex; gap: 24px; align-items: center; margin-top: auto; padding-bottom: 7px; border-bottom: 1px solid #75513d; font-size: .79rem; font-weight: 800; }
.client-article-link > span { color: var(--client-orange); font-size: 1.1rem; transition: transform .25s ease; }
.client-article-card:hover .client-article-link > span { transform: translate(4px, -4px); }

/* Perfil sin contenidos: no prometer trabajos ni usar imágenes ajenas. */
.client-related-empty-state { display: grid; grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr); align-items: center; gap: clamp(45px, 8vw, 130px); background: transparent; border-top: 1px solid #ffffff14; }
.client-empty-ornament { display: grid; place-items: center; width: min(100%, 350px); aspect-ratio: 1; border: 1px solid #ffffff2e; border-radius: 50%; box-shadow: 0 0 0 32px #ffffff08, 0 0 0 64px #ffffff05; }
.client-empty-ornament > span { display: grid; place-items: center; width: 64%; aspect-ratio: 1; border-radius: 50%; background: #141414; border: 1px solid #f35a24; color: #fff; font-size: clamp(2.7rem, 6vw, 5.8rem); font-weight: 800; letter-spacing: -.08em; }
.client-related-empty-state > div:last-child { max-width: 780px; }
.client-related-empty-state > div > p:not(.client-section-eyebrow) { margin: 30px 0; color: #b0b0b0; font-size: 1rem; line-height: 1.7; }
.client-text-link { display: inline-flex; gap: 30px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--client-orange); color: #fff; font-size: .83rem; font-weight: 800; text-decoration: none; }
.client-text-link > span { color: var(--client-orange); }
.client-text-link:hover { color: var(--client-orange); }
.client-profile-outro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 31px clamp(24px, 7vw, 112px); background: #0b0b0b; color: #a9a9a9; border-bottom: 1px solid #333; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.client-profile-outro > span > span { color: var(--client-orange); margin: 0 5px; }
.client-profile-outro a { color: #fff; font-weight: 800; text-decoration: none; }
.client-profile-outro a > span { color: var(--client-orange); margin-left: 12px; }
.client-profile-outro a:hover { color: var(--client-orange); }

@media (max-width: 1100px) {
    .client-brand-explorer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .client-profile-copy { width: 92%; }
    .client-profile-hero::after { background: linear-gradient(90deg,#090909 0%,#090909f5 30%,#090909aa 58%,#09090930 100%),linear-gradient(0deg,#090909ce,transparent 28%); }
}
@media (max-width: 850px) {
    .client-profile-hero { min-height: 690px; }
    .client-profile-copy { width: 100%; padding-top: 65px; padding-bottom: 100px; }
    .client-profile-copy h1 { font-size: clamp(2.5rem, 8.5vw, 4.6rem); }
    .client-profile-visual { width: 100%; }
    .client-profile-hero::after { background: linear-gradient(90deg,#090909ed 0%,#090909b8 65%,#09090981 100%),linear-gradient(0deg,#090909d9 0%,transparent 36%); }
    .client-profile-hero-label { display: none; }
    .client-breadcrumb { max-width: 100%; }
    .client-section-intro { grid-template-columns: 1fr; gap: 17px; }
    .client-section-description { max-width: 660px; }
    .client-brand-explorer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .client-related-empty-state { grid-template-columns: 1fr 1.6fr; }
}
@media (max-width: 600px) {
    .client-profile-page main section[id] { scroll-margin-top: 72px; }
    .client-profile-hero { min-height: 0; }
    .client-profile-hero.has-photo .client-profile-visual { inset: 0 0 auto; height: 43%; width: 100%; }
    .client-profile-hero.has-photo::after { background: linear-gradient(0deg,#090909 0%,#090909 34%,#090909f0 52%,#09090925 87%,#09090915 100%); }
    .client-profile-hero.has-identity .client-profile-visual { opacity: .65; }
    .client-profile-hero-top { padding: 24px 22px 0; }
    .client-breadcrumb { gap: 7px 9px; font-size: .72rem; }
    .client-breadcrumb-current { max-width: 60vw; }
    .client-profile-copy { justify-content: flex-end; min-height: 620px; padding: 215px 22px 55px; }
    .client-profile-copy h1 { font-size: clamp(2.3rem, 11vw, 3.8rem); letter-spacing: -.055em; }
    .client-profile-kicker { font-size: .61rem; margin-bottom: 14px; }
    .client-profile-kicker-line { width: 23px; }
    .client-profile-description { margin-top: 20px; font-size: .92rem; }
                            .client-profile-actions { margin-top: 26px; }
    .client-profile-jump { gap: 22px; max-width: 100%; font-size: .78rem; }
    .client-profile-hero-foot { margin: 0 22px; align-items: flex-start; flex-wrap: wrap; gap: 6px; min-height: 70px; padding: 16px 0; font-size: .61rem; }
    .client-profile-foot-counts { text-align: left; }
    .client-brand-explorer,.client-related-section { padding: 72px 22px; }
    .client-section-intro h2,.client-related-empty-state h2 { font-size: clamp(2.75rem, 12vw, 4.9rem); }
    .client-brand-explorer-grid { gap: 10px; }
    .client-brand-tile { min-height: 260px; }
    .client-brand-tile-head { margin-inline: 11px; font-size: .6rem; }
    .client-brand-tile-media { min-height: 125px; padding: 18px; }
    .client-brand-tile-media img { max-height: 110px; }
    .client-brand-tile-info { margin: 0 11px; padding: 12px 12px 15px 0; min-height: 74px; gap: 5px; }
    .client-brand-tile-arrow { display: none; }
    .client-brand-tile-info strong { font-size: .93rem; }
    .client-brand-tile-info small { font-size: .64rem; }
    .client-work-grid,.client-article-grid { grid-template-columns: 1fr; }
    .client-work-card,.client-work-card--featured { grid-column: auto; min-height: 365px; }
    .client-work-card--featured { min-height: 465px; }
    .client-work-content { padding: 28px; }
    .client-work-card--featured .client-work-title { font-size: clamp(2rem, 8vw, 3.8rem); }
    .client-related-empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 45px; }
    .client-empty-ornament { width: 170px; box-shadow: 0 0 0 20px #d0c9be76, 0 0 0 40px #d0c9be36; }
    .client-profile-outro { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
}
@media (max-width: 380px) {
    .client-brand-explorer-grid { grid-template-columns: 1fr; }
    .client-brand-tile { min-height: 240px; }
    .client-profile-copy h1 { font-size: clamp(2.1rem, 10.5vw, 3.2rem); }
    }
@media (prefers-reduced-motion: reduce) {
    .client-profile-page main *,
    .client-profile-page main *::before,
    .client-profile-page main *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Collaboration mark below the name: "× Brands Solutions". */
.client-collab { display: flex; align-items: center; gap: 14px; margin-top: clamp(16px, 2vw, 24px); }
.client-collab-x { color: var(--client-orange); font-size: 1.7rem; font-weight: 400; line-height: 1; }
.client-collab-bs { display: flex; align-items: center; }
.client-collab-bs img { display: block; width: clamp(110px, 9vw, 145px); height: auto; object-fit: contain; }
@media (max-width: 600px) { .client-collab { gap: 10px; } .client-collab-bs img { width: 105px; } }
