/* ==========================================================================
   OHMIA — Ingeniería Electromecánica
   Stylesheet — static, no build step
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; }

/* ---------- Tokens ---------- */
:root{
  /* brand (sampled from logo) */
  --navy-950:#050b18;
  --navy-900:#081226;
  --navy-800:#0b1a35;
  --navy-700:#0f2247;
  --navy-600:#122a56;
  --navy:#002050;
  --gray-400:#9aa0aa;
  --gray-500:#7d838d;
  --gray-600:#686868;
  --gold:#e0a008;
  --gold-light:#f4c94a;
  --gold-dim:#8a6a1f;
  --white:#f5f7fb;
  --paper:#eef1f6;

  --ink:#eef2f8;
  --ink-dim:#aab3c2;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.22,.9,.28,1);
  --ease-out-back: cubic-bezier(.2,1.1,.3,1);
}

/* ---------- Base ---------- */
body{
  background: var(--navy-950);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll{ overflow: hidden; height: 100%; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.container{
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

section{ position: relative; }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 1rem;
}
.eyebrow::before{
  content:"";
  width: 26px; height: 2px;
  background: var(--gold);
  display:inline-block;
}

.section-head{
  max-width: 640px;
  margin-bottom: 3.2rem;
}
.section-head h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p{ color: var(--ink-dim); font-size: 1.05rem; margin-top: .9rem; }
.section-head.center{ margin-inline:auto; text-align:center; }

/* ---------- Buttons ---------- */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content:center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s ease, color .3s ease, border-color .3s ease;
  will-change: transform;
}
.btn-primary{
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-950);
  box-shadow: 0 8px 28px -8px rgba(224,160,8,.55);
}
.btn-primary:hover{ box-shadow: 0 14px 34px -8px rgba(224,160,8,.75); }
.btn-ghost{
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255,255,255,.03);
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-light); background: rgba(224,160,8,.08); }
.btn svg{ width: 18px; height: 18px; flex-shrink:0; transition: transform .3s var(--ease); }
.btn:hover svg{ transform: translateX(3px); }

/* magnetic wrapper */
.magnetic{ display:inline-block; }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader{
  position: fixed; inset:0; z-index: 9999;
  background: radial-gradient(120% 120% at 50% 20%, var(--navy-800) 0%, var(--navy-950) 65%);
  display:flex; align-items:center; justify-content:center;
  transition: clip-path 1.1s cubic-bezier(.7,0,.2,1), opacity .6s ease .55s;
  clip-path: circle(150% at 50% 50%);
}
.preloader canvas{ position:absolute; inset:0; width:100%; height:100%; }
.preloader-inner{
  position: relative;
  display:flex; flex-direction:column; align-items:center; gap: 1.6rem;
  padding: 2rem;
}
.preloader-mark{ width: 128px; height: 128px; overflow: visible; }
.pm-ring{
  fill:none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 340; stroke-dashoffset: 340;
  transition: stroke-dashoffset 1.5s var(--ease);
  filter: drop-shadow(0 0 6px rgba(238,242,248,.25));
}
.pm-bolt{
  fill: var(--gold);
  opacity: 0;
  transform: scale(.6);
  transform-origin: 100px 100px;
  transition: opacity .5s ease, transform .5s var(--ease-out-back), filter .4s ease;
  filter: drop-shadow(0 0 0 rgba(224,160,8,0));
}
.preloader.pm-bolt-on .pm-bolt{
  opacity: 1; transform: scale(1);
  filter: drop-shadow(0 0 14px rgba(224,160,8,.85));
}
.preloader-progress{ width: 220px; }
.preloader-bar{
  width:100%; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,.1);
  overflow:hidden;
}
.preloader-fill{
  display:block; height:100%; width:0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 10px rgba(224,160,8,.7);
}
.preloader-meta{
  display:flex; justify-content:space-between; margin-top:.7rem;
  font-family: var(--font-display); font-size:.78rem; letter-spacing:.08em;
  color: var(--ink-dim); text-transform:uppercase;
}
.preloader-percent{ color: var(--gold-light); font-variant-numeric: tabular-nums; }
.preloader.is-hidden{
  clip-path: circle(0% at 50% 50%);
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  padding: 1.15rem 0;
  transition: background-color .4s ease, padding .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  background: rgba(5,11,24,.82);
  backdrop-filter: blur(14px) saturate(140%);
  padding: .7rem 0;
  border-color: var(--line);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.brand{ display:flex; align-items:center; gap:.7rem; }
.brand img{ height: 60px; width:auto; transition: height .4s ease; }
.site-header.is-scrolled .brand img{ height: 48px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.brand-text strong{ font-family: var(--font-display); font-size:1.05rem; color:var(--white); letter-spacing:.02em; }
.brand-text span{ font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; color: var(--gold-light); }

.nav-links{ display:flex; align-items:center; gap: 2.1rem; }
.nav-links a{
  position:relative; font-size:.92rem; font-weight:500; color: var(--ink-dim);
  padding: .3rem 0; transition: color .3s ease;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav-links a:hover{ color: var(--white); }
.nav-links a:hover::after, .nav-links a.is-active::after{ width:100%; }
.nav-links a.is-active{ color: var(--gold-light); }

.nav-cta{ display:flex; align-items:center; gap:1rem; }
.nav-toggle{
  display:none; width: 42px; height: 42px; border-radius:10px;
  align-items:center; justify-content:center; border:1px solid var(--line-strong);
  flex-direction:column; gap:5px;
}
.nav-toggle span{ width: 18px; height:2px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  min-height: 100vh;
  display:flex; align-items:center;
  padding: 8rem 0 6rem;
  overflow:hidden;
}
.hero-bg{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.hero-bg::before{
  content:""; position:absolute; inset:-10%;
  background:
    radial-gradient(50% 40% at 18% 8%, rgba(224,160,8,.16), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(15,34,71,.9), transparent 60%);
}
.hero-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(65% 65% at 50% 35%, black 10%, transparent 78%);
  opacity: .7;
  transform: translate3d(0,0,0);
}
.hero-blueprint{
  position:absolute; right:-6%; top:50%; transform: translateY(-50%);
  width: min(58vw, 720px); opacity:.5; z-index:0;
  filter: drop-shadow(0 0 40px rgba(224,160,8,.08));
}
.hero-blueprint path, .hero-blueprint circle, .hero-blueprint polygon{
  fill:none; stroke: var(--gray-500); stroke-width:1.4; vector-effect: non-scaling-stroke;
}
.hero-blueprint .bp-accent{ stroke: var(--gold); opacity:.8; }
.hero-blueprint .bp-draw{
  /* 1000 comfortably exceeds the longest shape in this graphic (the outer
     circle, ~942 units) — as long as dasharray >= a shape's real path length,
     it draws in one continuous stroke with no gap, whatever its size. */
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: bp-draw 3.4s var(--ease) forwards;
}
@keyframes bp-draw{ to{ stroke-dashoffset:0; } }

.hero-content{ position:relative; z-index:2; max-width: 760px; }
.hero-content h1{
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  margin-bottom: 1.4rem;
}
.hero-content h1 .accent{ color: var(--gold); }
.hero-content p.lead{
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--ink-dim);
  max-width: 560px;
  margin-bottom: 2.3rem;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap: 1rem; margin-bottom: 3.4rem; }

.hero-pillars{ display:flex; flex-wrap:wrap; gap: 2.2rem; }
.hero-pillars .pillar{ display:flex; align-items:center; gap:.65rem; color: var(--ink-dim); font-size:.9rem; }
.hero-pillars .pillar svg{ width:20px; height:20px; color: var(--gold); flex-shrink:0; }

.scroll-cue{
  position:absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:.5rem;
  color: var(--ink-dim); font-size:.7rem; letter-spacing:.16em; text-transform:uppercase;
  z-index:2;
}
.scroll-cue .line{ width:1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: scrollcue 2s ease-in-out infinite; }
@keyframes scrollcue{ 0%,100%{ opacity:.25; } 50%{ opacity:1; } }

/* ==========================================================================
   Reveal / scroll animation utilities
   ========================================================================== */
.reveal{
  opacity:0; transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible{ opacity:1; transform: translateY(0); }
.reveal[data-split]{ opacity:1; transform:none; } /* defensive net */
.reveal-left{ transform: translateX(-46px); }
.reveal-left.is-visible{ transform: translateX(0); }
.reveal-right{ transform: translateX(46px); }
.reveal-right.is-visible{ transform: translateX(0); }
.reveal-scale{ transform: scale(.92); }
.reveal-scale.is-visible{ transform: scale(1); }

/* ==========================================================================
   Services
   ========================================================================== */
.services{ padding: 8rem 0; background: var(--navy-900); }
.section-divider{
  height: 90px; margin-top:-1px;
  background: linear-gradient(var(--navy-950), var(--navy-900));
}
.services-grid{ display:flex; flex-direction:column; gap: 2.4rem; }
.service-card{
  position:relative;
  display:grid; grid-template-columns: 96px 1fr; gap: 2rem;
  padding: 2.6rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  overflow:hidden;
  transition: border-color .4s ease, transform .4s var(--ease), box-shadow .4s ease;
}
.service-card::before{
  content:""; position:absolute; inset:0; z-index:0; opacity:0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(224,160,8,.10), transparent 60%);
  transition: opacity .4s ease;
  pointer-events:none;
}
.service-card:hover{ border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0,0,0,.55); }
.service-card:hover::before{ opacity:1; }
.service-icon{
  width: 96px; height: 96px; border-radius: 18px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line-strong);
  position:relative; z-index:1;
}
.service-icon svg{ width: 46px; height:46px; color: var(--gold-light); }
.service-body{ position:relative; z-index:1; }
.service-index{
  font-family: var(--font-display); color: var(--gold); font-weight:700;
  font-size:.8rem; letter-spacing:.12em; margin-bottom:.5rem; display:block;
}
.service-body h3{ font-size: 1.5rem; margin-bottom:.8rem; }
.service-body p{ color: var(--ink-dim); max-width: 620px; margin-bottom: 1.3rem; }
.service-list{ display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem 1.6rem; }
.service-list li{
  display:flex; align-items:flex-start; gap:.55rem; font-size:.92rem; color: var(--ink);
}
.service-list li::before{
  content:""; width:6px; height:6px; margin-top:.55em; border-radius:50%;
  background: var(--gold); flex-shrink:0;
}

/* ---------- Process ---------- */
.process{ padding: 7rem 0; background: var(--navy-950); }
.process-grid{
  display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.6rem;
  counter-reset: step;
}
.process-step{
  position:relative; padding: 2rem 1.6rem 1.8rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  transition: transform .4s var(--ease), border-color .4s ease;
}
.process-step:hover{ transform: translateY(-6px); border-color: var(--gold-dim); }
.process-step .num{
  font-family: var(--font-display); font-size: 2.6rem; font-weight:700;
  color: transparent; -webkit-text-stroke: 1.4px var(--gold);
  margin-bottom: 1.1rem; display:block;
}
.process-step h4{ font-size: 1.05rem; margin-bottom:.55rem; }
.process-step p{ color: var(--ink-dim); font-size:.9rem; }
.process-connector{
  position:absolute; top: 2.6rem; right: -1.6rem; width: 1.6rem; height:1px;
  background: var(--line-strong); display:none;
}

/* ==========================================================================
   Team / Conócenos
   ========================================================================== */
.team{ padding: 8rem 0; background: var(--navy-900); }
.team-grid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.8rem; }
.team-card{
  position:relative;
  padding: 2.6rem 2rem;
  text-align:center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  transition: transform .5s var(--ease), border-color .4s ease;
  transform-style: preserve-3d;
}
.team-card:hover{ border-color: var(--gold-dim); }
.avatar{
  width: 108px; height: 108px; margin: 0 auto 1.5rem;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: conic-gradient(from 210deg, var(--navy-700), var(--navy) 40%, var(--gold-dim) 100%);
  position:relative;
}
.avatar::after{
  content:""; position:absolute; inset:5px; border-radius:50%;
  background: var(--navy-800);
}
.avatar span{
  position:relative; z-index:1; font-family: var(--font-display); font-weight:700;
  font-size: 1.6rem; color: var(--gold-light); letter-spacing:.02em;
}
.avatar:has(img){ width: 148px; height: 148px; }
.avatar img{
  position:absolute; inset:5px; z-index:1;
  width: calc(100% - 10px); height: calc(100% - 10px);
  border-radius:50%; object-fit:cover; object-position: center 18%;
  background:#fff;
}
.team-card h3{ font-size: 1.18rem; margin-bottom:.3rem; }
.team-card .role{ font-size:.82rem; letter-spacing:.06em; text-transform:uppercase; color: var(--gold-light); margin-bottom:1rem; display:block; }
.team-card p{ color: var(--ink-dim); font-size:.92rem; }
.team-intro{ max-width: 720px; margin: 0 auto 3.6rem; text-align:center; color: var(--ink-dim); }

/* ==========================================================================
   Coming soon
   ========================================================================== */
.coming-soon{
  padding: 7.5rem 0; position:relative;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950) 65%);
  overflow:hidden;
}
.coming-soon::before{
  content:""; position:absolute; inset:0;
  background-image: repeating-linear-gradient(135deg, rgba(224,160,8,.05) 0 2px, transparent 2px 26px);
  opacity:.5;
}
.cs-box{
  position:relative; z-index:1;
  max-width: 720px; margin: 0 auto; text-align:center;
}
.cs-badge{
  display:inline-flex; align-items:center; gap:.5rem;
  padding: .5rem 1.1rem; border-radius:999px;
  border:1px solid var(--gold-dim); color: var(--gold-light);
  font-family: var(--font-display); font-size:.76rem; letter-spacing:.14em; text-transform:uppercase;
  margin-bottom: 1.6rem;
  animation: pulse-badge 2.6s ease-in-out infinite;
}
@keyframes pulse-badge{ 0%,100%{ box-shadow:0 0 0 0 rgba(224,160,8,.35);} 50%{ box-shadow:0 0 0 8px rgba(224,160,8,0);} }
.cs-box h2{ font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.cs-box > p{ color: var(--ink-dim); margin-bottom: 2.4rem; }
.cs-form{
  display:flex; gap: .8rem; max-width: 460px; margin: 0 auto;
  flex-wrap: wrap; justify-content:center;
}
.cs-form input{
  flex: 1 1 260px;
  padding: .95rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  color: var(--white);
}
.cs-form input::placeholder{ color: var(--ink-dim); }
.cs-form input:focus{ outline:none; border-color: var(--gold); }
.cs-note{ font-size:.78rem; color: var(--ink-dim); margin-top: 1rem; }
.cs-success{
  display:none; margin-top:1.2rem; color: var(--gold-light); font-size:.92rem; font-weight:600;
}
.cs-success.is-shown{ display:block; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact{ padding: 8rem 0; background: var(--navy-900); }
.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items:start; }
.contact-info{ display:flex; flex-direction:column; gap: 1.6rem; }
.contact-item{ display:flex; gap: 1rem; align-items:flex-start; }
.contact-item .ic{
  width: 46px; height:46px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: var(--navy-700); border:1px solid var(--line-strong);
}
.contact-item .ic svg{ width:22px; height:22px; color: var(--gold-light); }
.contact-item h4{ font-size: .95rem; margin-bottom:.2rem; }
.contact-item p, .contact-item a{ color: var(--ink-dim); font-size:.92rem; }
.contact-item a:hover{ color: var(--gold-light); }
.social-row{ display:flex; gap:.8rem; margin-top: .6rem; }
.social-row a{
  width: 40px; height:40px; border-radius:50%; border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center; transition: all .3s ease;
}
.social-row a svg{ width:18px; height:18px; }
.social-row a:hover{ background: var(--gold); border-color: var(--gold); color: var(--navy-950); }

.contact-form{
  padding: 2.4rem; border-radius: var(--radius);
  background: rgba(255,255,255,.03); border:1px solid var(--line);
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
.field{ display:flex; flex-direction:column; gap:.45rem; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size:.8rem; color: var(--ink-dim); }
.field input, .field textarea{
  padding: .85rem 1rem; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--white);
  resize: vertical;
}
.field input:focus, .field textarea:focus{ outline:none; border-color: var(--gold); }
.contact-form .btn{ width:100%; margin-top:.4rem; }

/* ==========================================================================
   Productos (subpágina productos.html)
   ========================================================================== */
.page-hero{
  padding: 10rem 0 4rem; overflow:hidden;
  background:
    radial-gradient(50% 60% at 15% 0%, rgba(224,160,8,.13), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-950));
}
.page-hero .container{ position:relative; z-index:1; }
.page-hero h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); margin: .2rem 0 1rem; }
.page-hero .lead{ color: var(--ink-dim); font-size: 1.08rem; max-width: 640px; }
.breadcrumb{ display:flex; gap:.6rem; font-size:.85rem; color: var(--ink-dim); margin-bottom: 1.6rem; }
.breadcrumb a:hover{ color: var(--gold-light); }
.breadcrumb [aria-current]{ color: var(--ink); }

.product-tabs-bar{
  position: sticky; top: 72px; z-index: 40;
  background: rgba(5,11,24,.86); backdrop-filter: blur(14px) saturate(140%);
  border-block: 1px solid var(--line);
}
.product-tabs{ display:flex; gap: .6rem; padding: .8rem 0; overflow-x:auto; scrollbar-width:none; }
.product-tabs::-webkit-scrollbar{ display:none; }
.product-tab{
  display:inline-flex; align-items:center; gap:.6rem; flex-shrink:0;
  padding: .7rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink-dim);
  font-family: var(--font-display); font-weight:600; font-size:.92rem;
  transition: color .3s ease, border-color .3s ease, background-color .3s ease;
}
.product-tab svg{ width:18px; height:18px; flex-shrink:0; }
.product-tab .count{
  font-size:.74rem; padding: .1rem .5rem; border-radius:999px;
  background: rgba(255,255,255,.07); color: var(--ink-dim);
}
.product-tab:hover{ color: var(--white); border-color: var(--gold-dim); }
.product-tab[aria-selected="true"]{ color: var(--navy-950); background: var(--gold); border-color: var(--gold); }
.product-tab[aria-selected="true"] .count{ background: rgba(5,11,24,.18); color: var(--navy-950); }

.products{ padding: 5rem 0 6rem; background: var(--navy-900); scroll-margin-top: 140px; }
.products + .products{ border-top: 1px solid var(--line); }
.js-tabs .products[hidden]{ display:none; }
.product-group + .product-group{ margin-top: 3.6rem; }
.product-group-title{
  display:flex; align-items:center; gap:.9rem;
  font-size: .82rem; letter-spacing:.16em; text-transform:uppercase; color: var(--gold-light);
  margin-bottom: 1.4rem;
}
.product-group-title::after{ content:""; flex:1; height:1px; background: var(--line); }
.product-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem; }

.product-card{
  display:flex; flex-direction:column; text-align:left; width:100%;
  border-radius: var(--radius); overflow:hidden;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  transition: transform .45s var(--ease), border-color .35s ease, box-shadow .45s ease;
}
.product-card:hover{ transform: translateY(-5px); border-color: var(--gold-dim); box-shadow: 0 24px 44px -24px rgba(0,0,0,.7); }
.product-thumb{ display:block; aspect-ratio: 4 / 5; background: #eef0f3; overflow:hidden; }
.product-thumb img{ width:100%; height:100%; object-fit:cover; object-position: center top; transition: transform .6s var(--ease); }
.product-card:hover .product-thumb img{ transform: scale(1.04); }
.product-info{ display:flex; flex-direction:column; gap:.25rem; padding: 1rem 1.1rem 1.15rem; }
.product-info strong{ font-family: var(--font-display); font-size: 1rem; color: var(--white); line-height:1.3; }
.product-info small{ font-size: .84rem; color: var(--ink-dim); }

.products-cta{ padding: 6rem 0; background: linear-gradient(160deg, var(--navy-800), var(--navy-950) 65%); }
.products-cta-actions{ display:flex; flex-wrap:wrap; gap: 1rem; justify-content:center; }

/* Visor de fichas */
.lightbox{ position: fixed; inset:0; z-index: 900; display:flex; align-items:center; justify-content:center; padding: 1.2rem; }
.lightbox[hidden]{ display:none; }
.lightbox-backdrop{ position:absolute; inset:0; background: rgba(2,6,16,.88); backdrop-filter: blur(6px); }
.lightbox-panel{
  position:relative; display:flex; flex-direction:column; align-items:center;
  max-width: min(720px, 100%); max-height: 100%;
  animation: lb-in .35s var(--ease);
}
@keyframes lb-in{ from{ opacity:0; transform: scale(.96); } to{ opacity:1; transform:none; } }
.lightbox-figure{ min-height:0; display:flex; }
.lightbox-figure img{
  max-height: calc(100vh - 8.5rem); max-height: calc(100dvh - 8.5rem);
  width:auto; max-width:100%; object-fit:contain;
  border-radius: 10px; background:#eef0f3;
}
.lightbox-bar{
  display:flex; align-items:center; justify-content:space-between; gap: 1rem; flex-wrap:wrap;
  width:100%; padding-top: 1rem;
}
.lightbox-title{ font-family: var(--font-display); color: var(--white); font-size: 1.1rem; }
.lightbox-close, .lightbox-nav{
  position:absolute; z-index:2; width: 44px; height: 44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(5,11,24,.75); border:1px solid var(--line-strong); color: var(--white);
  transition: background-color .3s ease, border-color .3s ease;
}
.lightbox-close:hover, .lightbox-nav:hover{ background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.lightbox-close svg, .lightbox-nav svg{ width:20px; height:20px; }
.lightbox-close{ top: .6rem; right: .6rem; }
.lightbox-nav{ top: calc(50% - 2.5rem); }
.lightbox-nav.prev{ left: -3.6rem; }
.lightbox-nav.next{ right: -3.6rem; }
@media (max-width: 860px){
  .lightbox-nav.prev{ left: .6rem; }
  .lightbox-nav.next{ right: .6rem; }
}
@media (max-width: 760px){
  .page-hero{ padding: 8rem 0 3rem; }
  .product-tabs-bar{ top: 64px; }
  .product-tab{ flex: 1 1 0; justify-content:center; padding: .65rem .8rem; font-size: .88rem; }
  .product-tab .tab-long{ display:none; }
  .product-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; }
  .product-info{ padding: .8rem .85rem .95rem; }
  .product-info strong{ font-size: .92rem; }
  .product-info small{ font-size: .78rem; }
  .lightbox-bar .btn{ width:100%; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--navy-950); border-top: 1px solid var(--line); padding: 3.6rem 0 2rem; }
.footer-top{ display:flex; flex-wrap:wrap; justify-content:space-between; gap: 2.4rem; margin-bottom: 2.6rem; }
.footer-brand{ display:flex; align-items:center; gap:.8rem; }
.footer-brand img{ height: 56px; width:auto; }
.footer-brand strong{ font-family: var(--font-display); color: var(--white); }
.footer-nav{ display:flex; gap: 2rem; flex-wrap:wrap; }
.footer-nav a{ color: var(--ink-dim); font-size:.92rem; transition: color .3s ease; }
.footer-nav a:hover{ color: var(--gold-light); }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-dim);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 900px){
  .process-connector{ display:block; }
}

@media (max-width: 960px){
  .service-card{ grid-template-columns: 1fr; }
  .service-icon{ margin-bottom: .5rem; }
  .team-grid{ grid-template-columns: 1fr 1fr; }
  .process-grid{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .nav-links{
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--navy-900); border-left:1px solid var(--line);
    flex-direction: column; align-items:flex-start; justify-content:flex-start;
    gap: 1.6rem; padding: 6.5rem 2rem 2rem;
    transform: translateX(100%); transition: transform .45s var(--ease);
    z-index: 60;
  }
  .nav-links.is-open{ transform: translateX(0); }
  .nav-toggle{ display:flex; }
  .nav-cta .btn-ghost{ display:none; }
  .brand img{ height: 44px; }
  .site-header.is-scrolled .brand img{ height: 38px; }
  .team-grid{ grid-template-columns: 1fr; }
  .process-grid{ grid-template-columns: 1fr; }
  .service-list{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .hero-blueprint{ opacity:.25; }
}

/* Overlay behind mobile nav */
.nav-scrim{
  position: fixed; inset:0; background: rgba(2,6,16,.6); backdrop-filter: blur(2px);
  opacity:0; pointer-events:none; transition: opacity .4s ease; z-index: 55;
}
.nav-scrim.is-open{ opacity:1; pointer-events:auto; }

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.whatsapp-float{
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 45;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .35s var(--ease-out-back), box-shadow .35s ease;
}
.whatsapp-float svg{ width: 30px; height: 30px; color: #fff; }
.whatsapp-float:hover{ transform: scale(1.08) translateY(-2px); box-shadow: 0 16px 34px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12); }
.whatsapp-float-ping{
  position:absolute; inset:0; border-radius:50%;
  background:#25D366; opacity:.55;
  animation: wa-ping 2.4s ease-out infinite;
}
@keyframes wa-ping{
  0%{ transform: scale(1); opacity:.55; }
  100%{ transform: scale(1.9); opacity:0; }
}
@media (max-width:760px){
  .whatsapp-float{ right: 1.1rem; bottom: 1.1rem; width:52px; height:52px; }
  .whatsapp-float svg{ width:26px; height:26px; }
}

::selection{ background: var(--gold); color: var(--navy-950); }

/* focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold-light); outline-offset: 3px;
}
