/* ================================================================
   CIVITAS — STYLESHEET
   Tokens → Base → Layout → Components → Sections → Responsive
================================================================ */

/* ── TOKENS ────────────────────────────────────────────────── */
:root {

  --violet-50:  #F3E8FF;
  --violet-700:  #7C3AED;

  --ambar-50:  #f3ddb7;
  --ambar-700: #cd8812;

  /* Paleta primaria (rojo corporativo) — reemplaza la antigua escala azul */
  --blue-50:  #fbe9e9;
  --blue-100: #f3c7c7;
  --blue-500: #d33636;
  --blue-600: #bb0505;
  --blue-700: #8f0404;
  --blue-900: #4a0202;

  /* Paleta secundaria (gris) */
  --slate-50:  #F8F8F8;
  --slate-100: #EFEFEF;
  --slate-200: #DDDDDE;
  --slate-400: #A3A4A5;
  --slate-600: #797a7b;
  --slate-700: #5f6061;
  --slate-900: #2b2b2c;

  --green-500: #22C55E;
  --red-500:   #EF4444;
  --wa-green:  #25D366;

  --primary:      #bb0505;
  --primary-hover: #8f0404;
  --secondary:    #797a7b;

  --accent:     var(--blue-600);
  --accent-hover: var(--blue-700);
  --bg:         #FFFFFF;
  --bg-subtle:  var(--slate-50);
  --text:       var(--slate-900);
  --text-muted: var(--slate-600);
  --border:     var(--slate-200);
  --radius:     12px;
  --radius-lg:  18px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(187,5,5,.12), 0 4px 16px rgba(0,0,0,.06);

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --nav-h: 68px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea {
  font: inherit;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(187,5,5,.12);
}
textarea { resize: vertical; min-height: 100px; }

/* ── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── UTILITY ────────────────────────────────────────────────── */
.bg-subtle { background: var(--bg-subtle); }
.section   { padding: 96px 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.color-whatsapp{
  color: var(--wa-green);
}

.color-email{
  color: var(--blue-600);
}

.msgResponse{
  display:none;
  padding:12px 16px;
  border-radius:8px;
  margin-bottom:12px;
  margin-top:12px;
  font-size:.9rem
}


/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s, transform .15s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(187,5,5,.30);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(187,5,5,.40); }

.btn-outline-sm {
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 8px 18px;
  font-size: .85rem;
}
.btn-outline-sm:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 2px 10px rgba(121,122,123,.18);
}
.btn-wa:hover { background: #1ebe5d; box-shadow: 0 4px 16px rgba(121,122,123,.28); }


/* ═══════════════════════════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  background: var(--blue-50);
  padding: 4px 12px;
  border-radius: 20px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 16px;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 65px;
  width: auto;
  display: block;
}
/* Footer logo  */
.footer-brand .nav-logo-img {
  height: 100px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--slate-100); }

.nav-actions { flex-shrink: 0; }

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

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--blue-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-100) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .35;
  pointer-events: none;
  display: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-content h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: .75rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Hero mockup */
.hero-visual { position: relative; }
.dashboard-mockup {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.mockup-header {
  background: var(--slate-100);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green  { background: #28C840; }
.mockup-title {
  margin-left: auto;
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.mockup-body { display: flex; }
.mockup-sidebar {
  width: 48px;
  background: var(--slate-900);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sidebar-item {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--slate-400);
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.sidebar-item.active, .sidebar-item:hover {
  background: var(--accent);
  color: #fff;
}
.mockup-main { flex: 1; padding: 16px; }
.mockup-kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.kpi-card {
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.kpi-label { font-size: .65rem; color: var(--text-muted); display: block; margin-bottom: 2px; }
.kpi-value { font-size: .88rem; font-weight: 700; display: block; color: var(--text); }
.kpi-badge {
  display: inline-block;
  font-size: .6rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  margin-top: 4px;
}
.kpi-badge.green  { background: #DCFCE7; color: #166534; }
.kpi-badge.blue   { background: var(--blue-50); color: var(--blue-700); }
.kpi-badge.orange { background: #FEF3C7; color: #92400E; }

.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 60px;
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 10px;
}
.chart-bar {
  flex: 1;
  background: var(--blue-100);
  border-radius: 4px 4px 0 0;
  transition: background .2s;
}
.chart-bar.highlight { background: var(--accent); }

.mockup-notif {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  color: var(--text-muted);
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px;
}
.notif-time { margin-left: auto; font-size: .65rem; }

/* Floating badges */
.floating-badge {
  position: absolute;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  padding: 8px 16px;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  animation: float 3.5s ease-in-out infinite;
}
.badge-1 { bottom: 16px; left: -32px; color: #166534; animation-delay: 0s; }
.badge-1 i { color: var(--wa-green); }
.badge-2 { top: 24px; right: -24px; color: var(--accent); animation-delay: 1.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
}
.hero-wave svg { width: 100%; display: block; }

/* ═══════════════════════════════════════════════════════════════
   FEATURES BAND
═══════════════════════════════════════════════════════════════ */
.features-band {
  overflow: hidden;
  background: var(--blue-900);
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.features-scroll {
  display: flex;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}
.feat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 600;
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.feat-item i { color: var(--blue-500); font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   MODULES GRID
═══════════════════════════════════════════════════════════════ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.module-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.module-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue-100);
}
.module-icon {
  width: 52px; height: 52px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c);
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.module-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.module-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.65; }
.module-features { display: flex; flex-direction: column; gap: 7px; }
.module-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
}
.module-features li i { color: var(--accent); font-size: .75rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   BENTO GRID (Funcionalidades)
═══════════════════════════════════════════════════════════════ */
.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}
.bento-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow .25s, transform .25s;
}
.bento-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.bento-large { grid-column: span 2; }
.bento-x-large { grid-column: span 3; }
.bento-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.bento-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* Cashflow visual */
.bento-visual { margin-top: 20px; }
.cashflow {
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.cf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: .85rem;
}
.cf-label { color: var(--text-muted); }
.cf-amount { font-weight: 700; }
.cf-amount.green { color: #16A34A; }
.cf-amount.red   { color: var(--red-500); }
.cf-amount.bold  { font-size: 1rem; }
.cf-divider { height: 1px; background: var(--border); margin: 8px 0; }
.cf-row.total { padding-top: 10px; font-weight: 600; color: var(--text); }

/* Profiles visual */
.profiles { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.profile-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.profile-badge.admin    { background: var(--blue-50); color: var(--blue-700); }
.profile-badge.conserje { background: var(--violet-50); color: var(--violet-700); }
.profile-badge.comite{ background: var(--ambar-50); color: var(--ambar-700); }
.profile-perms { display: flex; gap: 8px; flex-wrap: wrap; }
.perm {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .72rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
}
.perm.on  { background: #DCFCE7; color: #166534; }
.perm.off { background: var(--slate-100); color: var(--slate-400); }

/* ═══════════════════════════════════════════════════════════════
   COMUNICACIÓN
═══════════════════════════════════════════════════════════════ */
.comms-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.comms-content .section-eyebrow { display: inline-block; margin-bottom: 12px; }
.comms-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.comms-content p { color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.comms-list { display: flex; flex-direction: column; gap: 14px; }
.comms-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
}
.comms-list li i { font-size: 1.2rem; flex-shrink: 0; }

/* WhatsApp mockup */
.wa-mockup {
  background: #ECE5DD;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  margin: 0 auto;
}
.wa-header {
  background: #075E54;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.wa-avatar {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.wa-name   { font-weight: 700; font-size: .9rem; }
.wa-status { font-size: .72rem; opacity: .75; }
.wa-messages { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wa-msg {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  font-size: .82rem;
  line-height: 1.5;
  max-width: 85%;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.wa-msg.received { align-self: flex-start; }
.wa-time {
  display: block;
  text-align: right;
  font-size: .65rem;
  color: #999;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   STEPS
═══════════════════════════════════════════════════════════════ */
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}
.step-card {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: box-shadow .25s, transform .25s;
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.step-connector {
  flex: 0 0 48px;
  height: 2px;
  background: var(--border);
  align-self: center;
  margin-top: -40px;
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 0; height: 0;
  border-left: 8px solid var(--border);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.step-number {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--accent);
  background: var(--blue-50);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid var(--blue-100);
}
.step-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.step-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}
.step-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════════════ */
.section-cta {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  padding: 72px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.cta-text p { color: rgba(255,255,255,.75); font-size: .95rem; }
.section-cta .btn-primary {
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.section-cta .btn-primary:hover { background: var(--blue-50); }

/* ═══════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.contact-info .section-eyebrow { display: inline-block; margin-bottom: 12px; }
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.contact-info p { color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
}
.contact-detail i { font-size: 1.3rem; color: var(--accent); }
.contact-detail span { color: var(--accent);  line-height: 1.7; }

.contact-form-wrap {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-actions .btn { flex: 1; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--slate-900);
  padding: 72px 0 0;
  color: rgba(255,255,255,.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo-mark { background: var(--accent); }
.footer-brand p { text-align: center; font-size: .9rem; color: rgba(255,255,255,.5); max-width: 300px; line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 14px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .875rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  padding: 20px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .features-bento { grid-template-columns: 1fr 1fr; }
  .bento-large { grid-column: span 2; }
  .hero-inner { gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Nav */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 8px; font-size: 1rem; }
  .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-eyebrow { display: none; }
  .hero-ctas { justify-content: center; }
  .hero-stats { margin: 0 auto; }
  .hero-visual { display: none; }

  /* Modules */
  .modules-grid { grid-template-columns: 1fr; }

  /* Bento */
  .features-bento { grid-template-columns: 1fr; }
  .bento-large { grid-column: span 1; }

  /* Comms */
  .comms-inner { grid-template-columns: 1fr; gap: 40px; }

  /* Steps */
  .steps-grid { flex-direction: column; align-items: center; }
  .step-connector { display: none; }

  /* CTA */
  .cta-inner { flex-direction: column; text-align: center; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 24px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { flex: none; width: 100%; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom .container { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floating-badge { animation: none; }
}

/* ─── COMMS STACKED CARDS ───────────────────────────────────── */
@keyframes oscillate-wa {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-8px) rotate(-2deg); }
}
@keyframes oscillate-email {
  0%, 100% { transform: translateY(0px) rotate(3deg); }
  50%       { transform: translateY(-6px) rotate(3deg); }
}

.comms-cards-stack {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comm-card {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* WhatsApp — atrás y a la izquierda, leve rotación antihoraria */
.comm-card-wa {
  width: 300px;
  left: 0;
  top: 20px;
  z-index: 1;
  transform: rotate(-2deg);
  transform-origin: bottom left;
  animation: oscillate-wa 4s ease-in-out infinite;
}
.comm-card-wa .wa-mockup {
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Email — encima y a la derecha, leve rotación horaria */
.comm-card-email {
  width: 280px;
  right: 0;
  bottom: 10px;
  z-index: 2;
  transform: rotate(3deg);
  transform-origin: bottom right;
  animation: oscillate-email 4.8s ease-in-out infinite;
  background: #fff;
  border: 1px solid var(--border);
}
.comm-card-email img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .comms-cards-stack {
    min-height: 280px;
  }
  .comm-card-wa  { width: 220px; }
  .comm-card-email { width: 200px; }
}





/* ================================================================
   BENTO — TU INFORMACIÓN TE PERTENECE
================================================================ */
.bento-tuya {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bento-tuya-header {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-direction: column;
}
.bento-excel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.excel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  color: var(--text);
  font-weight: 500;
}
.excel-item i {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.excel-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .8rem;
  font-weight: 700;
  align-self: flex-start;
}
.excel-badge i { font-size: 1rem; }

/* ================================================================
   SECCIÓN — QUÉ MIGRAMOS
================================================================ */
.migramos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.migramos-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.migramos-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--blue-100);
}
.migramos-icon {
  width: 46px; height: 46px;
  background: var(--blue-50);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.migramos-content h4 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.migramos-content p {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.migramos-cta {
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .migramos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .migramos-grid { grid-template-columns: 1fr; }
}
