/* ============================================
   NET Servicios Informáticos — Design System
   ============================================ */

:root {
  --navy:        #0A1628;
  --navy-mid:    #1E3A5F;
  --ice:         #F5F7FA;
  --cyan:        #00D9FF;
  --orange:      #FF6B35;
  --ink:         #10151F;
  --muted:       #6B7A90;
  --line:        rgba(255,255,255,0.08);
  --line-dark:   rgba(10,22,40,0.08);

  --font-display: 'Space Grotesk', 'Arial Black', sans-serif;
  --font-body:    'Inter', Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 28px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-badge {
  background: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.brand-badge img { height: 34px; width: auto; }
.logo-mobile { display: none; }

@media (max-width: 680px) {
  .brand-badge { padding: 6px 10px; }
  .logo-desktop { display: none; }
  .logo-mobile { display: block; height: 22px; width: auto; }
}

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }

.main-nav a {
  color: #C9D4E3;
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { background: rgba(255,255,255,0.08); color: #fff; }
.main-nav a.active { background: var(--cyan); color: var(--navy); font-weight: 700; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(255,255,255,0.14); }

/* ============================================
   HERO — título + texto + botones + terminal
   ============================================ */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0D1F38 55%, var(--navy-mid) 100%);
  color: #fff;
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,217,255,0.18);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; color: var(--cyan); }

.hero p.lead {
  font-size: 17px;
  line-height: 1.65;
  color: #B9C4D6;
  max-width: 480px;
  margin: 0 0 34px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(255,107,53,0.32); }
.btn-primary:hover { background: #ff7d4d; }

.btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* Terminal signature element */
.terminal {
  background: #0D1420;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}
.terminal-bar { display: flex; gap: 7px; padding: 13px 16px; background: #10182A; border-bottom: 1px solid rgba(255,255,255,0.06); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3A4658; }
.terminal-bar span:nth-child(1) { background: #FF5F57; }
.terminal-bar span:nth-child(2) { background: #FEBC2E; }
.terminal-bar span:nth-child(3) { background: #28C840; }
.terminal-body { padding: 22px 20px; font-size: 13px; line-height: 1.9; color: #8FE9C4; }
.terminal-body .muted { color: #5C6B84; }
.terminal-body .cyan { color: var(--cyan); }
.terminal-body .white { color: #E7ECF3; }
.terminal-cursor {
  display: inline-block; width: 7px; height: 14px; background: var(--cyan);
  margin-left: 2px; animation: blink 1.1s steps(1) infinite; vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================
   SECTION SHELL
   ============================================ */
.section { padding: 88px 0; }
.section-alt { background: #fff; }
.section-dark { background: var(--navy); color: #fff; }
.section-compact { padding: 40px 0 64px; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--navy-mid); }
.section-dark .section-head .eyebrow { color: var(--cyan); }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }
.section-dark .section-head p { color: #A9B7CB; }

/* ============================================
   QUIENES SOMOS — fondo claro, solo texto
   ============================================ */
.about-copy p { line-height: 1.75; color: #2A3244; margin: 0 0 18px; font-size: 15.5px; max-width: 760px; }
.about-copy b { color: var(--navy); }

/* ============================================
   COMO TRABAJAMOS — fondo navy, pasos numerados
   ============================================ */
.steps-list { display: grid; gap: 0; }
.step-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step-row:last-child { border-bottom: 0; }
.step-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  background: var(--cyan);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-row h4 { font-family: var(--font-display); font-size: 16.5px; margin: 0 0 6px; color: #fff; }
.step-row p { color: #A9B7CB; font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 560px; }

@media (max-width: 560px) {
  .step-row { grid-template-columns: 40px 1fr; }
}

/* ============================================
   PRODUCTOS
   ============================================ */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.producto-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.producto-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(10,22,40,0.25); }

.producto-card .thumb { aspect-ratio: 710/285; overflow: hidden; background: var(--navy-mid); flex-shrink: 0; }
.producto-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.producto-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.destacado-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,107,53,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}

.producto-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.producto-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.producto-card .card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.producto-card:hover .card-link { color: var(--orange); }

.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius);
  grid-column: 1 / -1;
}

/* Ver reglas responsive de Productos en el bloque de 680px, más abajo,
   para que queden después del bloque de 900px y no se pisen entre sí. */

/* ============================================
   DESCARGAS
   ============================================ */
.descargas-list { display: grid; gap: 12px; }

.descarga-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: 0 6px 18px -12px rgba(10,22,40,0.2);
}
.descarga-item:nth-child(3n+2) { border-left-color: var(--orange); }
.descarga-item:nth-child(3n+3) { border-left-color: var(--navy-mid); }

.descarga-item .info h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 16px; color: var(--navy); }
.descarga-item .info p { margin: 0; color: var(--muted); font-size: 13.5px; }
.descarga-item .peso { color: var(--navy-mid); font-weight: 700; font-size: 13px; margin-left: 10px; }

.dl-btn {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.dl-btn:hover { transform: scale(1.08); }

/* ============================================
   CONTACTO
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }

.pitch-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.pitch-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.pitch-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(0,217,255,0.12);
  color: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
}
.contact-pitch-note { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; padding-top: 20px; border-top: 1px solid var(--line-dark); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Botón flotante de WhatsApp, visible en todo el sitio */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float img { width: 30px; height: 30px; object-fit: contain; }

.footer-social-whatsapp img { width: 16px; height: 16px; object-fit: contain; }

.contact-form { background: var(--ice); border-radius: var(--radius); border: 1px solid var(--line-dark); padding: 30px; }

.form-actions { display: flex; gap: 10px; }
.btn-ghost-light { background: #fff; color: var(--navy); border: 1px solid var(--line-dark); }
.btn-ghost-light:hover { background: #EEF1F5; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.required-mark { color: var(--orange); }
.form-required-note { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }

/* Honeypot: oculto para humanos, visible para bots que ignoran CSS */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  line-height: 1.4;
}
.field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 46px;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7A90' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field select:invalid { color: var(--muted); }
.field option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; background: #fff; }

.form-success { background: rgba(0,217,255,0.08); border: 1px solid rgba(0,217,255,0.3); color: var(--navy-mid); padding: 16px 18px; border-radius: 10px; font-size: 14.5px; margin-bottom: 18px; }
.form-error { background: rgba(255,107,53,0.08); border: 1px solid rgba(255,107,53,0.3); color: #a3401a; padding: 16px 18px; border-radius: 10px; font-size: 14.5px; margin-bottom: 18px; }

/* ============================================
   FOOTER — 3 columnas + copyright centrado
   ============================================ */
.site-footer { background: #060D19; color: #7C8AA0; font-size: 13.5px; }

.footer-top { padding: 56px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }

.footer-col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.footer-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.footer-brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-brand span { font-family: var(--font-display); color: #fff; font-weight: 700; font-size: 16px; white-space: nowrap; }

.footer-col p { line-height: 1.6; margin: 0 0 8px; color: #8291A8; }

.footer-col ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.footer-col ul a { color: #A9B7CB; transition: color 0.15s ease; }
.footer-col ul a:hover { color: var(--cyan); }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: #A9B7CB;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }

.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; text-align: center; color: #5C6B84; font-size: 12.5px; }

@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-col ul { justify-items: center; }
}

/* ============================================
   PRODUCTO.PHP — layout con columna fija
   ============================================ */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--navy-mid); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { margin: 0 6px; color: #C3CBD8; }

.producto-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
}

.producto-sidebar {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 18px;
}
.producto-sidebar-img {
  display: block;
  width: 110px;
  height: 110px;
  margin: 0 auto 14px;
  object-fit: contain;
}
.producto-sidebar-title { font-family: var(--font-display); font-size: 1.2rem; margin: 6px 0 8px; line-height: 1.15; }
.producto-sidebar-lead { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 4px; }

.info-strip {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-strip .info-item { flex: 1 1 140px; padding: 14px 18px; border-right: 1px solid var(--line-dark); }
.info-strip .info-item:last-child { border-right: 0; }
.info-strip .info-item .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 3px;
}
.info-strip .info-item .value {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}

.info-strip-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-wrap: unset;
  margin: 14px 0 0;
}
.info-strip-stack .info-item {
  flex: unset;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 9px 10px;
}
.info-strip-stack .info-item:nth-child(2n) { border-right: 0; }
.info-strip-stack .info-item:nth-last-child(-n+2) { border-bottom: 0; }

.producto-content { min-width: 0; }
.producto-intro { font-size: 15.5px; line-height: 1.8; color: #3A4456; margin: 0 0 8px; }

.detalle-accordion { margin-top: 18px; border-top: 1px solid var(--line-dark); }
.detalle-accordion details { border-bottom: 1px solid var(--line-dark); }
.detalle-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.detalle-accordion summary::-webkit-details-marker { display: none; }
.detalle-accordion summary::after {
  content: '+';
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,217,255,0.12);
  color: var(--navy-mid);
  font-size: 16px;
  line-height: 22px;
  text-align: center;
}
.detalle-accordion details:nth-child(3n+2) summary::after { background: rgba(255,107,53,0.12); color: var(--orange); }
.detalle-accordion details:nth-child(3n+3) summary::after { background: rgba(30,58,95,0.1); color: var(--navy-mid); }
.detalle-accordion details[open] summary { color: var(--navy); background: #F5F7FA; margin: 0 -12px; padding-left: 16px; padding-right: 16px; border-radius: 10px 10px 0 0; }
.detalle-accordion details[open] summary::after { content: '−'; }
.detalle-accordion-body { padding: 4px 4px 22px; }
.detalle-accordion details[open] .detalle-accordion-body { background: #F5F7FA; margin: 0 -12px; padding: 4px 16px 20px; border-radius: 0 0 10px 10px; }

.modulo-lista { margin: 0; padding: 0 0 0 4px; list-style: none; }
.modulo-lista li {
  position: relative;
  padding: 7px 0 7px 20px;
  font-size: 14.5px;
  color: #3A4456;
  line-height: 1.55;
  border-bottom: 1px dashed var(--line-dark);
}
.modulo-lista li:last-child { border-bottom: 0; }
.modulo-lista li::before {
  content: '';
  position: absolute;
  left: 0; top: 15px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; margin-bottom: 4px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .producto-layout { grid-template-columns: 1fr; }
  .producto-sidebar { position: static; }
}

/* ============================================
   RESPONSIVE GENERAL
   ============================================ */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .productos-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 0 64px; }
}

@media (max-width: 680px) {
  .main-nav { position: fixed; top: 66px; left: 0; right: 0; background: var(--navy); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .nav-toggle { display: inline-flex; }
  .descarga-item { flex-direction: column; align-items: flex-start; }
  .productos-grid { grid-template-columns: 1fr; gap: 18px; }
  .producto-card:active { transform: scale(0.99); }
  .section { padding: 60px 0; }
}
