:root {
  --bg-900: #0a101c;
  --bg-850: #0c1220;
  --bg-800: #0e1626;
  --bg-700: #131d33;
  --bg-600: #1a2740;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.06);

  --cyan: #2dd8ea;
  --cyan-bright: #5be9f5;
  --violet: #8e51ed;
  --violet-bright: #a879ff;

  --white: #f4f8fc;
  --gray-200: #cdd6e4;
  --gray-400: #93a1b8;
  --gray-600: #6b7891;
  --amber: #ffb454;

  --radius: 14px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 20px 44px rgba(0, 0, 0, 0.45);
  --glow-cyan: 0 0 0 1px rgba(45, 216, 234, 0.35), 0 12px 30px rgba(45, 216, 234, 0.12);
  --container: 1180px;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-200);
  background: var(--bg-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0 0 .6em; color: var(--white); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; margin-bottom: .4em; color: var(--white); }
p { margin: 0 0 1em; color: var(--gray-400); }

a { color: inherit; text-decoration: none; }

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

img { max-width: 100%; display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  color: #071018;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-bright); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 16, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}
.brand-name { font-size: 1.05rem; font-style: normal; }
.brand-name em { font-style: normal; color: var(--cyan-bright); }

.nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-weight: 500;
  color: var(--gray-200);
  font-size: 0.96rem;
  transition: color .15s ease;
}
.nav a:hover { color: var(--cyan-bright); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-400);
}
.lang-option { padding: 2px 4px; border-radius: 999px; }
.lang-option.is-active { color: var(--cyan-bright); }
.lang-sep { color: var(--gray-600); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-900);
  padding: 120px 0 100px;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(45, 216, 234, 0.22), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(142, 81, 237, 0.24), transparent 50%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}
.hero-inner {
  position: relative;
  max-width: 760px;
  text-align: left;
}
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(45, 216, 234, 0.12);
  border: 1px solid rgba(45, 216, 234, 0.35);
  color: var(--cyan-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); }
.hero-sub { color: var(--gray-200); font-size: 1.1rem; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* Feature trio */
.stats {
  background: var(--bg-800);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 56px 0;
}
.trio-grid { grid-template-columns: repeat(3, 1fr); }
.trio-card {
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.trio-card h3 { color: var(--cyan-bright); font-size: 1.1rem; }
.trio-card p { margin: 0; font-size: 0.92rem; }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-850); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.tag {
  display: inline-block;
  color: var(--cyan-bright);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.grid { display: grid; gap: 28px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--glow-cyan); transform: translateY(-3px); border-color: rgba(45, 216, 234, 0.3); }
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(45, 216, 234, 0.12);
  color: var(--cyan-bright);
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--bg-700);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.process-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan-bright), var(--violet-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

/* Compare grid (El cambio) */
.compare-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 40px; }
.compare-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare-list li {
  position: relative;
  padding-left: 24px;
  color: var(--gray-400);
  font-size: 0.95rem;
}
.compare-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-600);
}
.compare-list-accent li::before {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

/* Callout */
.callout {
  background: var(--bg-700);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 28px;
}
.callout p { margin: 0; color: var(--gray-200); }
.callout strong { color: var(--white); }

/* Flow diagram (Perimetro) */
.flow-diagram { margin-bottom: 40px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.flow-outer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.flow-node {
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  white-space: nowrap;
}
.flow-node-muted { color: var(--gray-400); font-weight: 500; }
.flow-arrow { color: var(--gray-600); font-size: 1.2rem; }
.flow-firewall { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.flow-firewall-bar { width: 6px; height: 40px; border-radius: 3px; background: var(--amber); }
.flow-firewall-label { font-size: 0.85rem; color: var(--amber); font-weight: 600; }
.flow-zone {
  flex: 1 1 360px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-800);
  padding: 24px;
}
.flow-zone-label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 14px; }
.flow-zone-nodes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.flow-caption { margin: 16px 0 0; color: var(--cyan-bright); font-size: 0.9rem; font-weight: 600; }

/* Tables (Procedencia, ISO 27001) */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 40px;
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-800); color: var(--white); font-weight: 700; }
th.col-auto { color: var(--cyan-bright); }
th.col-human { color: var(--amber); }
tbody td { color: var(--gray-400); }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
tbody tr:last-child td { border-bottom: none; }
tr.row-highlight td { color: var(--amber); }

/* Pricing */
.pricing-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 40px; }
.price-card {
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-tier { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cyan-bright); }
.price-spec { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.price-amount { font-size: 1.6rem; font-weight: 800; color: var(--white); }
.price-amount span { font-size: 0.7rem; font-weight: 600; color: var(--gray-400); display: block; }
.price-profile { flex: 1; font-size: 0.88rem; margin: 0 0 8px; }
.pricing-included {
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.pricing-included h3 { font-size: 1rem; }
.pricing-included p { margin: 0; font-size: 0.9rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.why-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}
.why-list li {
  padding-left: 28px;
  position: relative;
  color: var(--gray-400);
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}
.why-list strong { color: var(--white); display: block; font-size: 0.98rem; }

.about-visual { display: flex; justify-content: center; }
.shield-frame {
  width: 280px;
  height: 280px;
  border-radius: 32px;
  background: var(--bg-700);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.shield-frame img { width: 100%; height: 100%; object-fit: contain; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact-info li { display: flex; align-items: center; gap: 14px; color: var(--gray-200); font-weight: 500; }
.contact-info svg { width: 20px; height: 20px; color: var(--cyan-bright); flex-shrink: 0; }
.contact-info a { transition: color .15s ease; }
.contact-info a:hover { color: var(--cyan-bright); }

.contact-form {
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--white);
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--bg-800);
  color: var(--white);
  resize: vertical;
  transition: border-color .15s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.form-note { font-size: 0.8rem; color: var(--gray-600); margin: 14px 0 0; text-align: center; }

/* Footer */
.site-footer {
  background: var(--bg-850);
  color: var(--gray-400);
  padding: 56px 0 32px;
  border-top: 1px solid var(--line-soft);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.footer-inner .brand { color: var(--white); }
.footer-tag { color: var(--gray-400); margin: 4px 0 18px; }
.footer-copy { font-size: 0.85rem; color: var(--gray-600); margin: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .trio-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-outer { justify-content: center; width: 100%; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-850);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .header-actions .btn-sm {
    display: inline-flex;
  }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 70px; }
  .section { padding: 70px 0; }

  .flow-outer { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-zone-nodes { flex-direction: column; align-items: stretch; }
  .flow-zone-nodes .flow-node { text-align: center; }
  .flow-zone-nodes .flow-arrow-inner { transform: rotate(90deg); align-self: center; }
}
