/* =========================================================
   COMERCIAL DEL PLATA — Sistema visual
   Paleta: grafito / plata / blanco papel — el color lo aportan
   el video, la fotografía real de producto y el metal del logo.
   Tipografía: Archivo Expanded (display) + IBM Plex Sans (texto)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Expanded:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --graphite-950:#0d0e10;
  --graphite-900:#1a1c1f;
  --graphite-800:#24262a;
  --steel-700:#4a4e55;
  --steel-500:#82868f;
  --silver-300:#c9cdd3;
  --silver-100:#e7e9eb;
  --paper-100:#f1f0ec;
  --whatsapp:#25d366;
  --whatsapp-dark:#1da851;

  --font-display:'Archivo Expanded', sans-serif;
  --font-body:'IBM Plex Sans', sans-serif;
  --font-mono:'IBM Plex Mono', monospace;

  --container: 1360px;
  --gutter: clamp(20px, 5vw, 72px);

  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Textura de aluminio cepillado: líneas diagonales cruzadas bien
     visibles + brillo superior, para que se note el acabado metálico
     en toda la sección oscura del sitio. */
  --metal-texture:
    repeating-linear-gradient(115deg, rgba(255,255,255,.09) 0px, rgba(255,255,255,.09) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(115deg, rgba(0,0,0,.22) 0px, rgba(0,0,0,.22) 1px, transparent 1px, transparent 8px),
    repeating-linear-gradient(25deg, rgba(0,0,0,.16) 0px, rgba(0,0,0,.16) 1px, transparent 1px, transparent 6px),
    linear-gradient(115deg, transparent 20%, rgba(255,255,255,.05) 45%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.05) 55%, transparent 80%),
    radial-gradient(160% 70% at 50% -15%, rgba(255,255,255,.09), transparent 60%);

  --metal-btn:
    linear-gradient(180deg, rgba(231,233,235,.30) 0%, rgba(201,205,211,.16) 12%, rgba(74,78,85,.38) 55%, rgba(24,26,29,.6) 100%);
  --metal-btn-hover:
    linear-gradient(180deg, rgba(231,233,235,.42) 0%, rgba(201,205,211,.24) 12%, rgba(94,98,105,.48) 55%, rgba(32,34,38,.65) 100%);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background-color:var(--graphite-950);
  background-image:var(--metal-texture);
  background-attachment:fixed;
  color:var(--paper-100);
  font-family:var(--font-body);
  font-weight:400;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

::selection{ background:var(--silver-300); color:var(--graphite-950); }

:focus-visible{
  outline:2px solid var(--silver-300);
  outline-offset:3px;
}

.wrap{
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

/* ---------- Typography scale ---------- */
h1,h2,h3{
  font-family:var(--font-display);
  font-weight:700;
  line-height:1.02;
  letter-spacing:-0.01em;
  margin:0;
}
.eyebrow{
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.14em;
  color:var(--steel-500);
  margin:0 0 18px;
}
.lede{
  font-size:clamp(1.05rem, 1.4vw, 1.3rem);
  color:var(--silver-300);
  max-width:46ch;
  line-height:1.55;
  font-weight:400;
}
.hairline{
  height:1px;
  width:100%;
  background:linear-gradient(90deg, transparent, var(--steel-700) 20%, var(--steel-700) 80%, transparent);
  border:0;
  margin:0;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:15px 30px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.95rem;
  border-radius:2px;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .35s var(--ease-out), background-color .35s, border-color .35s, color .35s;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{
  background-image:linear-gradient(180deg, #ffffff 0%, #e7e9eb 22%, #c9cdd3 58%, #aeb3ba 100%);
  color:var(--graphite-950);
  border:1px solid rgba(255,255,255,.6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 2px rgba(0,0,0,.25);
}
.btn-primary:hover{
  background-image:linear-gradient(180deg, #ffffff 0%, #f1f0ec 22%, #d5d9de 58%, #b8bdc4 100%);
}
.btn-ghost{
  background:transparent;
  color:var(--paper-100);
  border-color:rgba(241,240,236,.35);
}
.btn-ghost:hover{ border-color:var(--paper-100); }
.btn-whatsapp{
  background:var(--whatsapp);
  color:#08150c;
}
.btn-whatsapp:hover{ background:#2fe273; }
.btn svg{ width:18px; height:18px; flex:none; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:100;
  padding:26px var(--gutter);
  display:flex;
  align-items:center;
  justify-content:space-between;
  transition:padding .5s var(--ease-out), background-color .5s var(--ease-out), backdrop-filter .5s;
}
.site-header.is-condensed{
  padding:14px var(--gutter);
  background:rgba(10,11,12,.82);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.brand-mark{
  display:flex;
  align-items:center;
  gap:12px;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .6s var(--ease-out), transform .6s var(--ease-out), height .5s var(--ease-out);
}
.brand-mark.is-visible{ opacity:1; transform:translateY(0); }
.brand-mark img{
  height:38px; width:auto;
  transition:height .5s var(--ease-out);
  animation:logoSpin 7s linear infinite;
  transform-style:preserve-3d;
  will-change:transform;
}
@keyframes logoSpin{
  from{ transform:perspective(520px) rotateY(0deg); }
  to{ transform:perspective(520px) rotateY(360deg); }
}
.site-header.is-condensed .brand-mark img{ height:30px; }
.brand-mark span{
  font-family:var(--font-mono);
  color:var(--paper-100);
  border-left:1px solid var(--steel-700);
  padding-left:13px;
  line-height:1.05;
  display:flex; flex-direction:column;
}
.brand-mark span .b-since{
  font-size:.6rem;
  letter-spacing:.22em;
  color:var(--silver-300);
  font-weight:400;
  font-style:normal;
}
.brand-mark span .b-year{
  font-size:1.05rem;
  letter-spacing:.06em;
  font-weight:600;
  color:var(--paper-100);
  margin-top:2px;
  font-style:normal;
}

.main-nav{
  position:fixed;
  top:0; right:0;
  z-index:100;
  display:flex; align-items:center; gap:38px;
  padding:26px var(--gutter);
  transition:padding .5s var(--ease-out);
}
.site-header.is-condensed ~ .main-nav{ padding:14px var(--gutter); }
.main-nav ul{
  list-style:none; display:flex; gap:8px; margin:0; padding:0;
}
.main-nav a{
  display:inline-flex;
  align-items:center;
  font-size:.84rem;
  font-weight:500;
  color:var(--silver-300);
  padding:9px 16px;
  border:1px solid rgba(201,205,211,.4);
  border-radius:2px;
  background-image:var(--metal-btn);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 1px rgba(0,0,0,.4);
  transition:color .3s, border-color .3s, background-image .3s, box-shadow .3s;
}
.main-nav a:hover{
  color:var(--paper-100);
  border-color:rgba(231,233,235,.65);
  background-image:var(--metal-btn-hover);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 1px rgba(0,0,0,.45);
}

.nav-toggle{
  display:none;
  background:none; border:0; color:var(--paper-100);
  width:40px; height:32px; position:relative; cursor:pointer; z-index:110;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:''; position:absolute; left:6px; right:6px; height:1px; background:currentColor;
  transition:transform .35s var(--ease-out), opacity .35s;
}
.nav-toggle span{ top:15px; }
.nav-toggle span::before{ top:-8px; }
.nav-toggle span::after{ top:8px; }
.nav-toggle.is-open span{ background:transparent; }
.nav-toggle.is-open span::before{ transform:translateY(8px) rotate(45deg); }
.nav-toggle.is-open span::after{ transform:translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  height:100svh;
  min-height:560px;
  overflow:hidden;
  background:#000;
}
.hero-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center bottom;
  opacity:0;
  transition:opacity 1.6s var(--ease-out);
}
.hero-video.is-loaded{ opacity:1; }
.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(6,7,8,.5) 0%, rgba(6,7,8,.05) 18%, rgba(6,7,8,.02) 70%, rgba(6,7,8,.4) 100%);
  pointer-events:none;
}
.hero-content{
  position:relative;
  z-index:2;
  height:74%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:70px var(--gutter) 0;
  gap:0;
}
.hero-logo{
  width:min(920px, 74vw, 84vh);
  max-width:none;
  flex-shrink:0;
  opacity:0;
  transform:scale(.86);
  filter:drop-shadow(0 12px 50px rgba(0,0,0,.6));
  transition:opacity 1.3s var(--ease-out), transform 1.3s var(--ease-out);
}
.hero-logo.is-visible{ opacity:1; transform:scale(1); }

/* ---------- STATEMENT (fuera del video) ---------- */
.statement{
  padding:min(9vw,100px) 0;
  text-align:center;
}
.statement-headline{
  font-family:var(--font-display);
  font-weight:700;
  line-height:1.08;
  font-size:clamp(2.1rem, 5.2vw, 4.4rem);
  color:var(--paper-100);
  max-width:34ch;
  margin:0 auto;
}

.scroll-cue{
  position:absolute;
  left:50%; bottom:26px; transform:translateX(-50%);
  z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color:var(--silver-300);
  opacity:0;
  transition:opacity 1s var(--ease-out) 1.4s;
}
.scroll-cue.is-visible{ opacity:.85; }
.scroll-cue .line{
  width:1px; height:34px;
  background:linear-gradient(180deg, var(--silver-300), transparent);
  animation:scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse{
  0%,100%{ transform:scaleY(.6); opacity:.5; }
  50%{ transform:scaleY(1); opacity:1; }
}

/* =========================================================
   SECTION SCAFFOLDING
   ========================================================= */
section{ position:relative; }
.section-pad{ padding:min(9vw, 100px) 0; }
.section-pad-sm{ padding:min(9vw, 100px) 0; }

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:40px;
  margin-bottom:64px;
  flex-wrap:wrap;
}
.section-head h2{
  font-size:clamp(2.2rem, 5vw, 4rem);
}
.section-head .lede{ padding-bottom:6px; }

.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible{ opacity:1; transform:translateY(0); }
.reveal-delay-1{ transition-delay:.08s; }
.reveal-delay-2{ transition-delay:.16s; }
.reveal-delay-3{ transition-delay:.24s; }

/* ---------- DESDE 1977 ---------- */
.since-block{
  text-align:center;
  padding-top:min(9vw, 100px);
  padding-bottom:min(9vw, 100px);
}
.since-block .eyebrow{ justify-content:center; }
.since-block h2{
  font-size:clamp(3rem, 10vw, 7.5rem);
  color:var(--paper-100);
}
.since-block p{
  margin:30px auto 0;
  max-width:52ch;
  color:var(--silver-300);
  font-size:clamp(1.05rem, 1.6vw, 1.35rem);
}

/* ---------- CORTINERÍA (editorial cards) ---------- */
.cortineria-strip{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:1px;
  background:var(--steel-700);
}
.c-item{
  position:relative;
  display:flex; flex-direction:column;
  background:var(--graphite-950);
  overflow:hidden;
}
/* Las fotos se muestran completas (sin recorte): panorámicas 8:3, fotos 4:3 */
.c-item img{
  display:block;
  width:100%; height:auto;
  aspect-ratio:8/3;
  object-fit:cover;
  transition:transform .9s var(--ease-out);
}
.c-item:hover img{ transform:scale(1.03); }
.c-item .c-label{
  position:relative; z-index:1;
  padding:16px 20px 18px;
  background:var(--graphite-950);
  font-size:.95rem;
  font-weight:500;
}
.cortineria-foot{
  margin-top:36px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
}
.cortineria-foot p{ color:var(--silver-300); max-width:52ch; margin:0; }

/* ---------- PERSIANAS (three immersive panels) ---------- */
.persianas-panel{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:82vh;
}
.persianas-panel .p-media{
  position:relative; overflow:hidden; background:var(--graphite-900);
}
.persianas-panel .p-media img,
.persianas-panel .p-media video{
  width:100%; height:100%; object-fit:cover; position:absolute; inset:0;
  transform:scale(1.02);
  transition:transform 1.4s var(--ease-out);
}
.persianas-panel:hover .p-media img,
.persianas-panel:hover .p-media video{ transform:scale(1.08); }
.persianas-panel .p-copy{
  display:flex; flex-direction:column; justify-content:center;
  padding:min(6vw,70px);
}
.p-number{
  font-family:var(--font-mono);
  font-size:.85rem;
  color:var(--steel-500);
  margin-bottom:20px;
}
.p-copy h3{
  font-size:clamp(1.9rem, 3.4vw, 3rem);
  margin-bottom:22px;
}
.p-copy p{
  color:var(--silver-300);
  max-width:40ch;
  font-size:1.02rem;
  margin:0 0 30px;
}
.p-traits{
  display:flex; flex-wrap:wrap; gap:10px 26px;
  list-style:none; padding:0; margin:0 0 32px;
}
.p-traits li{
  font-size:.86rem;
  color:var(--steel-500);
  display:flex; align-items:center; gap:9px;
}
.p-traits li::before{
  content:''; width:5px; height:5px; border-radius:50%;
  background:var(--silver-300); flex:none;
}
.persianas-panel.is-reverse{ direction:rtl; }
.persianas-panel.is-reverse > *{ direction:ltr; }

@media (max-width: 880px){
  .persianas-panel{ grid-template-columns:1fr; min-height:auto; }
  .persianas-panel .p-media{ aspect-ratio:4/3; }
  .persianas-panel.is-reverse{ direction:ltr; }
  .persianas-panel .p-media{ order:-1; }
}

/* ---------- AUTOMATIZACIÓN (dark tech zone) ---------- */
.automation-zone{
}
.motor-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1px;
  background:var(--steel-700);
}
.motor-card{
  background:var(--graphite-950);
  padding:40px 26px 36px;
  display:flex; flex-direction:column;
}
.motor-card .p-number{ margin-bottom:26px; }
.motor-card .m-photo{
  aspect-ratio:16/10;
  overflow:hidden;
  margin-bottom:26px;
  background:var(--graphite-900);
}
.motor-card .m-photo img{
  width:100%; height:100%; object-fit:cover;
  filter:grayscale(15%) contrast(1.05);
  transition:transform 1s var(--ease-out);
}
.motor-card:hover .m-photo img{ transform:scale(1.06); }
.motor-card h4{
  font-family:var(--font-display);
  font-size:1.3rem;
  font-weight:700;
  margin:0 0 14px;
}
.motor-card .m-specs{
  list-style:none; margin:0 0 0; padding:16px 0 0;
  border-top:1px solid var(--steel-700);
  font-family:var(--font-mono);
  font-size:.78rem;
  color:var(--steel-500);
  display:flex; flex-direction:column; gap:8px;
}
.motor-card .m-specs b{ color:var(--silver-300); font-weight:500; }

@media (max-width: 1100px){
  .motor-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width: 640px){
  .motor-grid{ grid-template-columns:1fr; }
}

/* ---------- SISTEMA (pipeline) ---------- */
.system-flow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  margin-top:70px;
  padding:40px var(--gutter);
  border:1px solid var(--steel-700);
}
.system-flow .s-step{
  font-family:var(--font-mono);
  font-size:.8rem;
  letter-spacing:.08em;
  color:var(--silver-300);
  text-align:center;
  flex:1 1 auto;
  min-width:90px;
}
.system-flow .s-arrow{
  color:var(--steel-700);
  font-size:1.1rem;
  flex:none;
}
@media (max-width:720px){
  .system-flow{ flex-direction:column; align-items:stretch; }
  .system-flow .s-arrow{ align-self:center; transform:rotate(90deg); }
}

/* ---------- ACCESORIOS MOTOR (gallery strip) ---------- */
.acc-scroller{
  display:flex;
  gap:1px;
  overflow-x:auto;
  background:var(--steel-700);
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
}
.acc-scroller::-webkit-scrollbar{ height:6px; }
.acc-scroller::-webkit-scrollbar-thumb{ background:var(--steel-700); }
.acc-item{
  flex:0 0 240px;
  scroll-snap-align:start;
  background:var(--graphite-950);
  aspect-ratio:1/1;
  overflow:hidden;
}
.acc-item img{
  width:100%; height:100%; object-fit:cover;
  filter:grayscale(20%);
  transition:transform .8s var(--ease-out), filter .5s;
}
.acc-item:hover img{ transform:scale(1.1); filter:grayscale(0%); }

/* ---------- PROFESIONALES ---------- */
.pro-section{
}
.pro-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:var(--gutter);
  align-items:center;
}
.pro-list{
  list-style:none; margin:34px 0 0; padding:0;
  display:grid; grid-template-columns:1fr 1fr; gap:16px 30px;
}
.pro-list li{
  font-size:.98rem; color:var(--silver-300);
  padding-top:14px; border-top:1px solid var(--steel-700);
}
.pro-media{
  aspect-ratio:1/1;
  overflow:hidden;
  background:var(--graphite-900);
}
.pro-media img,
.pro-media video{ width:100%; height:100%; object-fit:cover; display:block; }


@media (max-width:880px){
  .pro-grid{ grid-template-columns:1fr; }
  .pro-list{ grid-template-columns:1fr; }
}

/* ---------- PROYECTOS ---------- */
.projects-section{
  text-align:center;
  padding:min(9vw,100px) 0;
}
.projects-section h2{ font-size:clamp(2.2rem,5vw,4rem); }
.projects-section .lede{ margin:26px auto 0; text-align:center; }
.projects-frame{
  margin-top:56px;
  border:1px dashed var(--steel-700);
  padding:min(10vw, 90px) var(--gutter);
  display:flex; flex-direction:column; align-items:center; gap:18px;
}
.projects-frame span{
  font-family:var(--font-mono); font-size:.78rem; letter-spacing:.1em; color:var(--steel-500);
}

/* ---------- CTA FINAL ---------- */
.cta-final{
  padding:min(9vw,100px) 0;
  text-align:center;
}
.cta-final h2{
  font-size:clamp(2.4rem, 6vw, 5rem);
  max-width:18ch;
  margin:0 auto;
}
.cta-final .cta-row{
  margin-top:44px;
  display:flex; gap:16px; justify-content:center; flex-wrap:wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  padding:80px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:60px;
}
.footer-brand img{
  display:block;
  height:40px; width:auto;
  margin-bottom:16px;
  animation:logoSpin 7s linear infinite;
  will-change:transform;
}
.footer-brand p{
  color:var(--steel-500); font-size:.85rem; max-width:28ch; margin:0;
}
.footer-col h5{
  font-family:var(--font-mono);
  font-size:.72rem; letter-spacing:.12em; color:var(--steel-500);
  margin:0 0 18px; font-weight:400;
}
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px; }
.footer-col a, .footer-col li{ font-size:.92rem; color:var(--silver-300); }
.footer-col a:hover{ color:var(--paper-100); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:30px; border-top:1px solid var(--steel-700);
  flex-wrap:wrap; gap:14px;
  font-size:.78rem; color:var(--steel-500);
}

@media (max-width:900px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.wa-float{
  position:fixed;
  right:24px; bottom:24px;
  z-index:90;
  display:flex; align-items:center; gap:10px;
  background:var(--whatsapp);
  color:#08150c;
  padding:14px 18px;
  border-radius:40px;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  font-weight:600; font-size:.88rem;
  transition:transform .3s var(--ease-out), background .3s;
}
.wa-float:hover{ transform:translateY(-3px); background:#2fe273; }
.wa-float svg{ width:20px; height:20px; flex:none; }
.wa-float .wa-text{ display:inline; }
@media (max-width:600px){
  .wa-float{ padding:14px; border-radius:50%; }
  .wa-float .wa-text{ display:none; }
}

/* =========================================================
   MOBILE NAV
   ========================================================= */
@media (max-width: 1180px){
  .nav-toggle{ display:block; }
  .main-nav{
    inset:0; z-index:105;
    background:var(--graphite-950);
    flex-direction:column;
    justify-content:center;
    padding:0;
    opacity:0; pointer-events:none;
    transition:opacity .4s var(--ease-out);
  }
  .main-nav.is-open{ opacity:1; pointer-events:auto; }
  .main-nav ul{ flex-direction:column; text-align:center; gap:18px; }
  .main-nav a{ font-size:1.25rem; }
  .main-nav .btn{ margin-top:20px; }
}

/* ---------- GALERÍA DE ACCESORIOS: flotando sobre el video ---------- */
.hero-gallery{
  position:absolute;
  left:0; right:0;
  bottom:2%;
  height:min(230px, 26vw);
  z-index:2;
  pointer-events:none;
}
.hg-slide{
  position:absolute; inset:0;
  margin:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px;
  opacity:0;
  transform:translateY(18px) scale(.92);
  transition:opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.hg-slide.is-active{ opacity:1; transform:translateY(0) scale(1); z-index:1; }
.hg-slide img{
  max-height:100%;
  max-width:min(230px, 40vw);
  object-fit:contain;
  filter:drop-shadow(0 12px 26px rgba(0,0,0,.6)) drop-shadow(0 0 34px rgba(0,0,0,.4));
}
.hg-slide figcaption{
  font-family:var(--font-mono);
  font-size:.68rem;
  letter-spacing:.09em;
  color:var(--paper-100);
  background:rgba(6,7,8,.5);
  padding:5px 12px;
  border-radius:20px;
  backdrop-filter:blur(2px);
}

/* =========================================================
   MISC RESPONSIVE
   ========================================================= */
@media (max-width: 720px){
  .cortineria-strip{ grid-template-columns:1fr; }
  .hero-content{ height:76%; padding:50px 0 0; }
  .hero-logo{ width:min(1400px, 108vw, 74vh); }
  .hero-gallery{ bottom:3%; height:min(240px, 58vw); }
  .hg-slide img{ max-width:78vw; }
}



/* ---------- EUROMAX bajo el título de Automatización ---------- */
.euromax-logo{
  display:block;
  width:min(420px, 78vw);
  height:auto;
  margin-top:22px;
}

.p-copy .btn{ align-self:flex-start; }

/* ---------- LIGHTBOX (fotos ampliadas en Automatización) ---------- */
.is-zoomable{ cursor:zoom-in; }
.lightbox{
  position:fixed; inset:0;
  z-index:300;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  background:rgba(8,9,10,.94);
  opacity:0; pointer-events:none;
  transition:opacity .3s var(--ease-out);
  cursor:zoom-out;
}
.lightbox.is-open{ opacity:1; pointer-events:auto; }
.lightbox img{
  max-width:94vw; max-height:88vh;
  width:auto; height:auto;
  object-fit:contain;
  background:#fff;
  transform:scale(.94);
  transition:transform .35s var(--ease-out);
}
.lightbox.is-open img{ transform:scale(1); }
.lightbox-close{
  position:absolute; top:16px; right:16px;
  width:44px; height:44px;
  border:1px solid rgba(201,205,211,.5);
  background:rgba(10,11,12,.7);
  color:var(--paper-100);
  font-size:1.8rem; line-height:1;
  border-radius:50%;
  cursor:pointer;
}

@media (max-width: 720px){
  .lightbox{ overflow:auto; -webkit-overflow-scrolling:touch; padding:70px 0 40px; justify-content:flex-start; align-items:flex-start; }
  .lightbox img{
    width:190vw; max-width:none; max-height:none;
    margin:auto; flex:none;
  }
  .lightbox-close{ position:fixed; z-index:2; }
}

#ferreteria{ scroll-margin-top:140px; }

/* Menú de escritorio más compacto entre 1181 y 1360 px (8 botones + Consultar) */
@media (min-width: 1181px) and (max-width: 1360px){
  .main-nav{ gap:18px; }
  .main-nav ul{ gap:6px; }
  .main-nav a{ padding:8px 11px; font-size:.8rem; }
}
/* Menú celular en pantallas bajas */
@media (max-width: 1180px) and (max-height: 720px){
  .main-nav ul{ gap:10px; }
  .main-nav a{ font-size:1.05rem; padding:7px 14px; }
  .main-nav .btn{ margin-top:12px; }
}

/* =========================================================
   FERRETERÍA MAYORISTA
   ========================================================= */
.ferr-chips{
  display:flex; flex-wrap:wrap; gap:8px;
  margin:-16px 0 min(9vw,90px);
}
.ferr-chip{
  display:inline-flex; align-items:center;
  padding:10px 18px;
  font-size:.88rem; font-weight:500;
  color:var(--silver-300);
  border:1px solid rgba(201,205,211,.4);
  border-radius:2px;
  background-image:var(--metal-btn);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 1px rgba(0,0,0,.4);
  transition:color .3s, border-color .3s, background-image .3s;
}
.ferr-chip:hover{
  color:var(--paper-100);
  border-color:rgba(231,233,235,.65);
  background-image:var(--metal-btn-hover);
}
.ferr-sub{ scroll-margin-top:110px; }
.ferr-sub + .ferr-sub{ margin-top:min(9vw,100px); }
.ferr-sub-head{
  display:flex; flex-wrap:wrap; align-items:flex-end;
  gap:8px 28px;
  margin-bottom:34px;
}
.ferr-sub-head .p-number{ flex-basis:100%; margin-bottom:6px; }
.ferr-sub-head h3{ font-size:clamp(1.8rem, 3.4vw, 2.8rem); margin-right:auto; }
.ferr-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
}
.ferr-card{
  margin:0;
  display:flex; flex-direction:column;
}
.ferr-photo{
  aspect-ratio:1/1;
  background-color:rgba(255,255,255,.045);
  border:1px solid rgba(201,205,211,.16);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  transition:background-color .4s var(--ease-out), border-color .4s;
}
.ferr-card:hover .ferr-photo{
  background-color:rgba(255,255,255,.08);
  border-color:rgba(201,205,211,.4);
}
.ferr-photo img{
  width:100%; height:100%;
  object-fit:contain;
  padding:6%;
  transition:transform .8s var(--ease-out);
}
.ferr-card:hover .ferr-photo img{ transform:scale(1.05); }
.ferr-card figcaption{
  padding:12px 2px 0;
  font-size:.92rem; line-height:1.35;
  color:var(--silver-300);
}
@media (max-width: 1100px){
  .ferr-grid{ grid-template-columns:repeat(3, 1fr); }
}
@media (max-width: 720px){
  .ferr-grid{ grid-template-columns:repeat(2, 1fr); gap:12px; }
  .ferr-card figcaption{ font-size:.84rem; }
  .ferr-chips{ margin-top:0; }
  .ferr-sub-head .btn{ width:100%; justify-content:center; white-space:normal; text-align:center; }
}

/* Pie con el nombre del producto en la foto ampliada */
.lightbox-caption{
  position:fixed; left:0; right:0; bottom:0;
  padding:14px 64px 18px;
  text-align:center;
  font-size:.95rem;
  color:var(--paper-100);
  background:linear-gradient(180deg, transparent, rgba(8,9,10,.9));
  pointer-events:none;
}

/* ---------- MAPA DE UBICACIÓN: ancho completo ---------- */
.footer-map-full{
  width:100%;
  height:clamp(320px, 38vw, 540px);
  margin-top:20px;
  filter:grayscale(55%) contrast(1.05) brightness(.92);
  transition:filter .4s var(--ease-out);
}
.footer-map-full:hover{ filter:grayscale(0%) brightness(1); }
.footer-map-full iframe{
  display:block;
  width:100%; height:100%;
  border:0;
}
.footer-map-full + .wrap .footer-bottom{ margin-top:30px; }
@media (max-width: 720px){
  .footer-map-full{ height:340px; }
}

/* El giro del logo es parte de la identidad de marca: se mantiene aunque el
   dispositivo tenga activado "reducir movimiento" (es un giro lento y pequeño). */
@media (prefers-reduced-motion: reduce){
  .brand-mark img,
  .footer-brand img{
    animation-name:logoSpin !important;
    animation-duration:7s !important;
    animation-iteration-count:infinite !important;
    animation-timing-function:linear !important;
  }
}

/* Crédito de desarrollo, en la base de la página */
.footer-credit{
  margin:22px 0 0;
  text-align:center;
  font-size:.8rem;
  letter-spacing:.02em;
  color:var(--steel-500);
}
@media (max-width: 720px){
  .footer-credit{ padding-bottom:64px; }  /* no queda tapado por el botón flotante de WhatsApp */
}
