/* ============================================================
   IMPORFEMAQ — Hoja de estilos principal
   Paleta: azul industrial profundo + bronce/dorado + acero
   Tipografía: Playfair Display (títulos) + Inter (interfaz/cuerpo)
   ============================================================ */

:root{
  --navy-950:#071A33;
  --navy-900:#0B2545;
  --navy-800:#123561;
  --navy-700:#1B4677;
  --steel-500:#5B6B7A;
  --steel-300:#9AA7B3;
  --paper:#F7F5F1;
  --paper-dim:#EDEAE2;
  --white:#FFFFFF;
  --gold-600:#B87E1F;
  --gold-500:#C9922B;
  --gold-300:#E3B96B;
  --ink:#101825;
  --ink-soft:#3B4653;
  --line:#DCD6C9;
  --ok:#2E7D5B;
  --danger:#B3261E;

  --font-display:'Playfair Display', Georgia, serif;
  --font-body:'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:4px;
  --radius-md:8px;
  --shadow-1:0 2px 10px rgba(7,26,51,.08);
  --shadow-2:0 16px 40px rgba(7,26,51,.18);
  --maxw:1180px;
}

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

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--navy-950);
  margin:0 0 .4em;
  font-weight:700;
  letter-spacing:.2px;
}

p{margin:0 0 1em; color:var(--ink-soft); max-width:62ch;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
button{font-family:inherit; cursor:pointer;}

.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px;}
.section{padding:88px 0;}
.section--tight{padding:56px 0;}
.section--navy{background:var(--navy-950); color:var(--paper);}
.section--navy h2, .section--navy h3{color:var(--white);}
.section--navy p{color:#C7D0DA;}
.section--dim{background:var(--paper-dim);}

.label{
  display:inline-flex; align-items:center; gap:10px;
  font-size:12.5px; letter-spacing:.08em; color:var(--gold-600);
  font-weight:600; margin-bottom:14px;
}
.label::before{content:""; width:26px; height:2px; background:var(--gold-500); display:inline-block;}
.section--navy .label{color:var(--gold-300);}

.section-head{max-width:640px; margin-bottom:44px;}
.section-head h2{font-size:clamp(28px,3.4vw,38px); line-height:1.15;}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; border-radius:2px; border:1px solid transparent;
  font-weight:600; font-size:14.5px; transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active{transform:translateY(1px);}
.btn-gold{background:var(--gold-500); color:var(--navy-950);}
.btn-gold:hover{background:var(--gold-600); box-shadow:0 8px 22px rgba(201,146,43,.35);}
.btn-outline{border-color:rgba(255,255,255,.35); color:var(--white);}
.btn-outline:hover{background:rgba(255,255,255,.08);}
.btn-navy{background:var(--navy-900); color:var(--white);}
.btn-navy:hover{background:var(--navy-800);}
.btn-ghost{background:transparent; color:var(--navy-900); border-color:var(--line);}
.btn-ghost:hover{background:var(--paper-dim);}
.btn-sm{padding:8px 14px; font-size:13px;}
.btn-danger{background:var(--danger); color:#fff;}
.btn-danger:hover{filter:brightness(1.08);}

/* ---------- HEADER ---------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(247,245,241,.92); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{display:flex; align-items:center; justify-content:space-between; height:82px;}
.brand{display:flex; align-items:center; gap:12px;}
.brand-logo-img{height:44px; width:auto; display:block;}
.brand-logo-img--sm{height:30px;}
.logo-chip{
  background:var(--paper); display:inline-flex; align-items:center;
  padding:7px 14px; border-radius:6px;
}
.brand-mark{
  width:42px; height:42px; border-radius:2px;
  background:var(--navy-950); color:var(--gold-400,#D6A34C);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:19px; color:var(--gold-400);
}
.brand-mark svg{width:24px; height:24px;}
.brand-text{line-height:1.1;}
.brand-text strong{display:block; font-family:var(--font-display); font-size:19px; color:var(--navy-950); letter-spacing:.5px;}
.brand-text span{display:block; font-size:10px; letter-spacing:.14em; color:var(--gold-600); font-weight:600;}

.main-nav{display:flex; align-items:center; gap:34px;}
.main-nav a{font-size:14px; font-weight:500; color:var(--ink-soft); position:relative; padding:6px 0;}
.main-nav a:hover, .main-nav a.active{color:var(--navy-950);}
.main-nav a.active::after{content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--gold-500);}
.header-actions{display:flex; align-items:center; gap:14px;}
.icon-btn{width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:2px; border:1px solid var(--line); color:var(--navy-900);}
.icon-btn:hover{background:var(--paper-dim);}

.nav-toggle{display:none; width:38px; height:38px; border:1px solid var(--line); background:none; border-radius:2px; align-items:center; justify-content:center;}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:18px; height:2px; background:var(--navy-950); position:relative; transition:.2s;
}
.nav-toggle span::before{position:absolute; top:-6px;}
.nav-toggle span::after{position:absolute; top:6px;}

/* ---------- HERO ---------- */
.hero{
  position:relative; overflow:hidden;
  background:linear-gradient(180deg, var(--paper) 0%, var(--paper) 55%, var(--paper-dim) 100%);
  padding:76px 0 0;
}
.hero .wrap{display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center;}
.hero-copy h1{font-size:clamp(40px,6vw,64px); line-height:1.02; margin-bottom:18px;}
.hero-copy h1 .accent{color:var(--gold-600); display:block;}
.hero-copy p{font-size:17px; max-width:46ch; margin-bottom:30px;}
.hero-cta{display:flex; gap:16px; flex-wrap:wrap; margin-bottom:44px;}

.trust-row{display:grid; grid-template-columns:repeat(3,1fr); gap:22px; padding:26px 0 46px; border-top:1px solid var(--line);}
.trust-item{display:flex; align-items:center; gap:12px;}
.trust-item svg{flex:none; width:26px; height:26px; color:var(--gold-600);}
.trust-item strong{display:block; font-size:12.5px; letter-spacing:.04em; color:var(--navy-950);}
.trust-item span{font-size:12px; color:var(--steel-500);}

.hero-visual{position:relative; height:100%; min-height:420px; display:flex; align-items:center; justify-content:center;}
.hero-visual .machine-frame{
  position:relative; width:100%; max-width:520px;
  background:var(--white); border-radius:6px; overflow:hidden; box-shadow:var(--shadow-2);
  border:1px solid var(--line);
}
.machine-frame img{width:100%; height:100%; object-fit:cover; display:block;}
.machine-frame .stitch-line{position:absolute; inset:0;}

/* stitch divider motif — reused as signature element */
.stitch-divider{width:100%; height:26px; overflow:hidden;}
.stitch-divider svg{width:100%; height:100%; display:block;}
.stitch-path{stroke-dasharray:10 9; animation:stitch-move 5s linear infinite;}
@keyframes stitch-move{to{stroke-dashoffset:-190;}}

/* ---------- FEATURE STRIP ---------- */
.feature-strip{background:var(--navy-950); color:var(--paper);}
.feature-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:0;}
.feature-item{padding:34px 26px; border-left:1px solid rgba(255,255,255,.1);}
.feature-item:first-child{border-left:none;}
.feature-item svg{width:26px; height:26px; color:var(--gold-400,#D6A34C); margin-bottom:14px;}
.feature-item h4{color:#fff; font-size:14.5px; font-family:var(--font-body); font-weight:700; margin-bottom:6px;}
.feature-item p{font-size:13px; color:#B7C2CE; margin:0;}

/* ---------- BRANDS ---------- */
.brand-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
.brand-card{
  border:1px solid var(--line); background:var(--white); padding:30px 22px;
  border-radius:2px; text-align:center; transition:border-color .2s ease, transform .2s ease;
}
.brand-card:hover{border-color:var(--gold-500); transform:translateY(-3px);}
.brand-card .brand-logo{
  font-family:var(--font-display); font-size:26px; color:var(--navy-950); font-weight:700; margin-bottom:8px;
}
.brand-card p{font-size:13px; margin:0; color:var(--steel-500);}

/* ---------- PRODUCTS ---------- */
.filter-bar{
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  margin-bottom:34px; padding-bottom:22px; border-bottom:1px solid var(--line);
}
.chip-row{display:flex; gap:10px; flex-wrap:wrap;}
.chip{
  padding:9px 16px; border:1px solid var(--line); border-radius:20px; font-size:13px; font-weight:500;
  background:var(--white); color:var(--ink-soft); transition:.18s;
}
.chip:hover{border-color:var(--gold-500);}
.chip.active{background:var(--navy-950); border-color:var(--navy-950); color:#fff;}
.filter-side{display:flex; gap:10px; align-items:center;}
.select, .input{
  padding:10px 14px; border:1px solid var(--line); border-radius:2px; font-size:13.5px;
  background:var(--white); color:var(--ink); font-family:inherit;
}
.select:focus, .input:focus, textarea:focus{outline:2px solid var(--gold-500); outline-offset:1px;}

.product-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
.product-card{
  background:var(--white); border:1px solid var(--line); border-radius:2px; overflow:hidden;
  display:flex; flex-direction:column; transition:box-shadow .2s ease, transform .2s ease;
}
.product-card:hover{box-shadow:var(--shadow-1); transform:translateY(-2px);}
.product-thumb{
  aspect-ratio:4/3; background:linear-gradient(160deg,#EEF1F4,#E3E8EC);
  display:flex; align-items:center; justify-content:center; position:relative;
}
.product-thumb img{width:100%; height:100%; object-fit:cover;}
.product-thumb svg{width:56%; height:56%; color:var(--navy-800);}
.product-badge{
  position:absolute; top:10px; left:10px; background:var(--gold-500); color:var(--navy-950);
  font-size:10.5px; font-weight:700; letter-spacing:.05em; padding:4px 9px; border-radius:2px;
}
.product-body{padding:18px 18px 20px; display:flex; flex-direction:column; gap:6px; flex:1;}
.product-brand{font-size:11px; letter-spacing:.06em; color:var(--gold-600); font-weight:700;}
.product-name{font-family:var(--font-display); font-size:18px; color:var(--navy-950); margin:0;}
.product-desc{font-size:13px; color:var(--steel-500); margin:0 0 10px; flex:1;}
.product-foot{display:flex; align-items:center; justify-content:space-between; margin-top:auto;}
.product-price{font-weight:700; color:var(--navy-950); font-size:15px;}
.product-price.hidden-price{font-size:12.5px; color:var(--steel-500); font-weight:600;}
.link-btn{font-size:13px; font-weight:600; color:var(--navy-900); border-bottom:1px solid var(--gold-500); padding-bottom:2px;}
.link-btn:hover{color:var(--gold-600);}
.empty-state{padding:60px 20px; text-align:center; color:var(--steel-500); border:1px dashed var(--line); border-radius:4px;}

/* ---------- PROCESS ---------- */
.process-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:0; align-items:start;}
.process-item{position:relative; padding:0 20px 0 0;}
.process-num{font-family:var(--font-display); font-size:40px; color:var(--gold-500); opacity:.85; line-height:1;}
.process-item h4{font-size:15px; margin:10px 0 6px; color:var(--navy-950);}
.process-item p{font-size:13.5px; margin:0;}
.process-arrow{position:absolute; right:-4px; top:14px; width:26px; height:26px; color:var(--gold-500);}
.process-arrow svg{width:100%; height:100%;}

/* ---------- CONTACT ---------- */
.contact-grid{display:grid; grid-template-columns:.85fr 1.15fr; gap:50px;}
.contact-info h2{color:#fff;}
.info-row{display:flex; gap:14px; align-items:flex-start; margin-bottom:22px;}
.info-row svg{flex:none; width:20px; height:20px; color:var(--gold-400,#D6A34C); margin-top:2px;}
.info-row strong{display:block; font-size:14px; color:#fff; margin-bottom:2px;}
.info-row span{font-size:13.5px; color:#B7C2CE;}
.social-row{display:flex; gap:10px; margin-top:30px;}
.social-row a{width:38px; height:38px; border:1px solid rgba(255,255,255,.25); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff;}
.social-row a:hover{background:var(--gold-500); border-color:var(--gold-500); color:var(--navy-950);}

.contact-form{background:var(--white); padding:34px; border-radius:4px; box-shadow:var(--shadow-2);}
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.form-grid .full{grid-column:1 / -1;}
.field label{display:block; font-size:12.5px; font-weight:600; color:var(--navy-950); margin-bottom:6px;}
.field input, .field textarea, .field select{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:2px; font-family:inherit; font-size:14px;
}
.field textarea{resize:vertical; min-height:100px;}
.form-msg{margin-top:14px; font-size:13.5px; padding:10px 14px; border-radius:2px; display:none;}
.form-msg.ok{display:block; background:#E7F3ED; color:var(--ok); border:1px solid #BFE3D1;}
.form-msg.err{display:block; background:#FBEAE9; color:var(--danger); border:1px solid #F3C6C3;}

/* ---------- FOOTER ---------- */
.site-footer{background:var(--navy-950); border-top:1px solid rgba(255,255,255,.08); padding:26px 0;}
.footer-row{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;}
.footer-row .brand-text strong, .footer-row .brand-text span{color:#fff;}
.footer-row .brand-text span{color:var(--gold-300);}
.footer-nav{display:flex; gap:20px; flex-wrap:wrap;}
.footer-nav a{font-size:12.5px; color:#B7C2CE;}
.footer-nav a:hover{color:#fff;}
.footer-fine{font-size:12px; color:#7C8A98;}
.footer-admin-link{font-size:11px; color:#5C6A78;}

/* ---------- MODAL ---------- */
.modal-overlay{
  position:fixed; inset:0; background:rgba(7,17,33,.55); display:none;
  align-items:center; justify-content:center; z-index:100; padding:20px;
}
.modal-overlay.open{display:flex;}
.modal{background:#fff; max-width:640px; width:100%; border-radius:4px; overflow:hidden; box-shadow:var(--shadow-2); max-height:88vh; overflow-y:auto;}
.modal-media{aspect-ratio:16/9; background:linear-gradient(160deg,#EEF1F4,#E3E8EC); display:flex; align-items:center; justify-content:center;}
.modal-media img{width:100%; height:100%; object-fit:cover;}
.modal-media svg{width:40%; height:40%; color:var(--navy-800);}
.modal-body{padding:28px;}
.modal-close{position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:50%; background:rgba(0,0,0,.35); color:#fff; display:flex; align-items:center; justify-content:center; border:none;}
.modal-inner{position:relative;}
.modal-brand{font-size:11px; letter-spacing:.06em; color:var(--gold-600); font-weight:700;}
.modal-price{font-size:22px; font-weight:700; color:var(--navy-950); margin:8px 0 16px;}
.modal-actions{display:flex; gap:12px; margin-top:20px; flex-wrap:wrap;}
.spec-list{list-style:none; padding:0; margin:14px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:8px 20px;}
.spec-list li{font-size:13px; color:var(--ink-soft); border-bottom:1px dashed var(--line); padding-bottom:6px;}
.spec-list li b{color:var(--navy-950);}

/* ---------- WHATSAPP FAB ---------- */
.fab-wa{
  position:fixed; right:22px; bottom:22px; width:56px; height:56px; border-radius:50%;
  background:#22c55e; color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px rgba(34,197,94,.4); z-index:70; transition:transform .2s;
}
.fab-wa:hover{transform:scale(1.06);}
.fab-wa svg{width:28px; height:28px;}

/* ---------- REVEAL ANIMATION (single orchestrated intro) ---------- */
.reveal{opacity:0; transform:translateY(16px); transition:opacity .7s ease, transform .7s ease;}
.reveal.in{opacity:1; transform:translateY(0);}

/* ---------- RESPONSIVE ---------- */
@media (max-width:980px){
  .hero .wrap{grid-template-columns:1fr;}
  .hero-visual{min-height:320px; order:-1;}
  .feature-grid{grid-template-columns:repeat(2,1fr);}
  .feature-item:nth-child(3){border-left:none;}
  .brand-grid{grid-template-columns:repeat(2,1fr);}
  .product-grid{grid-template-columns:repeat(2,1fr);}
  .process-grid{grid-template-columns:repeat(2,1fr); gap:30px;}
  .process-arrow{display:none;}
  .contact-grid{grid-template-columns:1fr;}
  .trust-row{grid-template-columns:1fr;}
}
@media (max-width:760px){
  .main-nav{
    position:fixed; top:82px; left:0; right:0; background:var(--paper); flex-direction:column;
    align-items:flex-start; padding:20px 24px; gap:6px; border-bottom:1px solid var(--line);
    transform:translateY(-8px); opacity:0; pointer-events:none; transition:.2s;
  }
  .main-nav.open{transform:translateY(0); opacity:1; pointer-events:auto;}
  .main-nav a{width:100%; padding:10px 0;}
  .nav-toggle{display:flex;}
  .header-actions .btn span{display:none;}
  .form-grid{grid-template-columns:1fr;}
  .product-grid{grid-template-columns:1fr 1fr;}
  .filter-bar{flex-direction:column; align-items:flex-start;}
}
@media (max-width:520px){
  .product-grid{grid-template-columns:1fr;}
  .section{padding:60px 0;}
}

/* ---------- FOCUS VISIBILITY ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--gold-500); outline-offset:2px;
}
