/* Carrusel del header: las fotos se deslizan en horizontal (se suma al efecto de scroll de styles-header.css). */
.hero-slides{position:absolute; inset:0; overflow:hidden; transform-origin:22% 0; will-change:transform; touch-action:pan-y; cursor:grab; user-select:none; -webkit-user-select:none}
.hero-slides.arrastrando{cursor:grabbing}
.hero-track{display:flex; height:100%; width:100%; transform:translate3d(0,0,0); transition:transform .6s cubic-bezier(.65,0,.25,1); will-change:transform}
.hero-track.sin-anim{transition:none}
.hero-foto .hero-slide{display:block; position:relative; flex:0 0 100%; height:100%; overflow:hidden}
.hero-foto .hero-slide img.foto{transform:none; will-change:auto; pointer-events:none}
.hero-dots{position:absolute; left:0; right:0; bottom:calc(12% + 14px); z-index:4; display:flex; justify-content:center; gap:4px}
.hero-dots button{width:30px; height:30px; padding:0; border:0; background:none; cursor:pointer; display:grid; place-items:center}
.hero-dots button::before{content:""; width:8px; height:8px; border-radius:99px; background:rgba(255,255,255,.55); box-shadow:0 0 0 1px rgba(40,28,16,.18); transition:width .35s ease, background .35s ease}
.hero-dots button[aria-current="true"]::before{width:26px; background:#fff}
.hero-dots button:focus-visible{outline:2px solid #fff; outline-offset:-4px; border-radius:8px}
@media(max-width:760px){ .hero-slides{transform-origin:50% 0} }
@media(prefers-reduced-motion:reduce){ .hero-track{transition:none} }

/* Logo y texto del header: en la 2.ª foto (productos al centro y a la derecha) se corren a la izquierda, sobre las plantas,
   con la misma curva y duración que el deslizamiento del carrusel. El oscurecido acompaña y cambia de lado. */
@media(min-width:761px){
  .hero-foto__texto{
    --ancho:min(470px,46vw);
    right:auto; width:var(--ancho);
    left:calc(100% - clamp(20px,22vw,340px) - var(--ancho));
    transition:left .6s cubic-bezier(.65,0,.25,1);
  }
  /* 2.ª foto: productos al centro y a la derecha, el texto va a la izquierda (en la 3.ª queda a la derecha, sobre la pared) */
  .hero-foto[data-slide="1"] .hero-foto__texto,
  .hero-foto[data-slide="3"] .hero-foto__texto{left:clamp(20px,6vw,110px)}   /* 4.ª foto: bruma y difusor a la derecha, texto sobre la cama */
  /* 3.ª foto: más pegado al borde derecho, sobre la pared libre (sin tapar las flores secas del florero) */
  .hero-foto[data-slide="2"] .hero-foto__texto{left:calc(100% - clamp(20px,8vw,150px) - var(--ancho))}
  .hero-foto__shade{background:none}
  .hero-foto__shade::before,.hero-foto__shade::after{content:""; position:absolute; inset:0; transition:opacity .6s cubic-bezier(.65,0,.25,1)}
  .hero-foto__shade::before{background:linear-gradient(270deg,rgba(20,14,8,.82) 0%,rgba(20,14,8,.6) 38%,rgba(20,14,8,0) 72%)}
  .hero-foto__shade::after{background:linear-gradient(90deg,rgba(20,14,8,.82) 0%,rgba(20,14,8,.6) 38%,rgba(20,14,8,0) 72%); opacity:0}
  .hero-foto[data-slide="1"] .hero-foto__shade::before,.hero-foto[data-slide="3"] .hero-foto__shade::before{opacity:0}
  .hero-foto[data-slide="1"] .hero-foto__shade::after,.hero-foto[data-slide="3"] .hero-foto__shade::after{opacity:1}
}
.hero-foto__texto .hero-logo,.hero-foto__texto .hero-slogan{will-change:transform}
@media(prefers-reduced-motion:reduce){ .hero-foto__texto,.hero-foto__shade::before,.hero-foto__shade::after{transition:none} }
