/* =============================================================
   CAMISOLAS INDUSTRIALES — styles.css
   Archetype: Industrial Dark (steel & blue)
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:       #0b0f14;   /* deep graphite */
  --bg-2:     #0f151c;
  --bg-3:     #141c26;   /* card */
  --bg-4:     #1a2431;
  --steel:    #eaf0f6;   /* primary text (cool near-white) */
  --steel-2:  #b7c3d0;
  --steel-3:  #7d8b9b;   /* metadata */
  --accent:   #ffd21e;   /* striking industrial yellow — single brand tone */
  --accent-2: #e0a80a;
  --accent-3: #ffd21e;   /* unified: same vivid yellow across the whole site */
  --chrome:   #9fb3c8;   /* silver */
  --danger:   #f5a524;   /* safety amber (small accents) */
  --line:     rgba(234,240,246,0.10);
  --line-2:   rgba(234,240,246,0.16);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --disp: "Oswald", "Archivo Narrow", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --maxw: 1240px;
  --pad: clamp(1.15rem, 5vw, 4rem);
  --radius: 14px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--steel-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
body.nav-locked { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--disp);
  font-weight: 600;
  color: var(--steel);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
::selection { background: var(--accent); color: #0b0f14; }
:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--accent); color: #0b0f14; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }

.section { padding-block: clamp(3.5rem, 9vw, 7rem); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); margin: 1rem 0 1rem; }
.section-head p { color: var(--steel-2); font-size: 1.05rem; }
.lead { color: var(--steel-2); font-size: 1.08rem; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 10px;
  font-family: var(--disp); font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  font-size: .92rem; transition: transform .35s var(--ease-out), background .3s, box-shadow .35s, color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #0b0f14; box-shadow: 0 10px 30px -12px var(--accent); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-3px); box-shadow: 0 18px 40px -14px var(--accent); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--steel); }
.btn-ghost:hover { border-color: var(--accent-3); color: #fff; transform: translateY(-3px); background: rgba(255,210,30,.08); }
.btn-wa { background: #25d366; color: #06301b; }
.btn-wa:hover { background: #1fbf5b; transform: translateY(-3px); }

/* ---------- 5. Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease-out), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11,15,20,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-family: var(--disp); font-weight: 700; color: #0b0f14; font-size: 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--disp); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); font-size: 1.02rem; }
.brand-text span { font-family: var(--mono); font-size: .58rem; letter-spacing: .22em; color: var(--steel-3); text-transform: uppercase; margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel-2); position: relative; padding: .3rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--accent);
  transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--steel); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--steel); transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; align-items: safe center; overflow: hidden;
  padding-top: 110px; padding-bottom: 3rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05) brightness(.5); }
.hero > .hero-bg img { object-position: 35% 45%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,15,20,.45) 0%, rgba(11,15,20,.5) 40%, rgba(11,15,20,.95) 100%),
    radial-gradient(80% 60% at 75% 30%, rgba(255,210,30,.14), transparent 70%);
}
.smoke { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent 80%);
  mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent 80%);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--steel-2); border: 1px solid var(--line-2); border-radius: 100px; padding: .4rem .9rem;
  margin-bottom: 1.6rem; background: rgba(20,28,38,.5);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 9px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: .98; margin-bottom: 1.4rem; color: #fff;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub { font-size: clamp(1.02rem, 2.4vw, 1.28rem); color: var(--steel-2); max-width: 620px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); }
.hero-stat b { display: block; font-family: var(--disp); font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; line-height: 1; }
.hero-stat span { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-3); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 2; font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; color: var(--steel-3); text-transform: uppercase; text-align: center; }
.scroll-cue span { display: block; width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); margin: .5rem auto 0; animation: cueMove 2s infinite; }
@keyframes cueMove { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- 7. Quiénes somos / historia ---------- */
.about { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.about-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.history { color: var(--steel-2); }
.history p { margin-bottom: 1.05rem; }
.history p:first-of-type::first-letter {
  font-family: var(--disp); font-size: 3.2rem; float: left; line-height: .8; padding: .1rem .5rem .1rem 0; color: var(--accent);
}
.history-tablet, .history-mobile { display: none; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 2rem; }
.value { background: var(--bg-3); padding: 1.4rem; }
.value b { display: block; font-family: var(--disp); text-transform: uppercase; color: var(--steel); letter-spacing: .04em; margin-bottom: .3rem; }
.value span { font-size: .9rem; color: var(--steel-3); }

/* ---------- Video space (reserved) ---------- */
.video-space { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-3); aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; }
.video-space::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 40%, rgba(255,210,30,.12), transparent 70%); }
.video-space-inner { position: relative; z-index: 1; padding: 1.5rem; }
.video-space .play { width: 68px; height: 68px; border-radius: 50%; background: rgba(255,210,30,.16); border: 1px solid var(--accent); display: grid; place-items: center; margin: 0 auto 1rem; transition: transform .35s var(--ease-out), background .3s; }
.video-space .play svg { width: 24px; height: 24px; fill: var(--accent-3); margin-left: 3px; }
.video-space:hover .play { transform: scale(1.08); background: rgba(255,210,30,.28); }
.video-space b { font-family: var(--disp); text-transform: uppercase; color: var(--steel); letter-spacing: .06em; font-size: 1.05rem; }
.video-space small { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-3); margin-top: .5rem; }
.video-space video, .video-space iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
/* --- Fachada de YouTube: portada + clic para reproducir --- */
.video-space[data-yt] { cursor: pointer; }
.video-space.has-poster { background-size: cover; background-position: center; }
/* Oscurece la portada para que el título y el botón sigan legibles encima */
.video-space.has-poster::before {
  background: linear-gradient(180deg, rgba(11,15,20,.42), rgba(11,15,20,.78)),
              radial-gradient(60% 60% at 50% 40%, rgba(255,210,30,.14), transparent 70%);
  transition: opacity .3s;
}
.video-space.has-poster:hover::before { opacity: .82; }
.video-space.is-playing::before { display: none; }
.video-space:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 8. Services grid ---------- */
.services-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.svc-card {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-3); min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
  will-change: transform;
}
.svc-card .svc-img { position: absolute; inset: 0; z-index: 0; }
.svc-card .svc-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.5) contrast(1.05); transition: transform .8s var(--ease-out), filter .5s; }
.svc-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,15,20,.15) 0%, rgba(11,15,20,.55) 55%, rgba(11,15,20,.96) 100%); }
.svc-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.svc-card:hover .svc-img img { transform: scale(1.08); filter: grayscale(.15) brightness(.6) contrast(1.08); }
.svc-body { position: relative; z-index: 2; padding: 1.6rem; }
.svc-num { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; color: var(--accent-3); }
.svc-body h3 { font-size: 1.5rem; margin: .5rem 0 .4rem; color: #fff; }
.svc-body p { font-size: .92rem; color: var(--steel-2); margin-bottom: 1rem; }
.svc-link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-3); }
.svc-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.svc-card:hover .svc-link svg { transform: translateX(5px); }

/* ---------- 9. Products / materials ---------- */
.products { background: var(--bg-2); }
.prod-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.prod-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: var(--bg-3); transition: border-color .3s, transform .4s var(--ease-out); }
.prod-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.prod-card .ic { width: 46px; height: 46px; border-radius: 10px; background: rgba(255,210,30,.12); display: grid; place-items: center; margin-bottom: 1rem; }
.prod-card .ic svg { width: 24px; height: 24px; stroke: var(--accent-3); fill: none; stroke-width: 1.6; }
.prod-card h3 { font-size: 1.2rem; color: #fff; margin-bottom: .5rem; }
.prod-card p { font-size: .9rem; color: var(--steel-2); }
.mat-hint { font-size: .82rem; color: var(--steel-3); margin-top: .5rem; }
.materials-cat { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-3); margin-top: 1.6rem; margin-bottom: .8rem; }
.materials { display: flex; flex-wrap: wrap; gap: .6rem; }
.mat-chip { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel-2); border: 1px solid var(--line-2); border-radius: 100px; padding: .55rem 1.1rem; background: var(--bg-3); cursor: pointer; transition: border-color .25s, color .25s, background .25s, transform .25s; }
.mat-chip:hover { border-color: var(--accent); color: var(--steel); transform: translateY(-2px); }
.mat-chip.is-active { border-color: var(--accent); color: #0b0f14; background: var(--accent); font-weight: 600; }
.mat-chip b { color: var(--accent-3); }

.mat-desc { display: flex; align-items: flex-start; gap: 1.1rem; margin-top: 1.4rem; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 12px; background: linear-gradient(180deg, rgba(255,210,30,.05), rgba(255,255,255,.01)); padding: 1.2rem 1.4rem; animation: matDescIn .35s ease both; }
.mat-desc[hidden] { display: none; }
.mat-swatch { flex: 0 0 auto; width: 78px; height: 78px; border-radius: 12px; background-repeat: repeat; background-position: center; border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 6px 16px rgba(0,0,0,.4); }
.mat-desc-body { min-width: 0; }
.mat-desc h4 { font-family: var(--display); font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; color: #fff; margin-bottom: .5rem; }
.mat-desc p { font-size: .92rem; line-height: 1.6; color: var(--steel-2); }
@media (max-width: 420px) { .mat-swatch { width: 60px; height: 60px; } }
.mat-credits { font-size: .68rem; line-height: 1.5; color: var(--steel-3); margin-top: 1rem; opacity: .8; }
@keyframes matDescIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 10. Contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.contact-grid { display: grid; gap: 2.2rem; }
.contact-info { display: grid; gap: 1rem; }
.ci-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-3); transition: border-color .3s; }
.ci-item:hover { border-color: var(--accent); }
.ci-item .ic { width: 42px; height: 42px; flex: none; border-radius: 10px; background: rgba(255,210,30,.12); display: grid; place-items: center; }
.ci-item .ic svg { width: 20px; height: 20px; stroke: var(--accent-3); fill: none; stroke-width: 1.7; }
.ci-item b { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-3); margin-bottom: .2rem; }
.ci-item a, .ci-item span { color: var(--steel); font-size: .98rem; word-break: break-word; }
.ci-item a:hover { color: var(--accent-3); }

.form { display: grid; gap: 1rem; padding: 1.8rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-3); }
.form label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-3); margin-bottom: .4rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: .8rem .9rem; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--steel); font: inherit; font-size: .95rem; transition: border-color .3s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 110px; }
.form-ok { font-size: .88rem; color: #25d366; font-family: var(--mono); }
.map-wrap { margin-top: 1.4rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 260px; border: 0; filter: grayscale(.3) invert(.9) contrast(.9); }

/* ---------- 11. Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
.footer h4 { font-family: var(--disp); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: .5rem; }
.footer a { color: var(--steel-3); font-size: .9rem; }
.footer a:hover { color: var(--accent-3); }
.footer-about p { font-size: .9rem; color: var(--steel-3); max-width: 320px; }
.footer-seo { font-size: .78rem; color: var(--steel-3); line-height: 1.8; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-bottom p { font-family: var(--mono); font-size: .72rem; color: var(--steel-3); letter-spacing: .05em; }
.social { display: flex; gap: .7rem; }
.social a { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; display: grid; place-items: center; transition: border-color .3s, transform .3s; }
.social a:hover { border-color: var(--accent); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; fill: var(--steel-2); }

/* ---------- 12. WhatsApp floating ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.8rem); bottom: clamp(1rem, 3vw, 1.8rem); z-index: 200;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #25d366; color: #06301b; padding: .8rem 1.05rem; border-radius: 100px;
  font-family: var(--disp); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .35s var(--ease-out), box-shadow .35s;
  animation: waIn .6s .8s both;
}
.wa-float svg { width: 24px; height: 24px; fill: #06301b; }
.wa-float:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 40px -10px rgba(37,211,102,.7); }
.wa-float .wa-label { white-space: nowrap; }
@keyframes waIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- 13. Page hero (interior pages) ---------- */
.page-hero { position: relative; padding: 140px 0 clamp(3rem,7vw,5rem); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .hero-bg img { filter: grayscale(.5) brightness(.4) contrast(1.05); }
.page-hero-inner { position: relative; z-index: 2; max-width: 780px; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); color: #fff; margin: 1rem 0; }
.page-hero h1 em { color: var(--accent); font-style: normal; }
.page-hero p { font-size: 1.1rem; color: var(--steel-2); max-width: 620px; }
.breadcrumb { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-3); }
.breadcrumb a:hover { color: var(--accent-3); }

/* interior content */
.svc-detail { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.svc-detail h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.svc-detail p { margin-bottom: 1rem; }
.feature-list { list-style: none; display: grid; gap: .8rem; margin-top: 1.5rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--steel-2); }
.feature-list li svg { width: 20px; height: 20px; flex: none; stroke: var(--accent-3); fill: none; stroke-width: 2; margin-top: 3px; }
.cta-band { text-align: center; padding: clamp(2.5rem,6vw,4rem); border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(135deg, var(--bg-3), var(--bg-4)); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 50% 0%, rgba(255,210,30,.16), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); color: #fff; margin-bottom: 1rem; }
.cta-band p { max-width: 520px; margin: 0 auto 1.8rem; }

/* other services mini-nav */
.other-svcs { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 1rem; }
.other-svc { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-3); transition: border-color .3s, transform .3s; }
.other-svc:hover { border-color: var(--accent); transform: translateX(4px); }
.other-svc b { font-family: var(--disp); text-transform: uppercase; color: var(--steel); letter-spacing: .04em; }
.other-svc svg { width: 18px; height: 18px; stroke: var(--accent-3); fill: none; stroke-width: 2; flex: none; }

/* ---------- 14. Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

/* ---------- 15. Splash ---------- */
.splash { position: fixed; inset: 0; z-index: 9000; background: var(--bg); display: grid; place-items: center; transition: opacity .7s var(--ease-out), visibility .7s; animation: splashSafety .01s 4.2s forwards; }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-inner { text-align: center; }
.splash-mark { width: 60px; height: 60px; border-radius: 14px; margin: 0 auto 1.2rem; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font-family: var(--disp); font-weight: 700; color: #0b0f14; font-size: 1.8rem; animation: splashPulse 1.4s var(--ease-soft) infinite; }
@keyframes splashPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.splash-inner b { font-family: var(--disp); text-transform: uppercase; letter-spacing: .12em; color: var(--steel); font-size: 1rem; }
.splash-bar { width: 140px; height: 2px; background: var(--line); margin: 1rem auto 0; overflow: hidden; border-radius: 2px; }
.splash-bar::before { content: ""; display: block; width: 40%; height: 100%; background: var(--accent); animation: splashLoad 1.2s var(--ease-soft) infinite; }
@keyframes splashLoad { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---------- 16. Responsive ---------- */
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .other-svcs { grid-template-columns: repeat(3, 1fr); }
  .wa-float { padding: .9rem 1.3rem; }
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-detail.cols-2 { grid-template-columns: 1.2fr .8fr; align-items: start; }
}
@media (min-width: 1280px) {
  .services-grid.four { grid-template-columns: repeat(4, 1fr); }
}

/* history responsive swap */
@media (max-width: 959px) and (min-width: 600px) {
  .history-desktop { display: none; }
  .history-tablet { display: block; }
}
@media (max-width: 599px) {
  .history-desktop, .history-tablet { display: none; }
  .history-mobile { display: block; }
  .values { grid-template-columns: 1fr; }
}

/* mobile nav */
@media (max-width: 959px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    background: var(--bg-2); border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2rem;
    padding: 2rem var(--pad); transform: translateX(100%); transition: transform .4s var(--ease-out);
    z-index: 110;
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .nav-links a { font-size: 1rem; }
  .nav-menu .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .wa-float .wa-label { display: none; }
  .wa-float { padding: .85rem; }
}

/* ---------- 17. Reduced motion (only intrusive) ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-badge .dot { animation: none; }
  .scroll-cue span { animation: none; }
  .wa-float { animation: none; }
  .splash-mark, .splash-bar::before { animation: none; }
}

/* ---------- 18. View transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: cubic-bezier(0.16,1,0.3,1); }

/* ---------- 19. Split page (desktop: text + video · tablet/mobile: video + WhatsApp) ---------- */
.page-split { display: grid; gap: 2rem; align-items: start; }
.page-split-media { position: sticky; top: 96px; }
.video-mobile-cta { display: none; }
.video-note { margin-top: .9rem; text-align: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-3); }

@media (min-width: 960px) {
  .page-split { grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 3.5rem); }
}

/* On tablet & mobile: hide the written content, show only the video + WhatsApp */
@media (max-width: 959px) {
  .hide-tablet-mobile { display: none !important; }
  .page-split-media { position: static; }
  .video-mobile-cta { display: inline-flex; width: 100%; justify-content: center; margin-top: 1.2rem; }
}

/* =============================================================
   20. Animaciones visuales (ligeras · solo CSS/GPU, sin canvas)
   ============================================================= */

/* --- Aurora: resplandor animado en los heroes (reemplaza el humo) --- */
.hero-bg::before {
  content: ""; position: absolute; inset: -30%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(28% 38% at 22% 28%, rgba(255,210,30,.16), transparent 62%),
    radial-gradient(34% 44% at 80% 68%, rgba(255,210,30,.10), transparent 62%),
    radial-gradient(30% 40% at 60% 18%, rgba(120,170,255,.08), transparent 60%);
  filter: blur(24px);
  mix-blend-mode: screen;
  will-change: transform;
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.12); }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.06); }
}

/* --- Reveal al hacer scroll: enfoque suave + deslizamiento (override) --- */
[data-reveal] {
  opacity: 0; transform: translateY(26px) scale(.985); filter: blur(6px);
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out), filter .7s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-revealed { opacity: 1; transform: none; filter: none; }
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="zoom"]  { transform: scale(.9); }
[data-reveal="left"].is-revealed,
[data-reveal="right"].is-revealed,
[data-reveal="zoom"].is-revealed { transform: none; }

/* --- Brillo que barre las tarjetas de servicio --- */
.svc-card::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,.14) 50%, transparent 58%);
  transform: translateX(-110%); transition: transform .85s var(--ease-out);
}
.svc-card:hover::before { transform: translateX(110%); }

/* --- Botón de play del video: pulso + anillo --- */
.video-space .play { position: relative; animation: playPulse 2.6s ease-in-out infinite; }
.video-space .play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,210,30,.45);
  animation: playRing 2.6s ease-out infinite;
}
.video-space:hover .play { animation-play-state: paused; transform: scale(1.1); }
@keyframes playPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes playRing { 0% { box-shadow: 0 0 0 0 rgba(255,210,30,.45); } 70% { box-shadow: 0 0 0 16px rgba(255,210,30,0); } 100% { box-shadow: 0 0 0 0 rgba(255,210,30,0); } }

/* --- Barra de progreso de scroll (arriba) --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 10px rgba(255,210,30,.7); pointer-events: none;
  transition: width .12s linear;
}

/* --- Marquee (cinta de palabras clave) --- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 1rem 0; }
.marquee-track { display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; will-change: transform; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--disp); text-transform: uppercase; letter-spacing: .05em; color: var(--steel-2); font-size: clamp(1rem, 2.4vw, 1.35rem); display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee-item::after { content: "◆"; color: var(--accent); font-size: .6em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Botones: brillo al pasar el cursor --- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-220%) skewX(-18deg); pointer-events: none;
}
.btn:hover::after { transition: transform .7s var(--ease-out); transform: translateX(320%) skewX(-18deg); }

/* --- Aparición inicial del hero (sin esperar scroll) --- */
.hero-badge { animation: fadeUp .7s .15s both var(--ease-out); }
.hero h1 { animation: fadeUp .8s .28s both var(--ease-out); }
.hero-sub { animation: fadeUp .8s .42s both var(--ease-out); }
.hero-actions { animation: fadeUp .8s .56s both var(--ease-out); }
.hero-stats { animation: fadeUp .8s .7s both var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* --- Títulos de página: entrada profesional (máscara + deslizamiento) --- */
.page-hero h1 {
  animation: titleReveal 1s .2s both cubic-bezier(.16, 1, .3, 1);
}
@keyframes titleReveal {
  from { opacity: 0; transform: translateY(38px); clip-path: inset(0 0 100% 0); filter: blur(5px); }
  to   { opacity: 1; transform: none; clip-path: inset(0 0 0 0); filter: blur(0); }
}

/* --- Palabra de acento: brillo dorado premium (sutil, continuo) --- */
.page-hero h1 em, .hero h1 em {
  display: inline-block;
  background: linear-gradient(100deg, var(--accent) 34%, #fffbe0 48%, #ffffff 50%, #fffbe0 52%, var(--accent) 66%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: goldShimmer 12s linear infinite;
}
@keyframes goldShimmer {
  from { background-position: 250% 0; }
  to   { background-position: -250% 0; }
}

/* --- Efecto de imagen tipo tarjeta (hover: borde, zoom y brillo que barre) --- */
.img-fx { position: relative; transition: border-color .4s, box-shadow .5s, transform .5s var(--ease-out); will-change: transform; }
.img-fx img { transition: transform .8s var(--ease-out); }
.img-fx:hover { border-color: var(--accent) !important; box-shadow: 0 30px 70px -34px rgba(0,0,0,.85); }
.img-fx:hover img { transform: scale(1.04); }
.img-fx::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,.16) 50%, transparent 58%);
  transform: translateX(-110%); transition: transform .9s var(--ease-out);
}
.img-fx:hover::before { transform: translateX(110%); }

/* --- Galería de trabajos realizados --- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 720px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--bg-3); display: grid; place-items: center; text-align: center;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gallery-item::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,.14) 50%, transparent 58%);
  transform: translateX(-110%); transition: transform .85s var(--ease-out);
}
.gallery-item:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 24px 50px -28px rgba(0,0,0,.8); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::before { transform: translateX(110%); }
.gallery-ph { color: var(--steel-3); padding: 1rem; position: relative; z-index: 1; }
.gallery-ph svg { width: 34px; height: 34px; stroke: var(--accent-3); fill: none; stroke-width: 1.5; margin: 0 auto .5rem; display: block; }
.gallery-ph small { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; display: block; }

/* --- Íconos de producto (prendas): recuadro más grande + imagen aclarada --- */
.prod-card .ic { width: 92px; height: 92px; border-radius: 16px; }
.prod-card .ic img { filter: brightness(1.6) contrast(1.06) saturate(1.08); }
