/* ===========================
   Andus — Base + Responsive (colores vivos, sin café)
   Reemplazo completo
   =========================== */

:root {
  /* Paleta */
  --brand: #0B52B0;
  /* azul marca (títulos y botones) */
  --brand-600: #2563EB;
  --accent: #F2B705;
  /* mostaza */
  --accent-2: #5C3D2E;
  /* (no se usa en títulos) */
  --celeste: #68C3F8;

  /* Tipografía / Texto */
  --ink: #334155;
  /* slate 700: texto general (no negro) */
  --ink-strong: #0B52B0;
  /* TÍTULOS en azul vivo */
  --muted: #64748B;
  /* slate 500 */

  /* Superficies */
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-alt: #EEF2F7;
  --border: #E5E7EB;
  --white: #FFFFFF;

  /* Layout */
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
  --shadow-soft: 0 6px 18px rgba(2, 6, 23, .06);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink) !important;
  background: var(--bg);
  line-height: 1.65 !important;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 .5em 0;
  color: var(--ink-strong) !important;
  /* >>> azul vivo en títulos */
  font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: -0.02em !important;
}

.h1,
h1 {
  font-size: clamp(2rem, 4.8vw, 3.1rem) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem) !important;
  font-weight: 700 !important;
}

.sub {
  color: var(--muted) !important;
  font-size: clamp(1rem, 2.8vw, 1.125rem) !important;
  max-width: 72ch;
}

/* Contenedor y secciones */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section.narrow {
  padding: 56px 0;
}

/* Grillas */
.grid {
  display: grid !important;
  gap: 20px !important;
}

.grid-2 {
  grid-template-columns: 1.1fr 1fr !important;
  gap: 24px !important;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 28px;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 12px;
}

.hero img {
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(2, 6, 23, .12);
}

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.kpi {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
}

.kpi strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--ink-strong);
}

.kpi span {
  color: var(--muted);
  font-size: .95rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease, color .2s ease;
  font-size: 1rem;
  line-height: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 12px 22px rgba(11, 82, 176, .18);
}

.btn-brand:hover {
  background: var(--celeste);
  color: #0B1320;
  box-shadow: 0 14px 28px rgba(104, 195, 248, .28);
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--surface);
}

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

.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, .7);
}

.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink-strong) !important;
  text-decoration: none;
  letter-spacing: -.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.header-nav a:hover {
  color: var(--brand);
}

/* Footer */
.footer {
  background: #0B1320;
  color: #C7CBD1;
  padding: 56px 0;
  margin-top: 32px;
}

.footer h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer a {
  color: #e2e4e7;
}

.footer a:hover {
  color: #fff;
}

/* Píldoras / chips */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #FFE8A3;
  color: #7A4A12;
  border: 1px solid #F9D775;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #E6F4FF;
  color: var(--brand);
  border: 1px solid #CFE8FF;
}

/* Demos (posters) */
.shadow-smooth {
  box-shadow: var(--shadow);
}

.viewer iframe {
  width: 100%;
  min-height: 720px;
  border: 0;
  display: block;
}

.skel {
  background: linear-gradient(90deg, #eee 25%, #f7f7f7 37%, #eee 63%);
  background-size: 400% 100%;
  animation: skel 1.3s ease infinite;
  min-height: 720px;
  border-radius: var(--radius);
}

@keyframes skel {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: #0b1320;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  max-width: 1100px;
  width: 92%;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, .45);
}

.modal .header {
  position: unset;
  background: transparent;
  border: none;
  padding: 0;
}

.modal .header .inner {
  padding: 0 0 12px 0;
}

.modal .content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Logos (CLIENTES) — OJO: arreglaremos la estructura en el próximo paso */
.logo-list,
.trusted-logos,
.logos,
.clients,
.clients-logos,
.brands,
.brand-logos {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: center !important;
}

.logo-list img,
.trusted-logos img,
.logos img,
.clients img,
.clients-logos img,
.brands img,
.brand-logos img,
.logo-list>* img,
.trusted-logos>* img,
.logos>* img,
.clients>* img,
.clients-logos>* img,
.brands>* img,
.brand-logos>* img {
  max-height: 44px !important;
  width: auto !important;
  margin: 0 auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: grayscale(100%) !important;
  opacity: .9 !important;
}

.logo-list img:hover,
.trusted-logos img:hover,
.logos img:hover,
.clients img:hover,
.clients-logos img:hover,
.brands img:hover,
.brand-logos img:hover {
  filter: grayscale(0%) !important;
  opacity: 1 !important;
}

/* Formularios */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(37, 99, 235, .25);
  border-color: var(--brand-600);
}

/* ================== Responsive ================== */
@media (max-width: 1200px) {
  .container {
    padding: 0 16px;
  }
}

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

  .hero {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr !important;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr !important;
  }

  .kpis {
    grid-template-columns: 1fr 1fr;
  }

  .header .inner {
    padding: 12px 0;
  }

  .header-nav {
    gap: 14px;
  }

  .logo-list,
  .trusted-logos,
  .logos,
  .clients,
  .clients-logos,
  .brands,
  .brand-logos {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

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

  .container {
    padding: 0 14px;
  }

  .grid {
    gap: 16px !important;
  }

  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  .kpis {
    grid-template-columns: 1fr !important;
  }

  /* Demos: 1 columna en móvil */
  .grid[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Botones cómodos en móvil */
  .btn {
    width: 100%;
    padding: 14px 18px;
  }

  .btn+.btn {
    margin-left: 0;
  }

  /* Logos 3 columnas en móvil */
  .logo-list,
  .trusted-logos,
  .logos,
  .clients,
  .clients-logos,
  .brands,
  .brand-logos {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}