/* ==========================================================================
   Loft Tech · estilos del sitio
   ========================================================================== */

/* ---------- Paleta y medidas ---------- */
:root {
  --teal: #0b3738;          /* cyan oscuro de la marca */
  --teal-deep: #072627;     /* pie de página */
  --teal-mid: #1f6f6c;      /* acentos sobre fondo claro */
  --teal-light: #8fd8cb;    /* acentos sobre fondo oscuro */
  --mint: #e4eeeb;          /* fondo de secciones claras */
  --mint-strong: #d2e5e0;   /* tarjeta de Loft */
  --cream: #faf6f1;         /* fondo general */
  --white: #ffffff;

  --ink: #0e0e0f;           /* texto principal */
  --text: #36373b;
  --muted: #52545a;         /* texto secundario */
  --muted-2: #61646b;
  --charcoal: #312e2e;
  --line: #dfddd8;          /* bordes suaves */
  --line-strong: #cbc7c3;
  --field: #898c94;         /* borde de campos */

  --on-dark: #e3efec;       /* párrafos sobre fondo oscuro */
  --on-dark-muted: #cfe3de; /* textos secundarios sobre fondo oscuro */
  --line-on-dark: rgba(255, 255, 255, 0.25);
  --line-on-dark-strong: rgba(255, 255, 255, 0.55);

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-pill: 100px;
  --radius-card: 40px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--ink); }
a:hover { color: var(--teal-mid); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Secciones (bandas de color) ---------- */
.band { padding: 96px 0; scroll-margin-top: 72px; }
.band-mint { background: var(--mint); }
.band-dark { background: var(--teal); color: var(--white); }

.eyebrow { font-size: 14px; font-weight: 500; color: var(--muted); }
.band-dark .eyebrow { color: var(--on-dark-muted); }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.h2-xl { font-size: clamp(34px, 4.6vw, 56px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; }

.accent { color: var(--teal-mid); }
.band-dark .accent { color: var(--teal-light); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 1.5px solid transparent; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: filter .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { padding: 12px 22px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.btn-primary { background: var(--teal); color: var(--white); font-weight: 600; }
.btn-primary:hover { filter: brightness(1.25); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--charcoal); color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

.band-dark .btn-primary { background: var(--white); color: var(--teal); }
.band-dark .btn-primary:hover { filter: none; background: var(--mint); color: var(--teal); }
.band-dark .btn-ghost { border-color: var(--line-on-dark-strong); color: var(--white); }
.band-dark .btn-ghost:hover { background: var(--white); color: var(--teal); }

/* ---------- Navegación ---------- */
.site-nav { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 1px solid var(--line); }
.site-nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  color: var(--ink); text-decoration: none;
  font-size: 20px; font-weight: 600; letter-spacing: -0.03em;
}
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px 0; }
.nav-links a:hover { color: var(--teal-mid); }

/* ---------- Inicio (hero) ---------- */
.hero { padding: 96px 0 64px; scroll-margin-top: 72px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.pill {
  font-size: 14px; font-weight: 500; color: var(--on-dark-muted);
  border: 1px solid var(--line-on-dark-strong); border-radius: var(--radius-pill); padding: 6px 14px;
}
.hero-title {
  font-size: clamp(42px, 6.4vw, 72px); font-weight: 500;
  letter-spacing: -0.05em; line-height: 0.95; max-width: 900px;
}
.hero-lead { font-size: 18px; line-height: 1.55; color: var(--on-dark); max-width: 600px; }

.prompt { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.prompt-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--white); border-radius: 20px;
  padding: 8px 8px 8px 20px;
}
.prompt-bar:focus-within { border-color: var(--teal-light); box-shadow: 0 0 0 2px var(--teal-light); }
.prompt-input {
  flex: 1; min-width: 0; height: 44px; border: 0; background: transparent;
  font-family: inherit; font-size: 16px; color: var(--ink);
}
.prompt-input:focus { outline: none; }
.prompt-go {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.prompt-go:hover { color: var(--white); filter: brightness(1.25); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: transparent; border: 1px solid var(--line-on-dark-strong); border-radius: var(--radius-pill);
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--white); cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--teal-light); color: var(--teal-light); }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }

/* Franja de fundamentos */
.features-band { padding: 0 0 96px; }
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid var(--line-on-dark); border-bottom: 1px solid var(--line-on-dark);
}
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 28px 24px 28px 0; }
.feature svg { flex-shrink: 0; margin-top: 2px; color: var(--teal-light); }
.feature-title { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.feature-text { font-size: 14px; color: var(--on-dark-muted); margin-top: 4px; }

/* ---------- Quiénes somos ---------- */
.about-text { display: flex; flex-direction: column; gap: 16px; }
.about-lead { font-size: 18px; line-height: 1.55; color: var(--text); }
.about-text p:not(.about-lead) { color: var(--muted); }

/* ---------- Por qué nosotros ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.why-item { border-top: 1.5px solid var(--line-on-dark-strong); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.why-num { font-size: 48px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: var(--teal-light); }
.why-item h3 { margin-top: 12px; font-size: 24px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.why-item p { color: var(--on-dark); }

/* ---------- Servicios ---------- */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 36px; min-height: 360px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--charcoal); }
.card svg { color: var(--teal); }
.card-tag { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--muted); }
.card-title { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.card p { color: var(--muted); }

.card-featured { background: var(--teal); border-color: var(--teal); color: var(--white); }
.card-featured:hover { border-color: var(--teal); }
.card-featured svg { color: var(--white); }
.card-featured .card-tag { color: var(--on-dark-muted); }
.card-featured .card-title { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.04em; line-height: 1; }
.card-featured p { color: var(--on-dark); max-width: 420px; }

/* ---------- Productos (Loft y sistema de ventas) ---------- */
.product { background: var(--mint-strong); border-radius: 48px; padding: 56px; }
.product-white { background: var(--white); border: 1px solid var(--line); }
.product-text { display: flex; flex-direction: column; gap: 20px; }
.badge {
  align-self: flex-start; font-size: 13px; font-weight: 500; color: #1a1919;
  border: 1px solid var(--charcoal); border-radius: var(--radius-pill); padding: 5px 14px;
}
.product-lead { font-size: 17px; color: var(--charcoal); max-width: 520px; }
.product-cta { align-self: flex-start; margin-top: 12px; }

.modules {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px;
}
.module { background: var(--cream); border-radius: 20px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.module svg { flex-shrink: 0; margin-top: 2px; }
.module-wide { grid-column: 1 / -1; }
.module-name { font-size: 15px; font-weight: 500; }
.module-desc { font-size: 13px; color: var(--muted); }

/* Panel ilustrativo de Loft */
.mock { background: #1a1919; border-radius: 28px; overflow: hidden; color: var(--white); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--charcoal); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.mock-title { margin-left: 10px; font-size: 13px; color: var(--line-strong); }
.mock-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-box { background: #262424; border: 1px solid var(--charcoal); border-radius: 16px; padding: 16px 14px; }
.mock-num { font-size: clamp(18px, 2vw, 26px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.mock-label { font-size: 12px; color: var(--line-strong); margin-top: 6px; }
.mock-rows { display: flex; flex-direction: column; gap: 8px; }
.mock-row {
  background: #262424; border: 1px solid var(--charcoal); border-radius: 12px; padding: 13px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.mock-row span:first-child { font-size: 13px; color: var(--line); }
.mock-status { font-size: 12px; font-weight: 500; white-space: nowrap; }
.is-ok { color: #7fd6ab; }
.is-warn { color: #f2c879; }
.is-info { color: var(--teal-light); }
.mock-chart-label { font-size: 12px; color: var(--line-strong); margin-bottom: 14px; }
.mock-bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.mock-bars span { flex: 1; background: var(--muted); border-radius: 6px 6px 0 0; }
.mock-bars span.is-high { background: var(--teal-light); }

/* Factura ilustrativa (sistema de ventas, hoy oculto) */
.invoice-frame { background: var(--teal); border-radius: 28px; padding: clamp(16px, 3vw, 32px); }
.invoice { background: var(--white); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.invoice-kind { font-size: 12px; color: var(--muted); }
.invoice-number { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; margin-top: 2px; }
.invoice-approved { font-size: 12px; font-weight: 500; color: #14532d; background: #dcf2e3; border-radius: var(--radius-pill); padding: 4px 12px; white-space: nowrap; }
.invoice-lines { border-top: 1px solid var(--line); }
.invoice-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.invoice-line:last-child { border-bottom: 0; font-size: 13px; color: var(--muted); }
.invoice-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--cream); border-radius: 12px; padding: 14px 16px; }
.invoice-total strong { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.invoice-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; color: var(--white); }
.invoice-kpis div { border: 1px solid #2f5e5c; border-radius: 16px; padding: 14px 16px; }
.invoice-kpis strong { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.invoice-kpis span { font-size: 12px; color: var(--on-dark-muted); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info > p { font-size: 17px; color: var(--muted); max-width: 440px; }
.contact-links { display: flex; flex-direction: column; margin-top: 12px; border-top: 1px solid var(--line); }
.contact-link {
  display: flex; align-items: center; gap: 14px; padding: 18px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; font-weight: 500;
}
.contact-link svg { color: var(--teal); }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--field); border-radius: 6px; background: var(--white);
  font-family: inherit; font-size: 16px; color: var(--ink);
}
textarea.input { height: auto; min-height: 150px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input:focus { outline: 2px solid var(--teal-mid); outline-offset: 1px; border-color: var(--teal-mid); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; border-radius: 6px; padding: 10px 14px; }
.form-status[hidden] { display: none; }
.form-status.is-error { color: #8a1f1f; background: #fdf0ee; border: 1px solid #e3b5ae; }
.form-status.is-success { color: var(--teal); background: var(--mint); border: 1px solid #9cc9bf; }
.form-note { font-size: 13px; color: var(--muted-2); }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--teal-deep); color: var(--white); }
.site-footer-inner {
  padding: 28px 24px 40px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px 32px;
}
.site-footer .brand { color: var(--white); font-size: 18px; }
.site-footer .brand img { width: 40px; height: 40px; }
.copyright { font-size: 14px; color: var(--on-dark-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--on-dark-muted); text-decoration: none; font-size: 14px; padding: 12px 0; }
.footer-links a:hover { color: var(--white); }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: sticky; bottom: 20px; z-index: 30; height: 0; padding: 0 20px;
  display: flex; justify-content: flex-end; align-items: flex-end; pointer-events: none;
}
.wa-float a { pointer-events: auto; padding: 13px 20px; font-size: 15px; }
.wa-float svg { color: #4fe08a; }

/* ---------- Responsive ---------- */
@media (min-width: 961px) {
  .two-col-flip > :first-child { order: 2; }
}
@media (max-width: 960px) {
  .bento, .two-col, .contact { grid-template-columns: minmax(0, 1fr); }
  .contact { gap: 40px; }
  .product { padding: 28px 20px; border-radius: 28px; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
