/* =========================================================
   Control Remoto Tucumán — TV, Aire, Portón y TV Box
   Paleta: electrónica azul + baliza led + ámbar de indicador
   ========================================================= */

:root {
  --bg:        #0B1220;
  --bg-alt:    #0F1B2E;
  --surface:   #14233A;
  --surface-2: #1B2E4A;
  --line:      #26405F;
  --blue:      #4FA8FF;
  --blue-dim:  #2E6FB8;
  --amber:     #F5A623;
  --ink:       #EAF1F7;
  --ink-dim:   #A9B9CE;
  --ink-faint: #6E7F97;
  --cream:     #EFF3FA;
  --cream-ink: #10192B;
  --whatsapp:  #23A455;
  --display: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  --body:    'IBM Plex Sans', sans-serif;
  --mono:    'IBM Plex Mono', monospace;
  --radius: 3px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
section[id] { scroll-margin-top: 78px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- signature: circuit trace rail ---------- */
.trace-rail {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 28px;
  z-index: 5;
  display: none;
  pointer-events: none;
}
@media (min-width: 1280px) { .trace-rail { display: block; } }
.trace-rail::before {
  content: "";
  position: absolute;
  left: 13px; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line) 0px, var(--line) 6px,
    transparent 6px, transparent 14px
  );
}
.trace-rail::after {
  content: "";
  position: absolute;
  left: 8px; width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: var(--bg);
  box-shadow: 0 0 8px rgba(79,168,255,0.5);
  animation: trace-pulse 7s linear infinite;
}
@keyframes trace-pulse {
  0%   { top: 4%; opacity: 0; }
  6%   { opacity: 1; }
  46%  { opacity: 1; }
  50%  { top: 96%; opacity: 0; }
  100% { top: 96%; opacity: 0; }
}

/* ---------- layout helpers ---------- */
.section__inner { max-width: var(--max); margin: 0 auto; padding: 76px 32px; }
.section__inner--narrow { max-width: 760px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}
.eyebrow--dark { color: var(--blue-dim); }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px rgba(79,168,255,0.8);
  flex: none;
}
.eyebrow--dark .eyebrow__dot { background: var(--blue-dim); box-shadow: 0 0 6px rgba(46,111,184,0.7); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,18,32,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 15.5px; margin-right: auto; }
.nav__brand-mark {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
}
.nav__brand-text { white-space: nowrap; }
.nav__links { display: none; gap: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-dim); }
.nav__links a:hover { color: var(--blue); }
@media (min-width: 980px) { .nav__links { display: flex; } }
.nav__cta {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue); color: #071C33;
  font-weight: 600; font-size: 13px;
  padding: 9px 15px; border-radius: 999px;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.nav__cta:hover { background: #79C2FF; transform: translateY(-1px); }
.nav__cta svg { flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--blue); color: #071C33; }
.btn--primary:hover { background: #79C2FF; transform: translateY(-1px); }
.btn--ghost { color: var(--ink); border: 1px solid rgba(234,241,247,0.28); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--outline { border: 1px solid var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--lg { padding: 15px 28px; font-size: 15.5px; }
.btn svg { flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.02); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,13,22,0.55) 0%, rgba(8,13,22,0.55) 30%, rgba(8,13,22,0.94) 92%),
    linear-gradient(90deg, rgba(8,13,22,0.75) 0%, rgba(8,13,22,0.25) 55%);
}
.hero__content { position: relative; max-width: var(--max); margin: 0 auto; padding: 64px 32px 72px; width: 100%; }
.hero h1 {
  font-size: clamp(32px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  color: var(--cream);
  max-width: 20ch;
}
.hero__sub { font-size: 17px; color: rgba(234,241,247,0.86); max-width: 52ch; margin: 20px 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- product / catalog sections ---------- */
.product-block { background: var(--bg); }
.product-block + .product-block { border-top: 1px solid var(--line); }
.product-block--light { background: var(--cream); color: var(--cream-ink); }
.product-block h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  max-width: 18ch;
}
.product-block__lead { font-size: 16px; max-width: 60ch; margin: 16px 0 30px; }
.product-block--light .product-block__lead { color: rgba(16,25,43,0.75); }
.product-block:not(.product-block--light) .product-block__lead { color: var(--ink-dim); }

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.control-card {
  background: #fff;
  border: 1px solid rgba(16,25,43,0.1);
  border-radius: var(--radius);
  padding: 16px 14px 14px;
  text-decoration: none;
  color: var(--cream-ink);
  display: block;
  transition: transform .15s ease, border-color .15s ease;
}
.control-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.control-card__img { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.control-card__img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.control-card__name { font-family: var(--display); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.control-card__desc { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: rgba(16,25,43,0.6); margin-bottom: 10px; }
.control-card__cta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--blue-dim); font-weight: 600; }

.grid-note {
  margin-top: 26px;
  font-size: 14.5px;
  padding: 16px 20px;
  border-radius: var(--radius);
}
.product-block--light .grid-note { background: #fff; border: 1px dashed rgba(16,25,43,0.18); color: rgba(16,25,43,0.72); }
.product-block:not(.product-block--light) .grid-note { background: var(--surface); border: 1px solid var(--line); color: var(--ink-dim); }
.grid-note strong { color: inherit; }

/* ---------- why choose ---------- */
.features { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; max-width: 20ch; }
.features__lead { color: var(--ink-dim); font-size: 16px; max-width: 58ch; margin: 16px 0 32px; }
.features__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 720px) { .features__list { grid-template-columns: 1fr 1fr; } }
.features__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.features__list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 6px rgba(79,168,255,0.7); margin-top: 7px; flex: none; }

/* ---------- reviews ---------- */
.reviews { background: var(--cream); color: var(--cream-ink); }
.reviews h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; max-width: 18ch; }
.reviews__lead { color: rgba(16,25,43,0.72); font-size: 15.5px; margin: 14px 0 6px; }
.rating-line { display: flex; align-items: center; gap: 8px; margin-bottom: 34px; }
.rating-line .score { font-family: var(--display); font-weight: 700; font-size: 16px; }
.stars { color: var(--amber); font-size: 15px; letter-spacing: 1px; }
.review-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: #fff; border: 1px solid rgba(16,25,43,0.1); border-radius: var(--radius); padding: 22px 22px 20px; }
.review-card .stars { display: block; margin-bottom: 10px; }
.review-card h3 { font-family: var(--display); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.review-card p { font-size: 14px; color: rgba(16,25,43,0.72); margin: 0 0 16px; }
.review-author { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(16,25,43,0.1); }
.review-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12.5px; flex: none; }
.review-author .name { font-size: 12.5px; font-weight: 600; }
.review-author .verified { font-size: 11px; color: rgba(16,25,43,0.55); }
.reviews-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-size: 14px; color: var(--blue-dim); font-weight: 600; border-bottom: 1px solid rgba(46,111,184,0.4); }

/* ---------- faq ---------- */
.faq { background: var(--bg-alt); }
.faq h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; max-width: 18ch; }
.faq__list { margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--amber); font-weight: 400; transition: transform .15s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { font-size: 14.5px; color: var(--ink-dim); margin: 12px 0 0; max-width: 62ch; }

/* ---------- contact ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.contact h2 { font-size: clamp(26px, 3.8vw, 40px); font-weight: 700; color: var(--cream); }
.contact__lead { color: var(--ink-dim); font-size: 16.5px; max-width: 54ch; margin: 18px 0 34px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- location ---------- */
.location { display: grid; grid-template-columns: 1fr; min-height: 540px; }
@media (min-width: 900px) { .location { grid-template-columns: 1.3fr 1fr; min-height: 480px; } }
.location__map { min-height: 320px; background: var(--surface-2); filter: grayscale(0.25) invert(0.92) contrast(0.9); }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.location__panel { background: var(--bg-alt); padding: 60px 36px; display: flex; flex-direction: column; justify-content: center; }
.location__panel h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 28px; }
.location__list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 18px; }
.location__list li { display: flex; gap: 14px; align-items: flex-start; }
.location__list svg { color: var(--blue); flex: none; margin-top: 2px; }
.location__list strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.location__list span, .location__list a { color: var(--ink-dim); font-size: 14.5px; }

/* ---------- footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer__inner {
  padding: 24px 24px 100px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 6px; }
.footer__links a:hover, .footer__inner a:hover { color: var(--blue); }
.footer__links span { color: var(--ink-faint); }
@media (min-width: 640px) { .footer__inner { padding-bottom: 24px; } }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--blue); color: #071C33;
  padding: 13px 16px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 14.5px;
  z-index: 50;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.35);
}
.sticky-cta svg { flex: none; }
@media (min-width: 640px) { .sticky-cta { display: none; } }

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 1000;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  pointer-events: none;
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
