/* Efectos de fotografías y paneles de DelfosInk. */
.specialty-media{display:block;overflow:hidden}
.about-photo,.photo-preview{overflow:hidden}
.card-link{display:inline-block}

/* El teclado recibe la misma señal visual, sin desplazar los controles. */
.specialty-card:focus-within,.fl-contact:focus-within{border-color:rgba(198,180,138,.58);box-shadow:0 12px 32px rgba(0,0,0,.22)}
.work:focus-within .work-image{box-shadow:0 0 0 1px rgba(198,180,138,.58),0 14px 30px rgba(0,0,0,.24)}
.editor-card:focus-within,.text-section:focus-within,.photo-card:focus-within{border-color:#b0b99d;box-shadow:0 8px 24px rgba(31,43,23,.07)}

@media (hover:hover) and (pointer:fine){
  .specialty-card:hover{border-color:rgba(198,180,138,.58);box-shadow:0 18px 42px rgba(0,0,0,.34);background-color:#171711}
  .specialty-card:hover h3,.work:hover h3,.process-step:hover h3{color:var(--gold)}
  .work:hover .work-image{box-shadow:0 0 0 1px rgba(198,180,138,.5),0 16px 34px rgba(0,0,0,.3)}
  .work:hover .zoom-label,.work:focus-within .zoom-label{background:var(--gold);border-color:var(--gold);color:#191914}
  .hero-photo:hover>img,.about-photo:hover{box-shadow:0 16px 38px rgba(0,0,0,.3)}
  .process-step:hover{border-color:rgba(198,180,138,.58);background-color:rgba(198,180,138,.035)}
  .fl-contact:hover{border-color:rgba(198,180,138,.5);box-shadow:0 16px 42px rgba(0,0,0,.22)}
  .editor-card:hover,.text-section:hover,.photo-card:hover{border-color:#b7c0a7;box-shadow:0 12px 28px rgba(31,43,23,.08)}
  .gallery-choice:not(:disabled):hover{border-color:#a6b591;background-color:#edf2e4;box-shadow:0 10px 24px rgba(31,43,23,.09)}
  .photo-preview:hover .photo-replace{border-color:rgba(198,180,138,.7);background-color:#283021}
}

/* El movimiento solo se activa con un ratón y sin preferencia de reducción. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .specialty-card,.work,.process-step,.gallery-choice{transition:transform .28s cubic-bezier(.22,.7,.3,1),border-color .25s,box-shadow .3s,background-color .25s}
  .specialty-media>img,.work-image>img,.about-photo>img,.hero-photo>img,.photo-preview>img,.gallery-choice img{transition:transform .5s cubic-bezier(.22,.7,.3,1),filter .35s,box-shadow .35s}
  .specialty-card h3,.work h3,.process-step h3{transition:color .25s}
  .work-image,.fl-contact,.editor-card,.text-section,.photo-card{transition:border-color .25s,box-shadow .3s}
  .zoom-label,.card-link,.photo-replace{transition:transform .28s,background-color .25s,border-color .25s,color .25s}
  .specialty-card:hover{transform:translateY(-5px)}
  .specialty-card:hover .specialty-media>img{transform:scale(1.045);filter:brightness(1.045) contrast(1.015)}
  .specialty-card:hover .card-link{transform:translateX(3px)}
  .work:hover{transform:translateY(-4px)}
  .work:hover .work-image>img{transform:scale(1.035);filter:brightness(1.045)}
  .work:hover .zoom-label{transform:translateY(-2px)}
  .about-photo:hover>img{transform:scale(1.035);filter:brightness(1.04)}
  .hero-photo:hover>img{transform:translateY(-3px);filter:brightness(1.04)}
  .process-step:hover{transform:translateY(-3px)}
  .photo-preview:hover>img{transform:scale(1.025);filter:brightness(1.04)}
  .gallery-choice:not(:disabled):hover{transform:translateY(-3px)}
  .gallery-choice:not(:disabled):hover img{filter:brightness(1.06)}
}

/* Evita que el efecto anterior de la galería se quede activo tras un toque. */
@media (hover:none),(pointer:coarse){
  .work-image:hover>img{transform:none}
}
@media (prefers-reduced-motion:reduce){
  .specialty-card,.work,.process-step,.gallery-choice,.specialty-media>img,.work-image>img,.about-photo>img,.hero-photo>img,.photo-preview>img,.zoom-label,.card-link{transform:none!important;transition:none!important}
}
