/* NETSYSPRO | Estilos complementarios. Paleta institucional #153864 */
:root {
  --brand-primary: #153864;
  --brand-dark: #0e2645;
  --brand-light: #1e4e8a;
  --brand-subtle: #eef4fa;
  --surface: #f8fafc;
}

html { scroll-padding-top: 5.5rem; }
body { font-family: Inter, system-ui, sans-serif; }
::selection { background: #dbeafe; color: var(--brand-dark); }

.hero-grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(56,189,248,.18), transparent 36%),
    radial-gradient(circle at 12% 82%, rgba(255,255,255,.08), transparent 38%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.service-card {
  min-height: 100%;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -16px rgba(21,56,100,.25);
  border-color: var(--brand-primary);
}
.service-card:focus-within { outline: 2px solid rgba(30,78,138,.25); outline-offset: 3px; }

input, select, textarea { transition: border-color .18s ease, box-shadow .18s ease; }
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-light) !important;
  box-shadow: 0 0 0 3px rgba(30,78,138,.12);
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: grid;
  width: 3.65rem;
  height: 3.65rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #16a34a;
  box-shadow: 0 10px 28px rgba(22,163,74,.32);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px); background: #15803d; box-shadow: 0 14px 32px rgba(22,163,74,.38); }
.whatsapp-float:focus-visible { outline: 3px solid #86efac; outline-offset: 3px; }
.whatsapp-float svg { width: 1.8rem; height: 1.8rem; fill: currentColor; }

@keyframes fadeIn { from { opacity: 0; transform: scale(.98) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.animate-fadeIn { animation: fadeIn .22s ease-out both; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* Portada: composición clara, institucional y adaptable */
.hero-section { isolation: isolate; }
.hero-soft-glow {
  position: absolute; z-index: -1; width: 42rem; height: 42rem; right: -16rem; top: -22rem;
  border-radius: 9999px; background: radial-gradient(circle, rgba(56, 145, 210, .13), rgba(56, 145, 210, 0) 68%);
  pointer-events: none;
}
.hero-visual {
  min-height: 420px; aspect-ratio: 1.18 / 1; overflow: hidden; border-radius: 2rem;
  background: linear-gradient(145deg, #f1f6fb 0%, #e6eef7 55%, #dce8f4 100%);
  border: 1px solid #d9e4ef; box-shadow: 0 28px 70px -42px rgba(14, 38, 69, .45);
}
.hero-visual-grid {
  position: absolute; inset: 0; opacity: .42;
  background-image: linear-gradient(rgba(21,56,100,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(21,56,100,.08) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
}
.hero-visual-orbit { position: absolute; border: 1px solid rgba(30,78,138,.16); border-radius: 50%; left: 50%; top: 48%; transform: translate(-50%,-50%); }
.hero-visual-orbit-one { width: 72%; aspect-ratio: 1; }
.hero-visual-orbit-two { width: 53%; aspect-ratio: 1; border-style: dashed; border-color: rgba(30,78,138,.22); }
.hero-core {
  position: absolute; left: 50%; top: 48%; transform: translate(-50%,-50%); width: 188px; height: 188px;
  border-radius: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #1e4e8a, #0e2645); box-shadow: 0 22px 50px rgba(14,38,69,.28); text-align: center;
}
.hero-core-mark { display: flex; align-items: end; gap: 5px; height: 28px; }
.hero-core-mark span { display: block; width: 8px; border-radius: 4px; background: #8dd6f5; }
.hero-core-mark span:nth-child(1) { height: 15px; opacity: .72; }
.hero-core-mark span:nth-child(2) { height: 25px; }
.hero-core-mark span:nth-child(3) { height: 19px; opacity: .85; }
.hero-float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; min-width: 150px; padding: 12px 14px;
  background: rgba(255,255,255,.94); border: 1px solid rgba(203,213,225,.9); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 42, 75, .10); backdrop-filter: blur(8px);
}
.hero-card-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; color: #153864; background: #eaf2fa; font-size: 20px; font-weight: 700; }
.hero-card-top { left: 7%; top: 15%; animation: floatCard 5s ease-in-out infinite; }
.hero-card-right { right: 4%; top: 43%; animation: floatCard 6s ease-in-out 1s infinite; }
.hero-card-bottom { left: 12%; bottom: 13%; animation: floatCard 5.5s ease-in-out .5s infinite; }
.hero-visual-caption { position: absolute; bottom: 22px; right: 24px; display: flex; align-items: center; gap: 8px; color: #52677f; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero-visual-caption span { width: 7px; height: 7px; border-radius: 50%; background: #4b9bc7; }

@media (max-width: 640px) {
  .hero-visual { min-height: 330px; border-radius: 1.5rem; }
  .hero-core { width: 142px; height: 142px; border-radius: 1.4rem; }
  .hero-core p.text-lg { font-size: 1rem; }
  .hero-float-card { min-width: 126px; padding: 9px 10px; gap: 7px; }
  .hero-card-icon { flex-basis: 29px; width: 29px; height: 29px; }
  .hero-card-top { left: 3%; top: 12%; }
  .hero-card-right { right: 2%; top: 43%; }
  .hero-card-bottom { left: 5%; bottom: 12%; }
  .hero-visual-caption { right: 12px; bottom: 10px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@media (max-width: 480px) {
  .whatsapp-float { right: .9rem; bottom: .9rem; width: 3.35rem; height: 3.35rem; }
}