
  :root {
    --bg: #0a0a0b;
    --bg2: #111112;
    --surface: #1a1a1b;
    --border: rgba(255,255,255,0.08);
    --accent: #8e0707;
    --accent2: #b01010;
    --accent-light: #c41414;
    --gray: #7d7d7d;
    --gray-light: #9a9a9a;
    --text: #e8e8e8;
    --muted: #7d7d7d;
    --white: #ffffff;
    --card-bg: rgba(26,26,27,0.9);
    --glow: rgba(142,7,7,0.18);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
  }

  h1, h2, h3, h4, .logo { font-family: 'Montserrat', sans-serif; }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 12px 5%;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(10,10,11,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
  }
  .logo img { height: 50px; width: auto; display: block; }
  .nav-links { display: flex; gap: 32px; list-style: none; }
  .nav-links a {
    color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--white); }
  .nav-cta {
    background: var(--accent); color: #fff;
    padding: 10px 22px; border-radius: 8px;
    font-weight: 700; font-family: 'Syne', sans-serif;
    font-size: 0.88rem; text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }
  .menu-btn { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 5% 80px;
    position: relative; overflow: hidden;
  }
  .hero-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(142,7,7,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(142,7,7,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
  }
  .hero-glow {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(142,7,7,0.14) 0%, transparent 70%);
    top: -200px; right: -200px;
    pointer-events: none;
  }
  .hero-glow2 {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125,125,125,0.06) 0%, transparent 70%);
    bottom: 0; left: 10%;
    pointer-events: none;
  }
  .hero-inner { position: relative; z-index: 2; max-width: 780px; }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(142,7,7,0.12);
    border: 1px solid rgba(142,7,7,0.4);
    padding: 6px 16px; border-radius: 100px;
    font-size: 0.82rem; font-weight: 500; color: #e05555;
    margin-bottom: 28px;
    animation: fadeUp 0.6s ease both;
  }
  .hero-badge::before {
    content: '';
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent-light);
    animation: pulse 2s infinite;
  }
  @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.4)} }
  h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 800; line-height: 1.05;
    letter-spacing: -0.03em; color: var(--white);
    animation: fadeUp 0.6s 0.1s ease both;
  }
  h1 em { font-style: normal; color: var(--accent); }
  .hero-sub {
    margin: 24px 0 40px;
    font-size: 1.1rem; color: var(--muted); max-width: 560px; line-height: 1.7;
    animation: fadeUp 0.6s 0.2s ease both;
  }
  .hero-actions {
    display: flex; gap: 16px; flex-wrap: wrap;
    animation: fadeUp 0.6s 0.3s ease both;
  }
  .btn-primary {
    background: var(--accent); color: #fff;
    padding: 14px 30px; border-radius: 10px;
    font-weight: 700; font-family: 'Syne', sans-serif; font-size: 0.95rem;
    text-decoration: none; transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(142,7,7,0.4); }
  .btn-secondary {
    background: transparent; color: var(--text);
    padding: 14px 30px; border-radius: 10px;
    font-weight: 500; font-size: 0.95rem; text-decoration: none;
    border: 1px solid var(--border); transition: all 0.2s;
  }
  .btn-secondary:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

  .hero-stats {
    display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap;
    animation: fadeUp 0.6s 0.4s ease both;
  }
  .stat-num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--white); }
  .stat-num span { color: #e05555; }
  .stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── SECTIONS ── */
  section { padding: 100px 5%; }
  .section-tag {
    display: inline-block;
    color: #e05555; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 14px;
  }
  .section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
    font-weight: 800; color: var(--white);
    letter-spacing: -0.02em; line-height: 1.15;
    max-width: 600px; margin-bottom: 16px;
  }
  .section-sub { color: var(--muted); max-width: 520px; font-size: 1rem; line-height: 1.7; }

  /* ── INDUSTRIES ── */
  #industrias { background: var(--bg2); }
  .industry-strip {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px;
  }
  .industry-pill {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border);
    padding: 10px 20px; border-radius: 100px;
    font-size: 0.88rem; font-weight: 500; color: var(--text);
    transition: all 0.2s;
  }
  .industry-pill:hover { border-color: var(--accent); color: #e05555; }
  .industry-pill .icon { font-size: 1.2rem; }

  /* ── PRODUCTS GRID ── */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px; margin-top: 56px;
  }
  .product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px; padding: 32px;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
    backdrop-filter: blur(10px);
  }
  .product-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gray));
    opacity: 0; transition: opacity 0.3s;
  }
  .product-card:hover { border-color: rgba(142,7,7,0.3); transform: translateY(-4px); }
  .product-card:hover::before { opacity: 1; }
  .card-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(142,7,7,0.1);
    border: 1px solid rgba(142,7,7,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 22px;
  }
  .card-category {
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: #e05555; margin-bottom: 10px;
  }
  .card-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem; font-weight: 700; color: var(--white);
    margin-bottom: 12px; line-height: 1.3;
  }
  .card-desc {
    color: var(--muted); font-size: 0.9rem; line-height: 1.65;
    flex: 1; margin-bottom: 28px;
  }
  .card-features { list-style: none; margin-bottom: 28px; }
  .card-features li {
    font-size: 0.85rem; color: var(--muted); padding: 5px 0;
    display: flex; align-items: flex-start; gap: 8px;
  }
  .card-features li::before {
    content: '✓'; color: var(--accent-light); font-weight: 700; flex-shrink: 0; margin-top: 1px;
  }
  .btn-cotizar {
    background: transparent;
    border: 1px solid var(--accent);
    color: #e05555;
    padding: 11px 22px; border-radius: 9px;
    font-weight: 600; font-family: 'Syne', sans-serif; font-size: 0.88rem;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 8px; justify-content: center;
    width: 100%;
  }
  .btn-cotizar:hover {
    background: var(--accent); color: #fff;
    box-shadow: 0 6px 24px rgba(142,7,7,0.35);
  }

  /* ── SOFTWARE SECTION ── */
  #software { background: var(--bg2); }
  .software-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px;
  }
  .software-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px; padding: 40px;
    position: relative; overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
  }
  .software-card:hover { border-color: rgba(142,7,7,0.3); transform: translateY(-3px); }
  .software-card.featured {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    background: linear-gradient(135deg, rgba(142,7,7,0.07) 0%, var(--card-bg) 60%);
    border-color: rgba(142,7,7,0.2);
  }
  .software-badge {
    display: inline-block;
    background: var(--accent); color: #fff;
    font-size: 0.72rem; font-weight: 700; padding: 3px 10px;
    border-radius: 100px; margin-bottom: 18px;
    font-family: 'Syne', sans-serif;
  }

  /* ── PROCESS ── */
  #proceso { background: var(--bg); }
  .process-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    margin-top: 64px; position: relative;
  }
  .process-steps::before {
    content: '';
    position: absolute; top: 28px; left: 12%; right: 12%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    z-index: 0;
  }
  .step {
    text-align: center; padding: 0 20px; position: relative; z-index: 1;
  }
  .step-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--bg2); border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: #e05555;
    margin: 0 auto 24px;
  }
  .step-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
  .step-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

  /* ── CTA BANNER ── */
  #cta {
    background: linear-gradient(135deg, rgba(142,7,7,0.07) 0%, rgba(125,125,125,0.04) 100%);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    text-align: center; padding: 100px 5%;
  }
  #cta .section-title { max-width: 700px; margin: 0 auto 16px; }
  #cta .section-sub { max-width: 560px; margin: 0 auto 40px; }
  #cta .hero-actions { justify-content: center; }

  /* ── FOOTER ── */
  footer {
    background: var(--bg2); padding: 60px 5% 30px;
    border-top: 1px solid var(--border);
  }
  .footer-inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 40px; margin-bottom: 48px;
  }
  .footer-desc { max-width: 320px; font-size: 0.9rem; color: var(--muted); margin-top: 12px; line-height: 1.6; }
  .footer-col h4 { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); margin-bottom: 18px; font-size: 0.95rem; }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 10px; }
  .footer-col a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
  .footer-col a:hover { color: var(--accent); }
  .footer-bottom {
    border-top: 1px solid var(--border); padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  }
  .footer-bottom p { font-size: 0.82rem; color: var(--muted); }

  /* ── MODAL ── */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(7,8,12,0.88);
    backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
  }
  .modal-overlay.open { display: flex; animation: fadeIn 0.25s ease; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  .modal {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 48px;
    max-width: 480px; width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
  }
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .modal-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: var(--muted);
    font-size: 1.4rem; cursor: pointer; transition: color 0.2s;
  }
  .modal-close:hover { color: var(--white); }
  .modal-title { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
  .modal-product-name {
    color: #e05555; font-size: 0.88rem; font-weight: 500; margin-bottom: 28px;
  }
  .form-group { margin-bottom: 18px; }
  .form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
  .form-group input {
    width: 100%; background: var(--surface);
    border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 16px; color: var(--text); font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif; transition: border-color 0.2s;
  }
  .form-group input:focus { outline: none; border-color: var(--accent); }  .form-group input::placeholder { color: var(--muted); opacity: 0.6; }
  .modal-actions { display: flex; gap: 12px; margin-top: 28px; }
  .btn-email {
    flex: 1; padding: 13px; border-radius: 10px; font-weight: 700;
    font-family: 'Syne', sans-serif; font-size: 0.88rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: none; transition: all 0.2s;
  }
  .btn-email-main { background: var(--accent); color: #000; }
  .btn-email-main:hover { opacity: 0.88; transform: translateY(-1px); }
  .btn-whatsapp { background: #25d366; color: #fff; }
  .btn-whatsapp:hover { opacity: 0.88; transform: translateY(-1px); }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    .software-grid { grid-template-columns: 1fr; }
    .software-card.featured { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
    .process-steps::before { display: none; }
    .nav-links, .nav-cta { display: none; }
    .menu-btn { display: block; }
  }
  @media (max-width: 600px) {
    nav { padding: 16px 5%; }
    h1 { font-size: 2.4rem; }
    .hero-stats { gap: 28px; }
    .process-steps { grid-template-columns: 1fr; }
    .modal { padding: 32px 24px; }
    .modal-actions { flex-direction: column; }
    .footer-inner { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
  }
