/* ============================================
   AVALON SYSTEMS — Hoja de estilos (tema claro)
   ============================================ */

:root {
  --bg: #f7f9fb;
  --bg-soft: #eef3f7;
  --bg-card: #ffffff;
  --bg-elev: #ffffff;
  --line: #dfe7ee;
  --line-strong: #c5d2dc;
  --text: #0d2b3a;
  --text-dim: #45607a;
  --text-mute: #7d93a8;
  --accent: #0a7c8c;
  --accent-strong: #075866;
  --accent-soft: #e3f2f5;
  --accent-glow: rgba(10, 124, 140, 0.10);
  --dark: #0d2b3a;
  --dark-2: #112f40;
  --on-dark: #e6edf3;
  --on-dark-dim: #8fa6b8;
  --ok: #15a366;
  --warn: #d97706;
  --radius: 6px;
  --maxw: 1200px;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Manrope', sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 800px 400px at 90% -10%, rgba(10, 124, 140, 0.08), transparent 60%),
    radial-gradient(ellipse 600px 300px at -10% 30%, rgba(10, 124, 140, 0.05), transparent 60%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 43, 58, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 43, 58, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; height: auto; display: block; }

/* NAVBAR */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 251, 0.85);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  background: var(--dark);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  color: var(--accent);
  border-radius: var(--radius);
  position: relative;
  box-shadow: 0 2px 8px rgba(13, 43, 58, 0.15);
}
.brand-mark::after {
  content: ''; position: absolute;
  bottom: -3px; right: -3px;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 2px;
  border: 2px solid var(--bg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: 0.01em; color: var(--text); }
.brand-tag {
  font-family: var(--mono); font-size: 10px;
  color: var(--text-mute); text-transform: uppercase;
  letter-spacing: 0.16em; margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--text-dim); font-size: 14px; font-weight: 600;
  padding: 10px 14px; border-radius: var(--radius);
  position: relative; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::before {
  content: ''; position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-cta {
  font-size: 14px; font-weight: 700;
  padding: 10px 18px;
  background: var(--dark); color: #fff;
  border: 1px solid var(--dark);
  border-radius: var(--radius);
  transition: all .2s;
}
.nav-cta:hover {
  background: var(--accent); border-color: var(--accent);
  color: #fff; transform: translateY(-1px);
}
.nav-toggle {
  display: none; background: none;
  border: 1px solid var(--line-strong);
  color: var(--text); padding: 8px 12px;
  border-radius: var(--radius); font-family: var(--mono);
  font-size: 12px; cursor: pointer;
}

/* HERO */
.hero { position: relative; padding: 96px 32px 88px; border-bottom: 1px solid var(--line); overflow: hidden; z-index: 1; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 12px;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.2em; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 600;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; line-height: 1.02;
  letter-spacing: -0.025em; margin-bottom: 28px;
  color: var(--text);
}
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 700; position: relative; }
.hero h1 .accent::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 8px; background: var(--accent-soft); z-index: -1;
}
.hero-lead { font-size: 18px; color: var(--text-dim); max-width: 560px; margin-bottom: 40px; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  border: 1px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 124, 140, 0.25); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.hero-card {
  background: #fff; border: 1px solid var(--line);
  padding: 28px; position: relative;
  font-family: var(--mono); font-size: 13px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px -8px rgba(13, 43, 58, 0.12);
}
.hero-card::before {
  content: ''; position: absolute;
  top: -1px; left: 32px; right: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.card-title {
  font-size: 11px; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 18px; display: flex;
  justify-content: space-between; font-weight: 600;
}
.card-row {
  display: flex; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  color: var(--text-dim);
}
.card-row:last-child { border-bottom: none; }
.card-row .v { color: var(--text); font-weight: 600; }
.card-row .v.ok { color: var(--ok); }
.status-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--ok);
  margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(21, 163, 102, 0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* SECCIONES */
section { position: relative; z-index: 1; }
.section { padding: 88px 32px; border-bottom: 1px solid var(--line); }
.section.section-soft { background: var(--bg-soft); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-label {
  font-family: var(--mono); font-size: 12px;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.2em; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 600;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--accent); }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 18px;
  color: var(--text);
}
.section-head p { font-size: 17px; color: var(--text-dim); line-height: 1.65; }

/* GRIDS */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.feature-card {
  background: #fff; border: 1px solid var(--line);
  padding: 32px; position: relative;
  transition: all .25s; border-radius: var(--radius);
}
.feature-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 12px 32px -12px rgba(10, 124, 140, 0.2);
}
.feature-num {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.16em;
  margin-bottom: 16px; font-weight: 600;
  text-transform: uppercase;
}
.feature-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.01em; color: var(--text); }
.feature-card p { color: var(--text-dim); font-size: 15px; line-height: 1.65; }
.feature-card ul { list-style: none; margin-top: 20px; }
.feature-card ul li {
  position: relative; padding: 10px 0 10px 24px;
  color: var(--text-dim); font-size: 14.5px;
  border-bottom: 1px dashed var(--line);
}
.feature-card ul li:last-child { border-bottom: none; }
.feature-card ul li::before {
  content: '→'; position: absolute; left: 0; top: 10px;
  color: var(--accent); font-family: var(--mono);
  font-weight: 700; font-size: 14px;
}

/* PORTFOLIO DEL CONTRATO */
.contract-portfolio {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--on-dark); border-radius: 12px;
  padding: 64px 56px; position: relative; overflow: hidden;
}
.contract-portfolio::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
}
.contract-portfolio::after {
  content: ''; position: absolute;
  bottom: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 124, 140, 0.4), transparent 60%);
  pointer-events: none;
}
.cp-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap;
  gap: 24px; margin-bottom: 40px;
  position: relative; z-index: 1;
}
.cp-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--on-dark-dim); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 16px; font-weight: 600;
}
.cp-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em; color: #fff;
  max-width: 640px;
}
.cp-stamp {
  text-align: right; font-family: var(--mono);
  font-size: 11px; color: var(--on-dark-dim);
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 16px; border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
}
.cp-stamp .num {
  display: block; font-size: 18px;
  color: var(--accent); margin-top: 4px;
  letter-spacing: 0.08em; font-weight: 700;
}
.cp-lead {
  font-size: 18px; color: var(--on-dark);
  max-width: 720px; line-height: 1.65;
  margin-bottom: 40px; position: relative; z-index: 1;
}
.cp-clauses {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); overflow: hidden;
  position: relative; z-index: 1;
}
.clause { background: var(--dark-2); padding: 28px; transition: background .25s; }
.clause:hover { background: rgba(10, 124, 140, 0.15); }
.clause-num {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.18em;
  font-weight: 700; margin-bottom: 12px;
}
.clause h4 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: -0.01em; }
.clause p { font-size: 14px; color: var(--on-dark-dim); line-height: 1.6; }
.cp-footer {
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 20px;
  position: relative; z-index: 1;
}
.cp-tagline {
  font-family: var(--mono); font-size: 12px;
  color: var(--on-dark-dim); letter-spacing: 0.08em;
  max-width: 480px;
}

/* FOOTER */
footer {
  padding: 64px 32px 32px; background: var(--dark);
  color: var(--on-dark); border-top: 1px solid var(--line);
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.2em; margin-bottom: 18px; font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--on-dark-dim); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: var(--on-dark-dim); }
.footer-brand .brand-mark { background: var(--bg); color: var(--accent); }
.footer-brand p {
  color: var(--on-dark-dim); font-size: 14px;
  margin: 16px 0; max-width: 380px; line-height: 1.6;
}
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  align-items: center; color: var(--on-dark-dim);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
}

/* PÁGINAS INTERIORES */
.page-hero {
  padding: 80px 32px 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -40px;
  width: 360px;
  height: 360px;
  background-image:
    radial-gradient(circle at center, rgba(10, 124, 140, 0.10) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(10, 124, 140, 0.08) 0 1px, transparent 1px 12px);
  border-radius: 50%;
  pointer-events: none;
  animation: heroOrbit 22s linear infinite;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  border: 1px dashed rgba(10, 124, 140, 0.2);
  border-radius: 50%;
  pointer-events: none;
  animation: heroOrbit 30s linear infinite reverse;
}
@keyframes heroOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.page-hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.breadcrumb {
  font-family: var(--mono); font-size: 12px;
  color: var(--text-mute); margin-bottom: 24px;
  letter-spacing: 0.06em;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--accent); margin: 0 10px; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.025em; margin-bottom: 18px;
  max-width: 900px; color: var(--text);
}
.page-hero p {
  font-size: 18px; color: var(--text-dim);
  max-width: 720px; line-height: 1.65;
}

/* PROSE */
.prose p { font-size: 16.5px; color: var(--text-dim); margin-bottom: 18px; line-height: 1.7; }
.prose strong { color: var(--text); font-weight: 700; }
.prose h3 { font-size: 24px; color: var(--text); margin: 32px 0 16px; font-weight: 800; letter-spacing: -0.01em; }

/* CALLOUT */
.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 20px 24px; margin: 24px 0;
  font-size: 15px; color: var(--text);
  line-height: 1.65;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout strong { color: var(--text); font-weight: 700; }

/* CLIENTES */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--line);
}
.client-tile {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px; background: #fff;
  transition: all .25s;
  display: flex; flex-direction: column;
  justify-content: space-between; min-height: 180px;
  text-decoration: none; color: inherit;
}
.client-tile:hover {
  background: var(--accent-soft);
  transform: scale(1.03); z-index: 2; position: relative;
  box-shadow: 0 8px 24px -8px rgba(10, 124, 140, 0.3);
}
.client-tile:hover .client-name { color: var(--accent); }
.client-num {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.14em;
  margin-bottom: auto; font-weight: 600;
}
.client-name {
  font-size: 19px; font-weight: 800;
  letter-spacing: -0.01em; color: var(--text);
  transition: color .2s; line-height: 1.3;
}
.client-tag {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-mute); margin-top: 8px;
  letter-spacing: 0.04em;
}

/* PRODUCTOS */
.product-list { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.product-row {
  display: grid; grid-template-columns: 90px 1fr;
  align-items: center; gap: 28px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.product-tag {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.14em;
  border: 1px solid var(--accent); padding: 6px 0;
  text-align: center; background: var(--accent-soft);
  border-radius: var(--radius); font-weight: 600;
}
.product-info h4 { font-size: 19px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.product-info p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }

/* FORMULARIO */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: start;
}
.form-block {
  background: #fff; border: 1px solid var(--line);
  padding: 36px; border-radius: var(--radius);
  box-shadow: 0 4px 16px -8px rgba(13, 43, 58, 0.08);
}
.form-block h3 { font-size: 22px; margin-bottom: 8px; font-weight: 800; color: var(--text); }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-family: var(--mono);
  font-size: 11px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 8px; font-weight: 600;
}
.form-row input, .form-row textarea {
  width: 100%; padding: 13px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text); font-family: var(--sans);
  font-size: 15px; border-radius: var(--radius);
  transition: all .2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-note {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-mute); letter-spacing: 0.06em;
  margin-bottom: 22px;
}

/* CAPTCHA */
.captcha-row {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 18px; display: flex;
  align-items: center; gap: 14px; flex-wrap: wrap;
}
.captcha-question {
  font-family: var(--mono); font-weight: 700;
  font-size: 15px; color: var(--text);
  letter-spacing: 0.06em; background: #fff;
  padding: 8px 14px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); user-select: none;
}
.captcha-label {
  font-family: var(--mono); font-size: 10px;
  color: var(--text-mute); text-transform: uppercase;
  letter-spacing: 0.16em; font-weight: 600;
}
.captcha-input {
  flex: 1; min-width: 80px;
  padding: 10px 12px; background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono); font-size: 15px; color: var(--text);
}
.captcha-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.captcha-refresh {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-dim); padding: 8px 10px;
  border-radius: var(--radius); cursor: pointer;
  font-family: var(--mono); font-size: 12px;
  transition: all .2s;
}
.captcha-refresh:hover { border-color: var(--accent); color: var(--accent); }

.form-status {
  display: none; padding: 12px 16px;
  border-radius: var(--radius); font-size: 14px;
  margin-bottom: 14px; font-weight: 600;
}
.form-status.error { display: block; background: #fdecec; color: #b91c1c; border: 1px solid #f5c2c2; }
.form-status.success { display: block; background: #e7f7ee; color: #15803d; border: 1px solid #b7e2c5; }

.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: #fff; border: 1px solid var(--line);
  padding: 26px; position: relative;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px -8px rgba(13, 43, 58, 0.08);
}
.contact-card .label {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-mute); text-transform: uppercase;
  letter-spacing: 0.18em; margin-bottom: 10px; font-weight: 600;
}
.contact-card .value {
  font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
  font-family: var(--mono);
}
.contact-card .value a { color: var(--text); }
.contact-card .value a:hover { color: var(--accent); }

.remote-card {
  background: var(--dark); color: var(--on-dark);
  border: 1px solid var(--dark); padding: 28px;
  border-radius: var(--radius); position: relative;
  overflow: hidden;
}
.remote-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
}
.remote-card h4 { font-size: 18px; margin-bottom: 8px; font-weight: 800; color: #fff; }
.remote-card p {
  color: var(--on-dark-dim); font-size: 14px;
  margin-bottom: 18px; line-height: 1.55;
}
.remote-card .btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.remote-card a { color: var(--accent); }
.remote-card a:hover { color: #fff; }

/* REGLAS */
.rules-list { list-style: none; counter-reset: rules; }
.rules-list li {
  counter-increment: rules; position: relative;
  padding: 18px 0 18px 56px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim); font-size: 15px; line-height: 1.7;
}
.rules-list li::before {
  content: counter(rules, decimal-leading-zero);
  position: absolute; left: 0; top: 18px;
  font-family: var(--mono); font-size: 13px;
  color: var(--accent); letter-spacing: 0.12em;
  font-weight: 700; background: var(--accent-soft);
  padding: 2px 8px; border-radius: 4px;
}

/* ANIMACIÓN */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .8s ease forwards; opacity: 0; }
.fade-up.d1 { animation-delay: .1s; }
.fade-up.d2 { animation-delay: .25s; }
.fade-up.d3 { animation-delay: .4s; }
.fade-up.d4 { animation-delay: .55s; }

/* ============================================
   BLOQUE "POR QUÉ ELEGIRNOS" — pieza de venta
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  position: relative;
  transition: all .25s;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.why-card:hover::before { transform: scaleX(1); }

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -16px rgba(10, 124, 140, 0.3);
  border-color: var(--accent);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: all .3s;
}

.why-card:hover .why-icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.why-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-stat {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.why-stat .unit {
  font-size: 18px;
  color: var(--text-dim);
  font-weight: 700;
  margin-left: 2px;
}

.why-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.why-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

/* HIGHLIGHT BLOCK (Por qué elegirnos – bloque destacado con número grande) */
.highlight-block {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: 12px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.highlight-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
}

.highlight-block::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 124, 140, 0.4), transparent 60%);
  pointer-events: none;
}

.hl-content { position: relative; z-index: 1; }
.hl-content .label {
  font-family: var(--mono); font-size: 12px;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.2em; margin-bottom: 18px;
  font-weight: 600;
  display: flex; align-items: center; gap: 12px;
}
.hl-content .label::before { content: ''; width: 24px; height: 2px; background: var(--accent); }

.hl-content h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; color: #fff;
  margin-bottom: 18px;
}

.hl-content p {
  color: var(--on-dark);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hl-bullets {
  list-style: none;
  margin: 0; padding: 0;
}

.hl-bullets li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--on-dark);
  font-size: 14.5px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hl-bullets li:last-child { border-bottom: none; }

.hl-bullets li::before {
  content: '✓';
  position: absolute; left: 0; top: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.hl-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hl-num {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: all .25s;
}

.hl-num:hover {
  background: rgba(10, 124, 140, 0.15);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.hl-num .big {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.hl-num .big .unit {
  font-size: 18px;
  color: var(--on-dark-dim);
  font-weight: 700;
}

.hl-num .label-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--on-dark-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.hl-num .desc {
  font-size: 13px;
  color: var(--on-dark);
  line-height: 1.5;
}

/* RESPONSIVE */
/* ============================================
   HERO ANIMADO — Ilustración SVG + partículas
   ============================================ */
.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.hero { z-index: 1; }
.hero-inner { position: relative; z-index: 2; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(10, 124, 140, 0.18));
}

/* Nodos satélite con animación de flotación */
.node-orb {
  transform-origin: center;
  animation: floatNode 6s ease-in-out infinite;
}
.node-orb:nth-of-type(8)  { animation-delay: 0s;    animation-duration: 5.5s; }
.node-orb:nth-of-type(9)  { animation-delay: 1s;    animation-duration: 6.2s; }
.node-orb:nth-of-type(10) { animation-delay: 0.5s;  animation-duration: 5.8s; }
.node-orb:nth-of-type(11) { animation-delay: 1.5s;  animation-duration: 6.5s; }
.node-orb:nth-of-type(12) { animation-delay: 2s;    animation-duration: 5.7s; }
.node-orb:nth-of-type(13) { animation-delay: 0.8s;  animation-duration: 6.1s; }

@keyframes floatNode {
  0%, 100%  { transform: translate(0, 0); }
  50%       { transform: translate(0, -6px); }
}

/* Pulso lento del servidor central */
.server-core {
  transform-origin: 240px 240px;
  animation: serverBeat 3.5s ease-in-out infinite;
}
@keyframes serverBeat {
  0%, 100%  { transform: scale(1); }
  50%       { transform: scale(1.03); }
}

/* Tarjeta de estado flotante */
.hero-status {
  position: absolute;
  bottom: 18px;
  right: -8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px -8px rgba(13, 43, 58, 0.18);
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100%  { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.hero-status .status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-status .status-label {
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.hero-status .status-value {
  color: var(--ok);
  font-weight: 700;
  margin-left: 6px;
}

/* ============================================
   SCROLL REVEAL — fade-up al hacer scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .node-orb, .server-core, .hero-status {
    animation: none;
  }
  .particles-canvas { display: none; }
}

/* ============================================
   ICONOS ANIMADOS del bloque Por qué elegirnos
   ============================================ */
.why-icon svg { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

.why-card[data-anim="clock"] .why-icon svg path:first-child {
  transform-origin: 12px 12px;
  animation: clockArm 8s linear infinite;
}
@keyframes clockArm {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.why-card[data-anim="calendar"]:hover .why-icon svg {
  transform: rotate(-6deg) scale(1.06);
}

.why-card[data-anim="shield"] .why-icon svg path:first-child {
  animation: shieldGlow 2.6s ease-in-out infinite;
}
@keyframes shieldGlow {
  0%, 100% { stroke-width: 1.8; }
  50%      { stroke-width: 2.4; }
}

.why-card[data-anim="pulse"] .why-icon svg path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawPulse 2.4s ease-in-out infinite;
}
@keyframes drawPulse {
  0%       { stroke-dashoffset: 40; }
  60%      { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: -40; }
}

.why-card { will-change: transform; }

/* ============================================
   BANNER DE COOKIES (informativo, no bloqueante)
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 12px 40px -8px rgba(13, 43, 58, 0.25);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
  animation: cookieIn 0.4s ease;
}

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner.hidden { display: none; }

.cookie-banner p { margin: 0; flex: 1; min-width: 280px; }
.cookie-banner strong { color: var(--text); }
.cookie-banner a { color: var(--accent); font-weight: 600; }

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-banner .btn {
  padding: 10px 20px;
  font-size: 13px;
}

.cookie-close {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: all .2s;
  flex-shrink: 0;
}

.cookie-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* CASILLA RGPD del formulario */
.rgpd-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0 4px;
  margin-bottom: 18px;
}

.rgpd-row input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.rgpd-row label {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
  line-height: 1.55;
  cursor: pointer;
}

.rgpd-row label a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 16px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px -8px rgba(13,43,58,.1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 28px; width: 100%; }
  .nav-links a.active::before { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .hero-inner, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .cp-clauses { grid-template-columns: 1fr; }
  .hero, .section { padding: 60px 22px; }
  .nav-inner { padding: 14px 20px; }
  .contract-portfolio { padding: 36px 24px; }
  .product-row { grid-template-columns: 1fr; gap: 12px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-block { padding: 26px 22px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-block { grid-template-columns: 1fr; padding: 36px 26px; gap: 32px; }
  .hl-numbers { grid-template-columns: 1fr 1fr; }
  /* Hero móvil */
  .hero-visual { min-height: 320px; margin-top: 24px; }
  .hero-svg { max-width: 340px; }
  .hero-status { right: 0; bottom: 0; font-size: 11px; padding: 10px 14px; }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .hl-numbers { grid-template-columns: 1fr; }
}
