/* ===== Design tokens (Enviqo brand) ===== */
:root {
  --teal: #2fbccb;
  --teal-2: #45d3e0;
  --blue: #2f86c6;
  --blue-2: #1f6fae;
  --navy: #12315a;
  --btn-ink: #04202b;
  --ink: #081727;
  --ink-2: #0b1f33;
  --ink-3: #10273f;
  --panel: #0e2338;
  --text: #e7eff6;
  --muted: #8ea3b8;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --container: 1180px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Poppins", system-ui, sans-serif;
  --grad: linear-gradient(135deg, var(--teal), var(--blue));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.eyebrow {
  color: var(--teal);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section__head { max-width: 620px; margin: 0 auto 56px; text-align: center; }

.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 28px rgba(47, 134, 198, 0.32);
}
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--block { width: 100%; }

.link-arrow {
  color: var(--teal);
  font-weight: 600;
  font-family: var(--display);
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}
.link-arrow:hover { opacity: 0.8; }

/* ===== Logo ===== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo__mark { width: 58px; height: 46px; flex: none; }
.logo__text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo__text span { color: var(--teal); }

/* ===== Topbar ===== */
.topbar {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 42px;
}
.topbar__contact { display: flex; gap: 22px; }
.topbar__contact a:hover { color: var(--teal); }
.topbar .ic { color: var(--teal); margin-right: 4px; }
.topbar__social { display: flex; align-items: center; gap: 14px; }
.topbar__social a { display: inline-flex; color: var(--muted); transition: color 0.2s ease; }
.topbar__social a:hover { color: var(--teal); }
.topbar__social svg { width: 16px; height: 16px; display: block; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 23, 39, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }
.nav__cta {
  color: #fff !important;
  background: var(--grad);
  padding: 9px 20px;
  border-radius: 50px;
  font-family: var(--display);
  font-weight: 600;
}
.nav__cta:hover { filter: brightness(1.08); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 90px 0 110px;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(47, 188, 203, 0.16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero__title span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--teal);
}
.hero__text {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero__badges {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__badges strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--text);
}
.hero__badges span { color: var(--muted); font-size: 0.85rem; }

/* Hero art */
.hero__art { position: relative; height: 420px; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.orb--1 {
  width: 340px; height: 340px;
  right: 0; top: 20px;
  background: radial-gradient(circle at 30% 30%, rgba(47, 188, 203, 0.55), rgba(47, 188, 203, 0.05) 70%);
  animation: float 7s ease-in-out infinite;
}
.orb--2 {
  width: 180px; height: 180px;
  left: 10px; bottom: 0;
  background: radial-gradient(circle at 40% 40%, rgba(47, 134, 198, 0.45), transparent 70%);
  animation: float 9s ease-in-out infinite reverse;
}
.card-float {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--muted);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 200px;
  z-index: 3;
}
.card-float__body {
  position: relative;
  z-index: 1;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-float .binary-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}
.card-float b { color: var(--text); font-size: 1.05rem; font-family: var(--display); }
.card-float .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); display: inline-block; margin-right: 6px;
  box-shadow: 0 0 0 4px rgba(47, 188, 203, 0.15);
}
.card-float .dot--alt { background: var(--blue); box-shadow: 0 0 0 4px rgba(47, 134, 198, 0.15); }
.card-float--a { top: 40px; left: -10px; animation: float 6s ease-in-out infinite; }
.card-float--b { bottom: 50px; right: 20px; animation: float 8s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ===== Grids ===== */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Services ===== */
.services { background: var(--ink); }
.scard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.scard:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 188, 203, 0.4);
  box-shadow: var(--shadow);
}
.scard__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(47, 188, 203, 0.12);
  color: var(--teal);
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.scard h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 10px; }
.scard p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.services__cta { text-align: center; margin-top: 48px; }

/* ===== About ===== */
.about { background: var(--ink-2); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about__media { position: relative; }
.about__img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  background: linear-gradient(315deg, #123049, #0b1a29);
  border: 1px solid var(--line);
}
.about__stat {
  position: absolute;
  bottom: -22px; right: -14px;
  background: var(--grad);
  color: #fff;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.about__stat strong { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 800; }
.about__stat span { font-size: 0.82rem; font-weight: 600; }
.about__text { color: var(--muted); margin: 18px 0 24px; }
.checklist { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text); }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: rgba(47, 188, 203, 0.15);
  color: var(--teal);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}
.about__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ===== Stats ===== */
.stats { background: var(--ink); padding: 60px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { text-align: center; }
.stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--teal);
  line-height: 1;
}
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ===== Process ===== */
.process { background: var(--ink-2); }
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}
.step__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  color: rgba(47, 188, 203, 0.22);
  line-height: 1;
}
.step h3 { font-family: var(--display); font-size: 1.15rem; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ===== Projects ===== */
.projects { background: var(--ink-2); }
.pcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(47, 188, 203, 0.35);
}
.pcard__img {
  height: 220px;
  background-color: #12293f;
  background-size: cover;
  background-position: center;
}
.pcard__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}
.pcard__tag {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(47, 188, 203, 0.12);
  padding: 4px 10px;
  border-radius: 50px;
}
.pcard h3 { font-family: var(--display); font-size: 1.2rem; }
.pcard p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.pcard__soon {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}
/* Browser mockup (proyecto sin imagen) */
.pcard__browser {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #123a52, #0c1e2e);
}
.pcard__bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.28);
}
.pcard__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; flex: none; }
.pcard__bar i:nth-child(2) { background: #febc2e; }
.pcard__bar i:nth-child(3) { background: #28c840; }
.pcard__bar em {
  margin-left: 8px;
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Courier New", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard__screen {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #cfe8ef;
}
.pcard__screen svg { width: 44px; height: 44px; color: var(--teal); }
.pcard__screen strong { font-family: var(--display); font-size: 1rem; }

/* ===== Team ===== */
.team { background: var(--ink); }
.tcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tcard__photo {
  height: 240px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  background-color: #12293f;
  background-size: cover;
  background-position: center top;
}
.tcard__photo--1 { background: linear-gradient(135deg, #16384a, #0c1f2c); }
.tcard__photo--2 { background: linear-gradient(135deg, #163a52, #0c1e2e); }
.tcard__photo--3 { background: linear-gradient(135deg, #1a3350, #0d1a2c); }
.tcard h3 { font-family: var(--display); font-size: 1.15rem; }
.tcard p { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.tcard__social { display: flex; justify-content: center; gap: 10px; }
.tcard__social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.75rem;
  color: var(--muted);
  transition: all 0.2s ease;
}
.tcard__social a:hover { background: var(--teal); color: var(--btn-ink); border-color: var(--teal); }
.tcard__social svg { width: 15px; height: 15px; display: block; }

/* ===== Testimonial ===== */
.testi { background: var(--ink-2); }
.testi__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.testi__quote {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 30px;
}
.testi__author { display: inline-flex; align-items: center; gap: 14px; }
.testi__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad);
}
.testi__author strong { display: block; font-family: var(--display); }
.testi__author span { color: var(--muted); font-size: 0.85rem; }

/* ===== Blog ===== */
.blog { background: var(--ink); }
.post {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__img { height: 190px; }
.post__img--1 { background: linear-gradient(135deg, #14384a, #0b1c28); }
.post__img--2 { background: linear-gradient(135deg, #123650, #0b1b2c); }
.post__img--3 { background: linear-gradient(135deg, #183451, #0d1a2b); }
.post__body { padding: 24px; }
.post__meta { color: var(--teal); font-size: 0.8rem; font-weight: 600; font-family: var(--display); }
.post h3 { font-family: var(--display); font-size: 1.12rem; margin: 10px 0 14px; line-height: 1.35; }

/* ===== CTA / Contact ===== */
.cta { background: var(--ink-2); }
.cta__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(47, 188, 203, 0.16), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 50px;
}
.cta__text h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; margin-bottom: 14px; }
.cta__text p { color: var(--muted); }
.cta__text .eyebrow { color: var(--teal); }
.cta__list { margin-top: 22px; margin-bottom: 0; }
.cta__host {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cta__host img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.cta__host span { display: block; font-size: 0.75rem; color: var(--muted); }
.cta__host strong { display: block; font-family: var(--display); font-size: 1rem; }
.cta__host em { font-style: normal; font-size: 0.8rem; color: var(--teal); }
.cta__alt { margin-top: 18px; font-size: 0.9rem; }
.cta__alt a { color: var(--teal); font-weight: 600; }
.cta__alt a:hover { text-decoration: underline; }
.cta__form { display: grid; gap: 14px; }
.cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cta__form input, .cta__form textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
}
.cta__form input:focus, .cta__form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 188, 203, 0.18);
}
.cta__form input::placeholder, .cta__form textarea::placeholder { color: var(--muted); }
.cta__note { color: var(--teal); font-weight: 600; text-align: center; }
.cta__calendar {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.cta__calendar .calendly-inline-widget { width: 100%; }

/* ===== Footer ===== */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding-top: 70px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer__brand p { color: var(--muted); margin: 16px 0 20px; font-size: 0.92rem; max-width: 320px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.78rem;
  color: var(--muted);
  transition: all 0.2s ease;
}
.footer__social a:hover { background: var(--teal); color: var(--btn-ink); border-color: var(--teal); }
.footer__social svg { width: 17px; height: 17px; display: block; }
.footer__col h4 { font-family: var(--display); font-size: 1rem; margin-bottom: 18px; }
.footer__col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 6px 0; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--teal); }
.footer__news p { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.footer__form { display: flex; gap: 8px; }
.footer__form input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
}
.footer__form input:focus { outline: none; border-color: var(--teal); }
.footer__form button {
  width: 46px;
  background: var(--grad);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.footer__form button:hover { filter: brightness(1.08); }
.footer__bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer__bottom span { color: var(--muted); font-size: 0.85rem; }

/* ===== Floating assistant (Calendly) ===== */
.assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.assistant__toggle {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
  animation: assistantPulse 2.6s ease-in-out infinite;
}
.assistant__toggle:hover { transform: scale(1.06); }
.assistant__toggle svg { width: 34px; height: 34px; }
@keyframes assistantPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}
.assistant__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #ff5c5c;
  color: #fff;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--display);
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
}
.assistant.open .assistant__badge { display: none; }
.assistant__bubble {
  position: relative;
  width: min(330px, calc(100vw - 48px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  color: var(--text);
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.assistant.open .assistant__bubble {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.assistant__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.assistant__close:hover { color: var(--text); }
.assistant__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.assistant__avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: var(--ink-3);
}
.assistant__header strong {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
}
.assistant__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #43d99a;
}
.assistant__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43d99a;
}
.assistant__msg {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
/* Chat conversacional */
.assistant__chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  min-height: 58px;
}
.chat-msg {
  align-self: flex-start;
  max-width: 94%;
  background: var(--ink-3);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 10px 13px;
  border-radius: 4px 14px 14px 14px;
  animation: chatPop 0.25s ease;
}
@keyframes chatPop {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.chat-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  background: var(--ink-3);
  padding: 12px 14px;
  border-radius: 4px 14px 14px 14px;
  animation: chatPop 0.2s ease;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.assistant__cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  border: 0;
  padding: 12px;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.2s ease;
}
.assistant__cta.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.assistant__cta:hover { filter: brightness(1.05); }
.assistant__cta svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .assistant { right: 16px; bottom: 16px; }
  .assistant__toggle { width: 58px; height: 58px; }
}

/* ===== Reveal animation ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .about__inner, .cta__inner { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .about__media { max-width: 460px; }
  .cta__inner { padding: 36px; }
}

@media (max-width: 900px) {
  /* Sin backdrop-filter en móvil: evita que el menú fixed quede atrapado dentro del header */
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 23, 39, 0.97);
  }
  .nav {
    position: fixed;
    inset: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--ink);
    padding: 88px 28px 48px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 60;
    overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { width: auto; padding: 14px 0; font-size: 1.35rem; }
  .nav__cta { margin-top: 14px; padding: 13px 30px; }
  .burger { display: flex; position: relative; z-index: 70; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
  body.menu-open .assistant { opacity: 0; pointer-events: none; }
}

@media (max-width: 720px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .topbar__contact { gap: 14px; }
  .topbar__social { display: none; }
  .section { padding: 68px 0; }
  .cta__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  /* Calendario Calendly: que se adapte al ancho del teléfono */
  .cta__inner { padding: 22px; }
  .cta__calendar .calendly-inline-widget,
  .cta__calendar iframe { min-width: 0 !important; }
  /* Imagen de Nosotros: menos alta en móvil */
  .about__img { height: 300px; }
  .about__stat { right: 6px; bottom: -16px; padding: 14px 18px; }
  .about__media { margin: 0 auto; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .cta__inner { padding: 16px; }
}

@media (max-width: 460px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__badges { gap: 22px; }
}
