:root {
  --industrial-blue: #0f172a;
  --industrial-gray: #334155;
  --accent-blue: #118C7D;
  --surface: #f8fafc;
  --white: #ffffff;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--surface);
  color: var(--industrial-blue);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Typography */
h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 2rem; }
h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
p { color: var(--slate-600); }

.accent-blue { color: var(--accent-blue); }

.mono-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  gap: 0.75rem;
}

.btn-primary { background-color: var(--industrial-blue); color: var(--white); }
.btn-primary:hover { background-color: #1e293b; }

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--slate-300);
  color: var(--industrial-blue);
}

.btn-outline:hover { background-color: var(--slate-100); }

.btn-large { padding: 1rem 2rem; }
.btn-full { width: 100%; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 5rem;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo { display: flex; align-items: center; gap: 0.5rem; }

.logo-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--industrial-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;
}

.logo-icon.white { background-color: var(--white); color: var(--industrial-blue); }

.logo-text { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.05em; }

.nav-links { display: flex; gap: 2.5rem; }

.nav-links a {
  text-decoration: none;
  color: var(--slate-600);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent-blue); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--industrial-blue);
}

.btn-mobile { display: none; }

/* (lo tenías, lo dejo) */
.nav-actions{
  display:flex;
  align-items:center;
  gap: .75rem;
}

/* Hero */
.hero { padding: 10rem 0 6rem; }

.grid-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}

.hero-content p { font-size: 1.125rem; max-width: 36rem; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; }
.hero-visual { position: relative; }

/* Fix hero image height to match old mock-screen */
.visual-container { padding: 1rem; }

.visual-container img {
  width: 100%;
  height: 315px;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

@media (max-width: 768px) {
  .visual-container img { height: 220px; }
}

.glass-card {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--slate-200);
}

.mock-screen {
  background-color: #0f172a;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.mock-header {
  height: 2rem;
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem;
  align-items: center;
}

.mock-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.mock-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.icon-muted { color: rgba(255, 255, 255, 0.1); }

.stat-card {
  position: absolute;
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--slate-200);
}

.stat-left { bottom: -1.5rem; left: -1.5rem; }
.stat-right { top: -1.5rem; right: -1.5rem; }

.stat-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  margin-bottom: 0.25rem;
}

.stat-value { font-size: 1.5rem; font-weight: 700; }

/* Sections */
.section-header { text-align: center; margin-bottom: 5rem; }

.section-header p {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* Process */
.process { padding: 8rem 0; background-color: var(--white); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  position: relative;
}

.process-line {
  position: absolute;
  top: 50%; left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--slate-100);
  transform: translateY(-50%);
  z-index: 1;
}

.process-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  position: relative;
  z-index: 2;
  transition: transform 0.3s, box-shadow 0.3s;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Segunda grilla de cards (mismo diseño, solo separada) */
.process-grid-2{
  margin-top: 2rem;
}

/* (IMPORTANTE) este bloque estaba abierto/mal cerrado y rompía todo */
@media (max-width: 1024px){
  .process-grid-2{
    margin-top: 1.5rem;
  }
} /* <- cierre correcto */

.process-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--surface);
  border: 1px solid var(--slate-100);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
}

.process-card p { font-size: 0.875rem; }

/* Features */
.features { padding: 8rem 0; background-color: var(--surface); }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.features-content h2 { font-size: 3rem; }

.features-content p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-item { display: flex; align-items: flex-start; gap: 0.75rem; }

.feature-item svg{
  width: 20px;
  height: 20px;
  min-width: 20px;
}

.feature-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
}

.features-technical {
  background-color: var(--industrial-blue);
  padding: 2.5rem;
  border-radius: 1rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.tech-stack { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }

.tech-item {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
}

.tech-item p:last-child {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Traceability */
.traceability {
  padding: 8rem 0;
  background-color: var(--white);
  border-top: 1px solid var(--slate-100);
}

.traceability-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}

.abstract-trace-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  background-color: var(--surface);
  border-radius: 2rem;
  border: 1px solid var(--slate-200);
}

.trace-node { display: flex; flex-direction: column; align-items: center; gap: 1rem; z-index: 2; }

.node-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.node-icon.active {
  background-color: var(--industrial-blue);
  color: var(--white);
  border-color: var(--industrial-blue);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
}

.node-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
}

.trace-connector { flex: 1; height: 2px; position: relative; min-width: 3rem; }

.connector-line {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--slate-200);
}

.connector-pulse {
  position: absolute;
  top: 0; left: 0;
  width: 20%;
  height: 100%;
  background-color: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
  animation: flow 2s infinite linear;
}

@keyframes flow { 0% { left: -20%; } 100% { left: 120%; } }

@media (max-width: 1024px) {
  .traceability-grid { grid-template-columns: 1fr; text-align: center; }
  .abstract-trace-visual { max-width: 500px; margin: 0 auto; }
  .trace-step { text-align: left; }
}

/* Contact */
.contact { padding: 8rem 0; background-color: var(--white); }
.contact-container { max-width: 48rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.full-width { grid-column: span 2; }

label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
}

input, textarea {
  padding: 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, textarea:focus { border-color: var(--accent-blue); }

textarea { height: 8rem; resize: vertical; }

/* Footer */
.footer { background-color: var(--industrial-blue); color: var(--white); padding: 4rem 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 0.875rem;
  max-width: 24rem;
  margin-top: 1.5rem;
}

.footer-nav h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 1rem; }

.footer-nav a {
  color: var(--slate-300);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--slate-500);
}

.footer-meta { display: flex; gap: 1.5rem; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-line { display: none; }

  .hero-grid, .features-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content p, .hero-btns, .features-content p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .features-list { justify-items: center; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 5rem; left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 2rem;
    flex-direction: column;
    border-bottom: 1px solid var(--slate-200);
  }

  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .btn-desktop { display: none; }
  .btn-mobile { display: inline-flex; }

  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }
}

/* =========================
   FIX CONTACTO (FORZADO)
   (afuera de @media)
   ========================= */

#contacto .contact-methods{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
  margin-top: 3rem !important;
}

#contacto a.contact-card{
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  padding: 2rem !important;
  border-radius: 1rem !important;
  background: var(--surface) !important;
  border: 1px solid var(--slate-200) !important;
  text-decoration: none !important;
  color: var(--industrial-blue) !important;
  transition: transform .2s, box-shadow .2s, border-color .2s !important;
}

#contacto a.contact-card:hover{
  transform: translateY(-2px) !important;
  border-color: var(--accent-blue) !important;
  box-shadow: 0 14px 30px -18px rgba(0,0,0,.25) !important;
}

#contacto .contact-icon{
  width: 4rem !important;
  height: 4rem !important;
  border-radius: 1rem !important;
  background: var(--slate-100) !important;
  border: 1px solid var(--slate-200) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--accent-blue) !important;
  flex: 0 0 auto !important;
}

#contacto .contact-info .mono-label{
  color: var(--slate-500) !important;
  margin: 0 !important;
}

#contacto .contact-value{
  display: inline-block !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: var(--industrial-blue) !important;
  margin-top: .25rem !important;
}

@media (max-width: 768px){
  #contacto .contact-methods{
    grid-template-columns: 1fr !important;
  }
}