/* Fase 2 — dirección visual y motion. Se carga después de los estilos del catálogo. */
:root{--accent-on-light:#8b4d26;--bone:#f3f0e9;--bone-deep:#e8e3da;--ink:#171614;--ink-muted:#66635d}
:root[data-finish="nogal"]{--accent-on-light:#8b4d26}
:root[data-finish="roble"]{--accent-on-light:#8a672f}
:root[data-finish="grafito"]{--accent-on-light:#53616d}
html{scroll-padding-top:84px}
html.has-lenis{scroll-behavior:auto}
html:not(.has-lenis){scroll-behavior:smooth}
body{background:#080808}

/* Alternancia de superficies oscuras y hueso para marcar cada capítulo. */
.catalog,.camera-section,.projects,.faq-section,.location-section{background:var(--bone);color:var(--ink)}
.craft-story,.compare-section,.process,.testimonials-section,.contact{background-color:#080808;color:#f5f3ef}
.catalog{background-image:radial-gradient(ellipse at 8% 0%,rgba(var(--accent-rgb),.075),transparent 38%),linear-gradient(180deg,var(--bone),#f6f4ef 55%,var(--bone))}
.camera-section{padding:clamp(60px,9vw,140px) 0;background:linear-gradient(180deg,var(--bone) 0%,#ebe6de 100%)}
.projects{background:linear-gradient(180deg,#f6f4ef 0%,var(--bone) 100%)}
.faq-section{background:linear-gradient(160deg,#f4f1eb,#ebe6dd)}
.location-section{background:#ebe6dd}
.catalog-heading h2,.content-section-heading h2,.projects h2,.location-card h2{color:var(--ink)}
.catalog-heading h2 span,.content-section-heading h2 span,.projects h2 span{color:var(--accent-on-light)}
.catalog .eyebrow,.camera-section .eyebrow,.projects .eyebrow,.faq-section .eyebrow,.location-section .eyebrow{color:var(--ink-muted)}
.eyebrow i{background:var(--accent);box-shadow:0 0 12px rgba(var(--accent-rgb),.45)}
.catalog-intro,.projects-intro,.content-section-heading>p:last-child{color:#5d5a54}
.catalog-card{border-color:rgba(31,25,19,.12);background:rgba(255,255,255,.62);box-shadow:0 22px 54px rgba(53,43,31,.08)}
.catalog-card-featured{border-color:rgba(var(--accent-rgb),.42);background:linear-gradient(145deg,rgba(var(--accent-rgb),.12),rgba(255,255,255,.72) 66%)}
.catalog-index,.gallery-placeholder small{color:var(--accent-on-light)}.testimonial-placeholder>span{color:#f0c293}
.catalog-card h3{color:#1a1917}
.catalog-card p{color:#5c5954}
.catalog-quote,.gallery-quote{color:var(--accent-on-light)}
.gallery-toolbar{border-bottom-color:rgba(30,26,22,.17)}
.gallery-filter-set>span{color:#68645d}
.gallery-filter{border-color:rgba(37,31,25,.2);color:#5f5b54;background:rgba(255,255,255,.48)}
.gallery-filter:hover,.gallery-filter.is-active{color:#1a1917;border-color:rgba(var(--accent-rgb),.72);background:rgba(var(--accent-rgb),.2);box-shadow:inset 0 1px rgba(255,255,255,.62),0 6px 18px rgba(var(--accent-rgb),.12)}
.gallery-count{color:#4f4b46}
.gallery-placeholder{border-color:rgba(36,30,24,.16);background:rgba(255,255,255,.6);box-shadow:0 14px 40px rgba(53,43,31,.07)}
.gallery-placeholder h3{color:#171614}
.gallery-placeholder p{color:#5e5a54}
.gallery-foot{color:#625e57}
.gallery-foot a{color:#26231f}
.gallery-foot a b{color:var(--accent-on-light)}
.faq-list{border-top-color:rgba(28,25,20,.2)}
.faq-item{border-bottom-color:rgba(28,25,20,.2)}
.faq-item summary{color:#191816}
.faq-item summary span{color:var(--accent-on-light)}
.faq-item>p{color:#514d47}
.faq-item>p b{color:var(--accent-on-light)}
.location-card{border-color:rgba(var(--accent-rgb),.43);background:radial-gradient(ellipse at 2% 100%,rgba(var(--accent-rgb),.15),transparent 55%),rgba(255,255,255,.38);box-shadow:0 24px 70px rgba(47,37,25,.06)}
.location-card h2 span{color:var(--accent-on-light)}
.location-card>div>p:last-child{color:#5c5851}
.location-details>div{border-top-color:rgba(34,29,23,.18)}
.location-details dt{color:var(--accent-on-light)}
.location-details dd{color:#312e2a}
.camera-section .camera-visual{box-shadow:0 30px 90px rgba(35,28,20,.19),0 0 0 1px rgba(var(--accent-rgb),.28)}
.camera-section .camera-visual>img{filter:brightness(1.14) contrast(1.05) saturate(1.06)}
.camera-section .camera-visual::before{z-index:0;filter:blur(34px) brightness(.8) saturate(1.2)}
.camera-section .camera-frame{border-color:rgba(255,255,255,.27)}
.camera-section .camera-visual{clip-path:none;mask-image:radial-gradient(ellipse 96% 95% at 51% 47%,#000 70%,rgba(0,0,0,.96) 81%,rgba(0,0,0,.55) 94%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse 96% 95% at 51% 47%,#000 70%,rgba(0,0,0,.96) 81%,rgba(0,0,0,.55) 94%,transparent 100%)}
.video-dialog.is-flipped-open .camera-visual{clip-path:none!important;mask-image:none!important;-webkit-mask-image:none!important}
.camera-visual>img{z-index:1}
.camera-wash{z-index:2}
.camera-visual::after{z-index:3}
.camera-copy{z-index:5}
.camera-copy .eyebrow{color:#f3e9df;text-shadow:0 2px 14px #080707}
.camera-hotspot,.camera-tag{z-index:4}
.camera-frame{z-index:6}
.camera-hotspot{will-change:transform}
.play-button{min-height:64px;padding:7px 19px 7px 7px;border:1px solid rgba(255,255,255,.5);border-radius:99px;background:rgba(12,10,8,.46);backdrop-filter:blur(18px);box-shadow:inset 0 1px rgba(255,255,255,.18),0 10px 30px rgba(0,0,0,.2);transition:transform .3s,border-color .3s,background .3s}
.play-button:hover{transform:translateY(-2px) scale(1.025);border-color:rgba(255,226,198,.84);background:rgba(12,10,8,.64)}
.play-button .play-icon{width:48px;height:48px;box-shadow:0 0 0 1px rgba(255,255,255,.2),0 0 28px rgba(var(--accent-rgb),.52)}
.play-button .play-icon::after{content:"";position:absolute;inset:-7px;border:1px solid rgba(var(--accent-rgb),.65);border-radius:50%;animation:playRing 2.4s ease-out infinite}
@keyframes playRing{0%{transform:scale(.8);opacity:.85}85%,100%{transform:scale(1.55);opacity:0}}

/* Fotografías: el recorte principal conserva el encuadre; el fondo difuminado llena el marco. */
.scene-frame{border:0;border-radius:0;background:transparent;box-shadow:none;isolation:isolate;overflow:visible}
.scene-frame::before{inset:-10%;filter:blur(31px) brightness(.53) saturate(1.24);transform:scale(1.12);opacity:.82}
.scene-image,.scene-image.is-active{object-fit:contain;background:transparent;mask-image:radial-gradient(ellipse 86% 87% at 50% 48%,#000 67%,rgba(0,0,0,.96) 79%,rgba(0,0,0,.72) 90%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse 86% 87% at 50% 48%,#000 67%,rgba(0,0,0,.96) 79%,rgba(0,0,0,.72) 90%,transparent 100%);will-change:transform,clip-path,opacity}
.scene-shade{background:linear-gradient(90deg,rgba(5,5,6,.24),transparent 30%,transparent 78%,rgba(5,5,6,.12)),linear-gradient(0deg,rgba(5,5,6,.48),transparent 25%,rgba(5,5,6,.03));mix-blend-mode:normal}
.scene-ambient{filter:blur(90px);opacity:.52}
.story-step h2 .split-word,#catalog-title .split-word,#compare-title .split-word,#projects-title .split-word,#process-title .split-word,#faq-title .split-word,#testimonials-title .split-word,#location-title .split-word,#contact-title .split-word{display:inline-block;will-change:transform,opacity,filter}
.hero .split-word{will-change:transform,opacity}
.story-step h2 span{color:#9b8e82}
.finish-option.is-active{border-color:rgba(var(--accent-rgb),.85);background:rgba(var(--accent-rgb),.17);box-shadow:inset 0 1px rgba(255,255,255,.12),0 0 24px rgba(var(--accent-rgb),.14)}
.scene-annotation i,.scene-annotation b,.scene-hint b{color:var(--accent)}
.scene-annotation i{background:var(--accent);box-shadow:0 0 14px rgba(var(--accent-rgb),.8)}
.scene-index b{color:#fff}
.gallery-item:nth-child(6n+1) .gallery-card{border-radius:72px 22px 22px 22px}
.gallery-item:nth-child(6n+2) .gallery-card{border-radius:22px 72px 22px 22px}
.gallery-item:nth-child(6n+3) .gallery-card{border-radius:22px 22px 72px 22px}
.gallery-item:nth-child(6n+4) .gallery-card{border-radius:22px 22px 22px 72px}
.gallery-item .gallery-card img{mask-image:linear-gradient(180deg,transparent 0%,#000 5%,#000 92%,transparent 100%);-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 5%,#000 92%,transparent 100%)}
.gallery-label{padding:13px 14px;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(8,8,9,.43);backdrop-filter:blur(14px);box-shadow:inset 0 1px rgba(255,255,255,.11)}
.gallery-label i{color:var(--accent)}
.compare-section{background-image:radial-gradient(ellipse at 4% 45%,rgba(var(--accent-rgb),.09),transparent 43%),linear-gradient(180deg,#080808,#0c0b0a)}
.compare-heading h2 span,.process-head h2 span{background:linear-gradient(100deg,#f2d0a7,var(--accent),#f3dfbd);color:transparent;-webkit-background-clip:text;background-clip:text}
.camera-copy h2 .warm-type{background:linear-gradient(100deg,#f2d0a7,var(--accent),#f3dfbd);color:transparent;-webkit-background-clip:text;background-clip:text}
.compare-visual::before{content:"";position:absolute;z-index:0;inset:-18px;background-image:var(--compare-photo,linear-gradient(135deg,#312820,#121212));background-position:center;background-size:cover;filter:blur(26px) brightness(.38);transform:scale(1.08)}
.compare-visual>img,.compare-warm img{object-fit:contain;z-index:1}
.compare-warm{clip-path:inset(0 0 0 var(--compare));}
.compare-warm img{filter:none}
.process{background-image:radial-gradient(ellipse at 96% 18%,rgba(var(--accent-rgb),.09),transparent 36%)}
.process-head{align-self:center}
.process-row{backdrop-filter:blur(12px);will-change:transform,opacity}
.process-row h3{font-weight:550}
.process-progress{bottom:30px;overflow:hidden;border-radius:99px}
.process-progress span{transition:background .45s,box-shadow .45s}
.testimonial-placeholder{border-style:solid;border-color:rgba(255,255,255,.14);background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018));box-shadow:inset 0 1px rgba(255,255,255,.06)}
.testimonials-section .content-section-heading h2{color:#f5f3ef}
.testimonials-section .content-section-heading h2 span{color:var(--accent)}
.testimonials-section .content-section-heading>p:last-child{color:#bcb9b3}
.location-section{background-image:linear-gradient(180deg,#ebe6dd,#f4f1eb)}

/* Controles discretos y accesibles, siempre por encima de las escenas animadas. */
.whatsapp-float{z-index:1205;right:calc(22px + env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));isolation:isolate;overflow:visible;animation:whatsappBreathe 3.2s ease-in-out infinite;box-shadow:0 10px 34px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.22)}
.whatsapp-float::before{content:"";position:absolute;z-index:-1;inset:-5px;border:1px solid rgba(143,221,177,.68);border-radius:inherit;pointer-events:none;animation:whatsappRing 3.2s ease-out infinite}
@keyframes whatsappBreathe{50%{box-shadow:0 12px 36px rgba(0,0,0,.32),0 0 22px rgba(143,221,177,.18),0 0 0 1px rgba(255,255,255,.25)}}
@keyframes whatsappRing{0%,35%{transform:scale(.94);opacity:.7}100%{transform:scale(1.26);opacity:0}}
.custom-cursor{z-index:2100;mix-blend-mode:difference;box-shadow:0 0 0 1px rgba(0,0,0,.34),0 0 22px rgba(255,255,255,.17)}
.custom-cursor.is-active,.custom-cursor.is-camera,.custom-cursor.is-gallery{mix-blend-mode:normal}
.site-header{z-index:1100}
.skip-link{z-index:2200}
.scroll-progress{z-index:1150}
.preloader{transition:opacity .34s ease,visibility .34s ease}
.loader-line i{animation-duration:.82s}
.hero h1 .title-blue{color:#fff}
.text-cta-primary{color:#fff;background:rgba(var(--accent-rgb),.19)}

@media(hover:hover) and (pointer:fine){.catalog-card,.gallery-card{transform-style:preserve-3d}.magnetic{will-change:transform}}
@media(max-width:900px){.catalog-card-featured .catalog-card-media{min-height:280px}.camera-section .camera-visual{height:min(78vh,760px);min-height:570px}.gallery-item:nth-child(6n+1) .gallery-card{border-radius:48px 16px 16px 16px}.gallery-item:nth-child(6n+2) .gallery-card{border-radius:16px 48px 16px 16px}}
@media(max-width:650px){
  .camera-section{padding:64px 0 76px}.camera-section .camera-visual{height:min(76svh,690px);min-height:560px;margin:0;--camera-radius:26px 26px 84px 26px;mask-image:radial-gradient(ellipse 105% 95% at 52% 48%,#000 71%,rgba(0,0,0,.92) 85%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse 105% 95% at 52% 48%,#000 71%,rgba(0,0,0,.92) 85%,transparent 100%)}
  .camera-section .camera-visual>img{object-position:58% center}.camera-section .camera-wash{background:linear-gradient(0deg,rgba(4,4,5,.77),rgba(4,4,5,.22) 43%,transparent 75%),linear-gradient(90deg,rgba(4,4,5,.28),transparent 75%)}
  .catalog-card-featured .catalog-card-media{min-height:0}.catalog-card{border-radius:26px 16px 26px 16px}.catalog-card-featured{border-radius:34px 16px 28px 16px}
  .gallery-label{left:9px;right:7px;bottom:9px;padding:8px 9px;border-radius:13px}.gallery-label b{font-size:10px}.gallery-item:nth-child(n) .gallery-card{border-radius:22px 12px 22px 12px}
  .whatsapp-float{right:calc(16px + env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));z-index:1205}
  .site-header{z-index:1100}.custom-cursor{display:none}
}
@media(prefers-reduced-motion:reduce){
  html,html:not(.has-lenis){scroll-behavior:auto!important}
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .motion-reduced .reveal,.motion-reduced .hero .split-word,.motion-reduced #camera-title .split-word{opacity:1!important;visibility:visible!important;transform:none!important;filter:none!important;animation:none!important}
  .motion-reduced .craft-story{height:auto!important}.motion-reduced .story-pin{position:relative!important;top:auto!important;height:auto!important;min-height:0!important;overflow:visible!important;display:grid!important;padding-top:100px!important;padding-bottom:65px!important}
  .motion-reduced .story-copy{display:grid!important;gap:28px;max-width:none!important;min-height:0!important}.motion-reduced .story-step{position:relative!important;inset:auto!important;width:auto!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;margin:0!important}
  .motion-reduced .process,.motion-reduced body:not(.has-gsap) .process{height:auto!important;padding:90px var(--page) 100px!important;display:block!important}.motion-reduced .process-stage{position:relative!important;top:auto!important;height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(260px,.86fr) minmax(0,1.14fr)!important}
  .motion-reduced .process-head{position:static!important}.motion-reduced .process-list{display:grid!important;min-height:0!important;gap:14px}.motion-reduced .process-row{position:relative!important;inset:auto!important;opacity:1!important;visibility:visible!important;transform:none!important;margin:0!important}
  .motion-reduced .process-progress{display:none!important}.motion-reduced .camera-visual>img{transform:none!important;will-change:auto!important}
  .motion-reduced .whatsapp-float,.motion-reduced .whatsapp-float::before,.motion-reduced .play-button .play-icon::after{animation:none!important}
  .catalog-card,.gallery-card,.camera-visual,.compare-visual,.testimonial-placeholder{will-change:auto}
}
@media(max-width:650px) and (prefers-reduced-motion:reduce){.motion-reduced .story-pin{display:flex!important}.motion-reduced .story-copy{display:block!important}.motion-reduced .story-step{margin-bottom:28px!important}.motion-reduced .process-stage{display:block!important}.motion-reduced .process-list{display:flex!important;flex-direction:column}}

/* Apple Store-inspired product presentation: clean surfaces, compact controls,
   and photography presented as the main product. */
.projects{background:#f5f5f7;color:#1d1d1f;padding-top:clamp(110px,10vw,150px)}
.projects h2{color:#1d1d1f;font-weight:650;letter-spacing:-.075em}
.projects h2 span{color:#8c8c91}
.projects-head{align-items:flex-end;margin-bottom:48px}
.projects-intro{color:#6e6e73;font-size:15px;line-height:1.55;width:310px;margin-right:0}
.projects .eyebrow{color:#6e6e73}
.gallery-toolbar{margin-bottom:24px;padding:18px 0 20px;border-bottom:1px solid #d2d2d7}
.gallery-filter-set>span{color:#86868b;font-size:9px}
.gallery-filter{border:0;border-radius:999px;padding:9px 15px;background:#e8e8ed;color:#424245;font-size:12px}
.gallery-filter:hover,.gallery-filter.is-active{border:0;background:#1d1d1f;color:#fff;box-shadow:none}
.gallery-count{color:#6e6e73;font-size:12px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:dense;gap:18px;columns:auto}
.gallery-item,.gallery-item[hidden]{width:auto;margin:0;break-inside:auto}
.gallery-item{border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.04),0 12px 30px rgba(0,0,0,.04);transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
.gallery-item:hover{transform:translateY(-5px);box-shadow:0 3px 16px rgba(0,0,0,.07),0 18px 38px rgba(0,0,0,.08)}
.gallery-item .gallery-card{width:100%;height:clamp(290px,31vw,430px);border-radius:24px 24px 0 0;background:#e9e9ed;cursor:pointer}
.gallery-item .gallery-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.96);mask-image:none;-webkit-mask-image:none;transform:none!important}
.gallery-item .gallery-card:hover img{filter:saturate(1.03) brightness(1.02);transform:scale(1.025)!important}
.gallery-overlay{background:linear-gradient(180deg,transparent 65%,rgba(0,0,0,.38));opacity:.55}
.gallery-label{left:18px;right:18px;bottom:16px;padding:0;border:0;border-radius:0;background:none;backdrop-filter:none;box-shadow:none}
.gallery-label small{color:rgba(255,255,255,.82);font-size:8px}
.gallery-label b{color:#fff;font-size:16px;font-weight:600}
.gallery-quote{min-height:58px;margin:0;padding:18px 20px;align-items:center;justify-content:space-between;width:100%;color:#0066cc;font-size:13px;border-top:1px solid #ededf0;background:#fff}
.gallery-quote b{color:#0066cc;font-size:18px}
.gallery-placeholder{border:1px solid #e2e2e7;border-radius:24px;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.04)}
.gallery-placeholder>img{background:#ededf0;height:clamp(290px,31vw,430px);object-fit:cover}
.gallery-placeholder>div{background:#fff;padding:18px 20px 20px}
.gallery-placeholder small{color:#86868b}
.gallery-placeholder h3{color:#1d1d1f}
.gallery-placeholder p{color:#6e6e73}
.gallery-placeholder .gallery-quote{color:#0066cc;border-top:0;padding:14px 0 0;min-height:0}
.gallery-foot{color:#86868b;border-top:1px solid #d2d2d7;padding-top:22px;margin-top:32px}
.gallery-foot a{color:#1d1d1f}
.gallery-foot a b{color:#0066cc}
.catalog{background:#fff}
.catalog-card{border:0;border-radius:24px;background:#f5f5f7;box-shadow:0 12px 32px rgba(0,0,0,.06)}
.catalog-card-featured{border:0;background:#f5f5f7}
.catalog-card-media{border-radius:24px 24px 0 0}
.catalog-card h3{color:#1d1d1f}
.catalog-card p{color:#6e6e73}
.catalog-quote{color:#0066cc}
.catalog-index{color:#86868b}
@media(max-width:900px){
  .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery-item .gallery-card{height:clamp(300px,48vw,420px)}
  .gallery-placeholder>img{height:clamp(300px,48vw,420px)}
}
@media(max-width:650px){
  .projects{padding-top:92px}
  .projects-head{display:block;margin-bottom:34px}
  .projects h2{font-size:52px}
  .projects-intro{width:auto;margin:20px 0 0;font-size:13px}
  .gallery-toolbar{align-items:stretch}
  .gallery-filter-sets{overflow:hidden}
  .gallery-filters{display:flex;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .gallery-filters::-webkit-scrollbar{display:none}
  .gallery-filter{flex:0 0 auto;padding:8px 12px;font-size:11px}
  .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .gallery-item{border-radius:17px}
  .gallery-item .gallery-card{height:220px;border-radius:17px 17px 0 0}
  .gallery-placeholder{border-radius:17px}
  .gallery-placeholder>img{height:220px}
  .gallery-placeholder>div{padding:13px}
  .gallery-label{left:10px;right:10px;bottom:10px}
  .gallery-label small{font-size:7px}
  .gallery-label b{font-size:12px}
  .gallery-quote{min-height:50px;padding:14px 12px;font-size:11px}
  .gallery-placeholder .gallery-quote{padding:11px 0 0}
  .gallery-count{font-size:10px}
  .location-card{grid-template-columns:minmax(0,1fr)!important}
  .location-card>div,.location-details{min-width:0}
  .location-details dd{overflow-wrap:anywhere}
}
@media(max-width:380px){
  .location-card h2{font-size:clamp(39px,13vw,52px)}
  .contact-inner{width:min(100%,1100px);min-width:0}
  .contact h2{font-size:clamp(48px,15vw,58px)}
}
