/* IndiPOS PRO — landing */
:root {
  --bg-deep: #0b1220;
  --bg-card: #111a2e;
  --border: rgba(148, 163, 184, 0.12);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.15);
  --accent-glow: rgba(34, 211, 238, 0.35);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 14px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Background mesh */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(99, 102, 241, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(34, 211, 238, 0.06), transparent),
    var(--bg-deep);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bg-deep);
  box-shadow: 0 0 24px var(--accent-glow);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  color: #042f2e;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--accent-glow);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--accent-dim);
  border-color: rgba(34, 211, 238, 0.35);
  text-decoration: none;
}

.menu-toggle {
  display: flex;
  padding: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}
.menu-toggle .icon-close {
  display: none;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(17, 26, 46, 0.98);
  padding: 1rem 1.25rem 1.25rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.65rem 0;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .btn-primary {
  margin-top: 0.75rem;
  width: 100%;
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero h1 span {
  background: linear-gradient(90deg, #22d3ee, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 520px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Sections */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
  margin-inline: auto;
}

/* Module grid */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
  border-color: rgba(34, 211, 238, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.module-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.module-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.module-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-dim);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Value props */
.value-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .value-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--bg-card), rgba(17, 26, 46, 0.5));
  border: 1px solid var(--border);
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.value-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  margin: 2rem 1.25rem 0;
  max-width: var(--max);
  margin-inline: auto;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.2);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Reveal animation (JS toggles .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-loading .load-error {
  display: none;
}

.load-error {
  max-width: 36rem;
  margin: 3rem auto;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.load-error code {
  color: var(--accent);
  font-size: 0.85em;
}

/* Factura electrónica */
.fe-section .fe-body {
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.fe-paragraph {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1rem;
}

.fe-highlights {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .fe-highlights {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fe-highlight {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.fe-highlight h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--accent);
}

.fe-highlight p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Videos */
.video-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-card h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1rem;
}

.video-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.video-frame--lazy .video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4rem;
  height: 4rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(34, 211, 238, 0.92);
  color: var(--bg-deep);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-play-btn:hover {
  transform: scale(1.08);
  background: #22d3ee;
}

.video-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.65rem 0 0.65rem 1.1rem;
  border-color: transparent transparent transparent var(--bg-deep);
  margin-left: 0.25rem;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.videos-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Equipos */
.equipment-section .equipment-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.equipment-body {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.equipment-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.equipment-list li {
  margin-bottom: 0.5rem;
}

.section-head-spaced {
  margin-top: 3rem;
}

/* WhatsApp */
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.4);
  text-decoration: none;
}
