:root {
  --brand-blue: #3b82f6;
  --brand-navy: #1e293b;
  --brand-dark: #0f172a;
  --brand-gray: #94a3b8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Tags (AUTOMATIZACIÓN, PRODUCTIVIDAD, etc.) */
.benefit-gif-frame {
  aspect-ratio: 16 / 9;
}

.benefit-gif {
  display: block;
  width: 100%;
}

.benefit-tag {
  font-size: 11px;
  opacity: 0.7;
}

/* Problema - cierre */
.price-callout {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

/* HERO (Level Up) */
.hero-h1 {
  font-weight: 900;
  line-height: 1.1;
  font-size: 36px;
}

@media (min-width: 768px) {
  .hero-h1 {
    font-size: 48px;
  }
}

@media (min-width: 1024px) {
  .hero-h1 {
    font-size: 56px;
  }
}

.hero-h2 {
  font-weight: 700;
  line-height: 1.3;
  color: #3b82f6;
  font-size: 24px;
}

@media (min-width: 768px) {
  .hero-h2 {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .hero-h2 {
    font-size: 32px;
  }
}

.hero-sub {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 600px;
}

.hero-btn-primary {
  background: #3b82f6;
  color: #fff;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 18px 60px rgba(59, 130, 246, 0.28);
  font: inherit;
  cursor: pointer;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 22px 70px rgba(59, 130, 246, 0.38);
}

.hero-btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.hero-benefit-icon {
  width: 18px;
  text-align: center;
  flex: 0 0 18px;
}

.hero-mock {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-media {
  filter: brightness(1.1);
}

/* Tipografías/tamaños pedidos */
h1 {
  font-weight: 800;
}
h2,
h3 {
  font-weight: 800;
}

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

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.65s ease-out forwards;
}

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

.floaty {
  animation: floaty 4.8s ease-in-out infinite;
}

/* Onda “audio” — sección pasos */
@keyframes stepWave {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.65;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.step-wave {
  transform-origin: bottom center;
  animation: stepWave 1.05s ease-in-out infinite;
}

.step-wave-delay-1 {
  animation-delay: 0.12s;
}
.step-wave-delay-2 {
  animation-delay: 0.24s;
}
.step-wave-delay-3 {
  animation-delay: 0.36s;
}

/* Paso 2 — IA (pulso + vigas + barrido, mismo “latido” que la onda) */
@keyframes stepIaCore {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.25);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 56px rgba(59, 130, 246, 0.42);
  }
}

@keyframes stepIaBeam {
  0%,
  100% {
    opacity: 0.28;
    transform: scaleX(0.65);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes stepIaBeamV {
  0%,
  100% {
    opacity: 0.28;
    transform: scaleY(0.55);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes stepIaScan {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translateX(220%);
    opacity: 0;
  }
}

.step-ia-visual {
  position: relative;
  isolation: isolate;
}

.step-ia-core {
  position: relative;
  z-index: 2;
  animation: stepIaCore 1.05s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.step-ia-scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.step-ia-scan::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 28%;
  left: 0;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.35), transparent);
  filter: blur(0.5px);
  animation: stepIaScan 2.2s ease-in-out infinite;
}

.step-ia-beams {
  z-index: 0;
}

.step-ia-beam {
  transform-origin: center;
  animation: stepIaBeam 1.05s ease-in-out infinite;
}

.step-ia-beam--v {
  animation-name: stepIaBeamV;
}

.step-ia-beam--delay-1 {
  animation-delay: 0.14s;
}
.step-ia-beam--delay-2 {
  animation-delay: 0.28s;
}
.step-ia-beam--delay-3 {
  animation-delay: 0.42s;
}

/* Paso 3 — acta (líneas + checks con ritmo similar) */
@keyframes stepDocShimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

@keyframes stepDocLi {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(1px);
  }
}

@keyframes stepDocSeal {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.25);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 20px 2px rgba(16, 185, 129, 0.2);
  }
}

.step-doc-visual {
  position: relative;
  overflow: hidden;
}

.step-doc-line {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.22) 45%,
    rgba(255, 255, 255, 0.08) 100%
  );
  background-size: 220% 100%;
  animation: stepDocShimmer 1.9s ease-in-out infinite;
}

.step-doc-line--delay-1 {
  animation-delay: 0.25s;
}
.step-doc-line--delay-2 {
  animation-delay: 0.5s;
}
.step-doc-line--delay-3 {
  animation-delay: 0.75s;
}

.step-doc-li {
  animation: stepDocLi 1.05s ease-in-out infinite;
}

.step-doc-li:nth-child(1) {
  animation-delay: 0s;
}
.step-doc-li:nth-child(2) {
  animation-delay: 0.18s;
}
.step-doc-li:nth-child(3) {
  animation-delay: 0.36s;
}

.step-doc-seal {
  display: inline-flex;
  animation: stepDocSeal 1.1s ease-in-out infinite;
  will-change: transform, box-shadow;
}

/* Números estadísticos — sección problema */
.stat-gradient {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

/* —— Header móvil / tablet —— */
:root {
  --site-header-h: 3.5rem;
}

.site-header {
  z-index: 62;
}

.site-header-bar {
  min-height: 3.5rem;
}

.site-header-logo img {
  max-width: min(42vw, 11rem);
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  position: relative;
  z-index: 61;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.45);
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: var(--site-header-h) 1rem 2rem;
  background: #0f172a;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile-panel.is-open {
  display: flex;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile-link {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 0.75rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-mobile-link:hover,
.nav-mobile-link:focus-visible {
  color: #fff;
  background: rgba(59, 130, 246, 0.12);
  outline: none;
}

.nav-mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile-btn-primary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  border: 0;
  border-radius: 0.75rem;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.nav-mobile-btn-primary:hover {
  filter: brightness(1.05);
}

.nav-mobile-btn-ghost {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1rem;
  font-size: 1rem;
}

body.nav-mobile-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .nav-mobile-panel {
    display: none !important;
  }
}

/* CTA secundario header: outline gris (contrasta con "Únete ahora" sólido) */
/* Mismas medidas que el CTA sólido (px-4 py-2, text-sm, font-extrabold, rounded-xl). Borde con sombra para no sumar 2px extra al height. */
.nav-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.25rem;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 0 0 1px #6b7280;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.nav-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px #9ca3af;
  color: #ffffff;
}

.nav-btn-ghost:focus {
  outline: none;
}

.nav-btn-ghost:focus-visible {
  box-shadow: 0 0 0 1px #6b7280, 0 0 0 3px rgba(59, 130, 246, 0.4);
}

/* CTA final (tras FAQ): tipografía y padding pedidos */
.cta-final-section {
  padding: 80px 20px;
}

@media (min-width: 768px) {
  .cta-final-section {
    padding: 120px 40px;
  }
}

.cta-final-h2 {
  font-size: clamp(1.75rem, 5.5vw, 2.625rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .cta-final-h2 {
    font-size: 42px;
  }
}

.cta-final-lead {
  font-size: 20px;
  line-height: 1.45;
  opacity: 0.8;
}

/* Gradient backgrounds (marca) */
.gradient-cta {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(30, 41, 59, 0.2) 60%, rgba(15, 23, 42, 0.25) 100%);
}

.gradient-cta-final {
  background: linear-gradient(135deg, #0f172a 0%, rgba(30, 41, 59, 0.85) 45%, rgba(59, 130, 246, 0.32) 100%);
}

/* Shake periodic botón submit */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.shake-periodic {
  animation: shake 0.5s ease-in-out;
}

/* Diferenciadores */
.differentiators-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 80px 0;
}

@media (min-width: 1024px) {
  .differentiators-section {
    padding: 120px 0;
  }
}

.differentiators-section .section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  text-align: center;
  color: #fff;
  margin-bottom: clamp(48px, 8vw, 80px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.differentiator-card {
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 24px;
  padding: 32px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.differentiator-card:hover {
  border-color: rgba(59, 130, 246, 0.85);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.differentiator-card .icon-wrapper {
  width: 64px;
  height: 64px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.differentiator-card .icon-wrapper svg {
  width: 64px;
  height: 64px;
  color: #3b82f6;
  stroke: currentColor;
  fill: none;
}

.differentiator-card .title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.differentiator-card .description {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.differentiator-card .stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.differentiator-card .stat .number {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.differentiator-card .stat .label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 14rem;
}

/* Calculadora tiempo ahorrado */
.calc-section {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
}

/* Calculadora - minimalista premium */
.calc-min-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 40px;
}

.calc-min-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
}

.calc-min-sub {
  text-align: center;
  margin-bottom: 14px;
  font-size: 20px;
  opacity: 0.8;
  line-height: 1.6;
  color: #fff;
}

.calc-min-note {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.62;
  color: #fff;
}

.calc-min-note strong {
  font-weight: 600;
  opacity: 1;
  color: rgba(255, 255, 255, 0.92);
}

.calc-min-hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 24px auto;
}

.calc-min-sliders {
  max-width: 600px;
  margin: 0 auto 48px;
}

.calc-min-slider {
  margin-bottom: 32px;
}

.calc-min-slider:last-child {
  margin-bottom: 0;
}

.calc-min-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.calc-min-label {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.92);
}

.calc-min-value {
  font-size: 32px;
  font-weight: 700;
  color: #3b82f6;
  font-variant-numeric: tabular-nums;
}

.calc-min-container .calc-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
}

.calc-min-container .calc-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.calc-min-container .calc-range::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.calc-min-container .calc-range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -8px;
  background: #3b82f6;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
  cursor: grab;
}

.calc-min-container .calc-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #3b82f6;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
  cursor: grab;
}

.calc-rate-field {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1.5px solid rgba(59, 130, 246, 0.55);
  color-scheme: dark;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.calc-rate-field:hover {
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(59, 130, 246, 0.18);
}

.calc-rate-field:focus-within {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.22);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.28);
}

.calc-rate-prefix,
.calc-rate-suffix {
  font-size: 22px;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1;
  user-select: none;
}

.calc-rate-suffix {
  font-size: 18px;
  opacity: 0.85;
}

.calc-min-container .calc-rate-input,
input.calc-rate-input {
  -webkit-appearance: none !important;
  -moz-appearance: textfield !important;
  appearance: none !important;
  width: 80px;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0;
  outline: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  color: #3b82f6 !important;
  caret-color: #3b82f6;
  text-align: right;
  line-height: 1.1;
  box-shadow: none;
}

.calc-rate-input::-webkit-outer-spin-button,
.calc-rate-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.calc-rate-input::-moz-placeholder { color: rgba(59, 130, 246, 0.5); }
.calc-rate-input::placeholder { color: rgba(59, 130, 246, 0.5); }

@media (max-width: 480px) {
  .calc-min-container .calc-rate-input,
  input.calc-rate-input {
    width: 64px;
    font-size: 24px;
  }
  .calc-rate-prefix,
  .calc-rate-suffix {
    font-size: 18px;
  }
}

.calc-min-result {
  text-align: center;
  margin-bottom: 48px;
}

.calc-min-kicker {
  font-size: 18px;
  opacity: 0.6;
  color: #fff;
  margin-bottom: 12px;
}

.calc-min-big {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.02;
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.calc-min-line {
  height: 1px;
  width: min(560px, 100%);
  margin: 24px auto;
  background: rgba(255, 255, 255, 0.1);
}

.calc-min-small {
  font-size: 16px;
  opacity: 0.8;
  color: #fff;
  margin-bottom: 16px;
}

.calc-min-save {
  font-size: 28px;
  font-weight: 700;
  color: #10b981;
}

.calc-min-cta {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  padding: 20px;
  font-size: 20px;
  font-weight: 700;
  background: #3b82f6;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.calc-min-cta:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

button.calc-min-cta {
  font: inherit;
  cursor: pointer;
  border: none;
}

.calc-card {
  border: 2px solid #3b82f6;
  border-radius: 16px;
  padding: 40px;
  background: rgba(30, 41, 59, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.calc-title {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
}

.calc-subtitle {
  margin-top: 10px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.calc-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.calc-label {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.calc-output {
  font-size: 20px;
  font-weight: 800;
  color: #3b82f6;
  font-variant-numeric: tabular-nums;
}

.calc-results-card {
  margin-top: 40px;
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid #3b82f6;
  border-radius: 16px;
  padding: 32px;
  max-width: 560px;
}

.calc-results-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.calc-results-number {
  margin-top: 10px;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.calc-results-number--small {
  font-size: 32px;
}

.calc-results-sublabel {
  margin-top: 8px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.calc-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  margin: 18px 0;
}

.calc-divider--section {
  margin: 40px 0;
}

.calc-label-mini {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.calc-loss-number {
  margin-top: 12px;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.calc-sublabel {
  margin-top: 8px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.calc-ai-number {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.calc-recover-main {
  font-size: 24px;
  font-weight: 800;
  color: #10b981;
  line-height: 1.25;
}

.calc-recover-sub {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.calc-cta {
  width: 100%;
  padding: 20px;
  font-size: 20px;
  font-weight: 700;
  background: #3b82f6;
  margin-top: 32px;
  border-radius: 12px;
}

.calc-slider-group {
  position: relative;
}

.calc-range {
  --p: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: transparent;
  outline: none;
  transition: box-shadow 0.25s ease;
}

.calc-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #3b82f6 0%,
    #3b82f6 var(--p),
    rgba(255, 255, 255, 0.1) var(--p),
    rgba(255, 255, 255, 0.1) 100%
  );
}

.calc-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #3b82f6 0%,
    #3b82f6 var(--p),
    rgba(255, 255, 255, 0.1) var(--p),
    rgba(255, 255, 255, 0.1) 100%
  );
}

.calc-range:focus-visible {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border-radius: 50%;
  background: linear-gradient(145deg, #60a5fa, #3b82f6);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.55);
}

.calc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #60a5fa, #3b82f6);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
}

.calc-unified-card {
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.calc-unified-card:hover {
  box-shadow: 0 28px 90px rgba(59, 130, 246, 0.14);
}

.calc-unified-card.calc-result-flash {
  border-color: rgba(59, 130, 246, 0.95) !important;
  box-shadow: 0 32px 100px rgba(59, 130, 246, 0.25);
  transition:
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.calc-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Precios */
.pricing-section {
  background: #0f172a;
  padding: 100px 0;
}

/* FAQ */
.faq-section {
  background: #0f172a;
  padding: 60px 20px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.faq-list {
  margin-top: 40px;
}

.faq-item {
  background: rgba(30, 41, 59, 0.6);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.faq-item > summary {
  list-style: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.6);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: white;
  gap: 16px;
}

.faq-icon {
  font-size: 24px;
  color: #3b82f6;
  line-height: 1;
  flex: 0 0 auto;
}

.faq-icon::before {
  content: "+";
}

.faq-item[open] .faq-icon::before {
  content: "-";
}

.faq-answer {
  margin-top: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  display: none;
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-item[open] .faq-answer {
  display: block;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.faq-item[open] .faq-icon {
  color: #60a5fa;
}

.pricing-card {
  background: rgba(30, 41, 59, 0.6);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 24px;
  padding: 32px;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.pricing-card:hover {
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-4px);
}

.pricing-card.featured {
  transform: scale(1.08);
  border: 3px solid #3b82f6;
  box-shadow: 0 30px 80px rgba(59, 130, 246, 0.4);
  z-index: 10;
  position: relative;
}

.pricing-card.featured:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 34px 92px rgba(59, 130, 246, 0.44);
}

.pricing-card-header {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  text-align: center;
}

.pricing-card-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

.pricing-card-sub {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: #ffffff;
  opacity: 0.7;
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-badge-slot {
  padding: 0;
  margin: 0 0 12px;
  min-height: 0;
}

.badge-popular {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-block;
}

.pricing-popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
  z-index: 20;
}

.pricing-popular-badge-icon {
  width: 14px;
  height: 14px;
  color: #000000;
  flex: 0 0 auto;
}

.price {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.price.price--custom {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 900;
}

.price-period {
  margin-top: 8px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
}

.pricing-price-sub {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0.8;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.feature-item::before {
  content: "✓";
  flex-shrink: 0;
  color: #10b981;
  font-weight: 800;
  margin-top: 1px;
}

.feature-item--tight {
  margin-bottom: 0;
}

.cta-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  background: #3b82f6;
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cta-button:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.cta-mid-card {
  max-width: 800px;
  margin: 80px auto;
  padding: 60px 40px;
  background: rgba(30, 41, 59, 0.8);
  border: 3px solid #3b82f6;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.cta-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35);
}

.early-bird-card {
  background: rgba(245, 158, 11, 0.1);
  border: 2px solid #f59e0b;
  border-radius: 24px;
  padding: 32px;
  margin-top: 60px;
}

.icon-check {
  width: 18px;
  height: 18px;
  color: #22c55e;
  flex: 0 0 auto;
  margin-top: 2px;
}

.icon-brand {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.icon-brand--blue {
  color: #3b82f6;
}

.icon-brand--amber {
  color: #fbbf24;
}

.footer-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  vertical-align: middle;
  color: #3b82f6;
  flex: 0 0 auto;
}

.footer-link {
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #3b82f6;
}

.footer-copyright {
  font-size: 14px;
  opacity: 0.7;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1023px) {
  .pricing-card.featured {
    transform: none;
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.28);
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 56px rgba(59, 130, 246, 0.32);
  }
}

/* Popup plantilla acta (estilo alineado con comercios/automate-landing) */
body.plantilla-modal-open > header,
body.plantilla-modal-open > main,
body.plantilla-modal-open > footer,
body.waitlist-modal-open > header,
body.waitlist-modal-open > main,
body.waitlist-modal-open > footer,
body.onpremise-modal-open > header,
body.onpremise-modal-open > main,
body.onpremise-modal-open > footer {
  filter: blur(7px);
  transition: filter 220ms ease;
  pointer-events: none;
  user-select: none;
}

/* Cuando mostramos confirmación "plantilla-style" dentro de modales blancos */
#waitlistModalCard[data-success="1"],
#onpremiseModalCard[data-success="1"] {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Botón header ghost como <button> */
button.nav-btn-ghost {
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.plantilla-acta-panel {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
  will-change: opacity, transform;
}

.plantilla-acta-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.plantilla-acta-field {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  border-radius: 0.9rem;
  border: 1px solid rgb(226, 232, 240);
  background: #fff;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  color: rgb(15, 23, 42);
  outline: none;
  transition:
    box-shadow 150ms ease,
    border-color 150ms ease;
}

.plantilla-acta-field:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22);
}

.plantilla-acta-submit {
  margin-top: 0.25rem;
  min-height: 56px;
  border-radius: 1rem;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  padding: 1rem 1.25rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 14px 40px rgba(59, 130, 246, 0.38);
  transition:
    filter 150ms ease,
    transform 150ms ease;
}

.plantilla-acta-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.plantilla-acta-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.plantilla-msg--ok {
  border-color: rgb(167, 243, 208) !important;
  background: rgb(236, 253, 245) !important;
  color: rgb(4, 120, 87) !important;
}

.plantilla-msg--err {
  border-color: rgb(254, 202, 202) !important;
  background: rgb(254, 242, 242) !important;
  color: rgb(185, 28, 28) !important;
}

.plantilla-mockup {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.98));
  padding: 1.25rem 1rem 1.5rem;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(59, 130, 246, 0.12);
}

@media (min-width: 768px) {
  .plantilla-mockup {
    padding: 1.5rem 1.25rem 1.75rem;
  }
}

.plantilla-mockup-lid {
  height: 14px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #1e293b, #475569, #334155, #475569, #1e293b);
  margin: 0 auto;
  max-width: 94%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.plantilla-mockup-screen {
  margin-top: 0.5rem;
  min-height: clamp(220px, 42vw, 320px);
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.18) 0%, rgba(15, 23, 42, 0.75) 45%, rgba(15, 23, 42, 0.92) 100%);
  overflow: hidden;
  padding: 0;
}

.plantilla-mockup-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.02);
}

.plantilla-mockup-page {
  width: min(100%, 300px);
  min-height: clamp(168px, 36vw, 240px);
  border-radius: 6px;
  background: #f8fafc;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(15, 23, 42, 0.08);
  padding: clamp(1rem, 3.5vw, 1.35rem) clamp(1rem, 3vw, 1.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .plantilla-mockup-page {
    width: min(100%, 340px);
  }
}

.plantilla-mockup-doc {
  font-size: clamp(3.5rem, 16vw, 5.25rem);
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.15));
}

.plantilla-mockup-lines {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}

.plantilla-mockup-lines span {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #cbd5e1, #e2e8f0);
}

.plantilla-mockup-lines span:nth-child(1) {
  width: 88%;
}
.plantilla-mockup-lines span:nth-child(2) {
  width: 100%;
}
.plantilla-mockup-lines span:nth-child(3) {
  width: 92%;
}
.plantilla-mockup-lines span:nth-child(4) {
  width: 76%;
}
.plantilla-mockup-lines span:nth-child(5) {
  width: 100%;
}
.plantilla-mockup-lines span:nth-child(6) {
  width: 64%;
}

.plantilla-mockup-caption {
  margin-top: 1rem;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@media (min-width: 768px) {
  .plantilla-mockup-caption {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    gap: 0.7rem;
  }
}

.plantilla-mockup-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.plantilla-mockup-label-line1 {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.plantilla-mockup-label-line2 {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.92);
}

.plantilla-foot-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.plantilla-foot-note--stack {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.65rem;
}

.plantilla-success-wrap {
  width: 100%;
  text-align: center;
  color: #fff;
}

.plantilla-success-inner {
  box-sizing: border-box;
  max-width: 500px;
  margin: 0 auto;
  padding: 80px 40px;
}

.plantilla-success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.plantilla-success-icon svg {
  display: block;
}

.plantilla-success-title {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.plantilla-success-lead {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.45;
  opacity: 0.9;
}

.plantilla-success-hint {
  margin: 0 0 40px;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.6;
}

.plantilla-success-close {
  padding: 14px 40px;
  border: 2px solid #3b82f6;
  border-radius: 12px;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.plantilla-success-close:hover {
  background: #3b82f6;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
  .differentiator-card:hover {
    transform: none;
  }
  .calc-range::-webkit-slider-thumb {
    transition: none;
  }
  .pricing-card:hover,
  .pricing-card.featured,
  .pricing-card.featured:hover {
    transform: none;
  }
  .cta-button:hover {
    transform: none;
  }
}

