/* ===========================================================
   PIN COMUNICACIONES — sistema visual
   Negro + rojo, tipografía bold, voz argentina
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,700&family=Space+Mono:wght@400;700&display=swap');

:root{
  --bg:        #0a0a0a;
  --bg-2:      #121212;
  --surface:   #181818;
  --surface-2: #202020;
  --red:       #ec1c24;
  --red-bright:#ff2d35;
  --red-deep:  #b30f16;
  --white:     #ffffff;
  --text:      #f2f2f2;
  --muted:     #9a9a9a;
  --muted-2:   #6a6a6a;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.16);

  --maxw: 1240px;
  --radius: 14px;
  --radius-sm: 9px;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'Archivo', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.6;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
::selection{ background:var(--red); color:#fff; }

h1,h2,h3,h4{ font-family:var(--font-display); font-weight:900; line-height:1.02; letter-spacing:-0.02em; margin:0; }

.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 28px; }

/* ---------- Kicker / eyebrow ---------- */
.kicker{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--font-mono); font-size:12px; font-weight:700;
  letter-spacing:.22em; text-transform:uppercase; color:var(--muted);
}
.kicker::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background:var(--red); box-shadow:0 0 14px 1px var(--red);
}
.kicker.on-red{ color:rgba(255,255,255,.85); }
.kicker.on-red::before{ background:#fff; box-shadow:none; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-display); font-weight:800; font-size:15px;
  letter-spacing:.01em; padding:14px 24px; border-radius:999px;
  border:1.5px solid transparent; transition:.22s var(--ease); cursor:pointer;
  white-space:nowrap;
}
.btn svg{ width:18px; height:18px; }
.btn-red{ background:var(--red); color:#fff; box-shadow:0 8px 26px -10px var(--red); }
.btn-red:hover{ background:var(--red-bright); transform:translateY(-2px); box-shadow:0 14px 34px -12px var(--red); }
.btn-ghost{ background:transparent; color:#fff; border-color:var(--line-2); }
.btn-ghost:hover{ border-color:#fff; background:rgba(255,255,255,.05); }
.btn-white{ background:#fff; color:#0a0a0a; }
.btn-white:hover{ transform:translateY(-2px); background:#f0f0f0; }
.btn-lg{ padding:17px 30px; font-size:16px; }
.btn-sm{ padding:10px 16px; font-size:13px; }

/* ---------- Header / Nav ---------- */
/* el wrapper inyectado no debe limitar el sticky del header */
#site-header{ display:contents; }
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(10,10,10,.78); backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; gap:30px;
  height:74px;
}
.nav__logo{ display:flex; align-items:center; gap:11px; margin-right:6px; }
.nav__logo img{ height:42px; width:42px; border-radius:9px; }
.nav__logo b{ font-family:var(--font-display); font-weight:900; font-size:20px; letter-spacing:-.02em; }
.nav__logo b span{ color:var(--red); }
.nav__links{ display:flex; align-items:center; gap:4px; margin-left:auto; }
.nav__links a{
  font-weight:600; font-size:14.5px; color:var(--muted);
  padding:9px 14px; border-radius:8px; transition:.18s var(--ease); position:relative;
}
.nav__links a:hover{ color:#fff; }
.nav__links a.active{ color:#fff; }
.nav__links a.active::after{
  content:""; position:absolute; left:14px; right:14px; bottom:2px; height:2px;
  background:var(--red); border-radius:2px;
}
.nav__cta{ margin-left:14px; }
.nav__toggle{ display:none; background:none; border:0; padding:8px; margin-left:auto; }
.nav__toggle span{ display:block; width:24px; height:2.5px; background:#fff; border-radius:2px; margin:5px 0; transition:.25s var(--ease); }
.nav.open .nav__toggle span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2){ opacity:0; }
.nav.open .nav__toggle span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--line); background:var(--bg-2); padding:64px 0 32px; }
.foot-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; }
.foot-brand img{ height:54px; width:54px; border-radius:11px; margin-bottom:16px; }
.foot-brand p{ color:var(--muted); font-size:14.5px; max-width:30ch; }
.foot-col h5{ font-family:var(--font-mono); font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted-2); margin:0 0 16px; font-weight:700; }
.foot-col a, .foot-col span{ display:block; color:var(--muted); font-size:14.5px; padding:5px 0; transition:.16s; }
.foot-col a:hover{ color:var(--red-bright); }
.foot-bottom{ display:flex; justify-content:space-between; align-items:center; gap:16px; margin-top:48px; padding-top:24px; border-top:1px solid var(--line); color:var(--muted-2); font-size:13px; flex-wrap:wrap; }
.foot-bottom .font-mono{ font-family:var(--font-mono); }

/* ---------- Generic sections ---------- */
.section{ padding:96px 0; }
.section-sm{ padding:64px 0; }
.section-head{ max-width:62ch; margin-bottom:54px; }
.section-head h2{ font-size:clamp(34px,5vw,56px); margin:18px 0 0; }
.section-head p{ color:var(--muted); font-size:18px; margin:18px 0 0; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- Halftone / texture helpers ---------- */
.dots-red{
  background-image:radial-gradient(var(--red) 1.4px, transparent 1.5px);
  background-size:11px 11px;
}
.dots-white{
  background-image:radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.3px);
  background-size:13px 13px;
}

/* ---------- Reveal on scroll (transform-only: el contenido NUNCA queda oculto) ---------- */
.reveal{ transition:transform .7s cubic-bezier(.22,.61,.36,1), opacity .7s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: no-preference){
  .reveal{ transform:translateY(22px); }
  .reveal.in{ transform:none; }
}
.reveal.d1{ transition-delay:.07s; }
.reveal.d2{ transition-delay:.14s; }
.reveal.d3{ transition-delay:.21s; }
.reveal.d4{ transition-delay:.28s; }

/* ---------- Pill / tag ---------- */
.tag{
  display:inline-flex; align-items:center; gap:7px;
  font-family:var(--font-mono); font-size:11.5px; font-weight:700; letter-spacing:.05em;
  text-transform:uppercase; color:var(--muted);
  border:1px solid var(--line-2); padding:5px 11px; border-radius:999px;
}

/* ===========================================================
   Componentes compartidos: product cards, placeholders, etc.
   =========================================================== */

/* Image placeholder (sin fotos reales todavía) */
.ph{
  position:relative; overflow:hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 10px, transparent 10px 20px),
    var(--surface);
  display:flex; align-items:center; justify-content:center;
}
.ph__label{
  font-family:var(--font-mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--muted-2); border:1px dashed var(--line-2); padding:6px 11px; border-radius:7px;
  background:rgba(10,10,10,.5);
}

/* Product card */
.prod{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; transition:.26s var(--ease); display:flex; flex-direction:column;
}
.prod:hover{ transform:translateY(-5px); border-color:rgba(236,28,36,.5); box-shadow:0 24px 50px -28px rgba(0,0,0,.9); }
.prod__media{ aspect-ratio:1/1.04; position:relative; background:#0e0e0e; }
.prod__media .ph{ position:absolute; inset:0; }
.prod__badge{
  position:absolute; top:12px; left:12px; z-index:2;
  font-family:var(--font-mono); font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  background:var(--red); color:#fff; padding:4px 9px; border-radius:6px;
}
.prod__brand{ position:absolute; top:12px; right:12px; z-index:2; font-family:var(--font-mono); font-size:11px; color:var(--muted); letter-spacing:.06em; }
.prod__body{ padding:18px 18px 20px; display:flex; flex-direction:column; gap:6px; flex:1; }
.prod__name{ font-family:var(--font-display); font-weight:800; font-size:18px; letter-spacing:-.01em; }
.prod__specs{ display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 2px; }
.prod__specs span{ font-family:var(--font-mono); font-size:10.5px; color:var(--muted); border:1px solid var(--line); padding:3px 7px; border-radius:5px; }
.prod__foot{ margin-top:auto; display:flex; align-items:flex-end; justify-content:space-between; gap:10px; padding-top:14px; }
.prod__price b{ font-family:var(--font-display); font-weight:900; font-size:22px; letter-spacing:-.02em; display:block; }
.prod__price small{ color:var(--muted-2); font-family:var(--font-mono); font-size:11px; }
.prod__cuotas{ color:var(--red-bright); font-family:var(--font-mono); font-size:11.5px; font-weight:700; }

.grid-prod{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }

/* Feature / service card */
.fcard{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 26px; transition:.24s var(--ease); height:100%;
}
.fcard:hover{ border-color:var(--line-2); transform:translateY(-4px); }
.fcard__ico{
  width:52px; height:52px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:rgba(236,28,36,.12); border:1px solid rgba(236,28,36,.3); margin-bottom:18px;
}
.fcard__ico svg{ width:26px; height:26px; stroke:var(--red-bright); }
.fcard h3{ font-size:21px; margin-bottom:9px; }
.fcard p{ color:var(--muted); font-size:15px; margin:0; }

@media (max-width:1040px){ .grid-prod{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px){ .grid-prod{ grid-template-columns:repeat(2,1fr); gap:14px; } }
@media (max-width:380px){ .grid-prod{ grid-template-columns:1fr; } }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width:900px){
  .foot-grid{ grid-template-columns:1fr 1fr; gap:32px; }
  .nav__links{
    position:fixed; inset:74px 0 auto 0; flex-direction:column; align-items:stretch;
    background:var(--bg); border-bottom:1px solid var(--line); padding:14px 20px 22px;
    gap:2px; transform:translateY(-120%); transition:transform .32s var(--ease); margin:0;
    box-shadow:0 30px 60px -20px rgba(0,0,0,.8);
  }
  .nav.open .nav__links{ transform:none; }
  .nav__links a{ padding:14px 12px; font-size:16px; }
  .nav__links a.active::after{ display:none; }
  .nav__links a.active{ color:var(--red-bright); }
  .nav__cta{ margin:10px 0 0; }
  .nav__cta .btn{ width:100%; }
  .nav__toggle{ display:block; }
  .nav__logo{ margin-right:0; }
}
@media (max-width:560px){
  body{ font-size:16px; }
  .wrap{ padding:0 20px; }
  .section{ padding:64px 0; }
  .foot-grid{ grid-template-columns:1fr; }
}
