/* Decoraziel Chic · Sitio en construcción */
:root{
  --nogal-osc:#291403;
  --nogal:#4a2a14;
  --nogal-med:#8a5a34;
  --haya:#c58c52;
  --haya-clara:#d9a466;
  --crema:#ece6dc;
  --crema-2:#dad1c0;
  --texto:#f3ede4;
  --texto-suave:#cbbba6;
  --marron-letra:#6b5844;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  min-height:100vh;
  font-family:"Josefin Sans",system-ui,sans-serif;
  color:var(--texto);
  background-color:var(--nogal-osc);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(197,140,82,.22), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 1px, transparent 1px 23px),
    linear-gradient(180deg,#331c0a,#1d0e02);
}
.wrap{max-width:880px;margin:0 auto;padding:28px 16px 36px;display:flex;flex-direction:column;align-items:center;gap:22px;text-align:center}

/* Logo */
.logo{width:min(440px,86vw);height:auto;border-radius:10px;box-shadow:0 18px 40px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.06);
  animation:entrar .9s cubic-bezier(.2,.8,.2,1) both}

/* Escena */
.escena{width:min(640px,100%);
  background:linear-gradient(180deg,rgba(236,230,220,.10),rgba(236,230,220,.03));
  border:1px solid rgba(236,230,220,.10);border-radius:18px;padding:10px 6px 0;
  animation:entrar .9s .15s cubic-bezier(.2,.8,.2,1) both}
.escena svg{display:block;width:100%;height:auto}
.sombra{fill:rgba(0,0,0,.28)}
.piso{stroke:rgba(236,230,220,.25);stroke-width:2}
.veta{fill:none;stroke:rgba(110,62,26,.45);stroke-width:1.2}
.brazo{fill:none;stroke:#ece6dc;stroke-width:14;stroke-linecap:round}
.lapiz{stroke:#e3a14a;stroke-width:3;stroke-linecap:round}
.lentes{fill:rgba(170,215,235,.55);stroke:#3a3a3a;stroke-width:1}
.dientes{fill:none;stroke:#7e8a94;stroke-width:1.2;stroke-linejoin:bevel}
.ranura{fill:#3a1f0b;transform-box:fill-box;transform-origin:top;transform:scaleY(0)}
.aserrin circle{fill:#e2b47a;opacity:0}
.montoncito{fill:#d7a86e;opacity:.85;transform-box:fill-box;transform-origin:center bottom}

/* Animaciones de la escena (ciclo de 4 s) */
.sierra{animation:serrar .5s ease-in-out infinite alternate}
.carpintero{transform-box:fill-box;transform-origin:50% 100%;animation:balanceo 1s ease-in-out infinite alternate}
.ranura{animation:cortar 4s linear infinite}
.pedazo{transform-box:fill-box;transform-origin:0% 100%;animation:caer 4s ease-in infinite}
.aserrin circle{animation:polvo 1.2s ease-in infinite}
.aserrin circle:nth-child(2){animation-delay:.15s;--dx:-10px}
.aserrin circle:nth-child(3){animation-delay:.3s;--dx:9px}
.aserrin circle:nth-child(4){animation-delay:.45s;--dx:-5px}
.aserrin circle:nth-child(5){animation-delay:.6s;--dx:12px}
.aserrin circle:nth-child(6){animation-delay:.75s;--dx:-13px}
.aserrin circle:nth-child(7){animation-delay:.9s;--dx:6px}
.aserrin circle:nth-child(8){animation-delay:1.05s;--dx:-3px}
.montoncito{animation:crecer 4s ease-out infinite}

@keyframes serrar{from{transform:translate(-14px,-2.8px)}to{transform:translate(14px,2.8px)}}
@keyframes balanceo{from{transform:rotate(-1deg)}to{transform:rotate(1.2deg)}}
@keyframes cortar{0%{transform:scaleY(0)}80%{transform:scaleY(1)}100%{transform:scaleY(1)}}
@keyframes caer{0%,80%{transform:rotate(0)}88%{transform:rotate(3deg)}94%{transform:rotate(2.2deg)}100%{transform:rotate(0)}}
@keyframes polvo{
  0%{opacity:0;transform:translate(0,0)}
  10%{opacity:1}
  100%{opacity:0;transform:translate(var(--dx,4px),82px)}
}
@keyframes crecer{0%{transform:scale(.4)}80%{transform:scale(1)}100%{transform:scale(1)}}

/* Texto */
.estado{width:min(620px,100%);animation:entrar .9s .3s cubic-bezier(.2,.8,.2,1) both}
.kicker{display:inline-block;font-weight:600;font-size:.82rem;letter-spacing:.32em;text-transform:uppercase;
  color:var(--nogal-osc);background:var(--haya-clara);padding:.45em .9em .3em;border-radius:999px}
h1{font-family:"Cormorant Garamond",Georgia,serif;font-weight:500;font-size:clamp(1.9rem,6vw,2.9rem);line-height:1.08;margin:.55em 0 .3em}
h1 em{color:var(--haya-clara)}
.sub{color:var(--texto-suave);font-weight:300;font-size:1.05rem;line-height:1.5}

/* Barra de carga */
.carga{margin-top:22px}
.barra{position:relative;height:22px;border-radius:999px;overflow:hidden;
  background:#1a0c01;box-shadow:inset 0 2px 6px rgba(0,0,0,.6),0 0 0 1px rgba(236,230,220,.12)}
.barra span{position:absolute;inset:0 auto 0 0;width:var(--p,40%);border-radius:999px;
  background:
    repeating-linear-gradient(-45deg,rgba(255,255,255,.16) 0 10px,transparent 10px 20px),
    linear-gradient(90deg,var(--nogal-med),var(--haya) 60%,var(--haya-clara));
  background-size:28px 28px,100% 100%;
  animation:llenar 2.2s cubic-bezier(.2,.8,.2,1) both,rayas 1s linear infinite}
.barra span::after{content:"";position:absolute;right:0;top:0;bottom:0;width:4px;background:var(--crema);opacity:.8;border-radius:2px}
.pct{margin-top:10px;font-size:1.15rem;letter-spacing:.06em;color:var(--texto)}
.pct strong{font-weight:600;color:var(--haya-clara);font-variant-numeric:tabular-nums}
@keyframes llenar{from{width:0}to{width:var(--p,40%)}}
@keyframes rayas{to{background-position:28px 0,0 0}}

/* Contacto */
.contacto{width:100%;animation:entrar .9s .45s cubic-bezier(.2,.8,.2,1) both}
.contacto h2{font-weight:400;font-size:.95rem;letter-spacing:.24em;text-transform:uppercase;color:var(--texto-suave);margin-bottom:12px}
.contacto ul{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.contacto a{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;text-align:left;
  text-decoration:none;color:var(--nogal-osc);background:var(--crema);border-radius:14px;padding:12px 14px;
  box-shadow:0 6px 18px rgba(0,0,0,.3);transition:transform .15s ease,background-color .15s ease}
.contacto a:hover,.contacto a:focus-visible{transform:translateY(-2px) scale(1.02);background:#fff8ee}
.contacto a:active{transform:scale(.98)}
.contacto a:focus-visible{outline:3px solid var(--haya-clara);outline-offset:3px}
.contacto svg{grid-row:1 / span 2;width:28px;height:28px;fill:#1aa34b}
.contacto .n{font-weight:600;font-size:.95rem}
.contacto .t{font-size:.95rem;color:var(--marron-letra);font-variant-numeric:tabular-nums}

.pie{color:var(--texto-suave);font-size:.85rem;letter-spacing:.08em;opacity:.8;margin-top:6px}

@keyframes entrar{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

@media (min-width:760px){.wrap{padding-top:44px}}

/* Quien pidió reducir animaciones ve la escena quieta, con el corte a medias */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .ranura{transform:scaleY(.4)}
  .barra span{width:var(--p,40%)}
}
