/* ==========================================================================
   JEILASOFT — Design system
   Dark, premium, teal-forward. Space Grotesk (display) + Inter (body).
   ========================================================================== */

:root {
  --bg: #04100f;
  --bg-raised: #081b19;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 210, 200, 0.14);
  --border-strong: rgba(148, 210, 200, 0.28);
  --text: #e9f4f2;
  --text-muted: #9fb8b3;
  --text-faint: #6d8783;
  --accent: #2dd4bf;
  --accent-2: #34d399;
  --accent-deep: #0f766e;
  --accent-glow: rgba(45, 212, 191, 0.16);
  --gradient: linear-gradient(120deg, #2dd4bf 0%, #34d399 60%, #a7f3d0 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1160px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(45, 212, 191, 0.3); }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.18rem; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { color: var(--text-muted); margin-top: 16px; font-size: 1.06rem; }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--gradient);
  color: #03211d;
  box-shadow: 0 8px 32px -8px rgba(45, 212, 191, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(45, 212, 191, 0.55); }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--accent); }

/* --- Navigation ----------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(4, 16, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

/* Logo: monograma "JL" — 100% CSS */
.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  /* nodo luminoso sobre el vértice del monograma */
  background: radial-gradient(3px 3px at 50% 12%, #a7f3d0 0 1.8px, rgba(167, 243, 208, 0) 3px);
  filter: drop-shadow(0 2px 12px rgba(45, 212, 191, 0.4));
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 15px;
  height: 25px;
  border-bottom: 5px solid;
  transform: skewX(-8deg);
}

/* Mitad izquierda del monograma (J invertida) */
.brand-mark::before {
  right: 50%;
  margin-right: 1px;
  border-right: 5px solid;
  border-bottom-right-radius: 6px;
  border-color: #6ee7b7;
}

/* Mitad derecha del monograma (L) */
.brand-mark::after {
  left: 50%;
  margin-left: 1px;
  border-left: 5px solid;
  border-bottom-left-radius: 6px;
  border-color: #2dd4bf;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a { transition: color 0.15s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions .btn { padding: 10px 22px; font-size: 0.9rem; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-switch a, .lang-switch span {
  padding: 6px 12px;
  color: var(--text-faint);
  transition: color 0.15s, background 0.15s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch .active { background: var(--surface-hover); color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--text);
  place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 88px) 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.14), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 210, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 210, 200, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  background: var(--surface);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.06); }
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.16rem;
  max-width: 520px;
  margin: 24px 0 36px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 52px; }

.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  max-width: 560px;
}

.hero-stats > div {
  flex: 1;
  padding-right: 24px;
}
.hero-stats > div + div {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
}
.hero-stats span { font-size: 0.84rem; color: var(--text-faint); }

/* Hero visual: automation pipeline card */

.hero-visual { position: relative; }

.pipeline-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.pipeline-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(140deg, rgba(45,212,191,0.5), transparent 40%, transparent 70%, rgba(52,211,153,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pipeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.pipeline-head .title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pipeline-head .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-2);
}
.pipeline-head .status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2.2s infinite;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(4, 16, 15, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  opacity: 0;
  transform: translateY(10px);
  animation: step-in 0.6s ease forwards;
}

.pipeline-step:nth-child(2) { animation-delay: 0.25s; }
.pipeline-step:nth-child(4) { animation-delay: 0.65s; }
.pipeline-step:nth-child(6) { animation-delay: 1.05s; }
.pipeline-step:nth-child(8) { animation-delay: 1.45s; }

@keyframes step-in {
  to { opacity: 1; transform: translateY(0); }
}

.pipeline-connector {
  width: 2px;
  height: 18px;
  margin-left: 39px;
  background: linear-gradient(var(--accent-deep), var(--accent));
  opacity: 0.55;
}

.pipeline-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-glow);
  color: var(--accent);
}
.pipeline-icon svg { width: 21px; height: 21px; }

.pipeline-step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
}
.pipeline-step span { font-size: 0.8rem; color: var(--text-faint); }

.pipeline-step .tag {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  background: rgba(52, 211, 153, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
}

/* --- Tech strip ------------------------------------------------------------ */

.tech-strip {
  border-block: 1px solid var(--border);
  padding: 26px 0;
  background: var(--bg-raised);
}

.tech-strip-inner {
  display: flex;
  align-items: center;
  gap: 20px 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-strip .label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.tech-strip .item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* --- Sections --------------------------------------------------------------- */

section { padding: 104px 0; position: relative; }
section.alt { background: var(--bg-raised); border-block: 1px solid var(--border); }

/* Services grid */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 22px;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card ul {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.card ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.card ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  transform: translateY(-1px);
}

/* Process timeline */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.process-step .num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.process-step .num::after {
  content: "";
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.process-step h3 { font-size: 1.08rem; margin-bottom: 10px; }
.process-step p { font-size: 0.9rem; color: var(--text-muted); }

/* Why us */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.split .section-head { margin-bottom: 0; }

.feature-list { display: grid; gap: 14px; }

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.feature .card-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 11px;
}
.feature .card-icon svg { width: 20px; height: 20px; }

.feature strong {
  font-family: var(--font-display);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.feature span { font-size: 0.88rem; color: var(--text-muted); }

/* Product (ZIPPI) */

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: linear-gradient(150deg, rgba(45,212,191,0.09), rgba(255,255,255,0.02) 55%);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 56px;
}

.product-chip {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(52, 211, 153, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.product-card h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 16px; }
.product-card > div > p { color: var(--text-muted); margin-bottom: 28px; }

.product-features { display: grid; gap: 14px; }

/* FAQ */

.faq-list { max-width: 780px; display: grid; gap: 14px; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
  flex: none;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-channels { display: grid; gap: 14px; margin-top: 32px; }

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color 0.18s, background 0.18s;
}
.contact-channel:hover { border-color: var(--accent); background: var(--surface-hover); }

.contact-channel strong { font-family: var(--font-display); display: block; font-size: 0.95rem; }
.contact-channel span { font-size: 0.85rem; color: var(--text-muted); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 18px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-display);
  display: grid;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(4, 16, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.contact-form .hint { font-size: 0.8rem; color: var(--text-faint); font-weight: 400; }

/* CTA band */

.cta-band {
  background:
    radial-gradient(ellipse 70% 120% at 50% -20%, rgba(45, 212, 191, 0.22), transparent 65%),
    var(--bg-raised);
  border-block: 1px solid var(--border);
  text-align: center;
  padding: 112px 0;
}

.cta-band h2 { max-width: 720px; margin: 0 auto 18px; }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 40px; font-size: 1.08rem; }

/* --- Footer ------------------------------------------------------------------ */

footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-grid p { color: var(--text-muted); font-size: 0.9rem; margin-top: 16px; max-width: 300px; }

.footer-grid h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer-grid ul { display: grid; gap: 10px; }
.footer-grid ul a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.15s; }
.footer-grid ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--text-faint);
}

/* --- Reveal animations --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pipeline-step { animation: none; opacity: 1; transform: none; }
}

/* --- WhatsApp floating button ---------------------------------------------------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #03211d;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -6px rgba(45, 212, 191, 0.55);
  transition: transform 0.18s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 27px; height: 27px; }

/* --- Responsive -------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 560px; }
  .grid-3, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .product-card { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 72px 0; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(4, 16, 15, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; font-size: 1.05rem; }
  .nav-toggle { display: grid; }
  .nav-actions .btn { display: none; }
  .grid-3, .process-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .hero-stats { flex-direction: column; gap: 18px; }
  .hero-stats > div + div { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 18px; }
  .product-card { padding: 32px 24px; }
  .contact-form { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
