/* ======================================================================
   ALTA Cybersecurity — somosalta.cl
   Hoja de estilos principal
   ====================================================================== */

:root {
  /* Marca */
  --navy-900: #061423;
  --navy-800: #0a1f38;
  --navy-700: #0e2b4d;
  --navy-600: #143a66;
  --surface:  #0c2440;
  --surface-2:#102c4f;
  --line:     rgba(120, 170, 220, 0.16);

  --cyan-400: #38d6ff;
  --cyan-500: #19b6ff;
  --cyan-600: #0f8fdc;

  --text:     #eaf2fb;
  --muted:    #9db4cf;
  --muted-2:  #7e96b3;

  --white:    #ffffff;

  --grad-cyan: linear-gradient(135deg, #38d6ff 0%, #19b6ff 55%, #0f8fdc 100%);
  --grad-dark: linear-gradient(160deg, #0a1f38 0%, #061423 100%);

  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 18px 45px -22px rgba(0, 0, 0, 0.75);
  --shadow-cyan: 0 16px 40px -18px rgba(25, 182, 255, 0.55);

  --maxw: 1150px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--navy-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; }

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

.accent { color: var(--cyan-400); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-cyan);
  color: #04131f;
  box-shadow: var(--shadow-cyan);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--cyan-500); color: var(--cyan-400); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 20, 35, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-name small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--cyan-400); letter-spacing: 0.14em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.93rem; font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ---------- Secciones ---------- */
section { position: relative; }
.section { padding: 92px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.7rem, 3.3vw, 2.5rem); }
.section-sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-dark);
  padding: 96px 0 104px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(25,182,255,0.22), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120,170,220,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,220,0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(25,182,255,0.07);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 10px var(--cyan-400); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
.hero h1 span { background: var(--grad-cyan); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 1.12rem; margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: 22px;
  padding: 30px;
  background: linear-gradient(160deg, rgba(20,58,102,0.55), rgba(10,31,56,0.35));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-visual img { border-radius: 14px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.hero-stat { text-align: center; }
.hero-stat b { display: block; font-size: 1.5rem; color: var(--cyan-400); white-space: nowrap; }
.hero-stat span { font-size: 0.74rem; color: var(--muted-2); letter-spacing: 0.04em; }

/* ---------- Grids genéricos ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(25,182,255,0.4); box-shadow: var(--shadow); }
.card .ico {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(25,182,255,0.12);
  color: var(--cyan-400);
  margin-bottom: 20px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Bloque unidad de evaluación ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.panel {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.panel h3 { font-size: 1.1rem; color: var(--cyan-400); margin-bottom: 14px; }
.panel ul { margin: 0; padding-left: 20px; color: var(--muted); }
.panel ul li { margin-bottom: 10px; }
.note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--cyan-500);
  background: rgba(25,182,255,0.06);
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Alcance: 6 dimensiones ---------- */
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dim {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.dim:hover { border-color: rgba(25,182,255,0.4); transform: translateY(-3px); }
.dim .ico { color: var(--cyan-400); margin-bottom: 16px; }
.dim .ico svg { width: 28px; height: 28px; }
.dim h4 { font-size: 1.05rem; margin-bottom: 8px; }
.dim p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Metodología (timeline) ---------- */
.phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.phase {
  position: relative;
  padding: 28px 22px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.phase .num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-cyan);
  color: #04131f;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.phase h4 { font-size: 1.02rem; margin-bottom: 8px; }
.phase p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Madurez ---------- */
.maturity-scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 10px; }
.level {
  text-align: center;
  padding: 20px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.level b {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  margin: 0 auto 12px;
  border-radius: 10px;
  font-size: 1.05rem;
  color: #04131f;
}
.level span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.lv0 b { background: #3b4a5e; color: #c7d4e3; }
.lv1 b { background: #2a6ca0; color:#fff; }
.lv2 b { background: #1a85c8; color:#fff; }
.lv3 b { background: #19b6ff; }
.lv4 b { background: #38d6ff; }
.lv5 b { background: #7ae7ff; }

/* ---------- Entregables ---------- */
.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.deliverable {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
}
.deliverable:hover { border-color: rgba(25,182,255,0.4); }
.deliverable .n {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(25,182,255,0.12);
  color: var(--cyan-400);
  font-weight: 800;
}
.deliverable p { font-size: 0.97rem; }

/* ---------- Plazos ---------- */
.timeline-band {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.timeline-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.timeline-head .big { font-size: 2.6rem; font-weight: 800; color: var(--cyan-400); }
.timeline-head .lbl { color: var(--muted); }
.timeline-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tstep { padding-top: 20px; border-top: 2px solid var(--line); }
.tstep b { color: var(--cyan-400); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.tstep p { color: var(--muted); font-size: 0.93rem; margin-top: 8px; }

/* ---------- Industrias ---------- */
.industries { display: flex; flex-wrap: wrap; gap: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.97rem;
}
.chip svg { width: 20px; height: 20px; color: var(--cyan-400); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--grad-dark);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 58px 48px;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  bottom: -40%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(circle, rgba(25,182,255,0.22), transparent 60%);
  pointer-events: none;
}
.cta .container-inner { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.cta p { color: var(--muted); margin-top: 16px; font-size: 1.08rem; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta .hero-actions { justify-content: center; }

/* ---------- Contacto / formulario ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info .section-title { margin-bottom: 18px; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.97rem;
}
.contact-list .ci {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(25,182,255,0.12);
  color: var(--cyan-400);
}
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list b { color: var(--text); display: block; font-weight: 600; }

.form-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.field label .req { color: var(--cyan-400); }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(6,20,35,0.5);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(25,182,255,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
/* honeypot anti-spam: oculto para humanos */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-actions .btn-primary { border: none; }
.form-note { font-size: 0.82rem; color: var(--muted-2); }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.93rem;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(32,201,151,0.12); border: 1px solid rgba(32,201,151,0.4); color: #7ff0cf; }
.form-status.err { background: rgba(255,96,96,0.1); border: 1px solid rgba(255,96,96,0.4); color: #ffb3b3; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 30px;
  background: var(--navy-900);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid .brand img { height: 44px; }
.footer-grid p { color: var(--muted); font-size: 0.93rem; margin-top: 16px; max-width: 320px; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-400); margin-bottom: 16px; }
.footer-col a, .footer-col li { display: block; color: var(--muted); font-size: 0.93rem; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 460px; }
  .cards-3, .dims, .phases { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .timeline-steps { grid-template-columns: 1fr; }
  .maturity-scale { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-800);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cards-3, .cards-2, .dims, .phases, .deliverables, .split, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .maturity-scale { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 44px 24px; }
  .form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .timeline-band { padding: 28px 22px; }
  .hero-visual { padding: 22px; }
  .hero-stats { gap: 8px; }
  .hero-stat b { font-size: 1.25rem; }
  .hero-stat span { font-size: 0.68rem; }
}
