/**
 * PLANES PAGE - CSS COMPILADO
 * INSTANET Ecuador - Versión 2.0
 * Coherencia visual total con página principal
 * Color primario: Naranja corporativo #F7931E
 */

:root {
  --gauge-size: 140px;
  --gauge-stroke: 10;
}

/* ============================================
   HEADER FIX — Dark background on planes page
   Nav links are white, so on white page they
   are invisible without this override.
   ============================================ */
body:has(.inst-planes-page) .site-header-wrapper,
body:has(.inst-planes-page) #masthead {
  background: rgba(10, 10, 15, 0.85) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   SECTION WRAPPER - FULL WIDTH
   ============================================ */

.inst-planes-page {
  position: relative;
  z-index: 0;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  right: 50%;
  margin-right: -50vw;
  background-color: #FFFFFF;
  overflow: hidden;
}

.inst-planes-page * {
  box-sizing: border-box;
}

/* ============================================
   HERO SECTION
   ============================================ */

.inst-planes-hero {
  position: relative;
  background: #F8FAFC;
  padding: 5rem 0;
  color: #0A0E27;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-planes-hero {
    padding: 4rem 0;
  }
}

@media (max-width: 767px) {
  .inst-planes-hero {
    padding: 3rem 0;
  }
}

.inst-planes-hero__container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.inst-planes-hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .inst-planes-hero__layout {
    grid-template-columns: 45% 55%;
    gap: 3rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-planes-hero__layout {
    margin-bottom: 4rem;
  }
}

.inst-planes-hero__content {
  text-align: left;
}

@media (max-width: 991px) {
  .inst-planes-hero__content {
    text-align: center;
  }
}

.inst-planes-hero__eyebrow {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #F7931E;
  margin-bottom: 1rem;
  display: inline-block;
}

.inst-planes-hero__title {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 3.75rem;
  line-height: 1.2;
  font-weight: 800;
  color: #0A0E27;
  margin: 0 0 1.5rem 0;
}

@media (min-width: 1024px) {
  .inst-planes-hero__title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-planes-hero__title {
    font-size: 2.25rem;
  }
}

@media (max-width: 767px) {
  .inst-planes-hero__title {
    font-size: 1.875rem;
  }
}

.inst-planes-hero__title-highlight {
  color: #F7931E;
  display: block;
}

.inst-planes-hero__description {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-planes-hero__description {
    font-size: 1rem;
  }
}

@media (max-width: 991px) {
  .inst-planes-hero__description {
    margin-left: auto;
    margin-right: auto;
  }
}

.inst-planes-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #F7931E;
  color: #FFFFFF;
  padding: 1.25rem 2.5rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(247, 147, 30, 0.2), 0 2px 4px -1px rgba(247, 147, 30, 0.1);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-planes-hero__cta {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
}

.inst-planes-hero__cta:hover {
  background: #D97706;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(247, 147, 30, 0.3), 0 4px 6px -2px rgba(247, 147, 30, 0.2);
}

.inst-planes-hero__cta:focus-visible {
  outline: 2px solid #F7931E;
  outline-offset: 2px;
}

.inst-planes-hero__cta i {
  margin-left: 0.5rem;
}

/* ============================================
   HERO VISUAL (SVG ANIMATION)
   ============================================ */

.inst-planes-hero__visual {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-planes-hero__visual {
    height: 400px;
  }
}

@media (max-width: 767px) {
  .inst-planes-hero__visual {
    height: 300px;
  }
}

.inst-planes-hero__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ============================================
   FEATURES SECTION (4 CARDS)
   ============================================ */

.inst-planes-features {
  background: #FFFFFF;
  padding: 5rem 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-planes-features {
    padding: 4rem 0;
  }
}

.inst-planes-features__container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.inst-planes-features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 1024px) {
  .inst-planes-features__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-planes-features__grid {
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .inst-planes-features__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.inst-planes-features__card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.inst-planes-features__card:hover {
  background: #FFFFFF;
  border-color: #F7931E;
  transform: translateY(-8px);
  box-shadow: 0 4px 6px -1px rgba(247, 147, 30, 0.2), 0 2px 4px -1px rgba(247, 147, 30, 0.1);
}

.inst-planes-features__icon {
  font-size: 3.75rem;
  color: #F7931E;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
  margin-bottom: 0.5rem;
}

.inst-planes-features__title {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0A0E27;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.025em;
}

.inst-planes-features__description {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  color: #475569;
  margin: 0;
}

/* ============================================
   PLANS SECTION (HOME TEASER)
   ============================================ */

.inst-planes-section {
  background: #F8FAFC;
  padding: 5rem 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-planes-section {
    padding: 4rem 0;
  }
}

.inst-planes-section__container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.inst-planes-section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-planes-section__header {
    margin-bottom: 2.5rem;
  }
}

.inst-planes-section__eyebrow {
  display: inline-block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #F7931E;
  margin-bottom: 0.75rem;
}

.inst-planes-section__title {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #0A0E27;
  margin: 0 0 0.75rem 0;
}

@media (min-width: 1024px) {
  .inst-planes-section__title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-planes-section__title {
    font-size: 1.875rem;
  }
}

.inst-planes-section__subtitle {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  color: #475569;
  margin: 0;
}

/* ============================================
   PLANS GRID
   ============================================ */

.inst-planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  justify-items: center;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-planes-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   PLAN CARD
   ============================================ */

.inst-plan-card {
  position: relative;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.inst-plan-card:hover {
  transform: translateY(-4px);
  border-color: #F7931E;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.inst-plan-card--featured {
  border-color: #F7931E;
  border-width: 2px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: scale(1.02);
  z-index: 10;
}

@media (min-width: 1024px) {
  .inst-plan-card--featured {
    transform: translateY(-8px) scale(1.05);
  }
}

.inst-plan-card--featured:hover {
  box-shadow: 0 10px 15px -3px rgba(247, 147, 30, 0.3), 0 4px 6px -2px rgba(247, 147, 30, 0.2);
}

@media (min-width: 1024px) {
  .inst-plan-card--featured:hover {
    transform: translateY(-12px) scale(1.05);
  }
}

/* ============================================
   BADGE "MÁS POPULAR"
   ============================================ */

.inst-plan-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #F7931E 0%, #FFB347 100%);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  border-bottom-left-radius: 0.5rem;
  border-top-right-radius: 1rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(247, 147, 30, 0.2), 0 2px 4px -1px rgba(247, 147, 30, 0.1);
  z-index: 20;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .inst-plan-badge {
    animation: none;
  }
}

/* ============================================
   PLAN CONTENT
   ============================================ */

.inst-plan-card__name {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  color: #0A0E27;
  margin: 1rem 0 0.5rem 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-plan-card__name {
    font-size: 1.5rem;
  }
}

.inst-plan-card__tagline {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  color: #F7931E;
  margin-bottom: 2.5rem;
  font-weight: 600;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-plan-card__tagline {
    font-size: 0.875rem;
    margin-bottom: 2rem;
  }
}

/* ============================================
   SPEED GAUGE (VELOCÍMETRO)
   ============================================ */

.inst-speed-gauge {
  position: relative;
  width: var(--gauge-size);
  height: var(--gauge-size);
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 9999px;
}

.inst-speed-gauge__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.inst-speed-gauge__track {
  fill: none;
  stroke: #E2E8F0;
  stroke-width: var(--gauge-stroke);
  stroke-linecap: round;
}

.inst-speed-gauge__progress {
  fill: none;
  stroke: #F7931E;
  stroke-width: var(--gauge-stroke);
  stroke-linecap: round;
  stroke-dasharray: 100;
  /* Usa pathLength=100 definido en el SVG */
  stroke-dashoffset: 100;
  /* Empieza completamente vacío */
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.inst-speed-gauge__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.inst-speed-gauge__number {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: #0A0E27;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-speed-gauge__number {
    font-size: 2.25rem;
  }
}

.inst-speed-gauge__label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  color: #64748B;
  letter-spacing: 0.025em;
  margin-top: 0.25rem;
  text-transform: uppercase;
}

/* ============================================
   FEATURES LIST
   ============================================ */

.inst-plan-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  width: 100%;
}

.inst-plan-features__item {
  border-bottom: 1px solid #E2E8F0;
  padding: 0.5rem 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  color: #475569;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.inst-plan-features__item:last-child {
  border-bottom: none;
}

/* Checkmark icon is rendered via <i class="fa-solid fa-check"> in HTML */
.inst-plan-features__item i.fa-check {
  color: #F7931E;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* ============================================
   PRICE
   ============================================ */

.inst-plan-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.inst-plan-card__currency {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #475569;
}

.inst-plan-card__amount {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1;
  color: #0A0E27;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-plan-card__amount {
    font-size: 3rem;
  }
}

.inst-plan-card__period {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  color: #475569;
  font-weight: 500;
}

/* ============================================
   CTA BUTTON
   ============================================ */

.inst-plan-card__cta {
  width: 100%;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  background: #F7931E;
  border: 2px solid #F7931E;
  color: #FFFFFF;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  cursor: pointer;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-plan-card__cta {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }
}

.inst-plan-card__cta:hover {
  background: #D97706;
  border-color: #D97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(247, 147, 30, 0.2), 0 2px 4px -1px rgba(247, 147, 30, 0.1);
}

.inst-plan-card__cta:focus-visible {
  outline: 2px solid #F7931E;
  outline-offset: 2px;
}

/* ============================================
   GROUP LABEL (HOGAR ESENCIAL / ALTO RENDIMIENTO)
   ============================================ */

.inst-plans-group__label {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #0A0E27;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  text-align: center;
  display: block;
  margin: 4rem 0 2.5rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .inst-plans-group__label {
    font-size: 1.875rem;
    margin: 3rem 0 2rem;
  }
}

/* ============================================
   ACTIONS (VER MÁS PLANES)
   ============================================ */

.inst-planes-actions {
  text-align: center;
  margin-top: 2rem;
}

.inst-planes-actions__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  border: 2px solid #94A3B8;
  background: transparent;
  color: #475569;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.inst-planes-actions__link:hover {
  border-color: #F7931E;
  color: #F7931E;
  box-shadow: 0 4px 6px -1px rgba(247, 147, 30, 0.2), 0 2px 4px -1px rgba(247, 147, 30, 0.1);
}

.inst-planes-actions__link:focus-visible {
  outline: 2px solid #F7931E;
  outline-offset: 2px;
}

/* ============================================
   COOKIE MODAL (OPCIONAL)
   ============================================ */

.inst-cookie-modal {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  max-width: 350px;
  background: #0A0E27;
  color: #FFFFFF;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .inst-cookie-modal {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

.inst-cookie-modal__title {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.inst-cookie-modal__text {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  color: #D1D5DB;
  margin: 0 0 1rem 0;
}

.inst-cookie-modal__button {
  background: #F7931E;
  color: #FFFFFF;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.inst-cookie-modal__button:hover {
  background: #D97706;
}

/* ============================================
   UTILITIES
   ============================================ */

@media (max-width: 767px) {
  .inst-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .inst-hide-desktop {
    display: none !important;
  }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */

@media (prefers-reduced-motion: reduce) {

  .inst-plan-card,
  .inst-plan-badge,
  .inst-planes-features__card,
  .inst-speed-gauge__progress {
    animation: none !important;
    transition: none !important;
  }

  .inst-plan-card:hover,
  .inst-planes-features__card:hover {
    transform: none;
  }
}

.inst-plan-card:focus-visible,
.inst-planes-features__card:focus-visible {
  outline: 2px solid #F7931E;
  outline-offset: 2px;
}

/* ============================================
   v2.1 — DARK MODE, FILTERS, COMPARATOR, UI
   Migrated from inline <style> block
   ============================================ */

/* Dark Mode Variables */
[data-theme="dark"] {
  --inst-bg-primary: #0A0E27;
  --inst-bg-secondary: #151935;
  --inst-text-primary: #E8E9ED;
  --inst-text-secondary: #A0A3BD;
  --inst-card-bg: #1A1E3A;
  --inst-border-color: rgba(247, 147, 30, 0.2);
}

[data-theme="light"] {
  --inst-bg-primary: #FFFFFF;
  --inst-bg-secondary: #F8F9FA;
  --inst-text-primary: #0A0E27;
  --inst-text-secondary: #6C757D;
  --inst-card-bg: #FFFFFF;
  --inst-border-color: #E9ECEF;
}

.inst-planes-page {
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: var(--inst-bg-primary);
  color: var(--inst-text-primary);
}

/* Theme Toggle Button */
.inst-theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--inst-card-bg);
  border: 2px solid var(--inst-border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.inst-theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(247, 147, 30, 0.3);
}

.inst-theme-toggle__icon--moon,
.inst-theme-toggle__icon--sun {
  position: absolute;
  font-size: 20px;
  transition: opacity 0.3s ease;
  color: #F7931E;
}

.inst-theme-toggle__icon--sun {
  opacity: 0;
}

/* Filtros */
.inst-planes-filter {
  padding: 40px 20px;
  background: var(--inst-bg-secondary);
}

.inst-planes-filter__container {
  max-width: 1200px;
  margin: 0 auto;
}

.inst-planes-filter__controls {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.inst-planes-filter__group {
  flex: 1;
  min-width: 250px;
}

.inst-planes-filter__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--inst-text-primary);
  margin-bottom: 10px;
}

.inst-planes-filter__range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--inst-border-color);
  outline: none;
  appearance: none;
}

.inst-planes-filter__range::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F7931E;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(247, 147, 30, 0.4);
}

.inst-planes-filter__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F7931E;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(247, 147, 30, 0.4);
}

.inst-planes-filter__value {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  color: #F7931E;
  font-size: 14px;
}

.inst-planes-filter__reset {
  padding: 12px 24px;
  background: transparent;
  border: 2px solid #F7931E;
  border-radius: 8px;
  color: #F7931E;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inst-planes-filter__reset:hover {
  background: #F7931E;
  color: white;
  transform: translateY(-2px);
}

/* Botón de comparar en tarjetas */
.inst-plan-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.inst-plan-card__cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.inst-plan-card__compare {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: transparent;
  border: 2px solid #F7931E;
  color: #F7931E;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inst-plan-card__compare:hover {
  background: #F7931E;
  color: white;
  transform: scale(1.05);
}

.inst-plan-card__compare--active {
  background: #F7931E;
  color: white;
}

/* Modal Comparador */
.inst-compare-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.inst-compare-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.inst-compare-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.inst-compare-modal__content {
  position: relative;
  background: var(--inst-card-bg);
  border-radius: 16px;
  max-width: 1200px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.inst-compare-modal[aria-hidden="false"] .inst-compare-modal__content {
  transform: scale(1);
}

.inst-compare-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(247, 147, 30, 0.1);
  border: none;
  color: #F7931E;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.inst-compare-modal__close:hover {
  background: #F7931E;
  color: white;
  transform: rotate(90deg);
}

.inst-compare-modal__header {
  padding: 40px;
  border-bottom: 2px solid var(--inst-border-color);
}

.inst-compare-modal__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--inst-text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.inst-compare-modal__title i {
  color: #F7931E;
}

.inst-compare-modal__subtitle {
  color: var(--inst-text-secondary);
  font-size: 16px;
}

.inst-compare-modal__body {
  padding: 40px;
}

/* Selector de Planes */
.inst-compare-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.inst-compare-selector__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--inst-bg-secondary);
  border: 2px solid var(--inst-border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--inst-text-primary);
  font-weight: 600;
}

.inst-compare-selector__option:hover {
  border-color: #F7931E;
  background: rgba(247, 147, 30, 0.1);
}

.inst-compare-selector__option--selected {
  background: #F7931E;
  border-color: #F7931E;
  color: white;
}

.inst-compare-selector__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.inst-compare-selector__option--selected .inst-compare-selector__check {
  background: white;
  color: #F7931E;
}

.inst-compare-selector__speed {
  color: currentColor;
  opacity: 0.7;
  font-size: 14px;
}

/* Tabla de Comparación */
.inst-compare-table-wrapper {
  overflow-x: auto;
}

.inst-compare-table {
  width: 100%;
  border-collapse: collapse;
}

.inst-compare-table th,
.inst-compare-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid var(--inst-border-color);
}

.inst-compare-table__feature-col {
  font-weight: 700;
  color: var(--inst-text-primary);
  min-width: 200px;
}

.inst-compare-table__plan-col {
  text-align: center;
  vertical-align: top;
}

.inst-compare-table__empty {
  color: var(--inst-text-secondary);
  font-size: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.inst-compare-table__empty i {
  font-size: 24px;
  opacity: 0.5;
}

.inst-compare-table__plan-header {
  position: relative;
}

.inst-compare-table__plan-name {
  font-size: 24px;
  font-weight: 800;
  color: #F7931E;
  margin-bottom: 5px;
}

.inst-compare-table__plan-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--inst-text-primary);
}

.inst-compare-table__remove {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dc3545;
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inst-compare-table__remove:hover {
  transform: scale(1.1);
}

.inst-compare-table__label {
  font-weight: 600;
  color: var(--inst-text-primary);
}

/* Partículas en Gauge */
.inst-speed-gauge {
  position: relative;
}

.inst-speed-gauge__particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.6;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inst-animate--fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

@keyframes shimmer {
  0%, 100% {
    background-position: -200% center;
  }
  50% {
    background-position: 200% center;
  }
}

[data-animate="shimmer"] {
  background: linear-gradient(90deg, #F7931E 0%, #FFB347 50%, #F7931E 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* Tooltip */
.inst-tooltip {
  position: fixed;
  background: rgba(10, 14, 39, 0.95);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.2s ease;
  max-width: 200px;
  text-align: center;
}

.inst-tooltip--show {
  opacity: 1;
  transform: translateY(0);
}

/* Notification */
.inst-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(10, 14, 39, 0.95);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.inst-notification--show {
  transform: translateX(0);
}

/* Cookie Modal Improved */
.inst-cookie-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.inst-cookie-modal--show {
  opacity: 1;
  transform: translateY(0);
}

.inst-cookie-modal__card {
  background: var(--inst-card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 350px;
  border: 2px solid var(--inst-border-color);
}

.inst-cookie-modal__icon {
  font-size: 32px;
  color: #F7931E;
  margin-bottom: 10px;
}

.inst-cookie-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--inst-text-primary);
  margin-bottom: 10px;
}

.inst-cookie-modal__text {
  color: var(--inst-text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.inst-cookie-modal__button {
  width: 100%;
  padding: 12px;
  background: #F7931E;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.inst-cookie-modal__button:hover {
  background: #e67e00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(247, 147, 30, 0.4);
}

/* Hero CTA Group */
.inst-planes-hero__cta-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.inst-planes-hero__cta--secondary {
  background: transparent;
  border: 2px solid #F7931E;
  color: #F7931E;
}

.inst-planes-hero__cta--secondary:hover {
  background: rgba(247, 147, 30, 0.1);
}

/* Responsive — v2.1 */
@media (max-width: 768px) {
  .inst-planes-filter__controls {
    flex-direction: column;
  }

  .inst-compare-selector {
    flex-direction: column;
  }

  .inst-compare-table-wrapper {
    overflow-x: auto;
  }

  .inst-compare-table th,
  .inst-compare-table td {
    padding: 10px;
    font-size: 14px;
  }

  .inst-planes-hero__cta-group {
    flex-direction: column;
  }

  .inst-plan-card__actions {
    flex-direction: column;
  }

  .inst-plan-card__compare {
    width: 100%;
    height: 45px;
  }

  .inst-theme-toggle {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .inst-compare-modal__header,
  .inst-compare-modal__body {
    padding: 20px;
  }

  .inst-compare-modal__title {
    font-size: 24px;
  }
}