:root {
  --bg: #0b1220;
  --bg2: #0f1a30;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --muted2: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --primary: #22c55e;
  --primary2: #86efac;
  --secondary: #3b82f6;
  --secondary2: #60a5fa;
  --good: #22c55e;
  --danger: #ef4444;
  --radius: 16px;
  --radius2: 22px;
  --max: 1100px;
  --glow1: rgba(34, 197, 94, 0.18);
  --glow2: rgba(59, 130, 246, 0.14);
  --header-bg: rgba(11, 18, 32, 0.6);
  --header-border: rgba(255, 255, 255, 0.08);
  --header-border-scrolled: rgba(255, 255, 255, 0.14);
  --input-bg: rgba(0, 0, 0, 0.22);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

:root[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --card: rgba(255, 255, 255, 0.92);
  --card2: rgba(15, 23, 42, 0.03);
  --text: rgba(15, 23, 42, 0.94);
  --muted: rgba(15, 23, 42, 0.7);
  --muted2: rgba(15, 23, 42, 0.6);
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 18px 60px rgba(2, 6, 23, 0.12);
  --glow1: rgba(34, 197, 94, 0.14);
  --glow2: rgba(59, 130, 246, 0.12);
  --header-bg: rgba(248, 250, 252, 0.75);
  --header-border: rgba(15, 23, 42, 0.1);
  --header-border-scrolled: rgba(15, 23, 42, 0.18);
  --input-bg: rgba(15, 23, 42, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 15% 10%, var(--glow1), transparent 60%),
    radial-gradient(900px 600px at 80% 0%, var(--glow2), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  background: var(--primary);
  color: #071126;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  z-index: 9999;
}

.skip-link:focus {
  left: 0.75rem;
}

.header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  z-index: 50;
}

.header.is-scrolled {
  border-bottom-color: var(--header-border-scrolled);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.header__actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.brand__logo {
  height: 52px;
  width: auto;
  max-width: 260px;
  flex: 0 0 auto;
}

.brand__name {
  letter-spacing: 0.2px;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--text);
  border-radius: 14px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
}

:root[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}

:root:not([data-theme="light"]) .theme-toggle__icon--moon {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  transition: background 140ms ease, color 140ms ease;
}

.nav a:hover {
  background: var(--card2);
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--card2);
  border-radius: 14px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  border-radius: 20px;
}

.hero {
  padding: 4.2rem 0 2.2rem;
}

.hero__grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  background: var(--card2);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

h1 {
  font-size: clamp(2.05rem, 2.2vw + 1.2rem, 3.1rem);
  line-height: 1.08;
  margin: 0.9rem 0 0.9rem;
}

h2 {
  font-size: clamp(1.55rem, 1.3vw + 1.05rem, 2rem);
  margin: 0;
}

h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.3rem;
}

.hero__cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.hero__meta {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted2);
}

.hero__card {
  justify-self: end;
  width: min(420px, 100%);
  position: relative;
  border-radius: var(--radius2);
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card2);
}

.hero__photo {
  position: absolute;
  inset: 0;
  border-radius: var(--radius2);
  background-image: linear-gradient(180deg, rgba(11, 18, 32, 0.55), rgba(11, 18, 32, 0.18)),
    var(--hero-photo, none),
    radial-gradient(800px 420px at 20% 20%, rgba(59, 130, 246, 0.26), transparent 55%),
    radial-gradient(700px 420px at 80% 0%, rgba(34, 197, 94, 0.22), transparent 55%);
  background-size: cover, cover, auto, auto;
  background-position: center, center, center, center;
  filter: saturate(1.15) contrast(1.05);
}

.hero__card .card {
  position: relative;
  box-shadow: none;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero__card .muted {
  color: rgba(255, 255, 255, 0.7);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem;
  box-shadow: var(--shadow);
}

.card--glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.card__top {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.9;
}
.dot--red {
  background: #ef4444;
}
.dot--yellow {
  background: #f59e0b;
}
.dot--green {
  background: #22c55e;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 0.75rem;
}

.code__dim {
  color: rgba(255, 255, 255, 0.55);
}

.code__accent {
  color: var(--secondary2);
}

.code__str {
  color: rgba(34, 197, 94, 0.95);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(180deg, var(--primary), #16a34a);
  color: #061023;
}

.btn--ghost {
  background: var(--card2);
  border-color: var(--border);
  color: var(--text);
}

.btn--sm {
  padding: 0.6rem 0.8rem;
  font-weight: 800;
  border-radius: 12px;
}

.section {
  padding: 3.2rem 0;
}

.trust {
  padding: 0 0 1.6rem;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.trust__item {
  border: 1px solid var(--border);
  background: var(--card2);
  border-radius: var(--radius);
  padding: 0.9rem 0.95rem;
}

.trust__kpi {
  margin: 0 0 0.15rem;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.trust__text {
  margin: 0;
  color: var(--muted);
}

.section--alt {
  background: var(--card2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.list {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted2);
}

.note {
  margin-top: 1rem;
}

.btn--block {
  width: 100%;
}

.price__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--text);
  font-weight: 900;
  margin: 0 0 0.65rem;
}

.price__from {
  margin: 0.1rem 0 0.55rem;
  font-size: 1.05rem;
  color: var(--text);
}

.price__num {
  font-size: 1.9rem;
  font-weight: 950;
  letter-spacing: 0.2px;
  color: var(--text);
}

.price__mxn {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.95rem;
}

.price--featured {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.1), rgba(255, 255, 255, 0.04));
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--text);
  font-weight: 800;
}

.quote blockquote {
  margin: 0;
  font-weight: 750;
  color: var(--text);
}

.quote figcaption {
  margin-top: 0.85rem;
}

.work {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card2);
  overflow: hidden;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.work:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  background: var(--card);
  text-decoration: none;
}

.work__thumb {
  height: 140px;
  background-image: var(--thumb, none),
    radial-gradient(400px 220px at 20% 20%, rgba(59, 130, 246, 0.26), transparent 55%),
    radial-gradient(400px 220px at 80% 0%, rgba(34, 197, 94, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  background-size: cover, auto, auto, auto;
  background-position: center, center, center, center;
}

.work__body {
  padding: 0.9rem 0.95rem 1rem;
}

.work__title {
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  padding: 1.05rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card2);
}

.step__num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 900;
  color: #061023;
  background: linear-gradient(180deg, rgba(34, 197, 94, 1), rgba(134, 239, 172, 1));
  margin-bottom: 0.65rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card2);
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: start;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0.85rem 0.95rem;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

[data-animate] {
  opacity: 0;
  transform: translateY(12px);
  transition: transform 520ms ease, opacity 520ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 70;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 950;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.fab__icon {
  width: 26px;
  height: 26px;
}

.fab--whatsapp {
  background: linear-gradient(180deg, #25d366, #128c7e);
  color: #ffffff;
  text-decoration: none;
}

.fab--whatsapp:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.assistant-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 4.9rem;
  z-index: 70;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--text);
  padding: 0.75rem 0.9rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.assistant-fab:hover {
  transform: translateY(-1px);
}

.assistant {
  position: fixed;
  right: 1.1rem;
  bottom: 6.7rem;
  width: min(380px, calc(100vw - 2.2rem));
  max-height: min(560px, calc(100vh - 9rem));
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 80;
  display: none;
  grid-template-rows: auto 1fr auto;
}

.assistant.is-open {
  display: grid;
}

.assistant[hidden] {
  display: none !important;
}

.assistant__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.assistant__title {
  margin: 0;
  font-weight: 950;
  letter-spacing: 0.2px;
}

.assistant__subtitle {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.assistant__close {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  width: 38px;
  height: 38px;
  border-radius: 14px;
  cursor: pointer;
}

.assistant__body {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  overflow: hidden;
}

.assistant__messages {
  overflow: auto;
  padding-right: 0.25rem;
}

.assistant__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.assistant__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 0.5rem 0.7rem;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
}

.assistant__chip:hover {
  background: rgba(255, 255, 255, 0.06);
}

.assistant__msg {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.assistant__msg--user {
  justify-items: end;
}

.assistant__bubble {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
}

.assistant__msg--user .assistant__bubble {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.24);
}

.assistant__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0.95rem;
}

.assistant__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.assistant__input {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.75rem 0.85rem;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
}

.assistant__send {
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: linear-gradient(180deg, rgba(34, 197, 94, 1), rgba(22, 163, 74, 1));
  color: #061023;
  padding: 0.75rem 0.85rem;
  font-weight: 950;
  cursor: pointer;
}

.form-status {
  margin: 0.7rem 0 0;
  color: var(--muted);
  min-height: 1.2em;
}

.footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--header-border);
  background: var(--card2);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--muted);
  margin-left: 0.8rem;
}

.page-plain {
  background: linear-gradient(180deg, var(--bg), var(--bg2));
}

.plain {
  padding: 4rem 0;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__card {
    justify-self: start;
  }
  .trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand__logo {
    height: 46px;
    max-width: 240px;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
  .nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    width: min(320px, calc(100vw - 2rem));
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.6rem;
    background: rgba(11, 18, 32, 0.92);
    box-shadow: var(--shadow);
  }
  .nav.is-open {
    display: flex;
  }
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}
