/* ===== main.css — Reset, variables, base & utilities ===== */

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Lenis smooth scroll — estilos base recomendados */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* Variables */
:root {
  --green: #018a38;          /* Color primario verde */
  --blue: #2271b2;           /* Color primario azul */
  --green-secondary: #2c6e58; /* Color secundario */
  --black: #000000;
  --navy: #212b36;
  --teal: #225560;
  --dark: #213743;
  --white: #ffffff;
  --gray-light: #f5f5f3;
  --gray-mid: #888888;
  --gray-border: #e5e5e5;
  --max-width: 1280px;
  --padding-x: 72px;
}

/* Base */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--black);
  background: #f5f5f3;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Red de seguridad: ningún elemento debe generar scroll horizontal.
   El navbar usa position: fixed (no sticky), así que esto no lo afecta. */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

.page-interior {
  background: #f5f5f3;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Utilities */
.divider {
  border: none;
  border-top: 2px solid var(--gray-border);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f5f5f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.loader-logo {
  height: 48px;
  width: auto;
}

.loader-track {
  width: 200px;
  height: 3px;
  background: var(--gray-border);
  border-radius: 100px;
  overflow: hidden;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #2271b2, #018a38);
  border-radius: 100px;
}

/* Widget Chat Lynn - size override */
iframe[src*="lynn.cx"],
div[id*="lynn"],
div[id*="chatwidget"],
div[class*="lynn"],
div[class*="ChatLynn"] {
  max-height: 500px !important;
  max-width: 380px !important;
}

