.c-calc {
  --color-white: #ffffff;
  --color-light: #230078;
  --color-main: #230078;
  --color-accent: #EF2D00;
  --color-light-accent: #EF2D0040;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  overflow: hidden;
  user-select: none;
  font-family: "Rubik", sans-serif;
}

.c-calc:last-child {
  margin-bottom: 2.5rem;
}

.main:not(.main--transactional) .c-calc {
  margin-top: 2.5rem;
}

.c-calc:has(.js-question--form.is-active) .c-calc__bullets,
.c-calc:has(.js-question--form.is-active) .c-calc__counter {
  display: none;
}

.c-calc__hidden {
  display: none;
}
.c-calc__button {
    display: inline-block;
    cursor: pointer;
    margin-top: 1.5rem;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.25rem 2.45rem 0.4rem;
    border-radius: 1rem;
}

.c-calc__button {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.c-calc__container {
  position: relative;
  width: calc(100% - 6rem);
  padding: 1.2rem 1.4rem 2.7rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--color-white);
  border-radius: 1rem;
  font-size: 1.323vw!important;
  color: var(--color-main);
}

p.c-calc__enun.o-h3
 {
    font-size: 42px !important;
}

.c-calc:has(.js-question--form.is-active) .c-calc__container {
  padding-top: 2.5rem;
  background-color: var(--color-light-accent);
}

.c-calc:has(.js-question--form.is-active) .c-calc__container::before,
.c-calc:has(.js-question--form.is-active) .c-calc__container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: -1;
  width: 50vw;
  background-color: var(--color-light-accent);
}

.c-calc:has(.js-question--form.is-active) .c-calc__container::before {
  right: calc(100% - 3rem);
}

.c-calc:has(.js-question--form.is-active) .c-calc__container::after {
  left: calc(100% - 3rem);
}

.c-calc__button + .c-calc__container {
  display: none;
}

.c-calc__title + .c-calc__container {
  margin-top: 2.5rem;
}

.c-calc__enun {
  min-height: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.1rem!importan;
  line-height: 1.1;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
}

.c-calc__question {
  display: none;
}

.c-calc__question.is-active {
  display: block;
}

.c-calc__question .is-double-first.is-hidden,
.c-calc__question .is-double-last.is-hidden {
  display: none;
}

.c-calc__answers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0 2rem;
}

.c-calc__answer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px!important;
  height: 6.5rem;
  padding: 1rem;
  background-color: var(--color-mild);
  border-radius: 0.5rem;
  border: 1px solid #cdd4d5;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  font-family: "Rubik", sans-serif;
}

.c-calc__answer:hover {
  border-color: var(--color-accent);
}

.c-calc__answer.is-selected {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.c-calc__prev {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  transition: opacity 0.2s ease-out;
  cursor: pointer;
}

.c-calc__prev:hover {
  opacity: 1;
}

.c-calc__prev svg {
  width: 2rem;
  height: auto;
}

.c-calc__prev.is-hidden {
  display: none;
}

.c-calc__bullets {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.c-calc__bullets::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.25rem;
  right: 0.25rem;
  transform: translateY(-50%);
  height: 2px;
  background-color: #cdd4d5;
}

.c-calc__bullet {
  position: relative;
  z-index: 2;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background-color: var(--color-light);
  border: 2px solid #cdd4d5;
}

.c-calc__bullet.is-filled {
  background-color: var(--color-accent);
  border-color: var(--color-main);
}

.c-calc__bullet.is-filled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%) rotate(-45deg);
  width: 0.45rem;
  height: 0.25rem;
  border-left: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  border-top: none;
  border-right: none;
  background: transparent;
}

.c-calc__bullet.is-active {
  background-color: var(--color-light);
  border-color: var(--color-main);
}

.c-calc__bullet-bar {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 1;
  height: 2px;
  background-color: var(--color-main);
  transform: translateY(-50%);
}



.c-calc__button:hover {
  background-color: var(--color-main);
  color: var(--color-white);
}

.c-calc__info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
}

.c-calc__rate {
  display: none;
}

.c-calc__rate.is-visible {
  display: inline-block;
}

.c-calc__form-main {
  margin-bottom: 2.5rem;
}

.c-calc__form-main strong {
  font-weight: 600;
}

body:has(.c-calc__button-restart) .c-calc__form-main {
  margin-bottom: 1rem;
}

.c-calc__button-restart {
  margin-bottom: 2.5rem;
}

.c-calc__form-pre {
  margin-bottom: 3.25rem;
}

.c-calc__form-title {
  margin-bottom: 1.25rem;
}

.c-calc__form {
  padding: 1.1rem 1.7rem 3rem;
  max-width: 22rem;
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--color-white);
}

.c-calc__form-main {
    font-size: 3rem!important;
    line-height: 1.0333;
    color: var(--color-main);
}

.c-calc__form .hidden-field {
  display: none;
}

.c-calc__form .wpcf7-text {
  max-width: 100%;
  width: 100%;
}

.c-calc__ast {
  margin-top: 1rem;
}

/* Tablets */
@media (max-width: 1024px) {
  .c-calc__container {
    font-size: 16px!important;
    width: 95%;
    padding: 1.5rem 1rem 3rem;
  }

  .c-calc__enun {
    font-size: 1.8rem!important;
    min-height: auto;
    padding: 0 1rem;
  }

  .c-calc__answers {
    gap: 1rem;
    padding: 0 1rem;
  }

  .c-calc__answer {
    width: calc(50% - 0.5rem)!important;
    height: 5.5rem;
    font-size: 0.95rem!important;
  }

  .c-calc__form-main {
    font-size: 2.2rem!important;
  }
  p.c-calc__enun.o-h3 {
    font-size: 36px !important;
  }
  .c-calc__form-main.o-h2 p {
    font-size: 32px !important;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .c-calc {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .c-calc__container {
    width: 100%;
    padding: 1.2rem 0.75rem 4rem;
    max-width: 100%;
  }
  
  .c-calc__enun {
    font-size: 1.5rem!important;
    padding: 0 0.5rem;
    text-align: center;
  }

  .c-calc__answers {
    width: 100%;
    padding: 0;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }
  
  .c-calc__answer {
    min-height: 4rem;
    height: auto;
    width: 100%!important;
    font-size: 0.9rem!important;
    padding: 0.75rem;
  }
  
  .c-calc__prev {
    top: initial;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
  }
  
  .c-calc__info {
    flex-direction: column;
    gap: 1rem;
  }

  .c-calc__form {
    padding: 1rem;
    max-width: 100%;
  }

  .c-calc__form-main {
    font-size: 1.8rem!important;
    margin-bottom: 1.5rem;
  }

  .c-calc__bullets {
    margin: 0 1rem 1.5rem;
  }

  .c-calc__bullet {
    width: 0.75rem;
    height: 0.75rem;
  }

  /* Ajustes para las tarifas en móvil */
  .c-prorate {
    max-width: 100%;
  }

  .c-prorate__content {
    padding: 1.2rem 1rem;
    gap: 1.5rem;
  }

  .c-prorate__image {
    width: 8rem;
  }

  .c-prorate__title {
    font-size: 1.2rem!important;
  }

  .c-prorate__price-new {
    font-size: 1.3rem!important;
  }
  p.c-calc__enun.o-h3 {
    font-size: 36px !important;
  }
  .c-calc__form-main.o-h2 p {
    font-size: 32px !important;
  }
}

/* Ajustes específicos para móviles pequeños */
@media (max-width: 360px) {
  .c-calc__enun {
    font-size: 1.3rem!important;
  }

  .c-calc__answer {
    font-size: 0.85rem!important;
    padding: 0.5rem;
  }

  .c-calc__form-main {
    font-size: 1.6rem!important;
  }
  p.c-calc__enun.o-h3 {
    font-size: 30px !important;
  }
  .c-calc__form-main.o-h2 p {
    font-size: 30px !important;
  }
}

/* Estilos para las tarifas */
.c-prorate {
  border-radius: 1rem;
  overflow: hidden;
}

.c-protectrates .c-prorate {
  display: flex;
  flex-direction: column;
}

.c-prorate__head {
  padding: 0.75rem 1rem;
  background-color: var(--color-accent);
  color: var(--color-white);
}

.c-protectrates .c-prorate__head {
  flex: 0 0 auto;
}

.c-prorate__content {
  padding: 1.6rem 1.2rem;
  display: flex;
  gap: 2.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-white);
}

.c-protectrates .c-prorate__content {
  flex: 1 1 auto;
}

.c-prorate__image {
  width: 11.5rem;
}

.c-prorate__image img {
  width: 100%;
  height: auto;
}

.c-prorate__title {
  font-size: 1.35rem!important;
  font-weight: 600;
}

.c-prorate__extras {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.c-prorate__extra {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem!important;
  font-weight: 400;
  color: var(--color-main);
}

.c-prorate__extra::before {
  content: url("../images/icon-checklist.svg");
  width: 0.65rem;
  height: auto;
}

.c-prorate__price-old {
  position: relative;
  color: rgb(103, 122, 124);
}

.c-prorate__price-old::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-main);
}

.c-prorate__price-new {
  font-size: 1.5rem!important;
  font-weight: 600;
  color: #000;
}
.u-tac
{
    text-align: center !important;
}
.is-installation {
    font-size: 1.25rem!important;
    margin-bottom: 1rem;
    max-width: 20rem;
    font-weight: 500;
}

p:has(.is-installation) {
    margin-bottom: 1rem;
    text-wrap: balance;
}
.c-calc__form-main.o-h2 p {
    font-size: 42px !important;
}