/* =========================
   JEMETSYS Landing Page
   Estilo futurista + glassmorphism
========================= */

:root {
  --bg-900: #070a14;
  --bg-800: #0d1324;
  --surface: rgba(18, 25, 46, 0.55);
  --surface-border: rgba(139, 187, 255, 0.24);

  --text-100: #ecf3ff;
  --text-300: #b8c7e6;

  --primary: #3b82f6;
  --secondary: #8b5cf6;
  --accent: #2dd4bf;

  --shadow-glow: 0 0 24px rgba(59, 130, 246, 0.35), 0 0 48px rgba(139, 92, 246, 0.2);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --container: 1120px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--text-100);
  background: radial-gradient(circle at 20% -10%, #1f2f5d 0%, transparent 35%),
              radial-gradient(circle at 100% 0, #3f1d68 0%, transparent 38%),
              radial-gradient(circle at 60% 115%, #073f42 0%, transparent 35%),
              var(--bg-900);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5.25rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.03));
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.3rem);
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.4rem);
  margin-bottom: 0.8rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-300);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Fondo decorativo */
.bg-blur {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -2;
}

.bg-blur--one {
  top: -120px;
  left: -100px;
  background: #2251b0;
}

.bg-blur--two {
  bottom: -130px;
  right: -90px;
  background: #14b8a6;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
  z-index: -3;
  pointer-events: none;
}

/* Componentes base */
.glass {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.55), 0 0 60px rgba(139, 92, 246, 0.35);
}

.btn-outline {
  border-color: rgba(164, 190, 255, 0.55);
  background: rgba(10, 16, 32, 0.45);
}

.btn-outline:hover {
  border-color: rgba(45, 212, 191, 0.8);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.3);
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header.scrolled {
  background: rgba(7, 10, 20, 0.8);
  border-color: rgba(146, 175, 255, 0.25);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.logo-image {
  height: 78px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav a {
  color: var(--text-300);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text-100);
}

.header-cta {
  padding-inline: 1.05rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(150, 181, 255, 0.45);
  border-radius: 10px;
  padding: 0.55rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text-100);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-height) + 4.3rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2rem;
  align-items: center;
}

.hero .lead {
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.hero-visual {
  min-height: 360px;
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.ui-window {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-md);
  border: 1px solid rgba(163, 184, 255, 0.35);
  background: rgba(8, 14, 28, 0.7);
  overflow: hidden;
}

.ui-topbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
}

.ui-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.ui-content {
  padding: 1rem;
}

.chip {
  display: inline-block;
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.45);
  color: #8ff7eb;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.line {
  margin-top: 0.8rem;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.7), rgba(139, 92, 246, 0.4));
}

.line.short {
  width: 65%;
}

.cards-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 1rem;
}

.mini-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(160, 182, 255, 0.25);
  text-align: center;
  border-radius: 10px;
  padding: 0.7rem 0.5rem;
  font-size: 0.85rem;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(120, 217, 255, 0.35);
  animation: spin 14s linear infinite;
}

.orbit-one {
  width: 240px;
  height: 240px;
  right: -50px;
  top: -50px;
}

.orbit-two {
  width: 170px;
  height: 170px;
  left: -40px;
  bottom: -40px;
  animation-duration: 11s;
  animation-direction: reverse;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Tarjetas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.15rem;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card .icon {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.card h3 {
  font-size: 1.02rem;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.14);
}

/* IA sección */
.ia-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.benefits {
  list-style: none;
  margin: 0;
  padding: 1.2rem;
}

.benefits li {
  margin: 0 0 0.6rem;
  color: var(--text-100);
}

/* Portafolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.portfolio-item {
  padding: 1rem;
  min-height: 155px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.6);
}

.portfolio-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 1.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0.8rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(160, 184, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.9rem;
}

.timeline li span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}

.timeline h3 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.timeline p {
  margin-bottom: 0;
}

/* Diferencial */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.chip-item {
  border: 1px solid rgba(148, 178, 255, 0.45);
  background: rgba(10, 16, 31, 0.45);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--text-100);
}

/* CTA */
.cta-box {
  padding: 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.contact-data p {
  margin: 0 0 0.35rem;
}

.contact-data a {
  color: #9ce9ff;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(153, 182, 255, 0.2);
  padding: 1.1rem 0 2rem;
  font-size: 0.95rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 0 22px rgba(37, 211, 102, 0.55);
  z-index: 60;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.75);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Animación reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid,
  .ia-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .logo-image {
    height: 40px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: calc(var(--header-height) + 0.4rem);
    right: 1rem;
    width: min(90vw, 320px);
    display: grid;
    gap: 0;
    background: rgba(8, 12, 24, 0.97);
    border: 1px solid rgba(164, 191, 255, 0.32);
    border-radius: 14px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.35s ease;
  }

  .nav a {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: calc(var(--header-height) + 3.3rem);
  }

  .section {
    padding: 4.2rem 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .cards-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }
}
