*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #263348;
  --border: rgba(255,255,255,0.08);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15,23,42,0.85);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}
.nav__logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.nav__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.nav__logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  background: #6366f1;
  top: -100px; left: -100px;
}
.hero__glow--2 {
  width: 500px; height: 500px;
  background: #0ea5e9;
  bottom: -100px; right: -100px;
}
.hero__inner {
  position: relative;
  max-width: 760px;
}
.hero__logo {
  width: 280px;
  height: 280px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 0 60px rgba(99,102,241,0.6));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #f8fafc;
}
.hero__title-highlight {
  background: linear-gradient(135deg, #6366f1, #a78bfa, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--primary);
  color: white;
}
.btn--primary:hover { background: #4f46e5; transform: translateY(-1px); }
.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn--whatsapp {
  background: #25d366;
  color: white;
}
.btn--whatsapp:hover { background: #1fb855; transform: translateY(-1px); }
.contacto__btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SECTIONS ────────────────────────────────────────────────── */
.section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}
.section__tag {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin-bottom: 1rem;
  text-align: center;
}
.section__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
}

/* ── APPS GRID ───────────────────────────────────────────────── */
.apps { background: rgba(255,255,255,0.02); }
.apps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.2s;
}
.app-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
}
.app-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.app-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.app-card__icon--img {
  background: none;
  overflow: hidden;
}
.app-card__icon--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.app-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fafc;
}
.app-card__category {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.app-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.app-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.feature-tag {
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.app-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.app-btn--web {
  background: var(--primary);
  color: white;
}
.app-btn--web:hover { background: #4f46e5; }
.app-btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.app-btn--ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.app-btn--soon {
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── NOSOTROS ────────────────────────────────────────────────── */
.nosotros .section__inner { text-align: left; }
.nosotros__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.nosotros__text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 0.95rem;
}
.nosotros__text strong { color: var(--text); }
.nosotros__stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  display: block;
}

/* ── ORIGIN DOT ANIMATION ────────────────────────────────────── */
.nosotros__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.origin-dot {
  position: relative;
  width: 280px;
  height: 280px;
}
.origin-dot__core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 20px #6366f1, 0 0 40px rgba(99,102,241,0.4);
  z-index: 2;
}
.origin-dot__ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,0.2);
  animation: pulse-ring 3s ease-out infinite;
}
.origin-dot__ring--1 { width: 80px; height: 80px; animation-delay: 0s; }
.origin-dot__ring--2 { width: 160px; height: 160px; animation-delay: 0.5s; }
.origin-dot__ring--3 { width: 240px; height: 240px; animation-delay: 1s; }

@keyframes pulse-ring {
  0% { opacity: 0.6; transform: translate(-50%,-50%) scale(0.95); }
  50% { opacity: 0.2; }
  100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1.02); }
}

.origin-dot__app {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  transform-origin: 0 0;
  transform: rotate(var(--angle)) translateY(-120px) rotate(calc(-1 * var(--angle))) translate(-50%, -50%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ── CONTACTO ────────────────────────────────────────────────── */
.contacto {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(14,165,233,0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer { padding: 2rem 1.5rem; }
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__name {
  font-weight: 600;
  color: var(--text);
}
.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text-muted); }
.footer__copy {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nosotros__grid { grid-template-columns: 1fr; }
  .nosotros__visual { display: none; }
  .nosotros__stats { gap: 1.5rem; }
  .apps__grid { grid-template-columns: 1fr; }
  .hero { padding: 7rem 1.25rem 3rem; }
}
