/* ══════════════════════════════════════════════
   HERNÁN SAMRANI — LANDING PAGE
   Bootstrap 5 + Custom CSS
══════════════════════════════════════════════ */

:root {
  --hs-bg:       #060810;
  --hs-surface:  #0d1117;
  --hs-card:     #111827;
  --hs-border:   rgba(99,179,237,0.12);
  --hs-accent:   #63B3ED;
  --hs-accent2:  #9F7AEA;
  --hs-accent3:  #4FD1C5;
  --hs-green:    #25D366;
  --hs-text:     #E2E8F0;
  --hs-muted:    #718096;
  --hs-radius:   10px;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--hs-bg);
  color: var(--hs-text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── GRID BG ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,179,237,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,179,237,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.hs-navbar {
  background: rgba(6,8,16,0.85) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hs-border);
  padding: 1rem 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.hs-navbar.scrolled {
  background: rgba(6,8,16,0.97) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.hs-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--hs-accent), var(--hs-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.hs-nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hs-muted) !important;
  transition: color 0.3s;
  padding: 0.5rem 0.8rem !important;
}

.hs-nav-link:hover,
.hs-nav-link.active { color: var(--hs-accent) !important; }

/* Hamburger custom */
.hs-toggler {
  border: 1px solid var(--hs-border) !important;
  padding: 6px 10px;
  background: transparent !important;
}

.toggler-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.toggler-icon span {
  display: block;
  height: 2px;
  background: var(--hs-accent);
  border-radius: 2px;
  transition: all 0.3s;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(2) {
  opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.hs-btn-primary {
  background: linear-gradient(135deg, var(--hs-accent), #4299e1);
  color: var(--hs-bg) !important;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--hs-radius);
  padding: 0.75rem 1.8rem;
  box-shadow: 0 0 28px rgba(99,179,237,0.3);
  transition: all 0.3s;
  text-decoration: none;
}

.hs-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(99,179,237,0.5);
  color: var(--hs-bg) !important;
}

.hs-btn-wa {
  background: var(--hs-green);
  color: #fff !important;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--hs-radius);
  padding: 0.75rem 1.8rem;
  box-shadow: 0 0 22px rgba(37,211,102,0.28);
  transition: all 0.3s;
  text-decoration: none;
}

.hs-btn-wa:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 0 42px rgba(37,211,102,0.5);
  color: #fff !important;
}

.hs-btn-ghost {
  background: transparent;
  color: var(--hs-text) !important;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 0.75rem 1.8rem;
  transition: all 0.3s;
  text-decoration: none;
}

.hs-btn-ghost:hover {
  border-color: var(--hs-accent);
  color: var(--hs-accent) !important;
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hs-hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,179,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,179,237,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.orb-1 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(99,179,237,0.18), transparent 70%);
  top: -120px; right: -100px;
  animation: float 9s ease-in-out infinite;
}

.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(159,122,234,0.14), transparent 70%);
  bottom: 0; left: 5%;
  animation: float 11s ease-in-out infinite reverse;
}

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-28px) scale(1.04); }
}

.hs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-accent3);
  border: 1px solid rgba(79,209,197,0.25);
  background: rgba(79,209,197,0.06);
  padding: 0.4rem 1rem;
  border-radius: 20px;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--hs-accent3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.8); }
}

.hs-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
}

.hs-title-accent {
  background: linear-gradient(135deg, var(--hs-accent) 0%, var(--hs-accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hs-subtitle {
  font-size: 1.05rem;
  color: var(--hs-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ── TERMINAL ── */
.hs-terminal {
  width: 420px;
  background: #0d1117;
  border: 1px solid rgba(99,179,237,0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(99,179,237,0.04);
}

.hs-terminal-bar {
  background: #161b22;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(99,179,237,0.08);
}

.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-red    { background: #ff5f56; }
.t-yellow { background: #ffbd2e; }
.t-green  { background: #27c93f; }

.t-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--hs-muted);
  margin: 0 auto;
}

.hs-terminal-body {
  padding: 1.2rem 1.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.85;
}

.t-line { white-space: pre-wrap; }
.t-comment { color: #6a737d; }
.t-keyword { color: #f97583; }
.t-func    { color: #79b8ff; }
.t-string  { color: #9ecbff; }
.t-var     { color: #e1e4e8; }
.t-class   { color: #b392f0; }
.t-op      { color: #e1e4e8; }
.t-prompt  { color: var(--hs-accent3); }
.t-success { color: #27c93f; }

.t-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--hs-accent);
  vertical-align: middle;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0; }
}

/* ══════════════════════════════════════════════
   STATS
══════════════════════════════════════════════ */
.hs-stats-bar {
  position: relative;
  z-index: 1;
  background: rgba(13,17,23,0.8);
  border-top: 1px solid var(--hs-border);
  border-bottom: 1px solid var(--hs-border);
}

.hs-stat {
  padding: 2.2rem 1rem;
  border-right: 1px solid var(--hs-border);
  transition: background 0.3s;
}

.hs-stat:last-child { border-right: none; }
.hs-stat:hover { background: rgba(99,179,237,0.04); }

.hs-stat-icon {
  font-size: 1.5rem;
  color: var(--hs-accent);
  margin-bottom: 0.4rem;
  display: block;
}

.hs-stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--hs-accent), var(--hs-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hs-stat-label {
  font-size: 0.75rem;
  color: var(--hs-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 0.2rem;
}

/* ══════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════ */
.hs-section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.hs-section-dark {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
  background: rgba(13,17,23,0.6);
  border-top: 1px solid var(--hs-border);
  border-bottom: 1px solid var(--hs-border);
}

.hs-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hs-accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hs-section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.hs-section-desc {
  color: var(--hs-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 480px;
}

/* ══════════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════════ */
.hs-service-card {
  background: var(--hs-card);
  border: 1px solid var(--hs-border);
  border-radius: 14px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.hs-service-card:hover {
  border-color: rgba(99,179,237,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.hs-service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.icon-blue   { background: rgba(99,179,237,0.12); color: var(--hs-accent); }
.icon-purple { background: rgba(159,122,234,0.12); color: var(--hs-accent2); }
.icon-teal   { background: rgba(79,209,197,0.12);  color: var(--hs-accent3); }
.icon-green  { background: rgba(72,187,120,0.12);  color: #68d391; }
.icon-red    { background: rgba(252,129,74,0.12);  color: #fc814a; }
.icon-pink   { background: rgba(237,100,166,0.12); color: #ed64a6; }

.hs-service-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.6rem;
  color: var(--hs-text);
}

.hs-service-desc {
  font-size: 0.87rem;
  color: var(--hs-muted);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════════
   GALERÍA
══════════════════════════════════════════════ */
.hs-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 200px;
}

.hs-gallery-tall { height: 412px; }

.hs-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.65) saturate(0.75);
}

.hs-gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.8) saturate(1.1);
}

.hs-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,8,16,0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.hs-gallery-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hs-accent);
  background: rgba(6,8,16,0.7);
  border: 1px solid rgba(99,179,237,0.2);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

/* ══════════════════════════════════════════════
   STACK
══════════════════════════════════════════════ */
.hs-stack-card {
  background: var(--hs-card);
  border: 1px solid var(--hs-border);
  border-radius: 14px;
  padding: 1.6rem;
  transition: border-color 0.3s;
}

.hs-stack-card:hover { border-color: rgba(99,179,237,0.3); }

.hs-stack-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--hs-text);
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--hs-border);
  padding-bottom: 0.8rem;
}

.hs-stack-header i {
  color: var(--hs-accent);
  font-size: 1rem;
}

.hs-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.hs-pill {
  font-size: 0.77rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--hs-border);
  background: var(--hs-surface);
  color: var(--hs-muted);
  transition: all 0.3s;
  cursor: default;
}

.hs-pill:hover {
  border-color: var(--hs-accent);
  color: var(--hs-accent);
  background: rgba(99,179,237,0.06);
}

/* ══════════════════════════════════════════════
   PROCESO
══════════════════════════════════════════════ */
.hs-step-card {
  background: var(--hs-card);
  border: 1px solid var(--hs-border);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.hs-step-card:hover {
  border-color: rgba(99,179,237,0.3);
  transform: translateY(-3px);
}

.hs-step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1;
  background: linear-gradient(135deg, rgba(99,179,237,0.35), rgba(159,122,234,0.15));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
}

.hs-step-icon {
  font-size: 1.5rem;
  color: var(--hs-accent);
  margin-bottom: 0.8rem;
}

.hs-step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--hs-text);
}

.hs-step-desc {
  font-size: 0.85rem;
  color: var(--hs-muted);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════ */
.hs-cta-banner {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(99,179,237,0.05), rgba(159,122,234,0.05));
  border-top: 1px solid var(--hs-border);
}

/* ══════════════════════════════════════════════
   CONTACTO — CARDS
══════════════════════════════════════════════ */
.hs-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--hs-card);
  border: 1px solid var(--hs-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  height: 100%;
  cursor: pointer;
}

a.hs-contact-card:hover {
  border-color: rgba(99,179,237,0.4);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.hs-contact-card-wa:hover {
  border-color: rgba(37,211,102,0.4) !important;
  box-shadow: 0 16px 40px rgba(37,211,102,0.12) !important;
}

.hs-contact-card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
}

.icon-wa { background: rgba(37,211,102,0.12); color: var(--hs-green); }

.hs-contact-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-muted);
  margin-bottom: 0.4rem;
}

.hs-contact-card-value {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--hs-text);
  margin-bottom: 0.8rem;
  word-break: break-all;
}

.hs-contact-card-action {
  font-size: 0.82rem;
  color: var(--hs-accent);
  margin-top: auto;
}

.hs-contact-card-wa .hs-contact-card-action { color: var(--hs-green); }
.hs-contact-card-loc .hs-contact-card-action { color: var(--hs-muted); font-size: 0.8rem; }

/* Botón WhatsApp XL */
.hs-btn-wa-xl {
  font-size: 1rem !important;
  padding: 1rem 3rem !important;
  letter-spacing: 0.06em;
}

.hs-wa-note {
  font-size: 0.8rem;
  color: var(--hs-muted);
  margin: 0;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.hs-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hs-border);
  padding: 2rem 0;
  background: var(--hs-surface);
}

.hs-footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--hs-accent), var(--hs-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hs-footer-copy { font-size: 0.82rem; color: var(--hs-muted); }

.hs-footer-link {
  font-size: 0.78rem;
  color: var(--hs-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 1.4rem;
  transition: color 0.3s;
}

.hs-footer-link:hover { color: var(--hs-accent); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 991px) {
  .hs-stats-bar .hs-stat { border-right: none; border-bottom: 1px solid var(--hs-border); }
  .navbar-collapse {
    background: rgba(6,8,16,0.97);
    border: 1px solid var(--hs-border);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 767px) {
  .hs-gallery-tall { height: 220px; }
  .hs-form-card { padding: 1.5rem; }
  .hs-hero { padding: 100px 0 60px; }
}
