/* ============================================================
   ControlYada — hoja de estilos
   Marca: verde esmeralda + teal profundo, con ámbar para los acentos.
   Misma estructura que los sitios de EduYada y ChurchYada; los componentes
   propios de ControlYada (maquetas de la app: asientos, banco, caja,
   presupuesto, nómina) están al final.
   ============================================================ */

:root {
  --ink-900: #04241F;
  --ink-800: #06312C;
  --ink-700: #0C3B34;
  --ink-600: #0F766E;
  --ink:      #16292B;
  --slate:    #54676B;
  --muted:    #7E9296;

  --violet-600: #047857;   /* verde oscuro (enlaces, kickers) */
  --violet-500: #059669;   /* verde de marca */
  --violet-400: #34D399;   /* verde claro (sobre fondo oscuro) */
  --fuchsia-500:#0D9488;
  --amber-500:  #E8A13A;

  --bg:        #FFFFFF;
  --bg-soft:   #F3FAF7;
  --bg-line:   #DFEDE8;

  /* tokens que cambian con el tema */
  --ink-c:        var(--ink);
  --heading:      var(--ink-800);
  --card:         #FFFFFF;
  --header-bg:    rgba(255,255,255,.78);
  --header-line:  rgba(223,237,232,.9);
  --btn-ghost-bg: rgba(255,255,255,.7);
  --border-strong:#c9e3da;
  --logo-radius:  11px;

  --grad-brand: linear-gradient(135deg, #34D399 0%, #059669 100%);
  --grad-hero: radial-gradient(60% 55% at 78% 12%, rgba(16,185,129,.18), transparent 60%),
               radial-gradient(50% 45% at 15% 20%, rgba(6,49,44,.14), transparent 60%);

  --shadow-sm: 0 1px 2px rgba(6,49,44,.06), 0 4px 12px rgba(6,49,44,.05);
  --shadow-md: 0 8px 24px rgba(6,49,44,.09);
  --shadow-lg: 0 24px 60px rgba(6,49,44,.18);

  --radius:    18px;
  --radius-lg: 26px;
  --maxw:      1160px;

  --font-head: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Tema oscuro ---------- */
:root[data-theme="dark"] {
  --ink:          #DDEBE7;
  --slate:        #A2BCB6;
  --muted:        #7F9A95;

  --bg:           #06181A;
  --bg-soft:      #0A2320;
  --bg-line:      rgba(255,255,255,.10);

  --heading:      #ECFDF5;
  --card:         #0D2C28;
  --header-bg:    rgba(6,24,26,.82);
  --header-line:  rgba(255,255,255,.08);
  --btn-ghost-bg: rgba(255,255,255,.06);
  --border-strong:rgba(255,255,255,.20);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--heading); letter-spacing: -.02em; overflow-wrap: break-word; }
h1 { hyphens: auto; overflow-wrap: anywhere; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .72rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(5,150,105,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(5,150,105,.45); }
.btn-ghost { background: var(--btn-ghost-bg); color: var(--heading); border-color: var(--bg-line); }
.btn-ghost:hover { background: var(--card); border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; margin-top: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--header-line);
}
/* La marca no se encoge y el menú toma el resto; además la cabecera usa más
   ancho que el contenido: marca + 6 enlaces + dos botones no caben en 1160px. */
.site-header .container { max-width: 1300px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.brand-mark { border-radius: 11px; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--heading); letter-spacing: -.03em; }
.brand-text .accent { color: var(--violet-500); }
.brand--light .brand-text { color: #fff; }
.brand--light .brand-text .accent { color: var(--violet-400); }

.nav { display: flex; gap: 1.25rem; flex: 1 1 auto; justify-content: center; min-width: 0; }
.nav a { font-weight: 500; color: var(--slate); font-size: .95rem; position: relative; white-space: nowrap; }
.nav a:hover { color: var(--heading); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad-brand); border-radius: 2px; transition: width .22s ease;
}
.nav a:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: .9rem; flex: 0 0 auto; }
.header-tools { display: flex; align-items: center; gap: .4rem; }
.header-actions { display: flex; align-items: center; gap: .6rem; }

/* Botones de herramientas (idioma / tema) */
.tool-btn {
  display: inline-flex; align-items: center; gap: .35rem; height: 40px; padding: 0 .7rem;
  background: var(--btn-ghost-bg); border: 1px solid var(--bg-line); border-radius: 999px;
  color: var(--slate); cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.tool-btn:hover { color: var(--heading); border-color: var(--border-strong); }
.tool-btn .ico, .tool-btn .ico-chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool-btn .ico-chev { width: 14px; height: 14px; opacity: .7; }
.theme-toggle { width: 40px; justify-content: center; padding: 0; }

.ico-sun { display: none; }
.ico-moon { display: block; }
:root[data-theme="dark"] .ico-sun { display: block; }
:root[data-theme="dark"] .ico-moon { display: none; }

/* Menú de idioma */
.lang { position: relative; }
.lang-btn .ico-chev { transition: transform .2s ease; }
.lang.is-open .ico-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; list-style: none;
  background: var(--card); border: 1px solid var(--bg-line); border-radius: 14px; padding: .35rem;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 60;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; cursor: pointer;
  padding: .55rem .75rem; font-family: var(--font-body); font-size: .92rem; color: var(--slate); transition: .15s;
}
.lang-menu button:hover { background: var(--bg-soft); color: var(--heading); }
.lang-menu button.is-active { color: var(--violet-500); font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--heading); border-radius: 2px; transition: .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 72px; padding-bottom: 40px; background: var(--bg-soft); overflow: hidden; }
.hero-glow { position: absolute; inset: 0; background: var(--grad-hero); pointer-events: none; }
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center;
  padding-block: 20px 40px;
}
.hero-inner > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; color: var(--violet-600); background: var(--card); border: 1px solid var(--bg-line);
  padding: .4rem .85rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); }
.hero-copy h1 { font-size: clamp(1.9rem, 6.2vw, 3.5rem); font-weight: 800; margin: 1.1rem 0; }
.grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--slate); max-width: 34rem; }
.hero-cta { display: flex; gap: .8rem; margin: 1.7rem 0 1.3rem; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; gap: 1.4rem; flex-wrap: wrap; color: var(--slate); font-size: .92rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.ico-check { width: 18px; height: 18px; fill: none; stroke: #12A05C; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.float-card {
  position: absolute; background: var(--card); border: 1px solid var(--bg-line); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem; z-index: 3;
}
/* Las tarjetas flotan sobre la maqueta, pero nunca sobre su título ni sobre el
   texto de las filas: se apoyan en los bordes. */
.float-card--live { top: 44%; left: -46px; animation: floaty 6s ease-in-out infinite .4s; }
.fc-live { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: #12A05C; }
.fc-live i { width: 9px; height: 9px; border-radius: 50%; background: #12A05C; box-shadow: 0 0 0 4px rgba(18,160,92,.16); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(18,160,92,0); } }
.fc-label { font-size: .72rem; color: var(--muted); font-weight: 500; }
.float-card--next { bottom: -14px; right: -18px; max-width: 235px; align-items: flex-start; animation: floaty 6.5s ease-in-out infinite .8s; }
.float-card--next strong { display: block; font-size: .85rem; color: var(--heading); }
.float-card--next span { font-size: .76rem; color: var(--muted); }
.fc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad-brand); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(5,150,105,.15); margin-top: .3rem; }

/* ---------- Trust ---------- */
.trust { text-align: center; padding-top: 22px; border-top: 1px solid var(--bg-line); margin-top: 10px; }
.trust > span { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.2rem; margin-top: 1rem; }
.trust-logos span { font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: 1.02rem; opacity: .85; }

/* ---------- Secciones ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.kicker { font-family: var(--font-head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--violet-500); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; margin: .7rem 0 .8rem; }
.section-head p { color: var(--slate); font-size: 1.06rem; }

/* ---------- Características ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature {
  background: var(--card); border: 1px solid var(--bg-line); border-radius: var(--radius); padding: 1.8rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(5,150,105,.14), rgba(16,185,129,.12)); margin-bottom: 1.1rem;
}
.feature-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--violet-500); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature p { color: var(--slate); font-size: .96rem; }

/* ---------- Tabs / Módulos ---------- */
.tab-buttons { display: inline-flex; flex-wrap: wrap; gap: .3rem; background: var(--card); border: 1px solid var(--bg-line); border-radius: 999px; padding: .35rem; margin: 0 auto 2rem; box-shadow: var(--shadow-sm); }
.tabs { text-align: center; }
.tab-btn { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--slate); background: none; border: 0; padding: .6rem 1.3rem; border-radius: 999px; cursor: pointer; transition: .2s; }
.tab-btn:hover { color: var(--heading); }
.tab-btn.is-active { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 16px rgba(5,150,105,.3); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none; } }
.tab-content {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; text-align: left;
  background: var(--card); border: 1px solid var(--bg-line); border-radius: var(--radius-lg); padding: 2.6rem; box-shadow: var(--shadow-sm);
}
.tab-content h3 { font-size: 1.6rem; margin-bottom: .8rem; }
.tab-content > div > p { color: var(--slate); margin-bottom: 1.2rem; }

.check-list { list-style: none; display: grid; gap: .65rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--ink); font-size: .98rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(5,150,105,.12);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: 7px; width: 8px; height: 5px;
  border-left: 2px solid var(--violet-500); border-bottom: 2px solid var(--violet-500); transform: rotate(-45deg);
}

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.step { position: relative; background: var(--card); border: 1px solid var(--bg-line); border-radius: var(--radius); padding: 2rem 1.8rem; }
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
  margin-bottom: 1.1rem; box-shadow: 0 8px 18px rgba(5,150,105,.3);
}
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--slate); font-size: .96rem; }

/* ---------- Franja de estadísticas ---------- */
.stats-band { background: var(--ink-800); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 85% 0%, rgba(16,185,129,.3), transparent 60%); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; background: linear-gradient(120deg,#fff,#A7F3D0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: #BDB2D6; font-size: .95rem; }

/* ---------- Cita / origen ---------- */
.quote { max-width: 46rem; margin: 0 auto; text-align: center; position: relative; }
.quote-mark { font-family: var(--font-head); font-size: 5rem; line-height: .6; color: var(--violet-400); opacity: .55; }
.quote blockquote { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem,2.6vw,1.8rem); color: var(--heading); margin: .5rem 0 1.6rem; letter-spacing: -.01em; }
.quote figcaption { display: inline-flex; align-items: center; gap: .8rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-weight: 700; }
.quote figcaption span:last-child { text-align: left; }
.quote figcaption strong { display: block; color: var(--heading); }
.quote figcaption em { font-style: normal; color: var(--muted); font-size: .9rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 48rem; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: var(--card); border: 1px solid var(--bg-line); border-radius: 16px; padding: .2rem 1.3rem; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; color: var(--heading);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: .2rem; top: 1.45rem; width: 10px; height: 10px;
  border-right: 2px solid var(--violet-500); border-bottom: 2px solid var(--violet-500);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p { color: var(--slate); font-size: .98rem; padding-bottom: 1.2rem; }

/* ---------- Precios ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--bg-line); border-radius: var(--radius-lg); padding: 2rem 1.8rem; }
.price-card h3 { font-size: 1.3rem; }
.price-desc { color: var(--slate); font-size: .92rem; margin: .4rem 0 1.2rem; min-height: 2.6em; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--heading); margin-bottom: 1.4rem; letter-spacing: -.03em; }
.price .cur { font-size: 1.4rem; vertical-align: super; margin-right: .1rem; }
.price .per { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price--custom { font-size: 2rem; }
.price-card .check-list { margin-bottom: 1.6rem; }
.price-card--featured {
  border: 1.5px solid transparent; background:
    linear-gradient(var(--card),var(--card)) padding-box,
    var(--grad-brand) border-box;
  box-shadow: var(--shadow-lg); position: relative; transform: translateY(-8px);
}
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: .74rem; padding: .35rem .9rem; border-radius: 999px; box-shadow: 0 6px 16px rgba(5,150,105,.35);
}
.price-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 1.4rem; }

/* ---------- CTA ---------- */
.cta { padding: 92px 0; }
.cta-inner {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink-800); color: #fff; border-radius: 32px; padding: 4rem 2rem;
}
.cta-glow { position: absolute; inset: 0; background: radial-gradient(50% 90% at 50% 0%, rgba(16,185,129,.38), transparent 60%); }
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem,3.4vw,2.6rem); }
.cta-inner p { color: #B5CFC9; max-width: 38rem; margin: 1rem auto 2rem; }
.cta-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6rem; max-width: 640px; margin: 0 auto; }
.cta-input {
  width: 100%; min-width: 0; padding: .9rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #fff; font-family: var(--font-body); font-size: .95rem;
}
.cta-input--full { grid-column: 1 / -1; }
.cta-input::placeholder { color: #8FB0A9; }
.cta-input:focus { outline: none; border-color: var(--violet-400); background: rgba(255,255,255,.14); }
.cta-form textarea.cta-input { border-radius: 22px; min-height: 7rem; resize: vertical; line-height: 1.55; }
.cta-form select.cta-input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23A99FC2' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 12px 8px;
}
.cta-form select.cta-input option { background: var(--ink-800); color: #fff; }
.cta-form button[disabled] { opacity: .6; cursor: progress; transform: none; }
/* Honeypot: fuera de la vista pero rellenable por un bot */
.cta-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cta-status { min-height: 1.25rem; margin: .1rem 0 0; font-size: .9rem; text-align: center; }
.cta-status.is-sending { color: #B5CFC9; }
.cta-status.is-ok { color: #7BE0A8; }
.cta-status.is-error { color: #FCA5A5; }
.cta-note { display: block; margin-top: 1rem; color: #8FB0A9; font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #A9C3BD; padding: 68px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { margin-top: 1rem; font-size: .95rem; max-width: 22rem; }
.footer-c4m { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.3rem; color: #8CA9A3; font-size: .82rem; transition: color .2s ease, opacity .2s ease; }
.footer-c4m:hover { color: #fff; }
.footer-c4m-logo { height: 20px; width: auto; opacity: .9; transition: opacity .2s ease; }
.footer-c4m:hover .footer-c4m-logo { opacity: 1; }
.footer-note { display: block; color: #7A938E; font-size: .85rem; line-height: 1.5; margin-bottom: .7rem; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-col a { display: block; padding: .32rem 0; color: #8CA9A3; font-size: .93rem; transition: color .2s; }
.footer-col a:hover { color: var(--violet-400); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #7A938E; }
.footer-bottom a { color: var(--violet-400); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual .browser-frame, .float-card { animation: none !important; }
}

/* ============================================================
   Componentes propios: marco de navegador y maquetas de la app
   ============================================================ */

.browser-frame {
  background: var(--card); border: 1px solid var(--bg-line); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.bf-bar {
  display: flex; align-items: center; gap: .6rem; height: 40px; padding: 0 .9rem;
  background: var(--bg-soft); border-bottom: 1px solid var(--bg-line);
}
.bf-dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.bf-dots i { width: 11px; height: 11px; border-radius: 50%; background: #D8D2EA; }
.bf-dots i:nth-child(1) { background: #FF5F57; }
.bf-dots i:nth-child(2) { background: #FEBC2E; }
.bf-dots i:nth-child(3) { background: #28C840; }
.bf-url {
  font-family: var(--font-body); font-size: .78rem; color: var(--muted);
  background: var(--card); border: 1px solid var(--bg-line); border-radius: 8px;
  padding: .18rem .9rem; margin-inline: auto; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-frame > img { display: block; width: 100%; height: auto; }
.hero-visual .browser-frame { animation: floaty 7s ease-in-out infinite; }

/* ---------- Recorrido (filas alternadas) ---------- */
.showcase { display: grid; gap: 5rem; }
.show-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.show-row--rev .show-copy { order: 2; }
.show-row--rev .show-visual { order: 1; }
.show-kicker { font-family: var(--font-head); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--violet-500); }
.show-copy h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin: .6rem 0 .9rem; }
.show-copy > p { color: var(--slate); font-size: 1.05rem; margin-bottom: 1.4rem; }
.show-visual { position: relative; }
.show-visual .browser-frame { transition: transform .3s ease, box-shadow .3s ease; }
.show-row:hover .show-visual .browser-frame { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(6,49,44,.22); }

/* ---------- Maquetas de la aplicación ----------
   Dibujos de la interfaz en HTML/CSS (no son capturas). Todo se escala con
   --mk, así que la misma maqueta sirve en el hero y dentro de una pestaña. */
.mk { --mk: 1; font-family: var(--font-body); background: var(--card); color: var(--ink);
      font-size: calc(12px * var(--mk)); line-height: 1.45; }
.mk--sm { --mk: .86; }

.mk-app { display: grid; grid-template-columns: calc(132px * var(--mk)) 1fr; min-height: calc(300px * var(--mk)); }
.mk-side { background: var(--ink-900); color: #B9AEDA; padding: calc(12px * var(--mk)); display: flex; flex-direction: column; gap: calc(3px * var(--mk)); }
.mk-brand { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: calc(13px * var(--mk)); margin-bottom: calc(8px * var(--mk)); }
.mk-brand span { color: var(--violet-400); }
.mk-group { font-size: calc(8.5px * var(--mk)); letter-spacing: .09em; text-transform: uppercase; color: #6F6491; margin: calc(9px * var(--mk)) 0 calc(3px * var(--mk)); font-weight: 700; }
.mk-item { display: flex; align-items: center; gap: calc(7px * var(--mk)); padding: calc(4px * var(--mk)) calc(6px * var(--mk)); border-radius: calc(7px * var(--mk)); white-space: nowrap; }
.mk-item i { width: calc(6px * var(--mk)); height: calc(6px * var(--mk)); border-radius: 2px; background: currentColor; opacity: .55; flex: none; }
.mk-item.is-on { background: rgba(5,150,105,.28); color: #fff; }

.mk-main { padding: calc(14px * var(--mk)); display: flex; flex-direction: column; gap: calc(10px * var(--mk)); min-width: 0; background: var(--card); }
.mk-bar { display: flex; align-items: center; gap: calc(8px * var(--mk)); }
.mk-title { font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: calc(15px * var(--mk)); }
.mk-chip { font-size: calc(9.5px * var(--mk)); padding: calc(2px * var(--mk)) calc(8px * var(--mk)); border-radius: 999px; background: rgba(5,150,105,.12); color: var(--violet-600); white-space: nowrap; }
.mk-chip--amber { background: rgba(232,161,58,.16); color: #9A6410; }
.mk-chip--green { background: rgba(18,160,92,.14); color: #0B7A45; }
.mk-btn { margin-left: auto; font-family: var(--font-head); font-weight: 600; font-size: calc(10px * var(--mk));
  padding: calc(5px * var(--mk)) calc(11px * var(--mk)); border-radius: 999px; background: var(--grad-brand); color: #fff; white-space: nowrap; }

.mk-rows { display: flex; flex-direction: column; gap: calc(6px * var(--mk)); }
.mk-row { display: flex; align-items: center; gap: calc(9px * var(--mk)); padding: calc(7px * var(--mk)) calc(9px * var(--mk));
  border: 1px solid var(--bg-line); border-radius: calc(9px * var(--mk)); background: var(--card); }
.mk-row.is-live { border-color: var(--violet-500); box-shadow: 0 0 0 calc(2px * var(--mk)) rgba(5,150,105,.14); }
.mk-num { width: calc(16px * var(--mk)); font-family: var(--font-head); font-weight: 700; color: var(--violet-500); text-align: right; flex: none; }
.mk-kind { font-size: calc(8.5px * var(--mk)); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); width: calc(52px * var(--mk)); flex: none; }
.mk-name { font-weight: 600; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-sub { color: var(--muted); font-size: calc(10px * var(--mk)); margin-left: auto; white-space: nowrap; }
.mk-note { margin-top: calc(3px * var(--mk)); font-size: calc(10px * var(--mk)); color: #8A5A00;
  border-left: calc(2px * var(--mk)) solid var(--amber-500); background: rgba(232,161,58,.10);
  padding: calc(3px * var(--mk)) calc(7px * var(--mk)); border-radius: 0 calc(5px * var(--mk)) calc(5px * var(--mk)) 0; }
.mk-stack { display: flex; flex-direction: column; min-width: 0; flex: 1; }

/* Importes: tabulares y alineados a la derecha, como en una contabilidad. */
.mk-amt { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; text-align: right;
  width: calc(66px * var(--mk)); flex: none; color: var(--heading); font-weight: 600; }
.mk-amt--muted { color: var(--muted); font-weight: 500; }
.mk-amt--neg { color: #C2410C; }
.mk-amt--pos { color: #047857; }
.mk-code { font-variant-numeric: tabular-nums; color: var(--muted); width: calc(42px * var(--mk)); flex: none; }
.mk-total { display: flex; align-items: center; gap: calc(9px * var(--mk)); padding: calc(7px * var(--mk)) calc(9px * var(--mk));
  border-radius: calc(9px * var(--mk)); background: rgba(5,150,105,.09); font-weight: 700; color: var(--heading); }

/* Barras: presupuesto contra realidad */
.mk-bars { display: flex; flex-direction: column; gap: calc(9px * var(--mk)); }
.mk-barrow { display: grid; grid-template-columns: calc(86px * var(--mk)) 1fr calc(58px * var(--mk)); align-items: center; gap: calc(8px * var(--mk)); }
.mk-barlabel { color: var(--heading); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-bartrack { position: relative; height: calc(13px * var(--mk)); border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.mk-barfill { position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); border-radius: 999px; background: var(--grad-brand); }
.mk-barfill--over { background: linear-gradient(135deg, #FBBF24 0%, #E8A13A 100%); }
.mk-barplan { position: absolute; top: calc(-2px * var(--mk)); bottom: calc(-2px * var(--mk)); left: var(--p, 80%);
  width: calc(2px * var(--mk)); background: var(--ink-700); opacity: .5; }

/* Caja (POS): bloques de acceso rápido + ticket */
.mk-pos { display: grid; grid-template-columns: 1fr calc(112px * var(--mk)); gap: calc(9px * var(--mk)); }
.mk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(6px * var(--mk)); }
.mk-tile { border-radius: calc(8px * var(--mk)); padding: calc(9px * var(--mk)) calc(7px * var(--mk)); text-align: center;
  background: var(--bg-soft); border: 1px solid var(--bg-line); }
.mk-tile b { display: block; font-size: calc(10px * var(--mk)); color: var(--heading); }
.mk-tile span { font-size: calc(9px * var(--mk)); color: var(--muted); }
.mk-tile.is-on { background: rgba(5,150,105,.12); border-color: var(--violet-500); }
.mk-ticket { border: 1px solid var(--bg-line); border-radius: calc(8px * var(--mk)); padding: calc(8px * var(--mk)); background: var(--card); }
.mk-tline { display: flex; justify-content: space-between; gap: calc(6px * var(--mk)); font-size: calc(10px * var(--mk)); color: var(--slate); padding: calc(2px * var(--mk)) 0; }
.mk-tline b { color: var(--heading); }
.mk-tsum { margin-top: calc(6px * var(--mk)); padding-top: calc(6px * var(--mk)); border-top: 1px dashed var(--bg-line); font-weight: 700; color: var(--heading); }

/* Antigüedad de saldos (openstaande posten) */
.mk-age { display: grid; grid-template-columns: 1fr repeat(4, calc(52px * var(--mk))); gap: calc(4px * var(--mk)) calc(6px * var(--mk)); align-items: center; }
.mk-age > span { font-size: calc(9.5px * var(--mk)); text-align: right; font-variant-numeric: tabular-nums; color: var(--slate); }
.mk-age > span:nth-child(5n+1) { text-align: left; color: var(--heading); font-weight: 600; }
.mk-age .mk-agehead { font-size: calc(8.5px * var(--mk)); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.mk-age .is-late { color: #C2410C; font-weight: 700; }

/* Hoja impresa: factura, nómina o informe */
.mk-sheet { background: #fff; color: #16292B; border: 1px solid var(--bg-line); border-radius: calc(8px * var(--mk));
  padding: calc(12px * var(--mk)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.01); }
.mk-sheet-h { display: flex; align-items: baseline; gap: calc(8px * var(--mk)); border-bottom: 1px solid #E2EFEA; padding-bottom: calc(6px * var(--mk)); margin-bottom: calc(8px * var(--mk)); }
.mk-sheet-h b { font-family: var(--font-head); font-size: calc(13px * var(--mk)); color: #06312C; }
.mk-sheet-h span { font-size: calc(9.5px * var(--mk)); color: #7E9296; margin-left: auto; }
.mk-sheet .mk-row { border: 0; padding: calc(4px * var(--mk)) 0; border-bottom: 1px dashed #EAF3EF; border-radius: 0; }

:root[data-theme="dark"] .mk-sheet { background: #0B2622; color: var(--ink); border-color: rgba(255,255,255,.08); }
:root[data-theme="dark"] .mk-sheet-h b { color: var(--heading); }
:root[data-theme="dark"] .mk-sheet .mk-row { border-bottom-color: rgba(255,255,255,.07); }
:root[data-theme="dark"] .mk-amt--pos { color: #34D399; }
:root[data-theme="dark"] .mk-amt--neg, :root[data-theme="dark"] .mk-age .is-late { color: #FDBA74; }

/* ---------- Módulos por rol: maqueta dentro del marco ---------- */
.tab-visual { min-width: 0; }
.browser-frame--sm { width: 100%; }

/* ---------- Catálogo de módulos ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-item { display: flex; gap: .8rem; align-items: flex-start; background: var(--card); border: 1px solid var(--bg-line); border-radius: 14px; padding: 1rem 1.1rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cat-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.cat-ico { font-size: 1.5rem; line-height: 1.1; flex-shrink: 0; }
.cat-item strong { display: block; font-family: var(--font-head); font-size: .98rem; color: var(--heading); margin-bottom: .15rem; }
.cat-item span { font-size: .82rem; color: var(--slate); line-height: 1.4; }

/* ---------- Capacidades transversales ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cap-card { background: var(--card); border: 1px solid var(--bg-line); border-radius: var(--radius); padding: 1.8rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.cap-ico { font-size: 2rem; display: block; margin-bottom: .8rem; line-height: 1; }
.cap-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.cap-card p { color: var(--slate); font-size: .94rem; }

/* ============================================================
   Responsive
   ============================================================ */
/* Entre 1240 y 1100 el menú se aprieta; por debajo, el botón de acceso cede su
   sitio (sigue en el pie y en el menú del teléfono). */
@media (max-width: 1240px) {
  .nav { gap: 1rem; }
  .nav a { font-size: .9rem; }
}
@media (max-width: 1100px) {
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 960px) {
  .feature-grid, .steps, .stats-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 560px; margin-inline: auto; }
  .tab-content { grid-template-columns: 1fr; }
  .tab-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card--featured { transform: none; }
  .showcase { gap: 3rem; }
  .show-row, .show-row--rev { grid-template-columns: 1fr; gap: 1.6rem; }
  .show-row--rev .show-copy { order: 2; }
  .show-row--rev .show-visual { order: 1; }
  .show-visual { max-width: 620px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--card); padding: 1rem 24px 1.4rem; gap: 1rem; border-bottom: 1px solid var(--bg-line); box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .header-actions { display: flex; position: absolute; top: calc(72px + 190px); left: 0; right: 0; background: var(--card); padding: 0 24px 1.4rem; }
  .section { padding: 66px 0; }
  .feature-grid, .steps, .stats-grid, .price-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  /* En el teléfono la maqueta ya es pequeña: las tarjetas flotantes taparían
     justo lo que hay que leer. */
  .float-card { display: none; }
  .cat-grid, .cap-grid { grid-template-columns: 1fr; }
  .bf-url { display: none; }
  /* La maqueta pierde la barra lateral: en el teléfono estorba más de lo que cuenta. */
  .mk-app { grid-template-columns: 1fr; }
  .mk-side { display: none; }
  .mk-pos { grid-template-columns: 1fr; }
  .mk-age { grid-template-columns: 1fr repeat(2, calc(58px * var(--mk))); }
  .mk-age > span:nth-child(5n+4), .mk-age > span:nth-child(5n) { display: none; }
}
