*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.button-afiliate-programs{
	margin: 0 !important;
	height: 50px !important;
}
/* -----------------------------------------
   Hero price
----------------------------------------- */
.cima-price {
  width: 280px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.currency-container {
  display: flex;
  color: #ffffff;
  max-height: 70px;
  align-items: center;
  justify-content: flex-start;
}

.currency-content {
  font-family: "Moranga light", sans-serif;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0%;
  text-align: center;
  margin-right: 5px;
}

.amount-content {
  font-family: "Moranga medium", sans-serif;
  font-weight: 500;
  font-size: 72px;
  line-height: 72px;
  letter-spacing: 0%;
  text-align: center;
}

.text-content {
  max-height: 70px;
  margin-left: 5px;
  text-align: left;
}

.text-1,
.text-2 {
  font-family: "Moranga light", sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 26px;
  letter-spacing: 0%;
  text-align: left;
  vertical-align: middle;
}

.total-amount {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  color: #f298a1;
}

/* -----------------------------------------
   Beneficios section
----------------------------------------- */
.beneficios-section {
  background-color: #eef0fd;
}

.beneficios-inner {
  width: 100%;
}

.beneficios-title {
  font-family: "Poppins", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #5166ec;
  text-align: center;
  margin-bottom: 40px;
}

.card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 24px;
}

.card-title {
  font-family: "Moranga Medium", sans-serif !important;
  font-size: 36px;
  font-weight: 700;
  color: #5166ec;
  line-height: 40px;
  margin-bottom: 20px;
}

.card p {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #000000;
}

.card p strong {
  font-weight: 700;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #000000;
}

.check-list li img {
  width: 25px;
  height: 20px;
  flex-shrink: 0;
}

.ahorros-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.ahorros-table tr {
  height: 65px;
}

.ahorros-table tr:nth-child(odd) {
  background-color: #fefcec;
}

.ahorros-table tr:nth-child(even) {
  background-color: #ffffff;
}

.ahorros-table td {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #000000;
  padding: 0 16px;
  vertical-align: middle;
}

.ahorros-table td.ahorro-valor {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.buttons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.btn {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  border-radius: 10px;
  padding: 14px 24px;
  height: 48px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  opacity: 0.85;
}

.btn-outline {
  background: transparent;
  border: solid 2px #5166ec;
  color: #5166ec !important;
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  min-width: 180px;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none !important;
  border-radius: 5px;
  padding: 0 24px !important;
}

.btn-yellow {
  display: flex;
  width: 220px;
  height: 48px;
  padding: 0 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #f9de42;
  color: #000000;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none !important;
}

/* -----------------------------------------
   Perfiles (pf)
----------------------------------------- */
.pf-wrap,
.pf-wrap *,
.pf-wrap *::before,
.pf-wrap *::after {
  box-sizing: border-box;
}

.pf-wrap {
  font-family: "Poppins", sans-serif;
  background: transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.pf-titulo {
  width: 100%;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #5166ec;
}

.pf-cards-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
}

.pf-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  border: 1px solid #f9de42;
}

.pf-card-name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: #000000;
}

.pf-divider {
  width: 100%;
  height: 1px;
  background: #5166ec;
}

.pf-card-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  color: #000000;
}

.pf-btns {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

.pf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  min-height: 48px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.pf-btn:hover {
  opacity: 0.85;
}

.pf-btn-comparar {
  background: #5166ec;
  color: #ffffff;
  border: none;
}

.pf-btn-elegir {
  background: #f9de42;
  color: #000000;
  border: none;
}

/* -----------------------------------------
   Comparador programas
----------------------------------------- */
.comparador-wrap {
  font-family: "Poppins", sans-serif;
  background-color: transparent;
  width: 100%;
}

.comparador-header {
  display: grid;
  grid-template-columns: 580px 230px 230px 230px;
  align-items: center;
  background-color: #f9f8f5;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  height: 170px;
  margin-bottom: 20px;
}

.col-planes {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.col-planes h2 {
  font-family: "Moranga Light", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #5166ec;
  line-height: 1.1;
  margin-bottom: 10px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 50px;
  transition: background 0.3s;
}

.toggle-switch input:checked + .toggle-track {
  background: #f5c800;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked ~ .toggle-thumb {
  transform: translateX(22px);
}

.descuento-label {
  color: #7d978a;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

.col-ahorro {
  text-align: center;
  font-size: 26px;
  font-weight: 400;
  color: #5166ec;
  font-family: "Moranga Light", sans-serif;
  height: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: solid 1px #5166ec;
}

.col-plan {
  text-align: center;
  padding: 0 8px;
  font-family: "Moranga Light", sans-serif;
  height: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: solid 1px #5166ec;
  flex-direction: column;
}

.plan-name {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: "Moranga Light", sans-serif;
}

.plan-name.cima {
  color: #7a9250;
}

.plan-name.sana {
  color: #c98b4e;
}

.plan-price {
  font-size: 36px;
  line-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: "Moranga Light", sans-serif;
}

.price-big {
  font-size: 40px;
  font-weight: 700;
  color: #000;
  transition: all 0.3s;
}

.price-iva {
  font-size: 17px;
  color: #000000;
  max-width: 45px;
  line-height: 1;
  padding: 0;
  margin: 0;
  text-align: left;
}

.seccion {
  margin-bottom: 8px;
}

.seccion-header {
  display: grid;
  grid-template-columns: 1fr 120px 160px 160px;
  align-items: center;
  background-color: #eef0fd;
  padding: 14px 24px;
  cursor: pointer;
  user-select: none;
  border-radius: 12px;
}

.seccion-header:hover {
  background-color: #ccd1f5;
}

.seccion-titulo {
  font-size: 20px;
  font-weight: 500;
  color: #5166ec;
  grid-column: 1 / 4;
  font-family: "Poppins", sans-serif;
}

.chevron {
  grid-column: 4;
  justify-self: end;
  width: 24px;
  height: 24px;
  display: block;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.seccion.abierta .chevron {
  transform: rotate(180deg);
}

.seccion-body {
  display: none;
}

.seccion.abierta .seccion-body {
  display: block;
}

.fila {
  display: grid;
  grid-template-columns: 540px 40px 230px 230px 230px;
  align-items: center;
  min-height: 65px;
  padding: 0;
  border-bottom: 1px solid #eef0fd;
}

.fila:nth-child(odd) {
  background-color: #ffffff;
}

.fila:nth-child(even) {
  background-color: #fefcec;
}

.fila-nombre {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  padding: 0 16px 0 24px;
  line-height: 20px;
  font-family: "Poppins", sans-serif;
}

.fila-info {
  display: flex;
  justify-content: center;
}

.info-icon {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: default;
  flex-shrink: 0;
  position: relative;
}

.info-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.info-icon[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
}

.fila-ahorro {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  padding: 0 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: solid 1px #5166ec;
  height: 65px;
  font-family: "Poppins", sans-serif;
}

.fila-check {
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: solid 1px #5166ec;
  height: 65px;
  font-family: "Poppins", sans-serif;
}

.check-icon {
  display: block;
  width: 25px;
  height: 25px;
}

/* -----------------------------------------
   Responsive
----------------------------------------- */
@media (max-width: 1200px) {
  .card {
    padding: 30px 60px;
  }
}

@media (max-width: 1024px) {
  .card {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  /* --- Estructura General y Cards --- */
  .buttons-row,
  .pf-cards-row {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .pf-titulo {
    font-size: 20px;
    line-height: 28px;
  }

  .pf-card {
    width: 100%;
    max-width: 360px;
  }

  /* --- El Comparador (Header) --- */
  .comparador-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparador-header {
    display: flex !important;
    flex-wrap: wrap;
	  margin-bottom: 40px;
    /* Eliminamos grid-template-columns porque ahora es flex */
  }
	
  .col-planes {
    width: 100% !important;
    margin-bottom: 20px;
  }

  .col-planes > h2 {
    font-size: 48px; /* Mantiene el tamaño grande solicitado */
  }

  .col-planes > .toggle-row > span {
    font-size: 16px;
  }

  .col-ahorro {
    display: none;
  }

 .col-plan {
    width: 50%;
    border-left: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    height: fit-content;
  }
	.col-plan:nth-child(3){
		border-radius: 10px 0 0 10px;
	}
	.col-plan:nth-child(4){
		border-radius: 0 10px 10px 0;
	}
	.seccion-titulo{
		font-size: 18px;
	}
  .comparador-header > .col-plan:first-child {
    border-radius: 10px 0 0 10px;
  }

  /* --- Secciones y Filas de Contenido --- */
  .seccion-header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-width: 100%;
  }

  .seccion-body > .fila {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0 10px;
    padding-bottom: 10px;
  }

  .seccion-body > .fila > .fila-nombre {
    font-size: 14px;
    width: 90%;
    padding: 10px;
  }

  .seccion-body > .fila > .fila-info {
    width: 8%;
  }

  .seccion-body > .fila > .fila-ahorro {
    width: 100%;
    border-left: none;
    height: 50px;
	  font-size: 16px;
  }

  .seccion-body > .fila > .fila-check {
    width: 48%;
    border-left: none;
    height: 50px;
    justify-content: flex-end;
    padding: 10px;
    border: solid 1px #F9DE42;
    border-radius: 10px;
    display: flex; /* Asegura alineación del contenido y el ::before */
    align-items: center;
  }

  /* Pseudo-elementos para identificar planes en móvil */
  .fila-check:nth-child(4)::before {
    content: 'CIMA Prime';
    margin-right: 15px;
    font-weight: 700;
    text-align: left;
  }

  .fila-check:nth-child(5)::before {
    content: 'Sana Sana';
    margin-right: 15px;
    font-weight: 700;
    text-align: left;
  }

  /* --- Ajustes de Fuente Restantes --- */
  .price-big {
    font-size: 36px;
  }

  .price-iva {
    font-size: 15px;
	  text-align: center;
  }
}

@media (max-width: 480px) {
  .pf-btns {
    flex-direction: column;
    gap: 12px;
  }

  .pf-btn {
    width: 100%;
    max-width: 320px;
  }
}
