/* Estilos extra para seccion POS manteniendo look Bootslander */

.pos-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.pos-hero-copy p {
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.pos-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 45%);
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--contrast-color);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  margin: 0 8px 10px 0;
}

.pos-plan-card {
  height: 100%;
  padding: 24px;
  border-radius: 16px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 86%);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--heading-color), transparent 92%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.pos-plan-skeleton {
  min-height: 356px;
  pointer-events: none;
}

.pos-plan-status-card {
  min-height: auto;
}

.pos-skeleton-block {
  position: relative;
  overflow: hidden;
  min-height: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--heading-color), transparent 92%);
}

.pos-skeleton-block::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--surface-color), #fff 58%),
    transparent
  );
  animation: pos-skeleton-shimmer 1.7s ease-in-out infinite;
}

.pos-skeleton-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.pos-skeleton-title {
  width: 52%;
  margin-top: 4px;
}

.pos-skeleton-price {
  width: 68%;
  min-height: 26px;
  margin-top: 10px;
}

.pos-skeleton-meta {
  width: 38%;
  min-height: 11px;
  margin-top: 9px;
}

.pos-skeleton-copy {
  width: 84%;
  min-height: 16px;
}

.pos-skeleton-label {
  width: 24%;
  min-height: 11px;
}

.pos-skeleton-lines {
  display: grid;
  gap: 12px;
}

.pos-skeleton-lines .pos-skeleton-block:nth-child(1) { width: 94%; }
.pos-skeleton-lines .pos-skeleton-block:nth-child(2) { width: 88%; }
.pos-skeleton-lines .pos-skeleton-block:nth-child(3) { width: 91%; }
.pos-skeleton-lines .pos-skeleton-block:nth-child(4) { width: 76%; }

.pos-skeleton-button {
  min-height: 39px;
}

@keyframes pos-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.pos-plan-card.is-recommended {
  border-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--accent-color), transparent 82%);
  transform: translateY(-4px);
}

.pos-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--heading-color), var(--accent-color) 40%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.pos-plan-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 6px;
}

.pos-plan-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
}

.pos-plan-icon i {
  font-size: 22px;
}

.pos-plan-card--basic .pos-plan-icon {
  background: color-mix(in srgb, #d97706, transparent 90%);
  border-color: color-mix(in srgb, #d97706, transparent 65%);
  color: #d97706;
}
.pos-plan-card--starter .pos-plan-icon {
  background: color-mix(in srgb, #16a34a, transparent 90%);
  border-color: color-mix(in srgb, #16a34a, transparent 65%);
  color: #16a34a;
}
.pos-plan-card--standard .pos-plan-icon {
  background: color-mix(in srgb, #1d4ed8, transparent 90%);
  border-color: color-mix(in srgb, #1d4ed8, transparent 65%);
  color: #1d4ed8;
}
.pos-plan-card--business .pos-plan-icon {
  background: color-mix(in srgb, #ea580c, transparent 90%);
  border-color: color-mix(in srgb, #ea580c, transparent 65%);
  color: #ea580c;
}
.pos-plan-card--plus .pos-plan-icon {
  background: color-mix(in srgb, #6d28d9, transparent 90%);
  border-color: color-mix(in srgb, #6d28d9, transparent 65%);
  color: #6d28d9;
}

.pos-plan-period {
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  margin-top: 2px;
}

.pos-plan-sep {
  height: 1px;
  border: 0;
  background: color-mix(in srgb, var(--heading-color), transparent 90%);
  margin: 2px 0 0 0;
}

/* Feature grid: add a compact description line without changing the template's overall look. */
.features .features-item {
  flex-wrap: wrap; /* keep icon+title on first row, description on next row */
  align-items: flex-start;
}

.features .features-item h3 {
  flex: 1 1 calc(100% - 44px);
}

.features .features-item p.pos-feature-desc {
  flex: 0 0 100%;
  margin: 8px 0 0 44px; /* align under title, not on the side */
  font-size: 12.5px;
  line-height: 1.25;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  max-width: none;
  display: block;
  overflow: visible;
}

/* --------------------------------------------------------------
   Modules section — grouped feature cards (commercial hook).
   Scoped to .pos-module-* so the rest of the template is untouched.
   -------------------------------------------------------------- */
.pos-modules-subtitle {
  max-width: 720px;
  margin: 14px auto 0;
  font-size: 1rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.pos-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pos-module-card {
  --card-accent: var(--accent-color);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 16px;
  box-shadow: 0 6px 24px -18px rgba(15, 23, 42, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pos-module-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-accent), transparent 55%);
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--card-accent), transparent 35%);
}

.pos-module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 13px;
  border-radius: 14px;
  font-size: 23px;
  line-height: 1;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent), transparent 86%);
}

.pos-module-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading-color);
}

.pos-module-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.pos-module-card:hover h3 a {
  color: var(--card-accent);
}

.pos-module-desc {
  margin: 0 0 13px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--default-color), transparent 22%);
}

.pos-module-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0; /* push chips to the bottom so cards align */
  padding: 0;
  list-style: none;
}

.pos-module-chips li {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: color-mix(in srgb, var(--card-accent), var(--heading-color) 45%);
  background: color-mix(in srgb, var(--card-accent), transparent 90%);
  border: 1px solid color-mix(in srgb, var(--card-accent), transparent 82%);
}

.pos-module-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.pos-module-points li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.25;
}

.pos-module-points li::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--card-accent);
  font-weight: 800;
}

/* Tablet: 2 columns */
@media (max-width: 991.98px) {
  .pos-modules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile: single column, more compact */
@media (max-width: 575.98px) {
  .pos-modules-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pos-module-card {
    padding: 18px;
  }

  .pos-module-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    font-size: 23px;
  }

  .pos-module-card h3 {
    font-size: 1.05rem;
  }

  .pos-module-desc {
    margin-bottom: 13px;
  }
}

/* Binational electronic invoicing — lightweight CSS flags, no image requests. */
.section-title .pos-country-showcase {
  width: min(75%, 960px);
  margin: 40px auto 0;
}

.pos-country-flags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 48px);
  transition: grid-template-columns 0.45s ease;
}

.pos-country-flags[data-picked] {
  grid-template-columns: minmax(0, 200px);
  justify-content: center;
}

.pos-country-flags--no-anim,
.pos-country-flags--no-anim .pos-country-card {
  transition: none !important;
}

.pos-country-card[hidden] {
  display: none;
}

.pos-country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px;
  border-radius: 14px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pos-country-card:hover .pos-country-flag,
.pos-country-card:focus-visible .pos-country-flag {
  box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.75), inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 55%);
}

.pos-country-card:focus-visible {
  outline: none;
}

.pos-country-card[data-selected="true"] .pos-country-flag {
  box-shadow: 0 16px 34px -18px rgba(15, 23, 42, 0.8), inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 35%);
}

.pos-country-card[data-selected="false"] {
  opacity: 0;
  transform: scale(0.82);
  pointer-events: none;
}

.pos-country-prompt {
  margin: 0 auto 18px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.pos-country-prompt strong {
  color: color-mix(in srgb, var(--heading-color), var(--accent-color) 35%);
}

.pos-country-change {
  display: block;
  margin: 14px auto 0;
  padding: 0;
  background: none;
  border: none;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pos-country-change:hover {
  color: var(--accent-color);
}

/* Nudge "elegí el país" — reemplaza todo el contenido de abajo (gated)
   hasta que se elige un país; ver [data-gated-content] más abajo. */
.pos-gate-nudge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 30px auto 6px;
}

.pos-gate-arrow {
  display: inline-flex;
  color: color-mix(in srgb, var(--heading-color), var(--accent-color) 40%);
  animation: pos-gate-bounce 1.4s ease-in-out infinite;
}

.pos-gate-arrow svg {
  width: 26px;
  height: 26px;
}

.pos-gate-hint {
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 18%);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

@keyframes pos-gate-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .pos-gate-arrow {
    animation: none;
  }
}

/* Contenido debajo de las banderas: oculto hasta elegir país (JS agrega/
   quita [hidden] y la clase de entrada — ver sistema-pos.js). */
[data-gated-content] {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-gated-content][hidden] {
  display: none !important;
}

[data-gated-content].pos-gate-enter {
  opacity: 0;
  transform: translateY(14px);
}

.pos-country-card strong {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.pos-country-flag {
  position: relative;
  display: block;
  width: 100%;
  height: 82px;
  overflow: hidden;
  border-radius: 11px;
  box-shadow: 0 14px 30px -22px rgba(15, 23, 42, 0.7), inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.pos-country-card--argentina .pos-country-flag {
  display: grid;
  place-items: center;
  background: linear-gradient(to bottom, #75aadb 0 33.333%, #fff 33.333% 66.666%, #75aadb 66.666% 100%);
}

.pos-country-card--uruguay .pos-country-flag {
  background: repeating-linear-gradient(
    to bottom,
    #fff 0 11.111%,
    #0038a8 11.111% 22.222%
  );
}

.pos-flag-canton {
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  place-items: center;
  width: 38%;
  height: 55%;
  background: #fff;
  border-bottom-right-radius: 5px;
}

.pos-flag-sun {
  color: #f4b400;
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(122, 80, 0, 0.2);
}

.pos-country-note {
  margin: 12px auto 0;
  color: color-mix(in srgb, var(--default-color), transparent 24%);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* Compact business profiles. */
.pos-business-section {
  padding: 58px 0 48px;
  background: color-mix(in srgb, var(--background-color), var(--accent-color) 2%);
}

.pos-business-intro {
  max-width: 760px;
  margin: -10px auto 24px;
  color: color-mix(in srgb, var(--default-color), transparent 18%);
  font-size: 0.96rem;
  line-height: 1.5;
  text-align: center;
}

.pos-business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pos-business-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 88%);
  border-radius: 15px;
  background: var(--surface-color);
  box-shadow: 0 12px 28px -25px rgba(15, 23, 42, 0.58);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pos-business-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 58%);
  box-shadow: 0 18px 36px -25px color-mix(in srgb, var(--accent-color), transparent 30%);
}

.pos-business-card > span {
  flex: 0 0 auto;
  font-size: 1.7rem;
  line-height: 1;
}

.pos-business-card h3 {
  margin: 0 0 6px;
  color: var(--heading-color);
  font-size: 0.98rem;
  line-height: 1.25;
}

.pos-business-card p {
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 22%);
  font-size: 0.84rem;
  line-height: 1.4;
}

@media (max-width: 991.98px) {
  .pos-business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .section-title .pos-country-showcase {
    width: 100%;
    margin-top: 32px;
  }

  .pos-country-flags {
    gap: 12px;
  }

  .pos-country-card {
    gap: 7px;
  }

  .pos-country-flag {
    height: 62px;
  }

  .pos-country-card strong {
    font-size: 0.78rem;
  }

  .pos-country-prompt {
    font-size: 0.94rem;
  }

  .pos-country-note {
    font-size: 0.82rem;
  }

  .pos-gate-hint {
    font-size: 0.8rem;
  }

  .pos-business-section {
    padding: 44px 0 36px;
  }

  .pos-business-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pos-business-card {
    padding: 15px;
  }

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

.pos-plan-name {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--heading-color);
}

.pos-plan-price {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: color-mix(in srgb, var(--heading-color), var(--accent-color) 35%);
}

.pos-plan-card--basic .pos-plan-price { color: #d97706; }
.pos-plan-card--starter .pos-plan-price { color: #16a34a; }
.pos-plan-card--standard .pos-plan-price { color: #1d4ed8; }
.pos-plan-card--business .pos-plan-price { color: #ea580c; }
.pos-plan-card--plus .pos-plan-price { color: #6d28d9; }

.pos-plan-desc {
  font-size: 0.95rem;
  font-family: var(--default-font);
  letter-spacing: 0.1px;
  color: color-mix(in srgb, var(--default-color), transparent 12%);
}

/* The four general plans share one compact summary height. Full copy remains in SaaS Admin. */
.pos-plan-card:not(.is-specialty) .pos-plan-desc {
  display: -webkit-box;
  min-height: 4.35em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pos-plan-features-title {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
}

.pos-plan-features {
  margin: 0;
  padding-left: 0;
  color: color-mix(in srgb, var(--default-color), transparent 12%);
  display: grid;
  gap: 5px;
  font-size: 0.93rem;
  font-family: var(--heading-font);
}

.pos-plan-features li {
  list-style: none;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 2px 0;
}

.pos-plan-features li span {
  font-weight: 600;
  letter-spacing: 0.1px;
}

.pos-plan-features li i {
  font-size: 14px;
  margin-top: 2px;
  opacity: 0.95;
}

.pos-plan-card--basic .pos-plan-features li i { color: #d97706; }
.pos-plan-card--starter .pos-plan-features li i { color: #16a34a; }
.pos-plan-card--standard .pos-plan-features li i { color: #1d4ed8; }
.pos-plan-card--business .pos-plan-features li i { color: #ea580c; }
.pos-plan-card--plus .pos-plan-features li i { color: #6d28d9; }

.pos-plan-action {
  margin-top: auto;
}

.pos-plan-card .btn-get-started,
.pos-lead-card .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px 11px 18px;
  border-radius: 999px;
  transition: 0.25s;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  border: 0;
  white-space: nowrap;
  width: 100%;
}

.pos-plan-card--basic .btn-get-started { background: #d97706; }
.pos-plan-card--starter .btn-get-started { background: #16a34a; }
.pos-plan-card--standard .btn-get-started { background: #1d4ed8; }
.pos-plan-card--business .btn-get-started { background: #ea580c; }
.pos-plan-card--plus .btn-get-started { background: #6d28d9; }

.pos-plan-card .btn-get-started i {
  font-size: 14px;
}

.pos-plan-card .btn-get-started:hover,
.pos-lead-card .btn-get-started:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 12%);
  transform: translateY(-1px);
}

.pos-plan-card--basic .btn-get-started:hover { background: color-mix(in srgb, #d97706, #000 8%); }
.pos-plan-card--starter .btn-get-started:hover { background: color-mix(in srgb, #16a34a, #000 8%); }
.pos-plan-card--standard .btn-get-started:hover { background: color-mix(in srgb, #1d4ed8, #000 8%); }
.pos-plan-card--business .btn-get-started:hover { background: color-mix(in srgb, #ea580c, #000 8%); }
.pos-plan-card--plus .btn-get-started:hover { background: color-mix(in srgb, #6d28d9, #000 8%); }

/* Business lines follow the display order configured in SaaS Admin. */
.pos-plan-line-heading {
  --plan-line-accent: var(--accent-color);
  display: flex;
  flex: 0 0 calc(100% - var(--bs-gutter-x));
  width: calc(100% - var(--bs-gutter-x));
  align-items: center;
  gap: 12px;
  margin-inline: calc(var(--bs-gutter-x) * 0.5);
  padding: 0 0 12px;
  border-bottom: 2px solid color-mix(in srgb, var(--plan-line-accent), transparent 48%);
}

.pos-plan-line-heading--restaurant {
  --plan-line-accent: #a63d40;
}

.pos-plan-line-heading--workshop {
  --plan-line-accent: #0f766e;
}

.pos-plan-line-heading--specialty {
  --plan-line-accent: #6d28d9;
}

.pos-plan-line-icon {
  display: inline-flex;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--plan-line-accent);
  background: color-mix(in srgb, var(--plan-line-accent), transparent 90%);
  font-size: 1.05rem;
}

.pos-plan-line-heading h3 {
  display: inline;
  margin: 0 9px 0 0;
  color: var(--plan-line-accent);
  font-size: 1.05rem;
  font-weight: 700;
}

.pos-plan-line-heading p {
  display: inline;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 22%);
  font-size: 0.86rem;
}

.pos-plan-column--specialty {
  margin-top: var(--bs-gutter-y);
}

.pos-plan-card.is-specialty {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.55fr) minmax(210px, 0.6fr);
  grid-template-rows: auto 1fr;
  gap: 12px 28px;
  min-height: 0;
  padding: 24px 26px;
  overflow: hidden;
}

.pos-plan-card.is-specialty::after {
  content: "";
  position: absolute;
  inset: auto -70px -100px auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--specialty-accent, var(--accent-color)), transparent 91%);
  pointer-events: none;
}

.pos-plan-card--specialty-restaurant {
  --specialty-accent: #a63d40;
  border-color: color-mix(in srgb, var(--specialty-accent), transparent 70%);
}

.pos-plan-card--specialty-workshop {
  --specialty-accent: #0f766e;
  border-color: color-mix(in srgb, var(--specialty-accent), transparent 70%);
}

.pos-plan-card--specialty-specialty {
  --specialty-accent: #6d28d9;
}

.pos-plan-card.is-specialty .pos-plan-head {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
}

.pos-plan-card.is-specialty .pos-plan-icon {
  color: var(--specialty-accent);
  background: color-mix(in srgb, var(--specialty-accent), transparent 90%);
  border-color: color-mix(in srgb, var(--specialty-accent), transparent 68%);
}

.pos-plan-specialty-label {
  margin-bottom: 3px;
  color: var(--specialty-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pos-plan-card.is-specialty .pos-plan-price {
  color: var(--specialty-accent);
}

.pos-plan-card.is-specialty .pos-plan-desc {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  align-self: start;
}

.pos-plan-card.is-specialty .pos-plan-sep {
  display: none;
}

.pos-plan-card.is-specialty .pos-plan-features-title {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
}

.pos-plan-card.is-specialty .pos-plan-features {
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 20px;
}

.pos-plan-card.is-specialty .pos-plan-features-column {
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.pos-plan-card.is-specialty .pos-plan-features li i {
  color: var(--specialty-accent);
}

.pos-plan-card.is-specialty .pos-plan-action {
  position: relative;
  z-index: 1;
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
}

.pos-plan-card.is-specialty .btn-get-started {
  background: var(--specialty-accent);
}

.pos-plan-card.is-specialty .btn-get-started:hover {
  background: color-mix(in srgb, var(--specialty-accent), #000 8%);
}

@media (max-width: 991.98px) {
  .pos-plan-card.is-specialty {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  }

  .pos-plan-card.is-specialty .pos-plan-action {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: minmax(200px, 0.45fr) 1fr;
    align-items: center;
    gap: 16px;
  }
}

@media (max-width: 767.98px) {
  .pos-plan-line-heading,
  .pos-plan-line-heading--restaurant,
  .pos-plan-line-heading--workshop,
  .pos-plan-line-heading--specialty {
    align-items: flex-start;
    padding-bottom: 11px;
  }

  .pos-plan-line-heading h3,
  .pos-plan-line-heading p {
    display: block;
  }

  .pos-plan-line-heading p {
    margin-top: 2px;
    line-height: 1.4;
  }

  .pos-plan-card.is-specialty {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 21px;
  }

  .pos-plan-card.is-specialty .pos-plan-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .pos-plan-card.is-specialty .pos-plan-features-column {
    display: contents;
  }

  .pos-plan-card.is-specialty .pos-plan-features-title {
    grid-column: auto;
    grid-row: auto;
    align-self: center;
    width: 100%;
    text-align: center;
  }

  .pos-plan-card.is-specialty .pos-plan-features li {
    order: var(--feature-order);
  }

  .pos-plan-card.is-specialty .pos-plan-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 2px;
  }
}

/* Estrella del badge "Más elegido" */
.pos-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pos-plan-badge-star {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
}

/* ====== Banda de beneficios comunes (chips horizontales sobre las cards) ====== */
.pos-plans-included {
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pos-plans-included-title {
  font-family: var(--default-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}
.pos-plans-included-chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}
.pos-plans-included-chips li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 78%);
  font-family: var(--default-font);
  font-size: 14px;
  font-weight: 600;
  color: color-mix(in srgb, var(--heading-color), transparent 8%);
  white-space: nowrap;
}
.pos-plans-included-chips li i {
  font-size: 14px;
  color: #16a34a;
}
@media (max-width: 575.98px) {
  .pos-plans-included {
    gap: 10px;
  }
  /* En celular: cada chip ocupa solo su texto y se apilan centrados (check siempre junto al texto). */
  .pos-plans-included-chips {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
  }
  .pos-plans-included-chips li {
    width: auto;
    max-width: 90%;
    justify-content: center;
    text-align: left;
    font-size: 13.5px;
    padding: 9px 16px;
    white-space: normal;
  }
}

/* Espaciado más compacto sólo en la sección de planes (no afecta al resto del sitio) */
#planes,
#plans {
  padding-top: 36px;
  padding-bottom: 36px;
}
#planes .section-title,
#plans .section-title {
  padding-bottom: 26px;
}

/* ====== Plazos con descuento, bajo el botón de cada tarjeta ======
   Reemplaza la promo anual fija al 15%: ahora sale de los plazos reales
   del plan (saas_plan_billing_terms), así que una tarjeta sin plazos
   cargados simplemente no muestra nada acá. */
/* Panel de línea (sin relleno de color) para que el bloque se lea como una
   unidad aparte del resto de la tarjeta, sin competir con el botón. */
.pos-plan-terms {
  margin-top: 12px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
  border-radius: 10px;
  background: transparent;
}
/* Cada plazo ocupa dos líneas (nombre arriba, cuenta abajo): así el nombre
   entra completo en el ancho de la tarjeta y los importes no compiten con él. */
.pos-plan-term-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--default-font);
  font-size: 12.5px;
  line-height: 1.35;
}
.pos-plan-term-row + .pos-plan-term-row {
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}
.pos-plan-term-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.pos-plan-term-label {
  min-width: 0;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}
.pos-plan-term-pct {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 11.5px;
  color: #16a34a;
  white-space: nowrap;
}
.pos-plan-term-amounts {
  white-space: nowrap;
}
.pos-plan-term-amounts s {
  margin-right: 5px;
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 55%);
  text-decoration-color: currentColor;
}
.pos-plan-term-amounts strong {
  font-weight: 700;
  font-size: 13.5px;
  color: color-mix(in srgb, var(--heading-color), transparent 10%);
}

/* Uruguay: precio sin publicar todavía, así que sólo se listan los % como
   chips (deja ver que hay descuentos por adelantado sin inventar un monto). */
.pos-plan-terms--chips {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.pos-plan-term-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, #16a34a, transparent 88%);
  color: #16a34a;
  font-family: var(--default-font);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pos-plan-card .btn-get-started:focus,
.pos-lead-card .btn-get-started:focus {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 78%), 0 10px 26px rgba(0, 0, 0, 0.12);
}

.pos-plan-card .btn-get-started[aria-busy="true"],
.pos-lead-card .btn-get-started[aria-busy="true"],
.pos-plan-card .btn-get-started:disabled,
.pos-lead-card .btn-get-started:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.pos-btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pos-btn-spin 0.65s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

@keyframes pos-btn-spin {
  to { transform: rotate(360deg); }
}

.pos-flash {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.94rem;
  margin-top: 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.pos-flash.hidden {
  display: none;
}

.pos-flash.info {
  border-color: color-mix(in srgb, var(--heading-color), transparent 85%);
  background: color-mix(in srgb, var(--heading-color), transparent 95%);
}

.pos-flash.success {
  border-color: color-mix(in srgb, #16a34a, transparent 55%);
  background: color-mix(in srgb, #16a34a, transparent 90%);
}

.pos-flash.error {
  border-color: color-mix(in srgb, #dc2626, transparent 55%);
  background: color-mix(in srgb, #dc2626, transparent 92%);
}

.pos-lead-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 86%);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--heading-color), transparent 92%);
}

.pos-form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--heading-color);
}

.pos-form-control {
  width: 100%;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 82%);
  background: color-mix(in srgb, var(--surface-color), var(--background-color) 50%);
  color: var(--default-color);
  padding: 11px 12px;
  font-size: 0.95rem;
}

.pos-form-control:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent-color), var(--heading-color) 25%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 80%);
}

textarea.pos-form-control {
  min-height: 110px;
  resize: vertical;
}

.pos-plans-disclaimer {
  margin-top: 20px;
  font-size: 11.5px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  max-width: 820px;
}

.pos-plans-disclaimer .bi {
  font-size: 11px;
  margin-right: 4px;
  vertical-align: middle;
  opacity: 0.7;
}

.pos-endpoint-badge {
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 32%);
  margin-top: 12px;
}

.pos-local-banner {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 65%);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  color: color-mix(in srgb, var(--default-color), transparent 5%);
  margin: 12px 0 16px 0;
  font-size: 0.92rem;
}

.pos-local-banner strong {
  color: var(--heading-color);
}

@media (prefers-reduced-motion: reduce) {
  .pos-skeleton-block::after {
    animation: none;
  }
}

/* ====== Badge [ai] en features de plan ====== */

.pos-feature-ai-item {
  grid-template-columns: 18px 1fr !important;
  align-items: start;
}

.pos-feature-ai-item i.bi-check-circle-fill {
  color: #6d28d9 !important;
}

.pos-feature-ai-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pos-feature-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  align-self: flex-start;
  line-height: 1.4;
}

.pos-feature-ai-badge-star {
  font-size: 10px;
  line-height: 1;
}

.pos-feature-ai-label {
  font-weight: 600;
  letter-spacing: 0.1px;
  font-size: 0.93rem;
  line-height: 1.3;
}

/* YouTube: grilla de miniaturas de los últimos videos del canal. Cada una se
   reproduce en el lugar al hacer click (no hace falta ir a YouTube); la
   playlist embebida de "subidos" se sacó porque tira Error 153 en varios
   contextos (ej. abrir el HTML como file:// en vez de servido por http). */
.pos-youtube-lead {
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.pos-yt-card {
  cursor: pointer;
  outline-offset: 4px;
}

.pos-yt-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.pos-yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.pos-yt-card:hover .pos-yt-thumb img {
  transform: scale(1.04);
}

.pos-yt-thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pos-yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-yt-play i {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.88);
  color: #fff;
  font-size: 20px;
  padding-left: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease;
}

.pos-yt-card:hover .pos-yt-play i {
  background: #ff0000;
}

.pos-yt-title {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.pos-youtube-cta {
  margin-top: 2rem;
  text-align: center;
}

.pos-youtube-cta .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px 12px 28px;
  border-radius: 50px;
  transition: 0.5s;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.pos-youtube-cta .btn-get-started:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}
