/* ============================================================
   Ilumitec International — site stylesheet
   ============================================================ */

:root {
  --ink: #171717;
  --body: #3f4450;
  --muted: #767c89;
  --paper: #ffffff;
  --wash: #f6f6f4;
  --line: #e7e7e3;
  --dark: #0f0f10;
  --dark-2: #17181a;
  --accent: #f2a413;
  --accent-ink: #1c1502;
  --accent-hover: #d98d0a;
  --pin: #e03c31;
  --radius: 14px;
  --shadow: 0 18px 50px -18px rgba(15, 15, 16, 0.25);
  --font: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont,
          Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-lead  { max-width: 640px; font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 11px 22px; font-size: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(0,0,0,.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 0;
}
.brand img { height: 44px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav > a:not(.btn) {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.site-nav > a:not(.btn):hover,
.site-nav > a.active { border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--dark);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  /* la imagen la inyecta el mini-CMS como --page-hero-img en el <section> */
  background: var(--page-hero-img, url("../assets/img/hero-showroom.jpg")) center 65% / cover no-repeat;
  opacity: .55;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,.5) 0%, rgba(10,10,11,.25) 45%, rgba(10,10,11,.78) 100%);
}
.hero .container { position: relative; z-index: 2; text-align: center; padding: 120px 0; }
.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 700;
  max-width: 980px;
  margin: 0 auto 22px;
  text-wrap: balance;
}
.hero p {
  max-width: 660px;
  margin: 0 auto 38px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,.88);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- welcome + map ---------- */
.welcome { padding: 96px 0; }
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.welcome-copy p + p { margin-top: 16px; }
.welcome-copy .section-title { margin-bottom: 20px; }

.map-card {
  position: relative;
  background: var(--dark);
  border-radius: 22px;
  padding: 34px 26px;
  box-shadow: var(--shadow);
}
.map-wrap { position: relative; }
.map-pin {
  position: absolute;
  width: 9px; height: 9px;
  background: var(--pin);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 0 0 2px rgba(224,60,49,.25);
}
.map-pin.hq {
  width: 13px; height: 13px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(242,164,19,.3);
}
.map-caption {
  margin-top: 20px;
  text-align: center;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.map-caption strong { color: var(--accent); font-weight: 700; }

/* ---------- stats band ---------- */
.stats {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
}
.stat span {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- brands ---------- */
.brands { padding: 96px 0; }
.brands-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.link-more {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}
.link-more:hover { color: var(--accent-hover); }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.brand-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 30px 34px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  background: #fff;
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.brand-logo {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo img { max-height: 100%; max-width: 210px; width: auto; object-fit: contain; }
.brand-logo svg { height: 100%; width: auto; max-width: 210px; }
.brand-card p { font-size: 15px; min-height: 72px; }
.brand-card .btn { margin-top: auto; }

/* ---------- cta band ---------- */
.cta-band {
  background: var(--dark);
  color: #fff;
  padding: 88px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 36px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}
.post-card { display: flex; flex-direction: column; }
.post-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--line, #e6e6e6);
  margin-bottom: 18px;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Una entrada a la que le han quitado la portada sigue saliendo en el índice,
   pero con el hueco vacío: `src=""` no dispara petición en los navegadores de
   hoy, y sin esto se vería el icono de imagen rota. */
.post-cover img[src=""] { display: none; }
.post-date {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted, #777);
  margin-bottom: 8px;
}
.post-card h3 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
.post-card p { font-size: 15px; margin-bottom: 16px; }
.post-card .link-more { margin-top: auto; }
.post-empty { text-align: center; color: var(--muted, #777); padding: 40px 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.72);
  padding: 72px 0 0;
  border-top: 4px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 56px;
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; max-width: 300px; }
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 14px; }
.site-footer a:hover { color: var(--accent); }
/* Redes sociales. La lista sale VACÍA cuando no hay ningún perfil puesto, así
   que no reserva alto ni margen: el pie queda exactamente como estaba. */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}
.social-links:not(:empty) { margin-top: 20px; }
.social-links li { margin-bottom: 0; line-height: 0; }
.social-links a {
  display: inline-flex;
  color: rgba(255,255,255,.72);
  transition: color .2s ease;
}
.social-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- subpage hero ---------- */
.page-hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 110px 0 90px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--page-hero-img, none) center / cover no-repeat;
  opacity: .32;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 16px; max-width: 720px; }
.page-hero p { max-width: 620px; color: rgba(255,255,255,.85); font-size: 17px; }

/* ---------- generic section ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col .photo {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.two-col .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 54px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.feature .num {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  margin-bottom: 16px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; }

/* ---------- products page: brand rows ---------- */
.brand-row {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.brand-row:last-of-type { border-bottom: 0; }
.brand-row .brand-logo { height: 74px; justify-content: flex-start; }
.brand-row .brand-logo img { max-width: 280px; }
.brand-row .brand-logo svg { max-width: 280px; }
.brand-row h3 { font-size: 24px; margin: 22px 0 12px; }
/* Doc de marketing del 2026-09-02: una marca puede llevar DOS botones
   («Discover <marca>» y «View Catalog»). Van en el margen DERECHO y no en el
   izquierdo del segundo: cuando los dos no caben en una línea —pasa en la
   columna estrecha del escritorio con «Discover Black + Decker», y en cualquier
   móvil— el que baja empieza pegado al margen en vez de con 12 px de sangría.
   El margen inferior es el hueco entre las dos líneas cuando eso ocurre.
   `:not(:last-child)` no es adorno: el margen derecho del ÚLTIMO botón también
   cuenta para el ancho de la línea, y con él «Discover Honeywell» + «View
   Catalog» suman 427,4 px en una columna de 427 y se parten sin necesidad. */
.brand-row .btn:not(:last-child) { margin-right: 12px; margin-bottom: 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; list-style: none; }
.chip-list li {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--wash);
  border: 1px solid var(--line);
  color: var(--body);
}

/* ---------- forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 46px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  transition: border-color .2s, background .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* Confirmación y error del envío: viven en la página ocultos con [hidden] y
   los enseña js/main.js. El texto sale del CMS, no del JS. */
.form-success {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 46px;
  box-shadow: var(--shadow);
  text-align: center;
}
.form-success h3 { color: var(--ink); margin-bottom: 10px; }
.form-success p { color: var(--muted); }
.form-error { margin-top: 16px; text-align: center; color: var(--pin); }
/* Que ninguna regla de autor le gane al atributo: si esto falla, el cliente ve
   el formulario y la confirmación a la vez. */
[hidden] { display: none !important; }

/* ---------- contact info cards ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: #fff;
}
.info-card h3 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 700;
}
.info-card p { font-size: 15px; color: var(--ink); font-weight: 600; }
.info-card a:hover { color: var(--accent-hover); }

/* ---------- partner benefits (icon cards) ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin-top: 54px;
}
.benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
}
.benefit .icon {
  display: inline-flex;
  width: 54px; height: 54px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.benefit .icon svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 15px; margin-bottom: 8px; }
.benefit p { font-size: 13.5px; }

/* ---------- split rows (image + text) ---------- */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}
.split-row .photo {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-row .photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-row h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 14px; }
.split-row p + p { margin-top: 14px; }
@media (min-width: 961px) {
  .split-row.flip .photo { order: -1; }
}

/* ---------- B2B gate modal ---------- */
.gate-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(10, 10, 11, .62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.gate-overlay.open { opacity: 1; pointer-events: auto; }
.gate-modal {
  background: #fff;
  border-radius: 18px;
  padding: 40px 36px 34px;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
  transform: translateY(14px);
  transition: transform .25s ease;
}
.gate-overlay.open .gate-modal { transform: none; }
.gate-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0;
  font-size: 26px; line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.gate-close:hover { color: var(--ink); }
.gate-modal h3 { font-size: 22px; margin-bottom: 8px; }
.gate-modal > p { font-size: 14.5px; margin-bottom: 22px; }
.gate-modal .form-grid { grid-template-columns: 1fr; gap: 14px; }
.gate-modal .btn { width: 100%; }
.gate-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- chat widget ---------- */
.iluchat-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 180;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s;
}
.iluchat-fab:hover { background: var(--accent-hover); transform: translateY(-2px); }
.iluchat-fab svg { width: 26px; height: 26px; }

.iluchat-panel {
  position: fixed;
  right: 22px; bottom: 94px;
  z-index: 190;
  /* v2.2: el panel creció de 390×560 a 440×640 — con el flujo guiado de
     distribuidor y las tarjetas de marca, 560 px de alto obligaban a hacer
     scroll casi desde el primer mensaje. Los `min()` no se tocan: son lo que
     impide que el panel se salga de la pantalla en un móvil. */
  width: min(440px, calc(100vw - 24px));
  height: min(640px, calc(100dvh - 120px));
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.iluchat-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.iluchat-head {
  background: var(--dark);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.iluchat-head b { display: block; font-size: 15px; }
.iluchat-head span { display: block; font-size: 12px; color: rgba(255,255,255,.65); }
.iluchat-head-actions { display: flex; gap: 8px; align-items: center; }
/* selector de idioma del widget: EN | ES */
.iluchat-lang { display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; }
.iluchat-lang button {
  background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,.7);
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 9px; line-height: 1.6;
}
.iluchat-lang button:hover { color: #fff; }
.iluchat-lang button.active { background: rgba(255,255,255,.9); color: #171717; }
.iluchat-lang button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.iluchat-x {
  background: none; border: 0;
  color: rgba(255,255,255,.7);
  font-size: 24px; line-height: 1;
  cursor: pointer;
}
.iluchat-x:hover { color: #fff; }

.iluchat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  background: var(--wash);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.iluchat-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.iluchat-msg.bot {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: var(--body);
  white-space: pre-line;
}
.iluchat-msg.bot.typing { min-width: 34px; min-height: 20px; }
.iluchat-msg.bot.typing::after {
  content: "▍";
  color: var(--accent-hover);
  animation: iluBlink .9s steps(1) infinite;
}
@keyframes iluBlink { 50% { opacity: 0; } }
.iluchat-msg.bot.thinking { color: var(--muted); font-style: italic; }
.iluchat-msg.user {
  background: var(--dark);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.iluchat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-self: flex-start;
  max-height: 180px;
  overflow-y: auto;
}
.iluchat-quick button, .iluchat-quick a {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  text-align: left;
}
.iluchat-quick button:hover, .iluchat-quick a:hover { background: var(--accent); color: var(--accent-ink); }
.iluchat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-self: stretch;
}
.iluchat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color .15s, box-shadow .15s;
  animation: iluCardIn .4s ease both; /* entrada suave, escalonada por JS */
}
@keyframes iluCardIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.iluchat-card:hover { border-color: var(--accent); box-shadow: 0 8px 18px -10px rgba(0,0,0,.25); }
.iluchat-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}
.iluchat-card .n {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.iluchat-card .s { font-size: 10.5px; color: var(--accent-hover); font-weight: 700; }

.iluchat-input {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.iluchat-input input { flex: 1; padding: 10px 14px; }
.iluchat-input .btn { padding: 10px 16px; letter-spacing: 1px; }

@media (max-width: 520px) {
  .iluchat-panel { right: 12px; bottom: 84px; }
  .iluchat-fab { right: 14px; bottom: 14px; }
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .welcome-grid, .two-col, .brand-row, .split-row { grid-template-columns: 1fr; gap: 44px; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid, .feature-grid, .info-grid { grid-template-columns: 1fr 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 6vw 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0,0,0,.3);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 18px; }
  .nav-toggle { display: flex; }
  .brand-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero .container { padding: 90px 0; }
  .form-card { padding: 30px 22px; }
}

@media (max-width: 520px) {
  .stats-grid, .feature-grid, .info-grid, .benefit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Variante de la rejilla de marcas (elegible desde /admin): 4 por fila.
   La de 3 es .brand-grid a secas; los cortes responsive de abajo mandan igual. */
.brand-grid.brand-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .brand-grid.brand-cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .brand-grid.brand-cols-4 { grid-template-columns: 1fr; } }
