/* === HERO SECTION === */
.simplia-servicios-hero {
  position: relative;
  text-align: center;
  padding: 4.2rem 1.5rem 3rem;
  background: #181921;
  color: #ffffff;
  overflow: hidden;
}
.simplia-servicios-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 32px #e0298455, 0 1px 0 #fff, 0 0 12px #4f9df744;
  animation: glitch 2.3s infinite linear alternate-reverse;
}
@keyframes glitch {
  0% { filter: blur(0.2px);}
  7% { filter: blur(1.2px) brightness(1.08);}
  12% { filter: blur(0.0px) brightness(0.98);}
  100% { filter: blur(0.18px);}
}
.simplia-servicios-hero p {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  animation: fadeIn 1.4s ease-in-out;
}
.simplia-servicios-hero .cta-principal {
  position: relative;
  z-index: 2;
}

/* === CTA BUTTONS === */
.cta-principal,
.cta-secundario,
.cta-simplia,
.simplia-cta-final .cta-principal,
.cta-sticky-mobile {
  background: transparent !important;
  color: #e02984 !important;
  border: 2.5px solid #fff !important;
  font-family: 'Inter', Arial, sans-serif !important;
  font-weight: 600 !important;
  padding: 0.80em 2.1em !important;
  font-size: 1.13rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  clip-path: polygon(
    14px 0%,
    100% 0%,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    0% 100%,
    0% 14px
  ) !important;
  min-width: 0 !important;
  max-width: 420px !important;
  margin: 1.5rem auto 0 auto !important;
  display: inline-block !important;
  text-align: center !important;
  z-index: 2 !important;
  position: relative !important;
  text-decoration: none !important;
  transition:
    background 0.17s cubic-bezier(.25,.8,.5,1),
    color 0.18s,
    border-color 0.17s,
    box-shadow 0.13s,
    transform 0.13s;
}
.cta-principal span, .cta-secundario span, .cta-simplia span {
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
}
.cta-principal:hover, .cta-principal:focus,
.cta-secundario:hover, .cta-secundario:focus,
.cta-simplia:hover, .cta-simplia:focus,
.simplia-cta-final .cta-principal:hover, .simplia-cta-final .cta-principal:focus,
.cta-sticky-mobile:hover, .cta-sticky-mobile:focus {
  background: #fff !important;
  color: #e02984 !important;
  border-color: #e02984 !important;
  box-shadow: 0 4px 18px 0 #e0298440 !important;
  transform: scale(1.045) !important;
  outline: none !important;
}
.cta-simplia.destacado {
  border-color: #4F9DF7;
  color: #4F9DF7 !important;
}
.cta-simplia.destacado:hover, .cta-simplia.destacado:focus {
  color: #fff !important;
  background: #4F9DF7 !important;
  border-color: #4F9DF7 !important;
}
.simplia-cta-final h2 {
  text-align: center !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 700px) {
  .cta-principal,
  .cta-secundario,
  .cta-simplia,
  .simplia-cta-final .cta-principal,
  .cta-sticky-mobile {
    font-size: 1rem !important;
    padding: 0.6em 1.1em !important;
    min-width: 90px !important;
    max-width: 96vw !important;
  }
}
.cta-double-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.3rem;
  margin-top: 1.1rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

/* === TOGGLE MODERN (PLANS) === */
.simplia-toggle-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 2.6rem;
  font-size: 1.15rem;
  user-select: none;
  border-radius: 2em;
  padding: 0.11em 0.28em;    /* MOLT MÉS BAIX! */
  gap: 0;
  background: rgba(38, 38, 63, 0.58); /* MÉS SUAU, menys opacitat */
  box-shadow: 0 2px 14px 0 #2322441a; /* Menys profunditat */
  min-height: 2.7em;                  /* Control de gruix de la píndola */
  transition: background 0.13s, box-shadow 0.14s;
  width: auto;                        /* Elimina qualsevol width: 100% o max-width */
  max-width: none;
}

.toggle-btn {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #e2e3f7;
  padding: 0.45em 1.3em;
  border-radius: 2em;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.toggle-btn.active {
  background: #fff;
  color: #232244;
  font-weight: 900;
}

/* Gradient exclusiu per al botó "Anual" actiu */
.toggle-btn.toggle-anual.active {
  background: linear-gradient(90deg, #E02984, #4F9DF7 80%);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 2px 18px #4f9df744;
  transition: background 0.16s, color 0.17s, box-shadow 0.14s;
}

.toggle-btn.toggle-anual .toggle-badge {
  display: inline-block;
  margin-left: 0.6em;
  background: #fff;
  color: #e02984;
  font-size: 0.74em;
  font-weight: 700;
  padding: 0.28em 0.75em;
  border-radius: 1em;
  box-shadow: 0 1px 6px #e0298425;
  line-height: 1;
  transition: all 0.2s ease;
}
.toggle-btn.toggle-anual:not(.active) .toggle-badge {
  background: #393a56;
  color: #bfc9de;
  font-weight: 500;
  opacity: 0.72;
}
/* POP EFFECT al badge  */
.toggle-btn.toggle-anual .toggle-badge {
  position: relative;
  overflow: visible;
}

/* ANIMACIÓ WOW AL BADGE (pop molt gran i ultrasuau) */
.toggle-btn.toggle-anual .toggle-badge.surprise {
  animation: badge-pop-ultrasmooth 1.45s cubic-bezier(.21,1.17,.26,1.01) both;
  box-shadow:
    0 0 52px 14px #e0298460,
    0 0 27px 10px #4f9df744;
  background: linear-gradient(90deg, #fff 0%, #f7e4f5 100%);
  color: #e02984;
  z-index: 6;
}

@keyframes badge-pop-ultrasmooth {
  0%    { transform: scale(1);}
  7%    { transform: scale(1.08);}
  15%   { transform: scale(1.17);}
  23%   { transform: scale(1.27);}
  31%   { transform: scale(1.39);}
  39%   { transform: scale(1.53);}
  47%   { transform: scale(1.68);}
  55%   { transform: scale(1.70);}
  63%   { transform: scale(1.68);}
  70%   { transform: scale(1.56);}
  77%   { transform: scale(1.39);}
  84%   { transform: scale(1.23);}
  89%   { transform: scale(1.12);}
  94%   { transform: scale(1.05);}
  97%   { transform: scale(1.01);}
  100%  { transform: scale(1);}
}

/* === TEXT INFO + NOTA IVA UNIFICATS === */
.pricing-info-text,
.iva-note {
  font-size: 0.7rem !important;      /* = mateix valor, mateixa unitat */
  color: #d3d3de !important;         /* gris suau */
  font-weight: 300 !important;       /* pes uniforme */
  letter-spacing: 0.01em;
  text-align: center;
  margin: 0;
}

.billed-note {
  display: inline;
  color: #d3d3de !important;
  font-size: inherit !important;     /* hereta la mida del pare */
  font-weight: inherit !important;
  letter-spacing: 0.01em;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 1.3;
  margin: 0;
  padding: 0 !important;
  pointer-events: none;
  user-select: none;
}

.iva-note {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0.4rem auto 4.6rem auto;   /* top mínim, bottom ampliat per aire entre nota i grid */
}

.iva-note::before {
  content: "(*) ";
  color: #e02984;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0.02em;
  opacity: 0.94;
}

.billed-note span {
  display: inline;
  margin: 0;
}

@media (max-width: 700px) {
  .cta-double-wrap {
    flex-direction: column;
    gap: 0.6rem;
  }
  .pricing-info-text,
  .iva-note {
    margin-bottom: 2.1rem;
  }
}



/* === PRICING CARDS GRID === */
.simplia-pricing-cards {
  width: 100%;
  max-width: 1360px;
  margin-top: 3.5rem;
  margin-bottom: 5.2rem;
  padding: 0 1rem;
  text-align: center;
  position: relative;
  z-index: 3;
  padding-bottom: 0;
}
.simplia-pricing-cards h2,
.simplia-features-compare h2,
.simplia-faq-minimal h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-top: 3.4rem;
  margin-bottom: 1.15rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 16px #e0298470, 0 0 6px #4f9df780;
  text-align: center;
  width: 100%;
}
@media (max-width: 700px) {
  .simplia-pricing-cards h2,
  .simplia-features-compare h2,
  .simplia-faq-minimal h2 {
    font-size: 1.39rem;
    margin-top: 1.8rem;
    margin-bottom: 1.0rem;
  }
}
.simplia-plans-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 3.3rem;
  max-width: 100%;
  margin-bottom: 3.3rem;
  flex-wrap: nowrap;
  position: relative;
}
.plan-card {
  background: rgba(30, 32, 49, 0.92);
  border-radius: 1.5rem;
  box-shadow: 0 8px 40px #23234a24, 0 0 0 1.5px #e0298440 inset;
  border: 1.5px solid rgba(224,41,132,0.13);
  min-width: 360px;
  max-width: 440px;
  width: 100%;
  padding: 2.4rem 1.7rem 2.8rem 1.7rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  transition: box-shadow 0.16s, border-color 0.12s, transform 0.13s, background 0.16s;
  z-index: 2;
}
.plan-card-cta-align {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  min-height: 56px;
}
.plan-card.destacado {
  border: 2.5px solid #4F9DF7;
  background: rgba(30, 42, 90, 0.98);
  box-shadow: 0 14px 56px 0 #4f9df760, 0 1px 12px #e0298460 inset;
  transform: scale(1.045);
  z-index: 4;
}
.plan-card .badge-popular {
  position: absolute;
  top: -1.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #E02984, #4F9DF7 80%);
  color: #fff;
  font-size: 1.01rem;
  font-weight: 800;
  border-radius: 1.3rem;
  padding: 0.23rem 1.35rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px #4f9df749;
  z-index: 10;
  border-top: 2.5px solid #fff5;
  text-shadow: 0 1px 6px #4f9df744;
}
.plan-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #e02984;
  margin-bottom: 0.35rem;
  margin-top: 0.1rem;
}
.plan-card.destacado .plan-title {
  color: #4F9DF7;
  letter-spacing: 0.01em;
}
.plan-price {
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  min-height: 3.2em;
}
.plan-period {
  font-size: 1.15rem;
  font-weight: 500;
  color: #e4e7f1;
  margin-left: 2px;
}
.plan-card.ultra .plan-period {
  font-size: 1.13rem;
  font-weight: 600;
  margin-left: 0.28em;
  vertical-align: baseline;
  display: inline;
}
.plan-desc {
  font-size: 1.09rem;
  color: #c4c8dc;
  margin-bottom: 1.18em;
  margin-top: 0.45em;
  min-height: 2.7em;
}
.plan-features {
  list-style: none;
  margin: 0 0 1.8rem 0;
  padding: 0;
  text-align: left;
}
.plan-features li {
  color: #f5f6ff;
  font-size: 1.04rem;
  padding: 0.37rem 0 0.37rem 0;
  line-height: 1.46;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.plan-features li .icon {
  font-size: 1.22em;
  display: inline-block;
  vertical-align: middle;
  min-width: 1.25em;
}
.plan-feature-main {
  font-size: 1.09rem;
  color: #fff;
  font-weight: 700;
  justify-content: center;
  text-align: center;
  margin-bottom: 0.0em;
  margin-top: 0.1em;
}
.plan-feature-plus {
  font-size: 1.45rem;
  color: #4F9DF7;
  font-weight: 700;
  justify-content: center;
  text-align: center;
  display: flex;
  align-items: center;
  margin: 0 0 0.15em 0;
  height: 1.2em;
}
.plan-card:not(.destacado) .plan-feature-plus {
  color: #e02984;
}

/* === COMPARATIVA DE PLANS (TAULA) === */
.simplia-features-compare {
  max-width: 1400px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 1.2rem !important;
}
.features-compare-table.minimal.modern.ultra {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
}
.features-compare-table.minimal.modern.ultra table {
  width: 100% !important;
  max-width: 1400px !important;
  min-width: 1100px !important;
  margin: 0 auto !important;
  border-spacing: 0 !important;
}
.features-compare-table.minimal.modern.ultra table,
.features-compare-table.minimal.modern.ultra th,
.features-compare-table.minimal.modern.ultra td {
  font-size: 0.85em !important;
  font-family: 'Inter', Arial, sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: 0 !important;
  border: none !important;
  text-align: right !important;
}
@media (max-width: 900px) {
  .features-compare-table.minimal.modern.ultra table,
  .features-compare-table.minimal.modern.ultra th,
  .features-compare-table.minimal.modern.ultra td {
    font-size: 0.76em !important;
  }
}
.features-compare-table.minimal.modern.ultra thead th {
  border-bottom: none !important;
  vertical-align: middle !important;
  padding-top: 0.7em !important;
  padding-bottom: 0.17em !important;
}
.features-compare-table.minimal.modern.ultra thead tr:last-child th {
  border-bottom: 1.7px solid #32325f !important;
  padding-bottom: 0.52em !important;
}
.features-compare-table.minimal.modern.ultra thead th span {
  font-size: 1.11em !important;
  font-weight: 800 !important;
  background: linear-gradient(90deg, #4f9df7 0%, #e02984 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 1px 10px #4f9df743 !important;
  margin: 0 !important;
  text-align: right !important;
}
.features-compare-table.minimal.modern.ultra tbody tr:not(.group-title):not(.group-sep):nth-child(even) {
  background: linear-gradient(90deg,rgba(65,73,114,0.09) 0%,rgba(80,45,113,0.07) 100%) !important;
}
.features-compare-table.minimal.modern.ultra tbody tr.group-title,
.features-compare-table.minimal.modern.ultra tbody tr.group-sep {
  background: none !important;
}
.features-compare-table.minimal.modern.ultra tbody td:first-child {
  color: #e4e6f2 !important;
  font-size: 0.96em !important;
  font-weight: 500 !important;
  padding-right: 0.7em !important;
  padding-left: 0.22em !important;
  vertical-align: middle !important;
  min-width: 134px !important;
  max-width: 250px !important;
}
.features-compare-table.minimal.modern.ultra tr.group-title td {
  text-align: right !important;
  vertical-align: middle !important;
  font-size: 1.23em !important;
  font-weight: 500 !important;
  color: #e02984d2 !important;
  padding-top: 0.42em !important;
  padding-bottom: 0.24em !important;
  background: none !important;
  border-bottom: none !important;
  letter-spacing: 0.01em !important;
}
.features-compare-table.minimal.modern.ultra tr.group-sep td {
  border-bottom: 1px solid #23253b2d !important;
  height: 1.8em !important;
  padding: 0 !important;
  background: none !important;
  text-align: center !important;
  vertical-align: middle !important;
  font-size: 2.4em !important;
  font-weight: 300 !important;
  color: #4f9df7 !important;
  line-height: 1.7em !important;
  letter-spacing: 0.03em !important;
}
.features-compare-table.minimal.modern.ultra td,
.features-compare-table.minimal.modern.ultra th {
  padding-top: 0.35em !important;
  padding-bottom: 0.35em !important;
  padding-left: 0.07em !important;
  padding-right: 0.07em !important;
  vertical-align: middle !important;
}
.features-compare-table.minimal.modern.ultra .dash {
  color: #a9afc9 !important;
  font-size: 1.09em !important;
  font-weight: 500 !important;
  opacity: 0.67 !important;
}
.features-compare-table.minimal.modern.ultra .tick {
  color: #4f9df7 !important;
  font-size: 1.09em !important;
  font-weight: 800 !important;
  width: 1em !important;
  display: inline-block !important;
}
.features-compare-table.minimal.modern.ultra .tick::after {
  content: '✔';
  font-size: 1em !important;
  color: #4f9df7 !important;
  margin-left: 0.01em !important;
  filter: drop-shadow(0 0 2px #4f9df7aa) !important;
}
.features-compare-table.minimal.modern.ultra tr.price-row td {
  background: linear-gradient(90deg,rgba(79,157,247,0.07) 0%,rgba(224,41,132,0.08) 100%) !important;
  font-size: 1.07em !important;
  font-weight: 500 !important;
  color: #fff !important;
  border-bottom: 2.5px solid #242447 !important;
  padding-top: 0.52em !important;
  padding-bottom: 0.52em !important;
  text-align: right !important;
}
.features-compare-table.minimal.modern.ultra tr.price-row td:first-child {
  text-align: right !important;
  color: #e02984 !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
}
@media (max-width: 1500px) {
  .simplia-features-compare,
  .features-compare-table.minimal.modern.ultra,
  .features-compare-table.minimal.modern.ultra table {
    max-width: 98vw !important;
    min-width: 0 !important;
    padding: 0 0.4rem !important;
  }
}

/* === FAQ ACCORDION === */
.simplia-faq-minimal {
  margin: 3rem auto 2.5rem auto;
  max-width: 1200px;
  text-align: left;
  color: #e2e2ef;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 1.2rem 0;
}
.faq-accordion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem 3.3rem;
  max-width: 1150px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #23253b40;
  padding: 0 0 0.5rem 0;
  margin-bottom: 0;
  transition: background 0.12s;
}
.faq-question {
  background: none;
  color: #fff;
  font-weight: 700;
  border: none;
  font-size: 1.13rem;
  padding: 1.05em 0 0.66em 0;
  text-align: left;
  width: 100%;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.19s;
}
.faq-question.open { color: #4f9df7; }
.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  background: none;
  border-radius: 50%;
  position: relative;
  transition: transform 0.25s;
}
.faq-toggle::before {
  content: '+';
  font-size: 1.22em;
  color: #7ccaf7;
  font-weight: bold;
  transition: transform 0.25s, color 0.18s;
  display: block;
  text-align: center;
  line-height: 1;
  vertical-align: middle;
}
.faq-question.open .faq-toggle::before {
  content: '–';
  color: #e02984;
}
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 1.12rem;
  color: #e3e3f3;
  background: none;
  margin-top: -0.5em;
  transition: max-height 0.26s cubic-bezier(.47,1.64,.41,.8), opacity 0.24s;
}
.faq-answer.active {
  max-height: 180px;
  opacity: 1;
  margin-top: 0.1em;
  transition: max-height 0.34s cubic-bezier(.47,1.64,.41,.8), opacity 0.22s;
}
.faq-item:last-child { border-bottom: none; }

/* === ALTRES BLOCS I ADAPTACIÓ RESPONSIVE === */
.price-enterprise {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  display: inline;
}
.desc-sep {
  margin-bottom: 2em !important;
}
.info-tooltip {
  position: relative;
  cursor: pointer;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}
.info-tooltip .icon {
  color: #66f;
  font-size: 1em;
  font-weight: bold;
  background: #23254a;
  border-radius: 50%;
  width: 1.2em;
  height: 1.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.info-tooltip .info-popup {
  display: none;
  position: absolute;
  background: #1b203a;
  color: #fff;
  font-size: 0.92em;
  padding: 10px 13px;
  border-radius: 9px;
  box-shadow: 0 2px 12px #0007;
  top: 1.7em;
  left: 0;
  z-index: 5;
  width: 250px;
  max-width: 90vw;
  pointer-events: none;
}
.info-tooltip:hover .info-popup,
.info-tooltip:focus .info-popup {
  display: block;
}
@media (max-width: 1100px) {
  .simplia-plans-grid { flex-wrap: wrap; gap: 1.5rem;}
  .plan-card { min-width: 90vw; max-width: 99vw;}
  .simplia-pricing-cards h2,
  .simplia-features-compare h2,
  .simplia-faq-minimal h2 { margin-top: 2.2rem; margin-bottom: 2.2rem; }
  .features-compare-table.minimal { max-width: 98vw; }
}
@media (max-width: 1024px) {
  .simplia-features-compare { max-width: 98vw; }
}
@media (max-width: 900px) {
  .simplia-plans-grid { flex-direction: column; align-items: center;}
  .plan-card { min-width: 94vw; max-width: 99vw; }
  .simplia-faq-minimal { max-width: 99vw; }
  .faq-accordion {
    grid-template-columns: 1fr;
    gap: 1.3rem 0;
    max-width: 99vw;
  }
  .billed-note {
    font-size: 0.68rem;
    margin-bottom: 2.1em;
    margin-top: 0.6em;
    max-width: 96vw;
  }
  .features-compare-table.minimal { font-size: 0.99rem;}
}
@media (max-width: 800px) {
  .features-grid, .features-compare-table.minimal { font-size: 0.93rem; }
}
@media (max-width: 700px) {
  .faq-question { font-size: 1rem; }
  .features-compare-table.minimal { font-size: 0.91rem; }
}
@media (max-width: 600px) {
  .features-grid, .features-compare-table.minimal { font-size: 0.89rem; }
  .billed-note {
    font-size: 0.61rem;
    margin-bottom: 1.1em;
    margin-top: 0.4em;
    max-width: 98vw;
  }
  .features-compare-table.minimal { max-width: 99vw; }
}
@media (max-width: 520px) {
  .faq-accordion { gap: 1rem 0; }
}

/* === ANIMACIONS BÀSIQUES === */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}
