/* ============================================================
   ORIONIS STYLE SHEET — Optimizado sin scroll lateral
   ============================================================ */

/* ===== PALETA Y VARIABLES ===== */
:root {
  --bg-1: #0F1430;
  --accent: #8B5CF6;
  --accent-2: #22D3EE;
  --text-muted: #C9D2F0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(8,12,40,.35);
}

/* ===== RESET Y BASE ===== */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden !important;
  max-width: 100vw;
}
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}
a { text-decoration: none; color: inherit; }

/* ===== FONDO GENERAL ===== */
body {
  background: radial-gradient(circle at 10% 20%, #12163a 0%, #0f1431 50%, #081021 100%);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ECF0FF;
}

/* Brillo aurora global */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 60% at 70% 10%, rgba(139,92,246,0.10), transparent 60%),
    radial-gradient(40% 50% at 10% 85%, rgba(34,211,238,0.08), transparent 60%);
  filter: blur(50px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: rgba(15, 20, 49, 0.65);
  box-shadow: none !important;
  border: none !important;
  transition: background 0.3s ease;
  width: 100%;
  z-index: 999;
}

.navbar .nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: all 0.3s ease;
}

.navbar .nav-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(34,211,238,0.6);
  transform: translateY(-1px);
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.3s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}




/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 100px 0;
  overflow-x: hidden;
}
.hero .glass {
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)) padding-box,
    linear-gradient(135deg, rgba(139,92,246,.45), rgba(34,211,238,.35)) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow);
}
.text-gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   SECCIONES
   ============================================================ */
.section-dark {
  background: rgba(15, 20, 49, 0.65);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow-x: hidden;
}
.section-light {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  overflow-x: hidden;
}
.section-title {
  color: #F0F3FF;
  font-weight: 800;
}
.section-sub {
  color: var(--text-muted);
}

/* ============================================================
   SERVICIOS Y TARJETAS
   ============================================================ */
#servicios,
#tipos-apps {
  position: relative;
  overflow-x: hidden;
}

.service-card {
  position: relative;
  border-radius: 22px;
  overflow: visible;
  backdrop-filter: blur(2px);
  background:
    linear-gradient(180deg, rgba(26,34,96,.92), rgba(18,26,74,.78)) padding-box,
    linear-gradient(135deg, rgba(139,92,246,.50), rgba(34,211,238,.40)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(139,92,246,.28);
}

/* Glow lateral */
.service-card::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  background: radial-gradient(60% 60% at 50% 50%, #22d3ee22 0%, transparent 70%);
  filter: blur(18px);
  opacity: 0;
  transition: .3s ease;
}
.service-card:hover::before { opacity: 1; }

.service-card.featured {
  background:
    linear-gradient(180deg, rgba(44,54,160,.88), rgba(30,40,120,.76)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 25px 60px rgba(139,92,246,.30);
}

/* Icono */
.service-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(120% 120% at 20% 20%, #22d3ee33, transparent 60%),
    linear-gradient(180deg, #141a46, #10153a);
  border: 1px solid #8b5cf666;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 22px rgba(139,92,246,.25);
  color: #E8ECFF;
  font-size: 1.25rem;
}

/* ============================================================
   PORTAFOLIO
   ============================================================ */
#portafolio img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 280px;
}

/* ============================================================
   FORMULARIOS Y BOTONES
   ============================================================ */
.form-control, .form-select {
  background: #121A48;
  border: 1.5px solid #2C3AA0;
  color: #EEF2FF;
  border-radius: 12px;
}
.form-control::placeholder { color: #C8D1FA; }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(139,92,246,.22);
}

.btn-primary {
  background: var(--accent);
  border: 1px solid rgba(139,92,246,.55);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  transition: all .3s ease;
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-success {
  border-radius: 999px;
  font-weight: 700;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #0B0F26;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #C9D2F0;
  padding: 1.5rem 0;
  text-align: center;
}

