/* ============================================================
   FoodXade — Hoja de estilos principal
   Paleta corporativa:
   #3E2EB7 · #614DA5 · #9866BC · #C290D3 · #E4E9ED · #ffffff
   ============================================================ */

:root {
  --primary: #3e2eb7;
  --secondary: #614da5;
  --accent: #9866bc;
  --lilac: #c290d3;
  --white: #ffffff;

  --ink: #221a44;
  --body-color: #56506b;
  --muted: #8b84a3;

  --bg: #ffffff;
  --bg-soft: #f5f3fb;
  --bg-softer: #faf9fd;
  --line: #e4e9ed;

  --green: #2fbf71;
  --amber: #f5b841;
  --red: #e5484d;

  --dark: #1d1636;

  --grad: linear-gradient(
    120deg,
    var(--primary) 0%,
    var(--secondary) 45%,
    var(--accent) 100%
  );
  --grad-soft: linear-gradient(
    120deg,
    rgba(62, 46, 183, 0.08),
    rgba(194, 144, 211, 0.12)
  );

  --shadow-sm: 0 2px 10px rgba(62, 46, 183, 0.06);
  --shadow-md: 0 12px 32px rgba(62, 46, 183, 0.1);
  --shadow-lg: 0 24px 64px rgba(62, 46, 183, 0.16);

  --radius: 20px;
  --radius-sm: 12px;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

/* iPhone/pantallas con muesca: el header crece lo justo para no
   quedar bajo el notch/barra de estado. Sin viewport-fit=cover
   (o en Android) env() devuelve 0 y todo queda igual. */
@supports (top: env(safe-area-inset-top, 0px)) {
  :root {
    --header-h: calc(76px + env(safe-area-inset-top, 0px));
  }
}

body {
  font-family: var(--font-body);
  color: var(--body-color);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.section {
  padding-block: clamp(40px, 4vw, 56px);
  position: relative;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Etiquetas y cabeceras de sección ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(62, 46, 183, 0.07);
  border: 1px solid rgba(62, 46, 183, 0.16);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 60px);
}

.section-sub {
  margin-top: 18px;
  font-size: 1.02rem;
}
.section-head .section-sub + .section-sub {
  margin-top: 10px;
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}
.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--grad);
  color: var(--white);
  border: 0;
  padding: 15.5px 29.5px;
}
.btn-primary.btn-sm {
  padding: 11.5px 21.5px;
}
.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border-color: rgba(62, 46, 183, 0.35);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(62, 46, 183, 0.05);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 10px 26px rgba(20, 12, 60, 0.28);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(20, 12, 60, 0.34);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.88rem;
}
.btn-sm svg {
  width: 15px;
  height: 15px;
}
.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  transition:
    gap 0.25s ease,
    color 0.25s ease;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
}
.link-arrow:hover {
  gap: 12px;
  color: var(--secondary);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 6px 8px;
  margin: -6px -8px;
  flex-shrink: 0;
}
.logo img {
  height: 30px;
  width: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav > a:not(.nav-cta) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.75;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
  position: relative;
  white-space: nowrap;
}
.nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav > a:not(.nav-cta):hover,
.nav > a:not(.nav-cta).active,
.nav > a:not(.nav-cta)[aria-current="page"] {
  opacity: 1;
  color: var(--primary);
}
.nav > a:not(.nav-cta):hover::after,
.nav > a:not(.nav-cta).active::after,
.nav > a:not(.nav-cta)[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 4px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.menu-toggle span {
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 5.5vw, 68px));
  padding-bottom: clamp(28px, 3.5vw, 44px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.blob-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(194, 144, 211, 0.55),
    transparent 65%
  );
}

.blob-2 {
  width: 460px;
  height: 460px;
  bottom: -180px;
  left: -140px;
  background: radial-gradient(
    circle at 70% 70%,
    rgba(97, 77, 165, 0.4),
    transparent 65%
  );
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(62, 46, 183, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 46, 183, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    black 30%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    black 30%,
    transparent 75%
  );
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: min(600px, 52%);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 22px;
}

.lead {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 38px;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.hero-points svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ---------- Media del hero: foto full-bleed + tarjetas flotantes ---------- */
.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 55%;
  z-index: 0;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 12%);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 100%
  );
}

.float-card {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 11px 13px;
}

.float-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.float-value {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1.15;
}

.float-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}

/* Tarjeta de cumplimiento: anillo circular */
.float-cumplimiento {
  top: 16%;
  right: auto;
  left: 6%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
}

.ring {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 7;
}
.ring-track {
  stroke: var(--line);
}
.ring-fill {
  stroke: var(--green);
  stroke-linecap: round;
}
.ring-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
}

/* Tarjeta de tareas pendientes: checklist */
.float-tareas {
  bottom: 8%;
  right: 5%;
  width: 180px;
}

.tareas-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tareas-link {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  margin-top: 2px;
}
.tareas-link::after {
  content: " →";
}
.tareas-link:hover {
  color: var(--secondary);
}

.tareas-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink);
  padding: 5px 0;
  border-top: 1px solid var(--bg-soft);
}

.tarea-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tareas-list .done .tarea-dot {
  background: var(--green);
}
.tareas-list .warn .tarea-dot {
  background: var(--amber);
}
.tareas-list .info .tarea-dot {
  background: var(--red);
}
.tareas-list .done {
  color: var(--muted);
  text-decoration: line-through;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
/* Fallback sin JS: grilla 4x2 como antes */
.services-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

body.js-carousel .services-viewport {
  overflow: hidden;
  padding-block: 12px 18px;
  touch-action: pan-y;
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 calc(var(--peek-px, 0px) + 10px),
    #000 calc(100% - var(--peek-px, 0px) - 10px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 calc(var(--peek-px, 0px) + 10px),
    #000 calc(100% - var(--peek-px, 0px) - 10px),
    transparent 100%
  );
}

body.js-carousel .services-track {
  display: flex;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body.js-carousel .service-card {
  flex: 0 0 calc((100% - 66px) / 4);
}

.carousel-nav,
.carousel-btn,
.carousel-dots {
  display: none;
}

body.js-carousel .carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

body.js-carousel .carousel-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
body.js-carousel .carousel-btn:hover {
  background: var(--grad);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(62, 46, 183, 0.28);
}
body.js-carousel .carousel-btn svg {
  width: 20px;
  height: 20px;
}
body.js-carousel .carousel-btn:focus-visible,
body.js-carousel .carousel-dots button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

body.js-carousel .carousel-dots {
  display: flex;
  gap: 8px;
}
body.js-carousel .carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(62, 46, 183, 0.22);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
body.js-carousel .carousel-dots button.is-active {
  background: var(--primary);
  transform: scale(1.3);
}

.carousel-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  margin: 18px auto 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.carousel-all svg {
  width: 15px;
  height: 15px;
}
.carousel-all:hover {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(152, 102, 188, 0.45);
}

.service-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--primary);
  margin-bottom: 18px;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}
.service-icon svg {
  width: 34px;
  height: 34px;
}
.service-card:hover .service-icon {
  transform: scale(1.06);
  background: var(--grad);
  color: var(--white);
  border-color: transparent;
}

.service-card h3 {
  font-size: 1.05rem;
}
.service-card > p {
  margin-top: 8px;
  font-size: 0.88rem;
}

.service-list {
  margin: 16px 0 20px;
  text-align: left;
  flex-grow: 1;
}
.service-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--body-color);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 9px;
  background-position: center;
  background-repeat: no-repeat;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--white);
  background: var(--grad);
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(62, 46, 183, 0.24);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  white-space: nowrap;
}
.service-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}
.service-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(62, 46, 183, 0.32);
}
.service-btn:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   PLANES
   ============================================================ */
.planes {
  background: var(--bg);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.plans-grid .plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.plan-card h3 {
  font-size: 1.3rem;
}
.plan-desc {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.plan-price {
  margin: 18px 0 6px;
  font-family: var(--font-head);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.plan-price .price {
  display: inline-block;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.plan-price .period {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.price-from {
  font-size: 0.85rem;
  color: var(--muted);
  margin-right: 4px;
}

/* Precio mensual: se desliza y se tacha al elegir facturación anual */
.plan-price .price-old {
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  margin-right: 0;
  opacity: 0;
  transform: translateX(-8px);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  vertical-align: middle;
  transition:
    max-width 0.3s ease,
    opacity 0.25s ease,
    transform 0.3s ease,
    margin-right 0.3s ease;
}
.plan-price .price-old::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease 0.12s;
}
body.is-anual .plan-price .price-old {
  max-width: 3rem;
  margin-right: 8px;
  opacity: 1;
  transform: none;
}
body.is-anual .plan-price .price-old::after {
  transform: scaleX(1);
}
.plan-featured .plan-price .price-old {
  color: rgba(255, 255, 255, 0.65);
}

/* Intercambio del precio actual (mensual ↔ anual) */
.plan-price .price.price-swap {
  animation: priceOut 0.2s ease both;
}
.plan-price .price.price-swap-in {
  animation: priceIn 0.3s ease both;
}
@keyframes priceOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes priceIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-features {
  margin: 16px 0 26px;
  flex-grow: 1;
}
.plan-features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E2EB7' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(62, 46, 183, 0.35);
  white-space: nowrap;
}

.plan-featured {
  background: var(--grad);
  border: none;
  color: var(--white);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
  z-index: 1;
  margin-top: -10px;
  padding-top: 40px;
}
.plan-featured:hover {
  transform: scale(1.04) translateY(-6px);
}
.plans-grid .plan-featured:hover {
  transform: scale(1.04) translateY(-6px);
}

.plan-featured h3,
.plan-featured .plan-price,
.plan-featured .plan-features li {
  color: var(--white);
}
.plan-featured .plan-desc {
  color: rgba(255, 255, 255, 0.75);
}
.plan-featured .plan-price .period {
  color: rgba(255, 255, 255, 0.75);
}

.plan-featured .plan-features li::before {
  background-color: rgba(255, 255, 255, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Nota de precio en tarjetas del index (mensual ↔ anual) */
.planes .plan-card .plan-note {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.planes .plan-card .plan-note [data-note-anual] {
  display: none;
}
body.is-anual .planes .plan-card .plan-note [data-note-mensual] {
  display: none;
}
body.is-anual .planes .plan-card .plan-note [data-note-anual] {
  display: inline;
}
.plan-featured .plan-note {
  color: rgba(255, 255, 255, 0.8);
}
.planes .plan-card .plan-note .discount-tag {
  margin-left: 6px;
  padding: 2px 9px;
}

/* ---------- Toggle Mensual / Anual ---------- */
.billing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.planes .billing {
  margin-bottom: 64px;
}

.billing-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.billing-btn {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}
.billing-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.save-chip {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(62, 46, 183, 0.08);
  border: 1px solid rgba(62, 46, 183, 0.18);
  padding: 5px 14px;
  border-radius: 999px;
}

.plans-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============================================================
   SECTORES — banda horizontal
   ============================================================ */
.sectores {
  background: var(--bg-soft);
  padding-block: clamp(44px, 5.5vw, 60px);
}

.sectores-title {
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 12px;
}

.sectores-sub {
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--body-color);
  max-width: 640px;
  margin: 0 auto 34px;
}

.sectores-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.sector-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.sector-chip svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
  transition: transform 0.25s ease;
}
.sector-chip:hover {
  transform: translateY(-4px);
  background: var(--white);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   MÉTODO / SOFTWARE XADE
   ============================================================ */
.software {
  background: var(--bg);
}

.software-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: flex-start;
}

.software-copy h2 {
  margin-bottom: 24px;
}

.software-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-bottom: 30px;
}
.software-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
}
.software-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E2EB7' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.software-name {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.software-name strong {
  color: var(--ink);
  font-family: var(--font-head);
}

/* ---------- Mockup laptop + móvil ---------- */
.software-mockup {
  position: relative;
}

.software-mockup img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.software-mockup .xd-stage {
  max-width: 470px;
  margin-inline: auto;
  padding-bottom: 30px;
}

@media (min-width: 1025px) {
  .software-mockup {
    margin-top: 57px;
  }
}

.laptop-screen {
  background: var(--dark);
  border-radius: 16px 16px 0 0;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.window-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lilac);
  opacity: 0.9;
}
.window-bar .dot:nth-child(2) {
  background: var(--accent);
}
.window-bar .dot:nth-child(3) {
  background: var(--secondary);
}
.window-title {
  margin-left: auto;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.laptop-ui {
  background: var(--white);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 84px 1fr;
  overflow: hidden;
  min-height: 226px;
}

.lap-side {
  background: var(--bg-softer);
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.side-row {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}
.side-row.active {
  background: var(--primary);
  opacity: 0.85;
}

.lap-main {
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  align-items: center;
}

.lap-ring {
  position: relative;
  width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lap-ring svg {
  width: 66px;
  height: 66px;
  transform: rotate(-90deg);
}
.lap-ring circle {
  fill: none;
  stroke-width: 6;
}
.lap-ring .ring-track {
  stroke: var(--line);
}
.lap-ring .ring-fill {
  stroke: var(--green);
  stroke-linecap: round;
}
.lap-ring-num {
  position: absolute;
  top: 33px;
  left: 0;
  right: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--ink);
}
.lap-label {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.lap-bars {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 72px;
}
.bars i {
  width: 12px;
  height: var(--h, 50%);
  border-radius: 4px 4px 0 0;
  background: var(--grad);
  opacity: 0.9;
}

.lap-chips {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lap-chip {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--secondary);
  border: 1px solid var(--line);
}
.lap-chip.ok {
  color: #1e9e5a;
  background: #e9f9f0;
  border-color: #cff0dd;
}

.laptop-base {
  height: 13px;
  background: linear-gradient(180deg, #ede9f7, #cfc8e4);
  border-radius: 0 0 14px 14px;
  margin: 0 -4%;
  box-shadow: 0 16px 32px rgba(34, 26, 68, 0.18);
}

.phone {
  position: absolute;
  right: -8px;
  bottom: -14px;
  width: 116px;
  background: var(--white);
  border: 7px solid var(--dark);
  border-radius: 20px;
  padding: 13px 10px 12px;
  box-shadow: var(--shadow-lg);
}
.phone-notch {
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 0 auto 10px;
}
.phone-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}
.phone-row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.phone-row i.ok {
  background: var(--green);
}
.phone-row i.warn {
  background: var(--amber);
}
.phone-row b {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  background: var(--line);
}
.phone-btn {
  display: block;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--grad);
  border-radius: 999px;
  padding: 5px 0;
  margin-top: 11px;
}

/* ============================================================
   CIFRAS
   ============================================================ */
.stats {
  padding-block: clamp(28px, 4vw, 48px);
}

.stats-band {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  border-radius: 24px;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-shadow: 0 24px 60px rgba(62, 46, 183, 0.32);
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-num-text {
  font-size: 1.35rem;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
  display: block;
}

/* ============================================================
   POR QUÉ FOODXADE
   ============================================================ */
.porque {
  background: var(--bg-soft);
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pilar {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}
.pilar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.pilares-grid .pilar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.pilar-num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.pilar-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad);
  color: var(--white);
  margin-bottom: 18px;
}
.pilar-icon svg {
  width: 23px;
  height: 23px;
}

.pilar h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.pilar p {
  font-size: 0.92rem;
}

.closing-block {
  margin-top: 48px;
  text-align: center;
  background: var(--grad);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 48px);
  box-shadow: var(--shadow-lg);
}
.closing-block p {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.closing-block strong {
  color: var(--lilac);
  font-weight: 800;
}

/* ============================================================
   QUIÉNES SOMOS
   ============================================================ */
.quienes {
  padding-top: clamp(48px, 7vw, 88px);
}
.quienes-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 50% 40% at 100% 20%,
    rgba(194, 144, 211, 0.14),
    transparent
  );
}

.quienes .container {
  position: relative;
}

.quienes-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 5.5vw, 64px);
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.quienes-copy h2 {
  margin-bottom: 6px;
}
.quienes-copy .section-sub {
  margin-top: 18px;
}
.quienes-copy .link-arrow {
  margin-top: clamp(22px, 3.5vw, 34px);
}
.quienes-copy .btn {
  margin-top: clamp(30px, 4vw, 40px);
}

/* Variante del inicio: sin tarjetas de equipo, copy centrado */
.quienes-grid--solo {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.quienes-grid--solo .quienes-copy {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quienes-grid--solo .section-sub {
  margin-inline: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.team-card {
  background: linear-gradient(165deg, #f1edfb 0%, var(--white) 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.team-card:hover .team-photo img {
  transform: scale(1.04);
}

.team-body {
  padding: 18px 20px 20px;
}
.team-body h3 {
  font-size: 1.08rem;
}
.team-role {
  margin-top: 3px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--secondary);
}

.team-linkedin {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--secondary);
  margin-top: 13px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}
.team-linkedin svg {
  width: 15px;
  height: 15px;
}
.team-linkedin:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.filosofia-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 5.5vw, 64px);
}

.filosofia-card {
  background: var(--bg-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.filosofia-card h4 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--primary);
}
.filosofia-card p + p {
  margin-top: 10px;
}
.filosofia-highlight {
  display: flex;
  align-items: center;
  background: var(--grad);
  border: none;
  box-shadow: var(--shadow-md);
}
.filosofia-highlight p {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--white);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* Foto única del equipo (quienes-somos) */
.quienes-photo {
  width: 100%;
  margin-top: clamp(18px, 3vw, 32px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.quienes-photo-img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  padding-top: clamp(20px, 4vw, 48px);
}

.cta-card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(70px);
  background: radial-gradient(
    circle,
    rgba(194, 144, 211, 0.25),
    transparent 65%
  );
  top: -140px;
  right: -100px;
  pointer-events: none;
}

.cta-copy {
  position: relative;
}
.cta-copy h2 {
  margin-bottom: 12px;
}
.cta-copy > p {
  font-size: 1.02rem;
  margin-bottom: 28px;
  max-width: 440px;
}

.cta-contact {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--body-color);
}
.cta-contact a {
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid rgba(62, 46, 183, 0.35);
  transition: border-color 0.2s ease;
}
.cta-contact a:hover {
  border-color: var(--primary);
}

.cta-media {
  position: relative;
}
.cta-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.9fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 48px;
}

.logo-footer {
  color: var(--white);
}
.logo-footer img {
  height: 32px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.8);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}
.footer-social a svg {
  width: 16px;
  height: 16px;
}
.footer-social a:hover {
  background: var(--lilac);
  border-color: var(--lilac);
  color: var(--dark);
  transform: translateY(-2px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
  width: fit-content;
}
.footer-col a:hover {
  color: var(--lilac);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom .legal {
  display: flex;
  gap: 18px;
}
.footer-bottom .legal a {
  transition: color 0.2s ease;
}
.footer-bottom .legal a:hover {
  color: var(--lilac);
}

/* ============================================================
   ANIMACIONES DE APARICIÓN
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Con anime.js activo (clase js-anime en <html>), el hero y los grupos
   con data-stagger se ocultan para que anime los vaya revelando. */
.js-anime .hero-copy > *,
.js-anime .page-hero-copy > *,
.js-anime .hero-media,
.js-anime .page-hero-visual,
.js-anime [data-stagger] > * {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .plan-price .price,
  .plan-price .price-old,
  .plan-price .price-old::after {
    transition: none;
    animation: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100svh;
    width: min(320px, 84vw);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: -20px 0 60px rgba(34, 26, 68, 0.15);
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.35s;
    z-index: 105;
  }
  .nav.open {
    transform: translateX(0);
    visibility: visible;
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }
  .nav > a:not(.nav-cta) {
    font-size: 1.08rem;
    opacity: 0.9;
  }
  .nav-cta {
    margin-left: 0;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .hero-copy {
    max-width: none;
  }
  .hero-media {
    position: relative;
    top: auto;
    right: auto;
    height: auto;
    max-width: 540px;
    margin-inline: auto;
    width: 100%;
  }
  .hero-photo {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .float-cumplimiento {
    left: -8px;
  }
  .float-tareas {
    right: -16px;
  }

  .services-track {
    grid-template-columns: repeat(2, 1fr);
  }
  body.js-carousel .service-card {
    flex-basis: calc((100% - 44px) / 3);
  }
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-featured {
    transform: none;
    margin-top: 0;
    padding-top: 34px;
  }
  .plan-featured:hover {
    transform: translateY(-6px);
  }

  .sectores-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .software-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .software-mockup {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
  }
  .page-hero-visual {
    justify-content: center;
    margin-top: 10px;
  }

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

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

  .quienes-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .quienes-photo {
    margin-top: 0;
    max-width: min(460px, 100%);
  }

  .cta-card {
    grid-template-columns: 1fr;
  }
  .cta-media {
    max-width: 520px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hero-points {
    gap: 12px 20px;
    margin-top: 32px;
  }
  .hero-points li {
    font-size: 0.82rem;
  }

  .float-card {
    padding: 8px 10px;
    border-radius: 10px;
  }
  .ring {
    width: 42px;
    height: 42px;
  }
  .ring-num {
    font-size: 0.68rem;
  }
  .float-label {
    font-size: 0.55rem;
    white-space: normal;
  }
  .float-value {
    font-size: 1rem;
  }
  .float-sub {
    font-size: 0.6rem;
  }
  .float-tareas {
    width: 150px;
    bottom: 3%;
    right: 6px;
  }
  .tareas-head {
    margin-bottom: 6px;
  }
  .tareas-list li {
    font-size: 0.62rem;
    padding: 4px 0;
  }
  .float-cumplimiento {
    top: 3%;
    left: 6px;
  }

  .services-track {
    grid-template-columns: 1fr;
  }
  body.js-carousel .service-card {
    flex-basis: 100%;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .pilares-grid {
    grid-template-columns: 1fr;
  }

  .sectores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .sector-chip {
    padding: 14px 8px;
    font-size: 0.76rem;
  }
  .sector-chip svg {
    width: 26px;
    height: 26px;
  }

  .software-list {
    grid-template-columns: 1fr;
  }
  .laptop-ui {
    grid-template-columns: 64px 1fr;
    min-height: 200px;
  }
  .lap-main {
    padding: 12px;
    gap: 10px 12px;
  }
  .lap-ring svg {
    width: 56px;
    height: 56px;
  }
  .lap-ring-num {
    top: 28px;
  }
  .bars {
    height: 58px;
    gap: 5px;
  }
  .bars i {
    width: 9px;
  }
  .phone {
    width: 98px;
    right: -2px;
    bottom: -10px;
  }

  .stats-band {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
  .filosofia-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 28px 22px;
  }
  .hero-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Pantallas muy pequeñas (≤480 px: iPhone 16 y android 360/320) ---------- */
@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 16px;
  }
  .hero-layout {
    gap: 40px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-points {
    gap: 10px 16px;
    margin-top: 30px;
  }

  .float-tareas {
    width: 140px;
    bottom: 3%;
    right: 4px;
  }
  .float-cumplimiento {
    top: 3%;
    left: 4px;
  }

  /* Pantallas muy pequeñas: la fotografía es protagonista, se ocultan los indicadores */
  @media (max-width: 380px) {
    .float-cumplimiento,
    .float-tareas {
      display: none;
    }
  }

  .section-head {
    margin-bottom: 32px;
  }

  .sector-chip {
    padding: 12px 6px;
    font-size: 0.72rem;
  }
  .sector-chip svg {
    width: 24px;
    height: 24px;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 20px);
  }
  .page-hero-inner {
    gap: 28px;
  }
  .page-chips a {
    padding: 8px 13px;
    font-size: 0.8rem;
  }
  .page-hero h1 {
    font-size: 1.9rem;
  }

  .software-grid {
    gap: 36px;
  }
  .lap-main {
    padding: 10px 8px;
    gap: 8px;
  }

  .stats-band {
    padding: 22px;
  }
  .cta-card {
    padding: 26px 18px;
  }
  .detail-note {
    padding: 12px 14px;
  }
}

/* ============================================================
   PÁGINAS DE DETALLE (servicios.html / planes.html)
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 6vw, 80px));
  padding-bottom: clamp(36px, 4.5vw, 56px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-softer) 0%, var(--bg) 100%);
}
.page-hero .tag {
  display: inline-flex;
  margin-bottom: 18px;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 720px;
}
.page-hero-sub {
  margin-top: 18px;
  max-width: 640px;
  font-size: 1.05rem;
}
.page-hero-copy .hero-actions {
  margin-top: clamp(24px, 3vw, 36px);
}
.page-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.page-chips a {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.page-chips a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- Hero de página: texto + visual ---------- */
.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.page-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-hero-visual .software-mockup {
  width: min(100%, 480px);
}

.detail-block {
  padding-block: clamp(48px, 6vw, 76px);
}
.detail-block--alt {
  background: var(--bg-soft);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.detail-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 14px;
}
.detail-main h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 18px;
}
.detail-lead {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}
.detail-main h3 {
  font-family: var(--font-head);
  font-size: 1.06rem;
  color: var(--ink);
  margin: 26px 0 14px;
}
.detail-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.detail-list li {
  position: relative;
  padding-left: 30px;
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background-color: rgba(62, 46, 183, 0.09);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E2EB7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.detail-note {
  margin-top: 20px;
  padding: 14px 18px;
  border-left: 3px solid var(--lilac);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-softer);
  font-size: 0.95rem;
}
.feature-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.feature-list li {
  padding-left: 26px;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad);
}
.feature-list strong {
  color: var(--ink);
}

.detail-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 18px;
}
.side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-md);
}
.side-card--soft {
  background: var(--bg-softer);
  box-shadow: none;
}
.side-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 14px;
}
.side-card p {
  font-size: 0.92rem;
}
.side-card p + p {
  margin-top: 10px;
}
.side-card ul {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 12px 0 18px;
  font-size: 0.92rem;
}
.side-card ul li {
  position: relative;
  padding-left: 22px;
}
.side-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: rgba(62, 46, 183, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E2EB7' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
  background-size: 8px;
  background-position: center;
  background-repeat: no-repeat;
}
.plan-map {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}
.plan-map li {
  padding-left: 14px;
  position: relative;
}
.plan-map li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.plan-map strong {
  color: var(--primary);
}
.side-card .link-arrow {
  margin-top: 4px;
  font-size: 0.9rem;
}
.side-price {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem !important;
  color: var(--muted);
}

/* ============================================================
   PLANES (planes.html) — hero centrado + cabeceras de plan
   ============================================================ */
.services-page .page-hero-inner {
  grid-template-columns: 1fr;
  justify-items: center;
}
.services-page .page-hero-copy {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.services-page .page-chips {
  justify-content: center;
}

.plans-page .page-hero-inner {
  grid-template-columns: 1fr;
  justify-items: center;
}
.plans-page .page-hero-copy {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.plans-page .page-hero-sub {
  margin-inline: auto;
}
.plans-page .page-hero-copy .billing {
  margin-top: clamp(28px, 3.5vw, 44px);
}

.plans-page .detail-block {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);
}
.plans-page .detail-block + .detail-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 92%);
  height: 1px;
  background: var(--line);
}

.plans-page .plan-head {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 20px;
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 60px);
  padding: clamp(22px, 3vw, 30px) clamp(24px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.plans-page .plan-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
}
.plans-page .plan-num {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.plans-page .plan-name {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.plans-page .plan-price {
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--ink);
  background: var(--bg-softer);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
}
.plans-page .plan-price .pp-old {
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  margin-right: 0;
  opacity: 0;
  transform: translateX(-8px);
  font-weight: 600;
  color: var(--muted);
  vertical-align: middle;
  transition:
    max-width 0.3s ease,
    opacity 0.25s ease,
    transform 0.3s ease,
    margin-right 0.3s ease;
}
.plans-page .plan-price .pp-old::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease 0.12s;
}
body.is-anual .plans-page .plan-price .pp-old {
  max-width: 8rem;
  margin-right: 8px;
  opacity: 1;
  transform: none;
}
body.is-anual .plans-page .plan-price .pp-old::after {
  transform: scaleX(1);
}
.plans-page .plan-price .pp-val.price-swap {
  display: inline-block;
  animation: priceOut 0.2s ease both;
}
.plans-page .plan-price .pp-val.price-swap-in {
  animation: priceIn 0.3s ease both;
}
.plans-page .plan-price .pp-period {
  font-weight: 500;
  color: var(--muted);
}
.plans-page .plan-price-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.plans-page .plan-note {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
  color: var(--body-color);
}
.plans-page .plan-note [data-note-anual] {
  display: none;
}
body.is-anual .plans-page .plan-note [data-note-mensual] {
  display: none;
}
body.is-anual .plans-page .plan-note [data-note-anual] {
  display: inline;
}
.discount-tag {
  display: inline-block;
  font-style: normal;
  margin-left: 8px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(47, 191, 113, 0.12);
  border: 1px solid rgba(47, 191, 113, 0.45);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}
.save-chip[data-save-anual] {
  display: none;
}
body.is-anual .save-chip[data-save-mensual] {
  display: none;
}
body.is-anual .save-chip[data-save-anual] {
  display: inline-block;
}

.plans-page .detail-main > h3:first-child {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .plans-page .plan-head {
    grid-template-columns: auto 1fr;
  }
  .plans-page .plan-price-inner {
    grid-column: 1 / -1;
    align-items: flex-start;
  }
  .plans-page .plan-note {
    text-align: left;
    white-space: normal;
  }
}

/* ============================================================
   BOTÓN VOLVER ARRIBA + MENÚ DE SECCIONES (subpáginas)
   ============================================================ */
.back-top-wrap {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 46px;
  height: 46px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
body.back-top-visible .back-top-wrap {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  cursor: pointer;
  -webkit-touch-callout: none;
  box-shadow: 0 12px 28px rgba(62, 46, 183, 0.35);
  transition: transform 0.2s ease;
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}
.back-to-top:hover {
  transform: translateY(-2px);
}
.back-to-top:active {
  transform: scale(0.94);
}

.back-top-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0s linear 0.22s;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 200px;
  max-height: 52vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.back-top-wrap:hover .back-top-menu,
.back-top-wrap:focus-within .back-top-menu,
.back-top-wrap.menu-open .back-top-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.back-top-menu a {
  display: block;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.back-top-menu a:hover,
.back-top-menu a:focus-visible {
  background: var(--grad);
  color: var(--white);
}
.back-top-menu::-webkit-scrollbar {
  width: 6px;
}
.back-top-menu::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

@media (max-width: 480px) {
  .back-top-wrap {
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 1024px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-side {
    position: static;
    max-width: 520px;
  }
}

/* ============================================================
   RESPONSIVE DE PÁGINAS DE DETALLE (corrección de orden)
   Estas reglas van al final a propósito: el CSS base de los
   heroes de subpágina (servicios/planes/xade/quienes) se define
   después de los media queries anteriores, por lo que sus
   overrides móviles originales nunca se aplicaban y el hero
   quedaba en 2 columnas (texto comprimido + imagen 300px).
   ============================================================ */
@media (max-width: 1024px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
  }
  .page-hero-visual {
    justify-content: center;
    margin-top: 10px;
  }
  .software-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .software-mockup {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
  .page-hero-sub {
    font-size: 1rem;
  }
  .page-chips {
    gap: 8px;
    margin-top: 24px;
  }
  .page-chips a {
    padding: 8px 13px;
    font-size: 0.8rem;
  }
  .software-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding-top: calc(var(--header-h) + 20px);
  }
  .page-hero-inner {
    gap: 28px;
  }
}

/* ============================================================
   PÁGINAS LEGALES (aviso-legal / politica-privacidad / cookies)
   ============================================================ */
.legal-hero {
  padding-top: calc(var(--header-h) + clamp(36px, 5vw, 64px));
  padding-bottom: clamp(24px, 3vw, 40px);
  background: linear-gradient(180deg, var(--bg-softer) 0%, var(--bg) 100%);
}
.legal-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 14px;
}
.legal-updated {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.legal-body {
  max-width: 820px;
  margin-inline: auto;
}
.legal-body h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 34px 0 12px;
}
.legal-body p {
  margin-bottom: 14px;
}
.legal-body ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal-body li {
  margin-bottom: 6px;
}
.legal-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-contact {
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 3px solid var(--lilac);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-softer);
}

/* ============================================================
   MODAL ELEGIR PLAN (planes.html)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(29, 22, 54, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}
body.modal-open {
  overflow: hidden;
}

.modal {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 28px 34px 34px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.open .modal {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-softer);
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.modal-close svg {
  width: 17px;
  height: 17px;
}
.modal-close:active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: rotate(90deg);
}
@media (hover: hover) {
  .modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
  }
}

.modal-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.modal-title {
  font-size: clamp(1.3rem, 2.6vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.modal-sub {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}
.modal-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(62, 46, 183, 0.08);
  color: var(--primary);
}
.modal-icon svg {
  width: 24px;
  height: 24px;
}
.modal-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal-protect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
.modal-protect svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--primary);
}
.modal-form .modal-next {
  background: var(--grad);
  box-shadow: 0 10px 24px rgba(62, 46, 183, 0.24);
  border: none;
}
.modal-form .modal-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(62, 46, 183, 0.3);
}
.modal-thanks {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Transición entre pasos: slide lateral */
.modal-step {
  display: none;
}
.modal-step.is-active {
  display: block;
  animation: modalStepIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes modalStepIn {
  from {
    opacity: 0;
    transform: translateX(34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-step.is-out {
  display: block;
  animation: modalStepOut 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes modalStepOut {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateX(-34px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal-step.is-active,
  .modal-step.is-out {
    animation: none;
    transition: none;
  }
}

/* Formulario */
.modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 20px;
}
.modal-form .field-wide,
.modal-form .field-check,
.modal-form .modal-next,
.modal-form .modal-hint,
.modal-form .modal-protect {
  grid-column: 1 / -1;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(62, 46, 183, 0.12);
}
.field textarea {
  resize: vertical;
  min-height: 64px;
}
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.field-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}
.field-check a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.field-check.error {
  color: #c0392b;
}
.field-check.error input {
  outline: 2px solid rgba(192, 57, 43, 0.5);
  outline-offset: 2px;
}
.modal-next {
  margin-top: 12px;
}

/* ---------- Indicador de progreso del formulario ---------- */
.modal-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -28px -34px 24px;
  padding: 16px 78px 16px 34px;
  background: var(--bg-softer);
  border-bottom: 1px solid var(--line);
  user-select: none;
  -webkit-user-select: none;
}
.progress-step {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-softer);
  border: 1px solid var(--line);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.progress-step.is-active .progress-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}
.progress-step.is-done .progress-dot {
  position: relative;
  font-size: 0;
  background: var(--primary);
  border-color: var(--primary);
}
.progress-step.is-done .progress-dot::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}
.progress-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.progress-step.is-active .progress-label,
.progress-step.is-done .progress-label {
  color: var(--ink);
}
.progress-line {
  flex: 1;
  height: 2px;
  min-width: 24px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.3s ease;
}
.modal-progress.is-complete .progress-line {
  background: var(--primary);
}

/* ---------- Desplegables (select) del formulario ---------- */
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b84a3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}
.field select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(62, 46, 183, 0.12);
}

@keyframes fieldShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

.field input.field-error,
.field select.field-error,
.field textarea.field-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(235, 87, 87, 0.12);
  animation: fieldShake 0.2s ease;
}
.field input.field-error:focus,
.field select.field-error:focus,
.field textarea.field-error:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(235, 87, 87, 0.12);
}

/* ---------- Multiselect: desplegable con casillas ---------- */
.multi-select {
  position: relative;
}
.multi-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.multi-select-btn > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.multi-select-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.25s ease;
}
.multi-select.open .multi-select-btn svg {
  transform: rotate(180deg);
}
.multi-select.open .multi-select-btn {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(62, 46, 183, 0.12);
}
.multi-select-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  max-height: 230px;
  overflow-y: auto;
}
.multi-select.open .multi-select-panel {
  display: grid;
}
.ms-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink);
}
.ms-option:hover {
  background: var(--bg-softer);
}
.ms-option input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* ---------- Resumen contextual del modal (plan / servicios) ---------- */
.plan-chip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--ink);
}
.plan-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-chip-name {
  font-weight: 600;
}
.plan-chip .billing-toggle {
  margin: 0;
}
.plan-chip-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
  color: var(--primary);
}
.plan-chip .pp-old {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  transition:
    opacity 0.25s ease,
    transform 0.3s ease,
    margin-right 0.3s ease;
}
.plan-chip .pp-old::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease 0.12s;
}
body.is-anual .plan-chip .pp-old {
  max-width: 8rem;
  margin-right: 8px;
  opacity: 1;
  transform: none;
}
body.is-anual .plan-chip .pp-old::after {
  transform: scaleX(1);
}
.plan-chip .pp-val.price-swap {
  display: inline-block;
  animation: priceOut 0.2s ease both;
}
.plan-chip .pp-val.price-swap-in {
  animation: priceIn 0.3s ease both;
}
.plan-chip .pp-period {
  font-weight: 500;
  color: var(--muted);
}
.plan-chip .pp-custom {
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Página de éxito ---------- */
.modal-success {
  text-align: center;
  padding: 10px 0 4px;
}
.success-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: var(--white);
  box-shadow:
    0 14px 32px rgba(62, 46, 183, 0.28),
    inset 0 0 0 6px rgba(255, 255, 255, 0.22);
  animation: successPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.success-badge svg {
  width: 30px;
  height: 30px;
}
@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.success-eta {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin: 20px auto 8px;
  padding: 12px 24px;
  background: rgba(47, 191, 113, 0.1);
  border: 1px solid rgba(47, 191, 113, 0.35);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--body-color);
}
.success-eta strong {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--green);
}
@media (prefers-reduced-motion: reduce) {
  .success-badge {
    animation: none;
  }
}
.modal-hint {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}
.modal-hint.modal-hint--top {
  margin-top: 6px;
}
.field-opt {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.modal-form .modal-success-list {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--body-color);
}
.modal-success-list ul {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}
.next-steps {
  margin: 18px 0 4px;
  padding: 16px 18px;
  background: var(--bg-softer);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
}
.next-steps-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink);
  margin-bottom: 12px;
}
.next-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.next-step-item + .next-step-item {
  margin-top: 12px;
}
.next-step-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}
.next-step-body {
  min-width: 0;
}
.next-step-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.92rem;
  color: var(--ink);
}
.next-step-item small {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.modal-success .modal-home {
  margin-top: 16px;
}
.modal-home svg {
  width: 16px;
  height: 16px;
}

/* Toggle de facturación compacto dentro del modal */
.modal-billing {
  display: flex;
  justify-content: center;
  margin: 16px 0 14px;
}
.modal-billing .billing-toggle {
  background: var(--bg-softer);
}

/* Opciones de contacto */
.modal-contact {
  display: grid;
  gap: 12px;
}
.contact-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.contact-option svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
}
.contact-option strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: var(--ink);
}
.contact-option small {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--muted);
}
.contact-option:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.contact-whatsapp {
  border-color: rgba(37, 211, 102, 0.35);
  color: #1da851;
}
.contact-whatsapp:hover {
  border-color: #25d366;
  background: #f2fcf6;
}
.contact-email {
  color: var(--primary);
}
.contact-email:hover {
  border-color: var(--primary);
  background: rgba(62, 46, 183, 0.05);
}

.modal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.25s ease,
    gap 0.25s ease;
}
.modal-back svg {
  width: 15px;
  height: 15px;
}
.modal-back:hover {
  color: var(--primary);
  gap: 12px;
}

@media (max-width: 480px) {
  .modal {
    padding: 26px 20px;
  }
  .modal-form {
    grid-template-columns: 1fr;
  }
  .modal-title {
    font-size: 1.35rem;
  }
  .modal-progress {
    margin: -26px -20px 20px;
    padding: 14px 68px 12px 20px;
  }
  .modal-close {
    top: 8px;
    right: 14px;
  }
  .contact-option {
    padding: 14px 14px;
  }
}

/* ============================================================
   SOLICITAR SERVICIOS (servicios.html)
   ============================================================ */
.service-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.service-added {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-added[hidden],
.service-cta[hidden] {
  display: none;
}
.service-remove {
  background: var(--white);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.35);
}
.service-remove:hover {
  background: rgba(192, 57, 43, 0.06);
  border-color: #c0392b;
  color: #a93226;
  transform: translateY(-2px);
}

/* Barra flotante con el contador de servicios solicitados */
.services-bar {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}
.services-bar[hidden] {
  display: none;
}
.services-bar-count {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}
.services-bar-count strong {
  color: var(--primary);
}

/* Lista de servicios dentro del modal */
.service-list-wrap {
  margin: 14px 0 12px;
  padding: 12px 14px;
  background: var(--bg-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.service-modal-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.service-modal-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.service-modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* Popup de la lista de servicios solicitados (long-press en la barra) */
.services-bar-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 320px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.services-bar-pop[hidden] {
  display: none;
}
.services-bar-pop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  rotate: 45deg;
}
.services-bar-pop-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.services-bar-pop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.services-bar-pop-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.services-bar-pop-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* En móvil la barra de servicios se alinea a la izquierda, a la misma altura
   que el botón volver arriba (derecha) para mantener la zona inferior ordenada */
@media (max-width: 640px) {
  .services-bar {
    left: 16px;
    right: auto;
    transform: none;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 78px);
  }
  .services-bar-pop {
    max-width: 260px;
    left: 0;
    transform: none;
  }
  .services-bar-pop::after {
    left: 24px;
  }
}

@media (max-width: 480px) {
  .services-bar {
    left: 16px;
    max-width: calc(100% - 70px);
    gap: 8px;
    padding: 8px 10px 8px 12px;
  }
  .services-bar-count {
    font-size: 0.85rem;
  }
  .services-bar-complete {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}
