.mh-pricing-wrapper {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.mh-pricing-title {
  font-size: 38px;
  font-weight: 400;
  color: #0b1c2d;
  margin: 0 0 25px 0;
  line-height: 1.2;
}

.mh-pricing-title strong { font-weight: 800; }

.mh-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.mh-toggle-bg {
  background-color: #f1f5f9;
  border-radius: 50px;
  display: flex;
  padding: 6px;
  align-items: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.mh-toggle-btn {
  background: transparent;
  border: none;
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mh-toggle-btn:not(.active):hover { color: #0b1c2d; }

.mh-toggle-btn.active {
  background-color: #2b7cff;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(43,124,255,0.3);
}

.mh-discount-badge {
  background-color: #10b981;
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mh-plans-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.mh-plan-card {
  border-radius: 24px;
  padding: 40px 20px 35px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 380px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mh-plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.mh-plan-card.light { background-color: #eef2ff; }

.mh-plan-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: #0b1c2d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mh-plan-price-wrapper {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 80px;
}

.mh-plan-price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.mh-plan-price-number {
  font-size: 48px;
  font-weight: 800;
  color: #0b1c2d;
  line-height: 1;
}

.mh-plan-price-currency {
  font-size: 24px;
  font-weight: 700;
  color: #0b1c2d;
  margin-left: -5px;
}

.mh-plan-price-period {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-left: 2px;
}

.mh-plan-price-crossed {
  font-size: 24px;
  color: #64748b;
  text-decoration: line-through;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mh-plan-price-crossed.show {
  opacity: 1;
  visibility: visible;
}

.mh-plan-savings-text {
  font-size: 13px;
  font-weight: 600;
  color: #0b1c2d;
  margin-top: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  height: 0;
  overflow: hidden;
}

.mh-plan-savings-text.show {
  opacity: 1;
  visibility: visible;
  height: auto;
}

.mh-plan-features {
  margin-bottom: 30px;
  flex-grow: 1;
}

.mh-plan-features p {
  font-size: 14px;
  color: #334155;
  margin: 6px 0;
  font-weight: 500;
}

.mh-plan-action-btn {
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
  cursor: pointer;
}

.mh-plan-action-btn.dark-outline {
  border: 1px solid #0b1c2d;
  color: #0b1c2d;
  background: transparent;
}

.mh-plan-action-btn.dark-outline:hover {
  background: #0b1c2d;
  color: #ffffff;
}

.mh-compare-btn-wrapper { margin: 10px 0 40px 0; }

.mh-compare-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #eef2ff;
  border: 1px solid #0b1c2d;
  color: #0b1c2d;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.mh-compare-btn:hover {
  background-color: #0b1c2d;
  color: #ffffff;
}

.mh-pricing-subtitle {
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 22px;
  color: #0b1c2d;
  margin: 50px 0 30px 0;
}

.mh-plans-grid-2 {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.mh-plans-grid-2 .mh-plan-card {
  width: 100%;
  max-width: 320px;
  min-height: 240px;
}

/* ── Modals ── */
.mh-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11,28,45,0.4);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mh-modal-overlay.modal-active {
  opacity: 1;
  visibility: visible;
}

.mh-modal-content {
  background: #ffffff;
  border-radius: 16px;
  width: 95%;
  max-width: 860px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 28px 24px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  font-family: "Inter", sans-serif;
}

.mh-modal-overlay.modal-active .mh-modal-content {
  transform: translateY(0);
}

.mh-modal-content.info-modal {
  max-width: 500px;
  text-align: left;
}

.mh-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f1f5f9;
  color: #0b1c2d;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

.mh-modal-close:hover { background: #e2e8f0; }

.mh-modal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  table-layout: fixed;
}

.mh-modal-table th,
.mh-modal-table td {
  padding: 10px 12px;
  border: 1.5px solid #0052cc;
  color: #0b1c2d;
}

.mh-modal-table th.bg-blue {
  background-color: #0052cc;
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.mh-modal-table td.feature-title {
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  width: 28%;
}

.mh-modal-table td { font-size: 13px; font-weight: 500; }

.mh-modal-table td p { font-size: 11px; line-height: 1.3; }

.info-modal-title {
  font-size: 24px;
  color: #0b1c2d;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #eef2ff;
  padding-bottom: 10px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .mh-plans-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mh-plans-grid-2 { flex-direction: column; align-items: center; }
  .mh-plans-grid-2 .mh-plan-card { max-width: 100%; }
  .mh-modal-content { padding: 20px; }
  .mh-modal-table th,
  .mh-modal-table td { padding: 10px; font-size: 14px; }
  .mh-modal-table td.feature-title { font-size: 14px; }
}

@media (max-width: 600px) {
  /* Carrusel deslizable en móvil (en vez de apilar en vertical) */
  .mh-plans-grid-4 {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 6px 20px 18px;
    margin: 0 -20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mh-plans-grid-4::-webkit-scrollbar { display: none; }
  .mh-plans-grid-4 .mh-plan-card {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }
}

/* ==========================================================
   TABLA COMPARATIVA + ROBOT
========================================================== */
.mh-compare-wrapper {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  width: 100%;
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  overflow: visible;
}

.mh-compare-header {
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.mh-compare-title {
  font-size: 38px;
  font-weight: 400;
  color: #0b1c2d;
  line-height: 1.2;
  margin: 0 0 10px 0;
}

.mh-compare-title strong { font-weight: 800; }

.mh-compare-subtitle {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 22px;
  color: #0b1c2d;
  margin: 0;
}

.mh-table-container {
  position: relative;
  max-width: 850px;
  margin: 0 auto 40px auto;
  z-index: 2;
}

.mh-robot-image {
  position: absolute;
  width: 900px;
  max-width: none;
  right: -550px;
  bottom: 100px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 20px 30px rgba(43, 124, 255, 0.15));
}

.mh-compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
}

.mh-compare-table th,
.mh-compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  color: #0b1c2d;
  vertical-align: middle;
}

.mh-compare-table th {
  background-color: #f1f5f9;
  font-weight: 800;
  font-size: 15px;
  border-bottom: none;
}

.mh-compare-table th:first-child { border-top-left-radius: 12px; width: 45%; }
.mh-compare-table th:last-child  { border-top-right-radius: 12px; width: 45%; }

.mh-compare-table th:nth-child(2) { text-align: center; width: 10%; }
.mh-compare-table td:nth-child(2) {
  text-align: center;
  color: #2b7cff;
  font-size: 18px;
}

.mh-compare-table td:first-child { font-weight: 600; }
.mh-compare-table td:last-child  { color: #475569; }

.mh-compare-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 30px;
  background-color: white;
  color: #0b1c2d;
  border: 1px solid #0b1c2d;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.mh-compare-btn-outline strong { font-weight: 800; }

.mh-compare-btn-outline:hover {
  background-color: #0b1c2d;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 28, 45, 0.2);
}

@media (max-width: 1024px) {
  .mh-robot-image {
    width: 800px;
    right: -300px;
    bottom: 0;
    opacity: 0.8;
  }
}

@media (max-width: 768px) {
  .mh-robot-image { display: none; transform: scaleX(-1);}
  .mh-compare-table th,
  .mh-compare-table td { padding: 12px 10px; font-size: 12px; }
  .mh-compare-title { font-size: 28px; }
}

/* =====================================================
   Professional Animations — Planes
   (keyframes y .reveal base viven en styles.css)
   ===================================================== */

/* ── Título on-load (above the fold) ── */
.mh-pricing-title  { animation: fadeUp .70s cubic-bezier(.22,1,.36,1) .15s both; }
.mh-toggle-container { animation: fadeUp .60s cubic-bezier(.22,1,.36,1) .32s both; }

/* ── Plan cards: fade-in on-load + stagger + inner glow ── */
@keyframes planFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.mh-plan-card {
  opacity: 0;
  animation: planFadeIn .65s ease both;
}
.mh-plans-grid-4 .mh-plan-card:nth-child(1) { animation-delay: .15s; }
.mh-plans-grid-4 .mh-plan-card:nth-child(2) { animation-delay: .30s; }
.mh-plans-grid-4 .mh-plan-card:nth-child(3) { animation-delay: .45s; }
.mh-plans-grid-4 .mh-plan-card:nth-child(4) { animation-delay: .60s; }
.mh-plans-grid-2 .mh-plan-card:nth-child(1) { animation-delay: .20s; }
.mh-plans-grid-2 .mh-plan-card:nth-child(2) { animation-delay: .35s; }

.mh-plan-card { position: relative; overflow: hidden; }
.mh-plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(43,124,255,0.10) 0%, transparent 68%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.mh-plan-card:hover::before { opacity: 1; }
