/* ═══════════════════════════════════════════════════════════════
   ReeSoft · Sistema Visual Global
   Paleta : #F9FAFB (bg) · #FFFFFF (surface) · #111827 (text)
             #0D2B45 (dark) · #C65A2E (primary) · #E5E7EB (border)
   Tipografía : Inter
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg:           #F9FAFB;
  --surface:      #FFFFFF;
  --text:         #111827;
  --muted:        #444444;
  --light:        #7a7f86;
  --primary:      #C65A2E;
  --primary-dark: #A8451F;
  --primary-dim:  rgba(198,90,46,0.08);
  --dark:         #0D2B45;
  --dark-2:       #1a3a56;
  --dark-dim:     rgba(13,43,69,0.07);
  --green:        #059669;
  --green-dim:    rgba(5,150,105,0.1);
  --border:       #E5E7EB;
  --border-light: #F3F4F6;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
  --shadow:       0 4px 16px rgba(0,0,0,0.07);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.1);
  --t:            0.16s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul  { list-style: none; }
button { font-family: inherit; }

/* ── Contenedor ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ══════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: 62px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.navbar.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }

.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center;
}

.nav-logo {
  display: flex; align-items: center; gap: 9px;
  flex-shrink: 0; margin-right: 36px;
}
.nav-logo img { height: 28px; width: auto; }
.nav-logo-text { font-size: 1.05rem; font-weight: 800; color: var(--dark); letter-spacing: -0.3px; }
.nav-logo-text span { color: var(--primary); }

.nav-body { display: flex; align-items: center; flex: 1; }

.nav-links { flex: 1; display: flex; align-items: center; gap: 2px; margin-left: 100px; }
.nav-links li a {
  display: block; padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  transition: color var(--t), background var(--t);
}
.nav-links li a:hover  { color: var(--text); background: var(--border-light); }
.nav-links li a.active { color: var(--text); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; margin-left: auto;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.2s; }

@media (max-width: 780px) {
  .nav-body {
    display: none; position: fixed;
    top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 14px 20px 20px; z-index: 99; gap: 0;
  }
  .nav-body.open { display: flex; }
  .nav-links { flex-direction: column; gap: 2px; align-items: stretch; margin-bottom: 12px; }
  .nav-links li a { padding: 10px 12px; }
  .nav-actions { flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 14px; }
  .nav-toggle { display: flex; }
  .nav-logo { margin-right: 0; }
}

/* ══════════════════════════════════════════════════════
   BOTONES
══════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; background: var(--primary); color: #fff;
  font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: background var(--t), transform var(--t);
  text-decoration: none; white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary.lg    { padding: 12px 26px; font-size: 0.95rem; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 20px; background: white; color: var(--text);
  font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); cursor: pointer;
  transition: border-color var(--t), background var(--t);
  text-decoration: none; white-space: nowrap;
}
.btn-secondary:hover { background: rgb(209, 209, 209); transform: translateY(-1px) }
.btn-secondary.lg   { padding: 11px 24px; font-size: 0.95rem; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; background: rgb(255, 255, 255); color: var(--text);
  font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: background var(--t);
  text-decoration: none;
}
.btn-ghost:hover { background: var(--border-light); }

.btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 24px; background: var(--dark); color: #fff;
  font-size: 0.9rem; font-weight: 600; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: background var(--t);
  text-decoration: none;
}
.btn-dark:hover { background: var(--dark-2); }
/* ── TESTIMONIALS ── */
  .testimonials-track {
    display: flex;
    gap: 24px;
    overflow: hidden;
    margin-top: 64px;
    cursor: grab;
    user-select: none;
  }
  .testimonials-track:active { cursor: grabbing; }
  .testimonial-card {
    flex-shrink: 0;
    width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color 0.2s;
  }
  .testimonial-card:hover { border-color: var(--border-hover); }
  .testi-quote {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 24px;
    font-weight: 300;
    font-style: italic;
  }
  .testi-author { display: flex; align-items: center; gap: 12px; }
  .testi-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--surface3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
  }
  .testi-name { font-size: 14px; font-weight: 500; }
  .testi-role { font-size: 12px; color: var(--muted); }
  .testi-stars { color: var(--accent); font-size: 13px; margin-bottom: 16px; }

/* ══════════════════════════════════════════════════════
   SECCIONES
══════════════════════════════════════════════════════ */
.page-top { padding-top: 62px; }
section   { padding: 80px 0; }
.alt-bg   { background: var(--surface); }
@media (max-width: 640px) { section { padding: 52px 0; } }

/* ── Tipografía de sección ── */
.section-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800;
  color: var(--text); line-height: 1.15; letter-spacing: -0.5px;
}
.section-sub {
  font-size: 1rem; color: var(--muted); line-height: 1.75;
  max-width: 520px; margin-top: 12px;
}

/* ── Keyframes globales ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page header (páginas interiores) ── */
.page-header .section-label { animation: fade-up 0.55s ease-out 0.05s both; }
.page-header .page-title    { animation: fade-up 0.60s ease-out 0.15s both; }
.page-header .page-sub      { animation: fade-up 0.60s ease-out 0.28s both; }

.page-header {
  padding: 60px 0 52px;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-header .section-label { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.15); }
.page-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: #fff; line-height: 1.1; letter-spacing: -1px; margin-bottom: 14px;
}
.page-sub { font-size: 1.05rem; color: rgba(220,230,240,0.75); max-width: 500px; line-height: 1.7; }

/* ── Screenshot / placeholder ── */
.screenshot-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  background: var(--surface); flex-shrink: 0;
}
.screenshot-wrap img { width: 100%; height: auto; display: block; }
.screenshot-placeholder {
  width: 100%; aspect-ratio: 16/10;
  background: var(--border-light);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--light); font-size: 0.82rem; font-weight: 500; gap: 10px;
}
.screenshot-placeholder svg { opacity: 0.3; }
/* cuando el placeholder tiene imagen real, no forzar tamaño */
.screenshot-placeholder:has(img) {
  aspect-ratio: unset; display: block;
  background: none; padding: 0;
}
.screenshot-placeholder img {
  width: 100%; height: auto; display: block;
  cursor: zoom-in;
}

/* ── Lightbox ── */
.lb-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.88);
  align-items: center; justify-content: center;
  padding: 20px;
  cursor: zoom-out;
  animation: lb-in 0.18s ease;
}
.lb-overlay.open { display: flex; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-overlay img {
  max-width: min(92vw, 1200px); max-height: 90vh;
  border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  display: block; cursor: zoom-out;
  animation: lb-scale 0.18s ease;
}
@keyframes lb-scale { from { transform: scale(0.95); } to { transform: scale(1); } }
.lb-close {
  position: fixed; top: 18px; right: 22px;
  background: rgba(255,255,255,0.12); border: none;
  color: #fff; font-size: 1.6rem; line-height: 1;
  width: 38px; height: 38px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }

/* ── Feature list ── */
.feat-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.feat-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text); line-height: 1.5;
}
.feat-list li::before {
  content: '';
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; margin-top: 2px;
  background: var(--green-dim)
    url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 4.5L6.5 11L3 7.5' stroke='%23059669' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / 11px;
}

/* ── Feature grid (2 cols) ── */
.feat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.feat-grid.rev .screenshot-wrap { order: 2; }
.feat-grid.rev .feat-text       { order: 1; }
@media (max-width: 768px) {
  .feat-grid { grid-template-columns: 1fr; gap: 36px; }
  .feat-grid.rev .screenshot-wrap { order: 1; }
  .feat-grid.rev .feat-text       { order: 2; }
}

/* ── CTA Band ── */
.cta-band { background: var(--dark); padding: 72px 0; text-align: center; }
.cta-band .section-title { color: #fff; }
.cta-band .section-sub   { color: rgba(255,255,255,0.55); margin: 14px auto 32px; text-align: center; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600;
  background: var(--primary-dim); color: var(--primary);
  border: 1px solid rgba(198,90,46,0.2);
}
.badge-dark { background: var(--dark-dim); color: var(--dark); border-color: rgba(13,43,69,0.15); }
.badge-green { background: var(--green-dim); color: var(--green); border-color: rgba(5,150,105,0.2); }

/* ── Divider ── */
hr { height: 1px; background: var(--border); border: none; }

/* ══════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: inherit; color: var(--text);
  background: var(--surface); outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(198,90,46,0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 0.76rem; color: var(--muted); }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer { background: var(--dark); color: rgba(255,255,255,0.55); padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 28px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-top: 10px; max-width: 260px; color: rgba(255,255,255,0.38); }
.footer-col h4  { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.28); margin-bottom: 14px; }
.footer-col ul  { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.48); transition: color var(--t); }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-links    { display: flex; gap: 20px; }
.footer-links a  { font-size: 0.78rem; color: rgba(255,255,255,0.32); transition: color var(--t); }
.footer-links a:hover { color: rgba(255,255,255,0.65); }

/* ══════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════════════════════════════ */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--primary);
  z-index: 9999;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   REVEAL SYSTEM
══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: calc(var(--i, 0) * 0.07s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 0.07s);
}

/* ══════════════════════════════════════════════════════
   NAV LINK UNDERLINE ANIMATION
══════════════════════════════════════════════════════ */
.nav-links li a { position: relative; }
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 11px;
  width: calc(100% - 22px); height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links li a:hover::after,
.nav-links li a.active::after { transform: scaleX(1); }

/* ══════════════════════════════════════════════════════
   BUTTON ACTIVE STATES
══════════════════════════════════════════════════════ */
.btn-primary:active  { transform: scale(0.97) !important; }
.btn-secondary:active { transform: scale(0.97) !important; }
.btn-ghost:active    { transform: scale(0.97) !important; }

/* ══════════════════════════════════════════════════════
   HOVER LIFT
══════════════════════════════════════════════════════ */
.screenshot-wrap {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.screenshot-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
