/* ============================================================
   SYSTEMMAS · Landing Page
   Mobile-first · Marca: gradiente cian → azul sobre oscuro
   ============================================================ */

:root {
  --bg:        #0A0E14;
  --bg-2:      #0E141F;
  --surface:   #131B29;
  --surface-2: #172236;
  --border:    rgba(255, 255, 255, .08);
  --text:      #EAF1F7;
  --muted:     #9BB0C4;
  --cyan:      #22D3EE;
  --blue:      #2563EB;
  --grad:      linear-gradient(135deg, #22D3EE 0%, #2563EB 100%);
  --grad-soft: linear-gradient(135deg, rgba(34,211,238,.15), rgba(37,99,235,.15));
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 20px 50px -20px rgba(0,0,0,.7);
  --shadow-glow: 0 0 40px -8px rgba(34,211,238,.35);
  --maxw:      1160px;
  --ease:      cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 100% -10%, rgba(37,99,235,.14), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(34,211,238,.10), transparent 55%);
}

h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; letter-spacing: -.02em; }

/* Tipografía del logo (cortes en ángulo, estilo tech) */
.brand-text {
  font-family: "Chakra Petch", "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.center { text-align: center; margin-top: 34px; }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--grad); color: #04121e; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 55px -6px rgba(34,211,238,.55); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: #04121e; box-shadow: 0 10px 26px -8px rgba(37,211,102,.6); }
.btn-whatsapp:hover { background: #1FBF59; transform: translateY(-2px); box-shadow: 0 12px 32px -6px rgba(37,211,102,.7); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,20,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-text { font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; }

.nav { display: none; gap: 28px; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav a:hover { color: var(--text); }

.header-cta { display: none; }

.menu-toggle {
  display: flex; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil desplegable */
.nav.open {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; top: 68px; left: 0; right: 0;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 8px 20px 18px;
}
.nav.open a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }

/* ============ HERO ============ */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 70% 20%, rgba(34,211,238,.18), transparent 60%);
}
.hero-inner { display: grid; gap: 44px; position: relative; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-soft); border: 1px solid rgba(34,211,238,.3);
  color: var(--cyan); font-weight: 600; font-size: .86rem;
  padding: 8px 15px; border-radius: 999px;
}
.pill svg { color: #FBBF24; }

.hero-copy h1 {
  font-size: clamp(2.1rem, 8vw, 3.6rem); font-weight: 800; line-height: 1.08;
  margin: 20px 0 18px;
}
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 560px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero-actions .btn { flex: 1 1 auto; }

.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .92rem; }
.hero-trust li { font-weight: 500; }

/* Visual del hero */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.glass-card {
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: 28px;
  padding: 30px; box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.logo-card img { width: min(70vw, 220px); height: auto; border-radius: 20px; }

.float-chip {
  position: absolute; background: var(--surface-2); border: 1px solid var(--border);
  padding: 10px 15px; border-radius: 14px; font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow); animation: float 5s ease-in-out infinite;
}
.chip-1 { top: 6%;  left: 0;   animation-delay: 0s; }
.chip-2 { bottom: 12%; right: 0; animation-delay: .8s; }
.chip-3 { bottom: 2%; left: 12%; animation-delay: 1.6s; }

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

/* ============ BARRA DE CONFIANZA ============ */
.trustbar { border-block: 1px solid var(--border); background: rgba(255,255,255,.02); }
.trustbar-inner {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 12px;
  padding: 32px 20px; text-align: center;
}
.trust-item strong { display: block; font-family: "Sora"; font-size: 2rem; font-weight: 800; }
.trust-item span { color: var(--muted); font-size: .86rem; }

/* ============ SECCIONES ============ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--cyan); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); font-weight: 800; line-height: 1.15; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ============ GRIDS ============ */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.35); box-shadow: var(--shadow); }

.icon-box {
  width: 54px; height: 54px; display: grid; place-items: center;
  font-size: 1.6rem; border-radius: 14px; background: var(--grad-soft);
  border: 1px solid rgba(34,211,238,.25); margin-bottom: 16px;
}
.service-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .96rem; }

/* Razones */
.reason {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden;
}
.reason::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--grad);
}
.reason-num { font-family: "Sora"; font-weight: 800; font-size: 1.4rem; color: var(--cyan); opacity: .85; }
.reason h3 { font-size: 1.12rem; margin: 8px 0 6px; }
.reason p { color: var(--muted); font-size: .94rem; }

/* Reseñas */
.stars-big { color: #FBBF24; font-size: 1.6rem; letter-spacing: 4px; margin-top: 16px; }
.review-card { display: flex; flex-direction: column; gap: 12px; }
.review-card .stars { color: #FBBF24; letter-spacing: 3px; }
.review-card p { font-size: 1.02rem; }
.review-card cite { color: var(--muted); font-style: normal; font-weight: 600; font-size: .9rem; }

/* ============ REDES SOCIALES ============ */
.social-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  max-width: 900px; margin-inline: auto;
}
.social-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center; padding: 26px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.social-card svg { transition: transform .3s var(--ease); position: relative; z-index: 1; }
.social-card .sc-name { font-family: "Sora"; font-weight: 700; font-size: 1.05rem; position: relative; z-index: 1; }
.social-card .sc-handle { color: var(--muted); font-size: .84rem; position: relative; z-index: 1; }
.social-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease);
}
.social-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.social-card:hover svg { transform: scale(1.12); }
.social-card:hover::before { opacity: .16; }

/* Colores de marca por red */
.sc-instagram svg { color: #E1306C; }
.sc-instagram::before { background: linear-gradient(135deg,#F58529,#DD2A7B,#8134AF); }
.sc-instagram:hover { border-color: rgba(221,42,123,.5); }

.sc-tiktok svg { color: #25F4EE; }
.sc-tiktok::before { background: linear-gradient(135deg,#25F4EE,#FE2C55); }
.sc-tiktok:hover { border-color: rgba(254,44,85,.5); }

.sc-youtube svg { color: #FF0000; }
.sc-youtube::before { background: #FF0000; }
.sc-youtube:hover { border-color: rgba(255,0,0,.5); }

.sc-facebook svg { color: #1877F2; }
.sc-facebook::before { background: #1877F2; }
.sc-facebook:hover { border-color: rgba(24,119,242,.5); }

.sc-whatsapp svg { color: #25D366; }
.sc-whatsapp::before { background: #25D366; }
.sc-whatsapp:hover { border-color: rgba(37,211,102,.5); }

/* ============ CONTACTO ============ */
.contact-grid { display: grid; gap: 30px; }
.info-list { list-style: none; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 14px; }
.info-ic {
  flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 1.25rem; background: var(--grad-soft); border: 1px solid rgba(34,211,238,.25);
  border-radius: 12px;
}
.info-list strong { display: block; margin-bottom: 3px; }
.info-list div { color: var(--muted); font-size: .96rem; }
.info-list a { color: var(--cyan); font-weight: 600; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--muted); transition: .2s;
}
.socials a:hover { color: var(--text); border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.06); }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 34px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 10px; }
.footer-brand strong { display: block; font-family: "Chakra Petch", "Sora", sans-serif; font-weight: 700; letter-spacing: .08em; }
.footer-brand span { color: var(--muted); font-size: .85rem; }
.footer-copy { color: var(--muted); font-size: .86rem; }

/* ============ WHATSAPP FLOTANTE ============ */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -6px rgba(37,211,102,.6);
  transition: transform .25s var(--ease);
  animation: pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0%   { box-shadow: 0 12px 30px -6px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 12px 30px -6px rgba(37,211,102,.6), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 30px -6px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============ ANIMACIÓN DE ENTRADA ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (min-width: 560px) {
  .trustbar-inner { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .hero { padding: 84px 0 60px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
  .social-grid { grid-template-columns: repeat(5, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .section { padding: 96px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
