:root {
  --bg: #0b0f14;
  --bg-elev: #0f141b;
  --primary: #0ea5ff;    /* azul acento */
  --primary-2: #5cc8ff;  /* azul claro para efectos */
  --text: #e6edf3;
  --muted: #a6b3c2;
  --card: #131a23;
  --border: #1e2937;
  --success: #22c55e;
  --danger: #ef4444;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.site-header {
  position: relative;
  background: linear-gradient(180deg, rgba(8,12,18,0.9), rgba(8,12,18,0.8)), radial-gradient(1200px 600px at 10% -20%, rgba(14,165,255,0.25), transparent 60%), radial-gradient(800px 400px at 90% -10%, rgba(92,200,255,0.2), transparent 60%);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 20px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.logo-mark {
  font-weight: 800; letter-spacing: 0.5px; font-size: 1.1rem; padding: 6px 10px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border: 1px solid rgba(14,165,255,0.25); border-radius: 8px;
}
.brand-text h1 { margin: 0; font-size: 1rem; color: var(--muted); font-weight: 600; }

.site-nav { display: flex; gap: 12px; }
.nav-link { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav-link:hover { color: var(--primary); }

#hero-3d { position: absolute; inset: 0; pointer-events: none; }

.hero { position: relative; padding: 40px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }

.eyebrow { color: var(--primary-2); font-weight: 600; letter-spacing: 0.4px; }
.hero h2 { font-size: 2.2rem; margin: 8px 0 10px; }
.subtitle { color: var(--muted); max-width: 56ch; }

.cta-row { display: flex; gap: 12px; margin: 16px 0 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border);
  text-decoration: none; color: var(--text); font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(14,165,255,0.15); border-color: rgba(14,165,255,0.3); }
.btn-primary { background: linear-gradient(90deg, #0ea5ff, #5cc8ff); color: #04121b; border: 0; }
.btn-outline { background: transparent; }

.contact-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 0; list-style: none; margin: 10px 0 0; color: var(--muted); }
.contact-list strong { color: var(--text); }

.hero-visual { position: relative; min-height: 280px; }
#heroCanvas, #orbCanvas { width: 100%; height: 100%; display: block; background: transparent; border-radius: 12px; }

.section { padding: 40px 0; border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--bg), var(--bg-elev)); }
.section h3 { margin: 0 0 18px; font-size: 1.5rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--card), #0f1620);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.card h4 { margin: 0 0 8px; font-size: 1.05rem; color: var(--primary-2); }
.card p { margin: 0; color: var(--muted); }

.highlight { background: radial-gradient(900px 500px at 10% 0%, rgba(14,165,255,0.15), transparent 50%), var(--bg-elev); }
.highlight-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { color: var(--muted); }
.feature-list strong { color: var(--text); }

.contact { background: var(--bg); }
.contact-form { display: grid; gap: 14px; max-width: 650px; }
.form-row { display: grid; gap: 6px; }
label { color: var(--muted); font-weight: 600; }
input, textarea {
  background: #0f1620; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; outline: none;
}
input:focus, textarea:focus {
  border-color: rgba(14,165,255,0.4); box-shadow: 0 0 0 4px rgba(14,165,255,0.15);
}
.form-actions { display: flex; align-items: center; gap: 12px; }
.form-note { color: var(--muted); margin: 0; }

.site-footer { border-top: 1px solid var(--border); padding: 22px 0; background: #0a0e13; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: start; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

/* Responsivo */
@media (max-width: 1000px) {
  .hero-grid, .highlight-grid, .footer-grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .hero h2 { font-size: 1.5rem; }
  .cta-row { flex-direction: column; gap: 10px; }
  .contact-list { font-size: 0.9rem; }
  .btn { width: 100%; }
}
@media (orientation: landscape) {
  .hero-grid, .highlight-grid { grid-template-columns: 1fr 1fr; }
}
.logo-img {
  max-height: 200px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .logo-img {
   max-height: 120px; /* antes era 40px */
    margin-top: 6px;
  }
}
@media (max-width: 480px) {
  .cta-row {
    flex-direction: column;
    gap: 10px;
  }
  .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }
}
.site-header .container {
  height: 72px; /* o el valor que mantenga tu diseño */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-img {
  max-height: 130px;
  height: auto;
  width: auto;
  object-fit: contain;
}
@media (max-width: 480px) {
  .logo-img {
    max-height: 120px;
  }
}
.logo-img {
  margin: 0;
  padding: 0;
}
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 32px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: start;
}

.footer-contact p,
.footer-legal p {
  margin: 4px 0;
}

.footer-legal {
  text-align: right;
}
@media (max-width: 480px) {
  .footer-legal {
    text-align: left;
  }
}
#btn-volver-arriba {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0ea5ff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 1000;
  display: none;
  transition: opacity 0.3s ease;
}

#btn-volver-arriba:hover {
  background-color: #0284c7;
}
@media (max-width: 480px) {
  .logo-img {
    max-height: 140px;
    margin-top: -45px;
  }

  .site-header .container {
    height: 80px;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 480px) {
  .cta-row {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .btn {
    width: 90%;
    text-align: center;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  .subtitle {
    font-size: 1rem;
    text-align: center;
    padding: 0 12px;
  }

  .eyebrow {
    text-align: center;
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .footer-legal {
    text-align: center;
    font-size: 0.8rem;
  }
}
@media (max-width: 480px) {
  #btn-volver-arriba {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
.logo-img {
  animation: fadeInLogo 0.8s ease-in-out;
}

@keyframes fadeInLogo {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 480px) {
  .hero-grid,
  .highlight-grid,
  .services-grid,
  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card {
    width: 100%;
    max-width: 320px;
    margin-bottom: 16px;
  }

  .btn {
    width: 90%;
    max-width: 300px;
    margin: 8px auto;
    font-size: 1rem;
  }

  h2, h3, h4 {
    text-align: center;
  }

  .subtitle, .eyebrow {
    padding: 0 12px;
    text-align: center;
  }
}