/* Aquiles Arreglo — hoja de estilos compartida
   Paleta: cobre (minería de Antofagasta) + turquesa "diagnóstico" sobre grafito/blanco.
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --copper: #B5622B;
  --copper-light: #D98A54;
  --teal: #2FA6A0;
  --teal-light: #5CC9C3;

  --bg: #F1F3F1;
  --surface: #FFFFFF;
  --surface-2: #E6EAE7;
  --text: #14181C;
  --text-muted: #5B6570;
  --border: rgba(20,24,28,0.10);
  --shadow: rgba(20,24,28,0.08);
  --scan-opacity: 0.05;

  --radius: 10px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

html[data-theme="dark"]{
  --bg: #12151A;
  --surface: #1B2027;
  --surface-2: #232A33;
  --text: #E7EAE7;
  --text-muted: #9AA3AD;
  --border: rgba(231,234,231,0.09);
  --shadow: rgba(0,0,0,0.35);
  --scan-opacity: 0.09;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  transition: background .3s ease, color .3s ease;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; letter-spacing:-0.01em; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
.container{ max-width:1120px; margin:0 auto; padding:0 24px; }
.mono{ font-family: var(--font-mono); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior:auto !important; }
}

/* ---------- Eyebrow / status pill ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size:12.5px; letter-spacing:.06em; text-transform:uppercase;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  border:1px solid color-mix(in srgb, var(--teal) 30%, transparent);
  padding:6px 12px; border-radius:100px;
}
.eyebrow .dot{
  width:7px; height:7px; border-radius:50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(47,166,160,.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(47,166,160,.55); }
  70%{ box-shadow: 0 0 0 8px rgba(47,166,160,0); }
  100%{ box-shadow: 0 0 0 0 rgba(47,166,160,0); }
}

/* ---------- Header ---------- */
header.site{
  position: sticky; top:0; z-index:50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0;
}
.brand{ display:flex; align-items:center; gap:10px; font-family: var(--font-display); font-weight:700; font-size:19px; }
.brand-mark{ width:32px; height:32px; flex:none; object-fit:contain; }
.nav-links{ display:flex; gap:28px; font-size:14.5px; font-weight:500; }
.nav-links a{ color: var(--text-muted); transition: color .2s; }
.nav-links a:hover{ color: var(--text); }
.nav-actions{ display:flex; align-items:center; gap:12px; }

.theme-toggle{
  width:40px; height:40px; border-radius:50%;
  border:1px solid var(--border); background: var(--surface);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  color: var(--text);
}
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .sun{ display:none; }
html[data-theme="dark"] .theme-toggle .moon{ display:none; }
html[data-theme="dark"] .theme-toggle .sun{ display:block; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-body); font-weight:600; font-size:14.5px;
  padding:11px 20px; border-radius:8px; border:1px solid transparent; cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--copper); color:#fff; }
.btn-primary:hover{ background: var(--copper-light); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--copper) 70%, transparent); }
.btn-ghost{ background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover{ border-color: var(--teal); color: var(--teal); }
.btn-sm{ padding:8px 14px; font-size:13.5px; }

/* ---------- Hero ---------- */
.hero{ position:relative; overflow:hidden; padding:120px 0 84px; min-height:640px; display:flex; align-items:center; }
.hero-bg{
  position:absolute; inset:0; z-index:0;
  background-image: linear-gradient(180deg, rgba(10,12,15,.88) 0%, rgba(10,12,15,.72) 40%, var(--bg) 96%), url('https://images.pexels.com/photos/2182863/pexels-photo-2182863.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover; background-position: center 35%;
  transform: scale(1.06); will-change: transform;
}
html[data-theme="light"] .hero-bg{
  background-image: linear-gradient(180deg, rgba(241,243,241,.94) 0%, rgba(241,243,241,.86) 45%, var(--bg) 96%), url('https://images.pexels.com/photos/2182863/pexels-photo-2182863.jpeg?auto=compress&cs=tinysrgb&w=1920');
}
.hero-glow{
  position:absolute; z-index:1; border-radius:50%; filter:blur(70px); pointer-events:none;
}
.hero-glow.copper{ width:340px; height:340px; background: color-mix(in srgb, var(--copper) 40%, transparent); top:-80px; right:8%; animation: floaty 9s ease-in-out infinite; }
.hero-glow.teal{ width:280px; height:280px; background: color-mix(in srgb, var(--teal) 35%, transparent); bottom:-60px; left:2%; animation: floaty 11s ease-in-out infinite reverse; }
@keyframes floaty{ 0%,100%{ transform: translateY(0px); } 50%{ transform: translateY(-24px); } }
.hero-grid{ position:relative; z-index:2; display:grid; grid-template-columns: 1.1fr .9fr; gap:56px; align-items:center; }
.hero h1{ font-size:clamp(34px,4.6vw,56px); line-height:1.06; margin:18px 0 20px; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero h1 .accent{ color: var(--copper-light); }
.hero p.lead{ font-size:17.5px; color: var(--text-muted); max-width:520px; margin-bottom:28px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:36px; }

.trace-wrap{ position:relative; aspect-ratio: 1/1; max-width:420px; margin-left:auto; }
.trace-wrap svg{ width:100%; height:100%; }
.trace-line{ fill:none; stroke: var(--copper); stroke-width:1.6; stroke-linecap:round; stroke-dasharray: 900; stroke-dashoffset:900; animation: draw 2.6s ease forwards .3s; }
.trace-line.alt{ stroke: var(--teal); animation-delay:.7s; }
@keyframes draw{ to{ stroke-dashoffset:0; } }
.trace-node{ fill: var(--surface); stroke: var(--border); stroke-width:1; }
.trace-node.pulse{ animation: nodepulse 2.4s ease-in-out infinite; }
@keyframes nodepulse{ 0%,100%{ opacity:.55; } 50%{ opacity:1; } }

.hero-stats{ display:flex; gap:26px; flex-wrap:wrap; }
.hero-stat{ font-family: var(--font-mono); }
.hero-stat b{ display:block; font-size:20px; color: var(--text); }
.hero-stat span{ font-size:12px; color: var(--text-muted); text-transform:uppercase; letter-spacing:.05em; }

/* ---------- Sections ---------- */
section{ padding:76px 0; }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head h2{ font-size:clamp(26px,3.2vw,36px); margin:14px 0 12px; }
.section-head p{ color: var(--text-muted); font-size:16px; }

.problems-grid, .services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.software-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-bottom:56px; }

.card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding:26px; position:relative; overflow:hidden; transition: border-color .2s, transform .2s;
}
.card:hover{ border-color: color-mix(in srgb, var(--teal) 45%, var(--border)); transform: translateY(-2px); }
.card::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(120deg, transparent 40%, color-mix(in srgb, var(--teal) var(--scan-opacity), transparent) 50%, transparent 60%);
  background-size:250% 250%; background-position: 120% 0; transition: background-position .8s ease;
}
.card:hover::after{ background-position: -20% 0; }
.card-icon{ width:38px; height:38px; margin-bottom:16px; color: var(--copper); }
.card h3{ font-size:17px; margin-bottom:8px; }
.card p{ color: var(--text-muted); font-size:14.5px; }
.card .tag{ display:inline-block; margin-top:14px; font-family: var(--font-mono); font-size:11.5px; color: var(--teal); background: color-mix(in srgb, var(--teal) 10%, transparent); padding:4px 10px; border-radius:6px; }

.card-list{ list-style:none; margin-top:14px; padding:0; }
.card-list li{ font-size:13.5px; color: var(--text-muted); padding-left:18px; position:relative; margin-top:6px; }
.card-list li::before{ content:"→"; position:absolute; left:0; color: var(--teal); }

.software-card h3{ font-size:15.5px; }
.software-card p{ font-size:13.5px; }

.why-item{ display:flex; gap:14px; }
.why-num{ font-family: var(--font-mono); color: var(--teal); font-size:13px; padding-top:3px; }
.why-item h4{ font-size:16px; margin-bottom:6px; }
.why-item p{ color: var(--text-muted); font-size:14px; }

.process{ display:grid; grid-template-columns:repeat(5,1fr); gap:0; position:relative; }
.process::before{
  content:""; position:absolute; top:17px; left:5%; right:5%; height:1px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}
.process-step{ position:relative; padding-right:14px; }
.process-num{
  width:36px; height:36px; border-radius:50%; background: var(--surface); border:1.5px solid var(--copper);
  color: var(--copper); font-family: var(--font-mono); font-size:14px; display:flex; align-items:center; justify-content:center;
  margin-bottom:16px; position:relative; z-index:1;
}
.process-step h4{ font-size:14.5px; margin-bottom:6px; }
.process-step p{ font-size:13px; color: var(--text-muted); }

.stats-strip{
  display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--border); border-radius: var(--radius);
  overflow:hidden; margin-top:56px;
}
.stat-box{ padding:24px; text-align:center; border-right:1px solid var(--border); }
.stat-box:last-child{ border-right:none; }
.stat-box b{ display:block; font-family:var(--font-display); font-size:28px; color: var(--copper); }
.stat-box span{ font-size:12.5px; color: var(--text-muted); text-transform:uppercase; letter-spacing:.04em; }

/* ---------- Photo gallery (en terreno) ---------- */
.gallery-grid{ display:grid; grid-template-columns:1.3fr 1fr; grid-template-rows:1fr 1fr; gap:16px; height:460px; }
.gallery-item{ position:relative; border-radius: var(--radius); overflow:hidden; border:1px solid var(--border); }
.gallery-item.big{ grid-row: span 2; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform .6s cubic-bezier(.2,.7,.2,1); filter:saturate(.92) contrast(1.03); }
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-caption{
  position:absolute; left:0; right:0; bottom:0; padding:18px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent);
  color:#fff; font-family: var(--font-mono); font-size:12.5px; letter-spacing:.03em;
}

/* ---------- Brand strip ---------- */
.brand-strip{ margin-top:20px; }
.brand-strip-label{ font-family: var(--font-mono); font-size:12px; text-transform:uppercase; letter-spacing:.08em; color: var(--text-muted); margin-bottom:16px; }
.brand-chips{ display:flex; flex-wrap:wrap; gap:10px; }
.brand-chip{
  font-family: var(--font-display); font-weight:600; font-size:14px;
  padding:9px 16px; border-radius:8px; border:1px solid var(--border); background: var(--surface); color: var(--text-muted);
  transition: color .2s, border-color .2s;
}
.brand-chip:hover{ color: var(--copper); border-color: color-mix(in srgb, var(--copper) 40%, var(--border)); }

/* ---------- Testimonials ---------- */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.testi-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:24px; }
.testi-stars{ color: var(--copper); font-size:14px; letter-spacing:2px; margin-bottom:12px; }
.testi-quote{ font-size:14.5px; color: var(--text); margin-bottom:18px; }
.testi-who{ display:flex; align-items:center; gap:10px; }
.testi-avatar{
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: color-mix(in srgb, var(--teal) 16%, var(--surface-2)); color: var(--teal); font-family: var(--font-mono); font-weight:600; font-size:13px; flex:none;
}
.testi-name{ font-size:13.5px; font-weight:600; }
.testi-role{ font-size:12px; color: var(--text-muted); }
.testi-note{ font-size:12.5px; color: var(--text-muted); margin-top:28px; font-style:italic; }

/* ---------- FAQ ---------- */
.faq-list{ border-top:1px solid var(--border); }
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:20px 4px; font-family: var(--font-body); font-weight:600; font-size:15.5px; color: var(--text);
}
.faq-q .icon{ flex:none; width:18px; height:18px; transition: transform .25s ease; color: var(--teal); }
.faq-item.open .faq-q .icon{ transform: rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .3s ease; }
.faq-a p{ padding:0 4px 20px; color: var(--text-muted); font-size:14.5px; max-width:640px; }

/* ---------- Contact ---------- */
.contact-wrap{ display:grid; grid-template-columns:.9fr 1.1fr; gap:40px; }
.contact-info-item{ display:flex; gap:14px; padding:18px 0; border-bottom:1px solid var(--border); }
.contact-info-item:first-child{ padding-top:0; }
.contact-icon{ width:22px; height:22px; color: var(--copper); flex:none; margin-top:2px; }
.contact-label{ font-size:12px; text-transform:uppercase; letter-spacing:.05em; color: var(--text-muted); margin-bottom:4px; }
.contact-value{ font-size:15.5px; font-weight:500; }
.contact-value.mono{ font-size:16px; }

form.quote{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:28px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field.full{ grid-column: 1/-1; }
.field label{ font-size:12.5px; color: var(--text-muted); }
.field input, .field select, .field textarea{
  background: var(--bg); border:1px solid var(--border); border-radius:7px; padding:11px 12px;
  color: var(--text); font-family: var(--font-body); font-size:14.5px; outline:none; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--teal); }
form.quote .btn{ width:100%; justify-content:center; margin-top:6px; }

/* ---------- Footer ---------- */
footer.site{ border-top:1px solid var(--border); padding:56px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:40px; }
.footer-brand p{ color: var(--text-muted); font-size:14px; margin-top:12px; max-width:280px; }
.footer-col h5{ font-size:13px; text-transform:uppercase; letter-spacing:.05em; color: var(--text-muted); margin-bottom:14px; }
.footer-col li{ margin-bottom:9px; font-size:14px; }
.footer-col a{ color: var(--text); transition:color .2s; }
.footer-col a:hover{ color: var(--teal); }
.footer-bottom{
  border-top:1px solid var(--border); padding-top:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:13px; color: var(--text-muted);
}
.footer-bottom a{ color: var(--text-muted); }
.footer-bottom a:hover{ color: var(--teal); }

/* WhatsApp floating button */
.wa-float{
  position:fixed; bottom:22px; right:22px; z-index:60;
  width:56px; height:56px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px -8px rgba(0,0,0,.35); transition: transform .2s;
}
.wa-float:hover{ transform: scale(1.06); }
.wa-float svg{ width:28px; height:28px; }

/* ---------- Legal pages ---------- */
.legal{ padding:64px 0 90px; }
.legal .container{ max-width:760px; }
.legal h1{ font-size:32px; margin-bottom:8px; }
.legal .updated{ font-family: var(--font-mono); font-size:13px; color: var(--text-muted); margin-bottom:36px; display:block; }
.legal h2{ font-size:19px; margin:32px 0 12px; }
.legal p, .legal li{ color: var(--text-muted); font-size:15px; margin-bottom:10px; }
.legal ul{ padding-left:20px; list-style:disc; }
.legal a.back{ color: var(--teal); font-size:14px; display:inline-flex; align-items:center; gap:6px; margin-bottom:32px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .nav-links{ display:none; }
  .hero-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr 1fr; height:340px; }
  .trace-wrap{ margin:0 auto; max-width:280px; }
  .problems-grid, .services-grid, .why-grid, .testi-grid{ grid-template-columns:1fr 1fr; }
  .software-grid{ grid-template-columns:1fr 1fr; }
  .process{ grid-template-columns:1fr 1fr; row-gap:28px; }
  .process::before{ display:none; }
  .stats-strip{ grid-template-columns:1fr 1fr; }
  .stat-box{ border-bottom:1px solid var(--border); }
  .contact-wrap{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .problems-grid, .services-grid, .why-grid, .testi-grid, .software-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr; height:auto; }
  .gallery-item{ height:220px; }
  .gallery-item.big{ grid-row:auto; height:260px; }
  .process{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
}
