/* V2 temporal. Solo portada; sin documentos, stickers, mockups o JS nuevo. */
.r58-home{--r58-ink:#172C25;--r58-green:#223D35;--r58-paper:#F6F4EF;--r58-muted:#4B5F56;--r58-line:#CCD6CD;color:var(--r58-ink);font-family:DM,"DM Sans",Arial,sans-serif}
.r58-home *{box-sizing:border-box}
.r58-home :is(h1,h2,h3,p,figure){margin:0}
.r58-home :is(h1,h2,h3,p,a){font-family:inherit}
.r58-home a{color:inherit;text-decoration:none;text-underline-offset:5px}
.r58-home a:hover{text-decoration:underline}
.r58-home a:focus-visible{outline:3px solid var(--r58-green);outline-offset:6px;border-radius:2px}
.r58-wrap{width:min(1200px,calc(100% - 96px));margin-inline:auto}
.r58-hero{padding-top:72px}
.r58-signature{font-size:13px;line-height:1.5;color:var(--r58-muted)}
.r58-home .r58-hero h1{font-size:clamp(90px,7.6vw,104px);line-height:1.01;font-weight:550;letter-spacing:-.065em;text-align:left;text-wrap:balance;margin:29px 0 27px;max-width:17ch}
.r58-lead{font-size:19px;line-height:1.55;color:var(--r58-muted);max-width:44ch}
.r58-primary{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;padding:15px 22px;min-height:50px;background:var(--r58-green);color:var(--r58-paper)!important;border-radius:2px;font-size:14px;line-height:1.4;margin-top:27px}
.r58-primary:hover{background:var(--r58-ink);text-decoration:none!important}
.r58-entries{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:32px;border-bottom:1px solid var(--r58-line);margin-top:68px;padding-bottom:25px}
.r58-entries>a{display:flex;align-items:baseline;justify-content:space-between;gap:20px;font-size:18px;line-height:1.4;letter-spacing:-.02em;min-height:34px}
.r58-entries b{font-size:19px;font-weight:400}
.r58-work{padding-block:76px 92px}
.r58-work-heading{display:flex;align-items:baseline;justify-content:space-between;gap:25px;margin-bottom:36px}
.r58-home .r58-work-heading h2{font-size:34px;line-height:1.1;font-weight:500;letter-spacing:-.045em}
.r58-work-heading>a{font-size:13px;line-height:1.5}
.r58-work-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:72px;align-items:start}
.r58-case{min-width:0}
.r58-case-herradores{padding-top:112px}
.r58-case-image{display:block}
.r58-home .r58-case img{display:block;width:100%;height:auto;max-width:100%;border:0;border-radius:0;box-shadow:none;filter:none}
.r58-case figcaption{padding-top:19px}
.r58-context{font-size:11px;line-height:1.5;color:var(--r58-muted);margin-bottom:8px!important}
.r58-home .r58-case h3{font-size:25px;line-height:1.2;font-weight:500;letter-spacing:-.035em;margin-bottom:8px}
.r58-case h3 a{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.r58-case h3 span{font-size:18px;font-weight:400}
.r58-case figcaption>p:not(.r58-context){font-size:14px;line-height:1.5;color:var(--r58-muted)}
.r58-case .r58-credit{font-size:11px!important;line-height:1.5!important;margin-top:10px!important}
.r58-person{display:grid;grid-template-columns:280px minmax(0,480px);justify-content:center;align-items:center;gap:112px;padding-block:62px 78px;border-top:1px solid var(--r58-line)}
.r58-person figure{width:100%;max-width:280px}
.r58-person img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:contain}
.r58-home .r58-person h2{font-size:42px;line-height:1.1;font-weight:500;letter-spacing:-.05em;margin-bottom:24px}
.r58-person-copy{font-size:19px;line-height:1.65;max-width:41ch;color:var(--r58-muted)}
.r58-person-links{display:flex;gap:32px;flex-wrap:wrap;margin-top:25px;font-size:14px;line-height:1.5}
.r58-credits{padding-block:27px 38px;border-top:1px solid var(--r58-line)}
.r58-credits-heading{display:flex;align-items:baseline;gap:18px;margin-bottom:25px}
.r58-home .r58-credits-heading h2{font-size:14px;line-height:1.5;font-weight:500;letter-spacing:0}
.r58-credits-heading p{font-size:12px;line-height:1.5;color:var(--r58-muted)}
.r58-brand-list{list-style:none!important;padding:0!important;margin:0!important;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:26px;align-items:center}
.r58-brand-list li{display:flex;align-items:center;justify-content:center;min-height:65px;min-width:0;text-align:center}
.r58-brand-list img{display:block;max-width:100%;height:auto;object-fit:contain;filter:none;opacity:1}
.r58-brand-opticalh{width:132px}.r58-brand-herradores{width:142px}.r58-brand-gafas{width:112px}
.r58-brand-list span{font-size:14px;line-height:1.3;font-weight:500;letter-spacing:-.02em;overflow-wrap:anywhere}
@media(max-width:1000px){.r58-wrap{width:calc(100% - 64px)}.r58-home .r58-hero h1{font-size:clamp(66px,9.2vw,90px)}.r58-work-grid{gap:42px}.r58-case-herradores{padding-top:84px}.r58-person{grid-template-columns:240px minmax(0,1fr);gap:58px}.r58-brand-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 36px}}
@media(max-width:600px){
 .r58-wrap{width:calc(100% - 40px)}
 .r58-hero{padding-top:38px}
 .r58-signature{font-size:12px}
 .r58-home .r58-hero h1{font-size:clamp(44px,12vw,48px);line-height:1.035;letter-spacing:-.06em;margin-top:24px;margin-bottom:23px;max-width:18ch}
 .r58-lead{font-size:16px;line-height:1.6;max-width:34ch}
 .r58-primary{font-size:13px;padding:14px 19px;min-height:49px;margin-top:23px}
 .r58-entries{grid-template-columns:1fr;gap:0;margin-top:38px;padding-bottom:0}
 .r58-entries>a{font-size:17px;padding-block:17px;min-height:56px;border-top:1px solid var(--r58-line)}
 .r58-work{padding-block:48px 55px}
 .r58-work-heading{margin-bottom:26px}
 .r58-home .r58-work-heading h2{font-size:29px}
 .r58-work-grid{grid-template-columns:1fr;gap:41px}
 .r58-case-herradores{padding-top:0}
 .r58-case figcaption{padding-top:15px}
 .r58-home .r58-case h3{font-size:23px}
 .r58-case figcaption>p:not(.r58-context){font-size:14px}
 .r58-case .r58-credit{font-size:11px!important}
 .r58-person{grid-template-columns:1fr;gap:30px;padding-block:48px 54px}
 .r58-person figure{max-width:232px;margin-inline:auto}
 .r58-home .r58-person h2{font-size:34px;margin-bottom:19px}
 .r58-person-copy{font-size:16px;line-height:1.65}
 .r58-person-links{gap:28px;margin-top:24px}
 .r58-credits{padding-block:24px 30px}
 .r58-credits-heading{display:block;margin-bottom:19px}
 .r58-credits-heading p{margin-top:5px}
 .r58-brand-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 24px}
 .r58-brand-list li{min-height:58px}
 .r58-brand-list span{font-size:13px}
}

/* V57 · Marco común: menos navegación repetida y un pie compacto. */
body.v57 .a36-site-header .brand-surname{display:none}
body.v57 .a36-site-header nav{font-size:14px;gap:30px}
body.v57 .a36-site-header .header-cta{font-size:13px;border-radius:3px;padding:13px 20px}
body.v57 .r57-footer{background:#223D35;color:#F6F4EF;padding:60px 0 24px}
body.v57 .r57-footer *{box-sizing:border-box}
body.v57 .r57-footer-wrap{width:min(1160px,calc(100% - 80px));margin-inline:auto}
body.v57 .r57-footer a{color:inherit;text-decoration:none;text-underline-offset:5px}
body.v57 .r57-footer a:hover{text-decoration:underline}
body.v57 .r57-footer a:focus-visible{outline:2px solid #F6F4EF;outline-offset:6px}
body.v57 .r57-footer-top{display:flex;align-items:center;justify-content:space-between;gap:40px}
body.v57 .r57-footer-brand{display:inline-flex;align-items:center;gap:12px;font-size:21px;font-weight:550;letter-spacing:-.025em}
body.v57 .r57-footer-brand img{display:block;width:42px;height:42px}
body.v57 .r57-footer h2{font-size:clamp(32px,4vw,52px);line-height:1.1;letter-spacing:-.045em;margin:0;font-weight:500}
body.v57 .r57-footer h2 span{font-size:.7em;margin-left:24px}
body.v57 .r57-footer-contact{display:flex;flex-wrap:wrap;gap:25px;margin-top:32px;font-size:16px;line-height:1.5}
body.v57 .r57-footer-nav{display:flex;gap:24px 32px;flex-wrap:wrap;padding-block:34px;font-size:14px;line-height:1.5}
body.v57 .r57-footer-bottom{display:flex;justify-content:space-between;align-items:baseline;gap:24px;border-top:1px solid #789284;padding-top:22px;color:#D6E1D8;font-size:12px;line-height:1.6}
body.v57 .r57-footer-bottom p{font-size:inherit;line-height:inherit;color:inherit;margin:0}
body.v57 .r57-footer-bottom nav{display:flex;flex-wrap:wrap;gap:22px}
@media(max-width:900px){body.v57 .r57-footer-wrap{width:calc(100% - 48px)}}
@media(max-width:760px){body.v57 .a36-site-header nav{gap:0;font-size:17px}}
@media(max-width:600px){body.v57 .r57-footer{padding-top:40px}body.v57 .r57-footer-wrap{width:calc(100% - 40px)}body.v57 .r57-footer-top{align-items:start;gap:25px}body.v57 .r57-footer-brand{font-size:18px;gap:9px}body.v57 .r57-footer-brand img{width:35px;height:35px}body.v57 .r57-footer h2{font-size:32px}body.v57 .r57-footer h2 span{margin-left:10px}body.v57 .r57-footer-contact{display:grid;gap:12px;margin-top:26px;font-size:16px}body.v57 .r57-footer-nav{display:grid;grid-template-columns:1fr 1fr;gap:17px 28px;padding-block:30px;font-size:14px}body.v57 .r57-footer-bottom{display:block}body.v57 .r57-footer-bottom nav{margin-top:16px;gap:20px}}

/* Merge into refined-v57.css after the existing service rules. */
body.v38.v57 .j43 > .j46-hero.j57-hero{grid-template-columns:minmax(0,1fr);padding-block:clamp(2.5rem,6vw,5rem)}
body.v38.v57 .j43 > .j46-hero.j57-hero>div{max-width:54rem}
body.v38.v57 .j43.j46-story.j57-story .j43-section{padding-block:clamp(2rem,5vw,4rem)}
body.v38.v57 .j43.j46-story.j57-story .j57-sample{padding-block:.75rem}
body.v38.v57 .j43.j46-story.j57-story .j57-fit{max-width:48rem;margin-bottom:1.5rem;scroll-margin-top:6rem}
body.v38.v57 .j43.j46-story.j57-story .j57-delivery .j43-delivery-grid{display:block}
body.v38.v57 .j43.j46-story.j57-story .j57-delivery .j43-deliverables{max-width:58rem;margin-bottom:1.75rem}
body.v38.v57 .j43 .j57-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;cursor:pointer;padding-block:1rem;list-style:none;border-block:1px solid currentColor}
body.v38.v57 .j43 .j57-disclosure>summary::-webkit-details-marker{display:none}
body.v38.v57 .j43 .j57-disclosure>summary:focus-visible{outline:2px solid currentColor;outline-offset:4px}
body.v38.v57 .j43 .j57-disclosure>summary>span{font-size:1.25em;line-height:1;flex:none}
body.v38.v57 .j43 .j57-disclosure[open]>summary>span{transform:rotate(45deg)}
.j57-proof-body,.j57-scope-body{padding-block:1.5rem}
.j57-scope-demo .j45{width:100%;max-width:none;padding:0;margin:0}
.j57-scope-demo-body{padding-block:1.5rem}
.j57-scope-body{max-width:54rem}
body.v38.v57 .j43.j46-story.j57-story .j57-proof-body .j46-evidence-intro{margin-bottom:1.5rem}
body.v38.v57 .j43.j46-story.j57-story .j57-process .j43-stages{margin-top:1.5rem}
body.v38.v57 .j43.j46-story.j57-story .j57-preparation{gap:2rem}
@media(max-width:760px){
 body.v38.v57 .j43 > .j46-hero.j57-hero{padding-block:2rem}
 body.v38.v57 .j43.j46-story.j57-story .j43-section{padding-block:2rem}
 body.v38.v57 .j43.j46-story.j57-story .j57-sample{padding-block:.5rem}
 .j57-proof-body,.j57-scope-body{padding-block:1rem}
 .j57-scope-demo-body{padding-block:1rem}
 body.v38.v57 .j43.j46-story.j57-story .j57-delivery .j43-deliverables{margin-bottom:1.25rem}
 body.v38.v57 .j43.j46-story.j57-story .j57-process .j43-stages{margin-top:1rem}
}

body.v38.v57 .j43.j46-story.j57-story > section.j43-section{padding-block:clamp(2rem,5vw,4rem)}
body.v38.v57 .j43.j46-story.j57-story > section.j43-section.j57-sample,body.v38.v57 .j43.j46-story.j57-story > section.j43-section.j57-scope-demo{padding-block:16px;background:transparent}
body.v38.v57 .j43.j46-story.j57-story > .j57-delivery .j43-delivery-grid{display:block}
body.v38.v57 .j43.j46-story.j57-story .j57-scope-demo .j45{width:100%;max-width:none;padding:0;margin:0}

/* V57 · Tipografía y lectura de la oferta. */
.r58-home .r58-hero h1{font-weight:500;letter-spacing:-.04em}
.r58-home .r58-person h2{letter-spacing:-.035em}
body.v38.v57 .j43 > .j46-hero.j57-hero h1{font-weight:500;letter-spacing:-.04em;font-size:clamp(50px,5.2vw,76px);line-height:1.06;margin-bottom:26px}
body.v38.v57 .j43 > .j46-hero.j57-hero .lead{font-size:20px;line-height:1.6;max-width:47ch;margin-bottom:28px}
body.v38.v57 .j43 > .j46-hero.j57-hero .j43-actions a:first-child{border-radius:3px}
body.v38.v57 .j43.j46-story.j57-story h2{font-weight:500;letter-spacing:-.035em}
.r58-case-image{overflow:hidden}
.r58-case-image img{transition:transform .45s ease}
.r58-case-image:hover img{transform:scale(1.015)}
.r58-entries>a b,.r58-person-links a span{display:inline-block;transition:transform .2s ease}
.r58-entries>a:hover b,.r58-person-links a:hover span{transform:translate(3px,-3px)}
@media(max-width:600px){
 .r58-home .r58-hero h1{font-size:clamp(40px,11.2vw,46px);letter-spacing:-.04em}
 body.v38.v57 .j43 > .j46-hero.j57-hero h1{font-size:42px;line-height:1.08;letter-spacing:-.035em;max-width:16ch;margin-bottom:22px}
 body.v38.v57 .j43 > .j46-hero.j57-hero .lead{font-size:17px;line-height:1.6;margin-bottom:24px}
 body.v38.v57 .j43 > .j46-hero.j57-hero .j43-actions{gap:20px}
}
@media(prefers-reduced-motion:reduce){.r58-case-image img,.r58-entries>a b,.r58-person-links a span{transition:none;transform:none!important}}

body.v38.v57 main h1{letter-spacing:-.04em;font-weight:500}
body.v38.v57 main h2{letter-spacing:-.035em;font-weight:500}
body.v38.v57 .a38-reading-nav{font-size:12px}
@media(max-width:600px){body.v38.v57 .a38-reading-nav>span{display:none}}

/* Solo el índice /servicios/. Catálogo legible, sin tarjetas ni claims duplicados. */
.h57-index{--h57-ink:#172C25;--h57-paper:#F6F4EF;--h57-muted:#4B5F56;--h57-green:#223D35;--h57-line:#CCD6CD;color:var(--h57-ink);font-family:DM,"DM Sans",Arial,sans-serif;background:var(--h57-paper)}
.h57-index *{box-sizing:border-box}
.h57-index :is(h1,h2,p,ul){margin:0}
.h57-index :is(h1,h2,p,a){font-family:inherit}
.h57-index a{color:inherit;text-decoration:none;text-underline-offset:5px}
.h57-index a:hover{text-decoration:underline}
.h57-index a:focus-visible{outline:3px solid var(--h57-green);outline-offset:5px;border-radius:2px}
.h57-wrap{width:min(1200px,calc(100% - 96px));margin-inline:auto}
.h57-hero{padding-top:58px;padding-bottom:34px}
.h57-index .h57-hero h1{font-size:clamp(48px,5.2vw,66px);line-height:1.04;font-weight:550;letter-spacing:-.055em;margin-bottom:24px}
.h57-hero p{font-size:18px;line-height:1.6;color:var(--h57-muted);max-width:52ch}
.h57-nav{display:flex;flex-wrap:wrap;gap:10px 32px;border-top:1px solid var(--h57-line);padding-block:19px 25px}
.h57-nav>a{display:inline-flex;align-items:baseline;gap:13px;font-size:14px;line-height:1.5;min-height:30px;padding-block:5px}
.h57-nav span{font-size:13px}
.h57-category{padding-block:48px;scroll-margin-top:100px}
.h57-paper{background:var(--h57-paper)}
.h57-white{background:#fff}
.h57-category-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.65fr);gap:76px;align-items:start}
.h57-index .h57-category h2{font-size:32px;line-height:1.15;font-weight:500;letter-spacing:-.04em;max-width:18ch;padding-top:15px}
.h57-category ul{list-style:none;padding:0;border-top:1px solid var(--h57-line)}
.h57-category li{border-bottom:1px solid var(--h57-line)}
.h57-category li>a{display:flex;align-items:baseline;justify-content:space-between;gap:25px;padding-block:18px;min-height:62px;font-size:19px;line-height:1.4;letter-spacing:-.018em;font-weight:500}
.h57-category li span{min-width:0}
.h57-category b{font-size:20px;line-height:1;font-weight:400;flex:none}
.h57-finish{padding-block:50px 58px;scroll-margin-top:100px}
.h57-finish>p{font-size:17px;line-height:1.65;color:var(--h57-muted);max-width:67ch}
.h57-finish strong{font-weight:500;color:var(--h57-ink)}
.h57-finish-links{display:flex;flex-wrap:wrap;gap:15px 30px;margin-top:22px;font-size:14px;line-height:1.5}
.h57-work-link{border-top:1px solid var(--h57-line);margin-top:29px;padding-top:22px;font-size:14px;line-height:1.5;scroll-margin-top:100px}
.h57-nav,#catalogo{scroll-margin-top:100px}
@media(max-width:1000px){.h57-wrap{width:calc(100% - 64px)}.h57-category-grid{gap:44px;grid-template-columns:minmax(0,.9fr) minmax(0,1.6fr)}}
@media(max-width:600px){
 .h57-wrap{width:calc(100% - 40px)}
 .h57-hero{padding-top:36px;padding-bottom:27px}
 .h57-index .h57-hero h1{font-size:44px;margin-bottom:20px}
 .h57-hero p{font-size:16px;line-height:1.6;max-width:34ch}
 .h57-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;padding-block:8px 15px}
 .h57-nav>a{font-size:14px;min-height:43px;justify-content:space-between;padding-block:11px}
 .h57-category{padding-block:33px 38px;scroll-margin-top:85px}
 .h57-category-grid{grid-template-columns:1fr;gap:20px}
 .h57-index .h57-category h2{font-size:29px;padding-top:0;max-width:20ch}
 .h57-category li>a{font-size:17px;line-height:1.45;min-height:59px;padding-block:17px;gap:20px}
 .h57-category b{font-size:19px}
 .h57-finish{padding-block:36px 40px}
 .h57-finish>p{font-size:16px;line-height:1.65}
 .h57-finish-links{margin-top:20px;font-size:14px;gap:14px 25px}
 .h57-work-link{margin-top:26px;padding-top:20px}
}

body.v38.v57 .a36-site-header>.header-inner,body.v38.v57 .r57-footer-wrap{width:min(1200px,calc(100% - 96px))}
@media(max-width:1000px){body.v38.v57 .a36-site-header>.header-inner,body.v38.v57 .r57-footer-wrap{width:calc(100% - 64px)}}
@media(max-width:600px){body.v38.v57 .a36-site-header>.header-inner,body.v38.v57 .r57-footer-wrap{width:calc(100% - 40px)}}

@media(min-width:601px){.r58-lead{max-width:54ch}}
