:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --surface: #101e31;
  --surface-2: #15263c;
  --line: rgba(255,255,255,.10);
  --text: #f4f7fb;
  --muted: #9cb0c7;
  --accent: #12c7a1;
  --accent-2: #2ae3bd;
  --shadow: 0 24px 70px rgba(0,0,0,.30);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 110px 0; }
h1,h2,h3 { font-family: "Space Grotesk", Inter, sans-serif; margin-top: 0; line-height: 1.1; }
h1 { font-size: clamp(3rem, 7vw, 6.3rem); letter-spacing: -.055em; margin-bottom: 28px; }
h2 { font-size: clamp(2.15rem, 4.5vw, 4rem); letter-spacing: -.04em; margin-bottom: 24px; }
h3 { font-size: 1.25rem; }
p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(7,17,31,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(42,227,189,.5);
  box-shadow: inset 0 0 18px rgba(18,199,161,.2), 0 0 25px rgba(18,199,161,.15);
}
.brand-x { color: var(--accent-2); font-family: "Space Grotesk"; font-weight: 700; font-size: 1.15rem; }
.brand-name { letter-spacing: .16em; font-size: .92rem; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: #c5d1de; font-size: .92rem; font-weight: 600; }
.main-nav a:hover { color: white; }
.nav-cta { padding: 11px 17px; border: 1px solid var(--line); border-radius: 999px; }
.menu-toggle { display:none; border:0; background:none; padding:8px; }
.menu-toggle span { display:block; width:24px; height:2px; background:white; margin:5px; }

.hero {
  min-height: 920px;
  padding: 190px 0 110px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-grid {
  position:absolute; inset:0; opacity:.12;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}
.hero-glow { position:absolute; border-radius:50%; filter: blur(120px); opacity:.25; }
.hero-glow-one { width:420px; height:420px; background:#12c7a1; right:-80px; top:100px; }
.hero-glow-two { width:300px; height:300px; background:#2563eb; left:-100px; bottom:40px; }
.hero-layout { display:grid; grid-template-columns: 1.18fr .82fr; gap: 60px; align-items:center; position:relative; }
.hero h1 span { color: var(--accent-2); }
.hero-copy > p { max-width:760px; font-size:1.2rem; }
.hero-actions { display:flex; gap:14px; margin:38px 0 48px; flex-wrap:wrap; }
.btn {
  display:inline-flex; min-height:52px; align-items:center; justify-content:center;
  padding:0 24px; border-radius:999px; font-weight:800; transition:.25s;
}
.btn-primary { background:var(--accent); color:#03130f; box-shadow:0 14px 35px rgba(18,199,161,.2); }
.btn-primary:hover { transform:translateY(-2px); background:var(--accent-2); }
.btn-secondary { border:1px solid var(--line); color:white; background:rgba(255,255,255,.02); }
.btn-secondary:hover { border-color:rgba(255,255,255,.3); }
.hero-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; max-width:720px; }
.hero-metrics div { border-left:1px solid var(--line); padding-left:16px; }
.hero-metrics strong { display:block; font-size:1.05rem; color:white; }
.hero-metrics span { color:var(--muted); font-size:.8rem; }

.hero-visual { position:relative; min-height:520px; display:grid; place-items:center; }
.radar {
  width:min(430px, 90vw); aspect-ratio:1; border-radius:50%;
  position:relative; overflow:hidden;
  background:radial-gradient(circle, rgba(18,199,161,.16), rgba(18,199,161,.02) 58%, transparent 60%);
  border:1px solid rgba(42,227,189,.25);
  box-shadow:0 0 80px rgba(18,199,161,.12), inset 0 0 80px rgba(18,199,161,.06);
}
.radar::before,.radar::after { content:""; position:absolute; background:rgba(42,227,189,.15); }
.radar::before { width:1px; top:0; bottom:0; left:50%; }
.radar::after { height:1px; left:0; right:0; top:50%; }
.radar-ring { position:absolute; border:1px solid rgba(42,227,189,.18); border-radius:50%; inset:12%; }
.ring-2 { inset:28%; }.ring-3 { inset:42%; }
.radar-sweep {
  position:absolute; inset:0; border-radius:50%;
  background:conic-gradient(from 35deg, transparent 0 79%, rgba(42,227,189,.28) 90%, transparent 100%);
  animation:sweep 5s linear infinite;
}
@keyframes sweep { to { transform:rotate(360deg); } }
.radar-center {
  position:absolute; width:76px; height:76px; border-radius:50%; inset:50% auto auto 50%; transform:translate(-50%,-50%);
  display:grid; place-items:center; background:#0b1728; border:1px solid rgba(42,227,189,.5);
  box-shadow:0 0 40px rgba(18,199,161,.35);
}
.radar-center span { color:var(--accent-2); font-size:1.8rem; font-weight:800; }
.signal { position:absolute; width:11px; height:11px; border-radius:50%; background:var(--accent-2); box-shadow:0 0 18px var(--accent); }
.signal-1 { top:22%; left:60%; }.signal-2 { top:62%; left:73%; }.signal-3 { top:73%; left:29%; }.signal-4 { top:34%; left:24%; }
.float-card {
  position:absolute; padding:15px 17px; border-radius:16px; display:flex; align-items:center; gap:12px;
  background:rgba(16,30,49,.88); border:1px solid var(--line); box-shadow:var(--shadow); backdrop-filter:blur(12px);
}
.float-card small { display:block; color:var(--muted); font-size:.72rem; }
.float-card strong { font-size:.95rem; }
.card-top { right:-10px; top:15%; }.card-bottom { left:0; bottom:13%; }
.status-dot { width:10px; height:10px; border-radius:50%; background:var(--accent); box-shadow:0 0 12px var(--accent); }
.mini-chart { color:var(--accent-2); letter-spacing:2px; }

.split { display:grid; grid-template-columns:1fr 1fr; gap:80px; }
.section-copy p:first-child { font-size:1.35rem; color:#dce5ee; }
.tag-row { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.tag-row span { padding:8px 13px; border-radius:999px; background:rgba(255,255,255,.04); border:1px solid var(--line); font-size:.82rem; }

.services { background:var(--bg-soft); }
.centered { text-align:center; max-width:780px; margin:0 auto 56px; }
.centered .eyebrow::before { display:none; }
.cards-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.service-card {
  padding:34px; border-radius:var(--radius); background:linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border:1px solid var(--line); transition:.3s;
}
.service-card:hover { transform:translateY(-6px); border-color:rgba(42,227,189,.35); }
.icon { width:48px; height:48px; border-radius:14px; display:grid; place-items:center; background:rgba(18,199,161,.1); color:var(--accent-2); font-size:1.4rem; margin-bottom:26px; }
.service-card ul { list-style:none; padding:0; margin:24px 0 0; }
.service-card li { color:#cbd7e3; margin:8px 0; font-size:.92rem; }
.service-card li::before { content:"—"; color:var(--accent); margin-right:9px; }

.mining-layout { display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; }
.feature-list { margin-top:32px; }
.feature-list div { display:flex; align-items:center; gap:16px; padding:14px 0; border-bottom:1px solid var(--line); }
.feature-list span { color:var(--accent-2); font-weight:800; font-size:.8rem; }
.feature-list p { margin:0; color:#d9e3ec; }
.mine-panel { background:var(--surface); border:1px solid var(--line); border-radius:28px; overflow:hidden; box-shadow:var(--shadow); }
.panel-header,.panel-stats { display:flex; justify-content:space-between; align-items:center; padding:18px 22px; }
.panel-header { border-bottom:1px solid var(--line); }
.live { color:var(--accent-2); font-size:.72rem; font-weight:800; }
.tunnel-map { height:360px; position:relative; overflow:hidden; background:linear-gradient(135deg,#0b1728,#0a1422); }
.tunnel { position:absolute; height:32px; border:1px solid rgba(42,227,189,.16); background:rgba(42,227,189,.04); border-radius:99px; }
.tunnel-a { width:65%; left:7%; top:18%; transform:rotate(10deg); }
.tunnel-b { width:72%; left:18%; top:48%; transform:rotate(-11deg); }
.tunnel-c { width:48%; left:11%; top:74%; transform:rotate(4deg); }
.worker,.gateway { position:absolute; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font-size:.72rem; font-weight:800; }
.worker { background:var(--accent); color:#03130f; box-shadow:0 0 18px rgba(18,199,161,.45); }
.w1 { left:28%; top:22%; }.w2 { left:62%; top:48%; }.w3 { left:35%; top:73%; }
.gateway { right:12%; top:18%; width:40px; height:40px; background:#1d4ed8; color:white; }
.panel-stats { border-top:1px solid var(--line); }
.panel-stats div { flex:1; text-align:center; }
.panel-stats small { display:block; color:var(--muted); }.panel-stats strong { font-size:1.25rem; }

.industries { background:var(--bg-soft); }
.industry-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.industry { min-height:140px; padding:24px; border:1px solid var(--line); border-radius:20px; display:flex; align-items:flex-end; justify-content:space-between; background:rgba(255,255,255,.025); }
.industry strong { font-size:1.15rem; }.industry span { color:var(--accent-2); font-size:.76rem; }

.timeline { display:grid; grid-template-columns:repeat(5,1fr); gap:18px; margin-top:50px; }
.step { position:relative; padding-top:26px; border-top:1px solid var(--line); }
.step > span { color:var(--accent-2); font-weight:800; font-size:.8rem; }
.step h3 { margin:18px 0 10px; }.step p { font-size:.9rem; }

.values { background:linear-gradient(180deg,var(--bg-soft),var(--bg)); }
.values-layout { display:grid; grid-template-columns:.9fr 1.1fr; gap:70px; }
.value-cards { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.value-cards article { padding:24px; background:rgba(255,255,255,.03); border:1px solid var(--line); border-radius:18px; }
.value-cards p { font-size:.9rem; margin-bottom:0; }

.contact-box {
  padding:54px; border-radius:30px; background:linear-gradient(135deg,rgba(18,199,161,.14),rgba(37,99,235,.1));
  border:1px solid rgba(42,227,189,.2); display:flex; align-items:center; justify-content:space-between; gap:40px;
}
.contact-box h2 { max-width:760px; margin-bottom:16px; }
.contact-actions { display:flex; flex-direction:column; align-items:flex-start; gap:18px; min-width:max-content; }
.text-link { color:#d9e7f2; font-weight:700; }

footer { border-top:1px solid var(--line); padding:30px 0; }
.footer-wrap { display:flex; align-items:center; justify-content:space-between; gap:30px; }
.footer-wrap p { font-size:.8rem; margin:0; }
.footer-brand .brand-mark { width:32px; height:32px; }

.reveal { opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 960px) {
  .main-nav { position:absolute; top:78px; left:20px; right:20px; display:none; flex-direction:column; align-items:stretch; padding:22px; background:#0c192a; border:1px solid var(--line); border-radius:18px; }
  .main-nav.open { display:flex; }
  .menu-toggle { display:block; }
  .hero { padding-top:150px; }
  .hero-layout,.split,.mining-layout,.values-layout { grid-template-columns:1fr; }
  .hero-visual { min-height:470px; }
  .cards-grid { grid-template-columns:1fr; }
  .industry-grid { grid-template-columns:repeat(2,1fr); }
  .timeline { grid-template-columns:repeat(2,1fr); }
  .contact-box { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 620px) {
  .container { width:min(100% - 28px,1160px); }
  .section { padding:80px 0; }
  .hero { min-height:auto; padding-bottom:80px; }
  h1 { font-size:clamp(2.65rem,14vw,4.3rem); }
  .hero-metrics { grid-template-columns:1fr; }
  .hero-visual { min-height:380px; }
  .radar { width:330px; }
  .card-top { right:0; }.card-bottom { left:0; }
  .industry-grid,.value-cards,.timeline { grid-template-columns:1fr; }
  .contact-box { padding:30px 24px; }
  .contact-actions { min-width:0; width:100%; }
  .contact-actions .btn { width:100%; font-size:.88rem; }
  .footer-wrap { flex-direction:column; align-items:flex-start; }
}

.brand-logo img {
  display: block;
  width: 245px;
  height: auto;
  max-height: 58px;
}
.footer-brand img {
  width: 210px;
  max-height: 54px;
}
@media (max-width: 620px) {
  .brand-logo img { width: 190px; }
  .footer-brand img { width: 190px; }
}

/* Logo oficial Xtrace */
.brand-logo {
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.brand-logo img {
  display: block;
  width: 232px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}
.footer-brand {
  padding: 8px 12px;
}
.footer-brand img {
  width: 210px;
  max-height: 60px;
}
@media (max-width: 620px) {
  .brand-logo img { width: 178px; max-height: 50px; }
  .footer-brand img { width: 180px; }
}

/* Corrección logo oficial: fondo completamente transparente */
.brand-logo,
.footer-brand {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.brand-logo img,
.footer-brand img {
  display: block;
  width: 245px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  background: transparent !important;
  filter: none !important;
}
.footer-brand img {
  width: 220px;
}
@media (max-width: 620px) {
  .brand-logo img { width: 188px; max-height: 54px; }
  .footer-brand img { width: 188px; }
}

/* Presentación profesional del logo oficial */
.site-header {
  background: rgba(255,255,255,.97) !important;
  border-bottom: 1px solid rgba(7,17,31,.10) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}
.main-nav a { color: #172531 !important; }
.main-nav a:hover { color: #ff4b00 !important; }
.nav-cta { border-color: rgba(7,17,31,.16) !important; }
.menu-toggle span { background: #172531 !important; }

.brand-logo,
.footer-brand {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.brand-logo img {
  display: block;
  width: 205px !important;
  height: auto !important;
  max-height: 62px !important;
  object-fit: contain !important;
}
footer {
  background: #fff !important;
  border-top: 1px solid rgba(7,17,31,.10) !important;
}
.footer-wrap p { color: #536474 !important; }
.footer-brand img {
  width: 195px !important;
  max-height: 60px !important;
}
@media (max-width: 960px) {
  .main-nav {
    background: rgba(255,255,255,.99) !important;
    border-color: rgba(7,17,31,.12) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
  }
}
@media (max-width: 620px) {
  .brand-logo img { width: 158px !important; max-height: 50px !important; }
  .footer-brand img { width: 170px !important; }
}

/* Productos Xtrace */
.products {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,75,0,.08), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(18,199,161,.09), transparent 30%),
    var(--bg);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  padding: 34px;
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
  transition: transform .3s ease, border-color .3s ease;
}
.product-card:hover {
  transform: translateY(-7px);
}
.emergency-product:hover {
  border-color: rgba(255,75,0,.38);
}
.xignal-product:hover {
  border-color: rgba(42,227,189,.38);
}
.product-card::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  filter: blur(75px);
  opacity: .13;
  right: -85px;
  bottom: -85px;
  pointer-events: none;
}
.emergency-product::after {
  background: #ff4b00;
}
.xignal-product::after {
  background: #12c7a1;
}
.product-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.product-label {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #dce6ef;
}
.product-code {
  font-family: "Space Grotesk", sans-serif;
  font-size: .84rem;
  font-weight: 800;
  color: var(--muted);
}
.product-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 20px;
  font-size: 2rem;
  font-weight: 800;
}
.emergency-icon {
  color: #ff6a20;
  background: rgba(255,75,0,.10);
  border: 1px solid rgba(255,75,0,.18);
}
.xignal-icon {
  color: var(--accent-2);
  background: rgba(18,199,161,.10);
  border: 1px solid rgba(18,199,161,.18);
}
.product-card h3 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin-bottom: 18px;
}
.product-lead {
  color: #e1e9f1;
  font-size: 1.12rem;
  font-weight: 600;
}
.product-features {
  list-style: none;
  padding: 0;
  margin: 28px 0 34px;
}
.product-features li {
  position: relative;
  padding: 11px 0 11px 25px;
  color: #cad6e2;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(18,199,161,.45);
}
.emergency-product .product-features li::before {
  background: #ff5a00;
  box-shadow: 0 0 12px rgba(255,90,0,.45);
}
.product-footer {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #dce6ef;
  font-size: .86rem;
  font-weight: 700;
}
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    min-height: auto;
    padding-bottom: 100px;
  }
}
@media (max-width: 620px) {
  .product-card {
    padding: 26px 22px 95px;
  }
  .product-footer {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }
}
