@font-face {
  font-family: "Axiforma";
  src: url("font/Axiforma-Regular.woff2") format("woff2"),
    url("font/Axiforma-Regular.woff") format("woff");
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "Axiforma";
  src: url("font/Axiforma-Bold.woff2") format("woff2"),
    url("font/Axiforma-Bold.woff") format("woff");
  font-weight: bold;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: "Axiforma", sans-serif;
  color: #0f172a;
  --primary-color: #1f4d3a;
  --primary-color-hover: #0f2e22;
  --primary-color-light: #dcf4e8;
  accent-color: var(--primary-color);
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
h1,
h2 {
  line-height: 1.1;
  font-weight: 500;
  font-weight: bold;
}

.product__container > h1 {
  margin-bottom: 2rem;
  display: flex;
  gap: 0.25rem;
}

.product__container > h1 img {
  width: 2rem;
  height: auto;
}

main {
  display: flex;
  max-width: 1200px;
}
main > * {
  flex: 1;
}

.checkout__step-one,
label {
  display: flex;
  flex-direction: column;
}

/* Excepción para el checkbox de términos y condiciones */
label.checkbox-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
}

.checkout__step-two {
  display: none;
}

label + label {
  margin-top: 1rem;
}
label {
  color: #1e293b;
}

.checkout__step-one,
.checkout__step-two {
  width: 100%;
  margin: 0;
  border: 0;
  min-width: auto;
  padding: 0;
}

legend {
  padding: 0;
  font-size: 1.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

legend > span {
  font-size: 1rem;
  color: var(--primary-color);
}

input,
select {
  padding: 0 0.5rem;
  height: 35px;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  background-color: white;
}

.checkout {
  border-left: 1px solid #cbd5e1;
  padding: 0 2rem;
}

.button {
  height: 40px;
  border-radius: 6px;
  padding: 0 1rem;
  background-color: transparent;
  transition: background-color 200ms ease-in-out;
}

 
.button--primary {
  background-color: var(--primary-color);
  color: white;
}
.button--primary:hover {
  background-color: var(--primary-color-hover);
}
.button--secondary {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.button--secondary:hover {
  background-color: var(--primary-color-light);
}

.margin-top-small {
  margin-top: 1rem;
}
.margin-top-medium {
  margin-top: 1.5rem;
}
.hide {
  display: none;
}
.show {
  display: flex;
  flex-direction: column;
}

.form__group {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.form__group > * {
  flex: 1;
}

.form__group > label {
  margin: 0;
}

.card-number__container {
  position: relative;
}
.card-number__container > img {
  height: 32px;
  width: auto;
  position: absolute;
  right: 0.5rem;
  top: 5px;
}

.card-number__container > input {
  width: 100%;
}

/*
.form__country {
  max-width: 12rem;
}
*/

.message--error {
  font-size: 0.75rem;
  color: red;
}

.product {
  display: flex;
  gap: 1rem;
}

.product__img {
  width: 4rem;
}

.product__title {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.product__price {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 500;
}
.product__quantity {
  margin-top: 0.5rem;
  height: 32px;
}

.logo {
  width: 8rem;
  display: inline-block;
}

.form__phone {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 1rem;
}
.form__phone > .message--error {
  grid-column: 1/-1;
}

.product__container {
  padding: 0 1rem;
}

.layout__container {
   min-height: 100vh;
  display: grid;
  place-items: center;
  height: 100%;
}
.secure-messagge {
  border-radius: 6px;
  border: 1px solid var(--primary-color);
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background-color: #dcfce757;
}

.secure-messagge > svg {
  width: 32px;
  color: var(--primary-color);
}
.secure-messagge > p {
  color: var(--primary-color);
  font-size: 0.87rem;
}

.form__group--revision {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.label--special {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.form__country {
  flex: 1;
  margin: 0;
  flex-basis: 7rem;
}

.form__country > select {
  width: 100%;
}

.card__expiration {
  flex-basis: 11rem;
}
.card__code {
  flex-basis: 8rem;
}

.card__code > input,
.card__expiration > input {
  width: 100%;
}

.phone-numer__field {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 4rem 1fr;
}

.phone-number__code {
  font-size: 13px;
}

.phone__img {
  position: absolute;
  width: 2rem;
  top: 0;
  right: 1rem;
  transform: translateY(82%);
}

.progress-bar__indicator {
  width: 100%;
  padding: 0.25rem;
  background: #dcf4e8;
  border-radius: 100vh;
}

.progress-bar__indicator-outer {
  border: 1.5px solid var(--primary-color);
  flex: 1;
  border-radius: 50vh;
  background-color: var(--primary-color-light);
}

.progress-bar__step {
  font-size: 12px;
  width: 2rem;
  display: flex;
  border-radius: 50vh;
  border: 1px solid;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color-light);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.progress-bar__step--completed {
  background-color: var(--primary-color);
  color: white;
}
.progress-bar__indicator-inner {
  height: 0.5rem;
  background: var(--primary-color);
  width: 50%;
  border-radius: 50vh;
}

.progress-bar__indicator-inner--full-width {
  width: 100%;
}

.progress-bar {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: space-between;
}
.checkout {
  width: 550px;
}

::placeholder {
  color: #94a3b8;
}

.form__terms {
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.form__terms > input {
  margin: 0;
  height: auto;
  margin-top: 4px;
}

.form__terms > p {
  font-size: 0.75rem;
}

.pago-seguro {
  align-items: center;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.pago-seguro > p {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  gap: 0.25rem;
}

.pago-seguro > img {
  width: 4.5rem;
}

.button--secure {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  gap: 0.5rem;
}
.button--secure > svg {
  width: 24px;
}
.phone-numer__field--big {
  grid-template-columns: 4rem 1fr;
}

.cvc {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.button--svg > svg {
  width: 18px;
  cursor: pointer;
}
.button--svg {
  line-height: 0;
  position: relative;
}
.tooltip {
  display: none;
  position: absolute;
  top: 24px;
  right: 0;
  line-height: 1.5;
  background: hsl(197deg 83% 95%);
  width: 8rem;
  border: 1px solid #149bd2;
  font-size: 0.8rem;
  border-radius: 6px;
  padding: 0.5rem;
  box-shadow: 0 2px 8px #149bd252;
}

.visible {
  display: block;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 10000px white inset;
}

.product__container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  flex-direction: column;
  color: white;
  border-radius: 6px;
}

.product-inner {
  max-width: 300px;
}

.product-price {
  font-size: 3.5rem;
  font-weight: 800;
}
.product-price > span {
  font-size: 1.4rem;
}

.chatby-logo {
  font-weight: 600;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  position: absolute;
  bottom: 1rem;
  margin-inline: auto;
  left: 50%;
  transform: translateX(-50%);
}

.chatby-logo > svg {
  width: 24px;
}

.chatby-logo > svg rect {
  fill: transparent;
}

.product-features {
  list-style: none;
  padding: 0;
}
.product-features svg {
  width: 24px;
}
.product-features li {
  font-weight: 600;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-features li > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-features li + li {
  margin-top: 0.5rem;
}

/* ----Congrats ------*/
.congrats-container {
  background: var(--primary-color);
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.congrats-description {
  flex-direction: column;
  display: flex;
  text-align: center;
  background: white;
  gap: 2.5rem;
  padding: 2rem;
  border-radius: 6px;
}

.congrats-cta {
  padding: 0.5rem;
  background: var(--primary-color);
  border-radius: 6px;
  text-decoration: none;
  color: white;
}
.congrats-cta:hover {
  background-color: var(--primary-color-hover);
}
.no-highlight {
  color: #94a3b8;
}

.congrats-info {
  display: flex;
  gap: 2rem;

  justify-content: space-between;
}
.chatby-logo__img {
  width: 1.5rem;
}
.logo {
  color: white;
  width: 100%;
  font-weight: 600;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.congrats-content {
  padding: 1rem;
}

.bill-status--green {
  color: var(--primary-color);
}

.bill-status--red {
  color: #dc2626;
  font-size: 1.3rem;
}

.error-list {
  padding-block: 0;
  padding-left: 1rem;
  margin-top: 1rem;
  text-align: left;
}

.error-details {
  max-width: 350px;
  color: #64748b;
  text-align: left;
}

.lds-ring {
  display: none;
  position: relative;
  width: 24px;
  height: 24px;
  background-color: var(--primary-color);
}

.modal-overlay,
.modal-overlay-global {
  display: none;
  place-items: center;
  position: fixed;
  inset: 0;
  background-color: rgb(0 0 0 / 61%);
}

.modal,
.modal-global {
  max-width: 350px;
  background-color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-radius: 6px;
}
.chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width:300px; 
  height: 500px; 
  background: transparent; 
  border: none;
  z-index: 9999;
}
.modal-title {
  font-size: 1.2rem;
  font-weight: 500;
}

.modal-icon {
  display: grid;
  background: var(--primary-color-light);
  padding: 0.5rem;
  border-radius: 6px;
}

.modal-btn-group {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal--blue {
  background-color: var(--primary-color);
}

.modal-btn-group > a:nth-child(1) {
  justify-content: center;
  text-decoration: none;
  align-items: center;
  display: flex;
  height: 40px;
  border-radius: 6px;
  padding: 0 1rem;
  background-color: transparent;
  transition: background-color 200ms ease-in-out;
  background-color: var(--primary-color);
  color: white;
}

.modal-icon > svg {
  width: 48px;
  color: var(--primary-color);
}

.display-grid {
  display: grid;
}

.loader {
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ----planInfo------*/

.plan-user__container {
  width: 550px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.plan-user__description {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.table__section {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}
.table__section + .table__section {
  margin-top: 1rem;
}
.plan-user__email {
  display: flex;
  gap: 1rem;
}
.status {
  border-radius: 50vh;
  background: #dcf4e8;
  font-size: 14px;
  color: #1f4d3a;
  padding: 0.15rem 0.5rem;
}
.reset-link:first-child {
  margin-bottom: 0.5rem;
}

.margin-bottom {
  margin-bottom: 1rem;
}

.text-small {
  font-size: 14px;
}

.full-width {
  width: 100%;
}
/* ----plan Change------*/
#global-price {
  font-size: 3.5rem;
  font-weight: 800;
}
#global-plan-type {
  font-size: 1.4rem;
}
.plan-change {
  width: 550px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.plan-change__info {
  display: none;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.plan-change__options > * + * {
  margin-top: 0.5rem;
}
.plan-change__info + .plan-change__info {
  margin-top: 1rem;
}

.min-height {
  min-height: 500px;
}
.reset-link {
  text-align: center;
  text-decoration: none;
  padding: 0.5rem 1rem;
  height: auto;
  display: inline-block;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tab {
  border-radius: 50vh;
  padding: 0.25rem 1rem;
  background: none;
}

.tab--active {
  border: 1px solid var(--primary-color);
}

.plan--visible {
  display: flex;
}

.text-bold {
  font-weight: 600;
}

.divider::after {
  content: "";
  width: 100%;
  height: 0.5px;
  background-color: #cbd5e1;
  display: inline-block;
  margin-block: 0.5rem;
}

.discount-container {
  position: relative;
  margin-bottom: 1rem;
}

.discount-container__button {
  height: 40px;
  padding: 0 2rem;
  border-radius: 6px;
  background-color: var(--primary-color-hover);
  color: white;
}
.discount-container__button:hover {
  color: var(--primary-color);
  background-color: var(--primary-color-light);
}

.discount__input {
  display: none;
  height: 40px;
  position: relative;
}

.discount__input > input {
  border: 3px solid var(--primary-color-hover);
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
}
.discount__input > button {
  padding: 0 0.5rem;
  transform: translateY(-50%);
  top: 50%;
  right: 0.5rem;
  line-height: 24px;
  position: absolute;
  background-color: transparent;
  color: var(--primary-color);
  transition: all 300ms ease-out;
}

.discount--active {
  background-color: var(--primary-color-hover);
  display: none;
  width: fit-content;
  gap: 1rem;
  height: 40px;
  padding: 0 0.5rem 0 1rem;
  align-items: center;
  border-radius: 6px;
}
.discount--active > button {
  background-color: transparent;
  display: flex;
}
.discount--active > button svg {
  width: 24px;
  color: white;
}

#plan__dinamic-price {
  font-size: 3.5rem;
}

/* Estilos para el slider de contactos */
.contact-slider-container {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

#contacts-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.3s ease;
}

#contacts-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  margin-top: -7px; /* Centrar verticalmente */
}

#contacts-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

#contacts-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  margin-top: 0;
}

#contacts-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

/* Estilos para el track del slider en Firefox */
#contacts-slider::-moz-range-track {
  background: rgba(255, 255, 255, 0.3);
  height: 6px;
  border-radius: 3px;
  border: none;
}

/* Estilos para el track del slider en WebKit */
#contacts-slider::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.3);
  height: 6px;
  border-radius: 3px;
  border: none;
}

/* Asegurar que el slider sea interactivo */
#contacts-slider {
  pointer-events: auto !important;
  z-index: 10;
}

.contacts-count {
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}

/* -------------- Version II changes --------- */
.label--postal-code {
  margin-top: 0;
  flex: 7rem 1;
}
.label--postal-code > input {
  width: 100%;
}

#name-helper-text {
  font-size: 12px;
}

.cvv-input-field {
  position: relative;
}

.cvv-input-field > input {
  width: 100%;
}
.cvv-input-field > button {
  transform: translateY(-50%);
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  background: transparent;
  place-items: center;
}

.cvv-input-field > button svg {
  width: 24px;
}

::-ms-reveal {
  display: none;
}

/* Imput material design */
.input-md {
  position: relative;
 }

.input-md-label {
  display: none; /* Ocultar completamente las etiquetas flotantes */
  font-size: 16px;
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translate(0, 124%);
  line-height: 1;
  color: #65676b;
}

.input-md-field {
  width: 100%;
  height: 45px;
  font-size: 15px;
  padding: 0 1rem; /* Centrar verticalmente con padding uniforme */
  box-sizing: border-box;
  line-height: 45px; /* Centrar verticalmente el texto usando line-height */
}

.input-md-field::placeholder {
  color: #9ca3af; /* Hacer visible el placeholder */
  opacity: 1;
}

 
.input-md-field:not(:focus):not(:placeholder-shown) + label {
  color: #65676b;
  transform: translate(0, 80%);
  font-size: 0.8rem;
}

/* Estilos mínimos para la sección de tarjeta - mantiene consistencia con el diseño existente */
.checkout__step-one {
  /* Transición suave al mostrar/ocultar */
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* Estilos para inputs pegados con bordes */
.checkout__step-one .input-md {
  margin-top: 0; /* Eliminar margen superior para pegarlos */
  position: relative;
}

.checkout__step-one .input-md-field {
  border: 1px solid #d1d5db;
  border-radius: 0;
  background-color: #f9fafb;
  margin-bottom: -1px; /* Superponer bordes */
  position: relative;
  z-index: 1;
}

/* Primer input - borde redondeado arriba */
.checkout__step-one .input-md:first-of-type .input-md-field {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Último input - borde redondeado abajo */
.checkout__step-one .input-md:last-of-type .input-md-field {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
}

/* Grupo de inputs en línea (MM/YY y CVC) */
.form__group--revision {
  display: flex;
  gap: 0;
}

.form__group--revision .input-md {
  flex: 1;
}

.form__group--revision .input-md:first-child .input-md-field {
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.form__group--revision .input-md:last-child .input-md-field {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}



/* Estilos para la sección de dirección - inputs pegados */
.form-categories + .input-md {
  margin-top: 0.5rem; /* Espacio después del título */
}

/* Inputs de dirección pegados */
.input-md + .input-md {
  margin-top: 0;
}
 

/* Aplicar estilos de inputs pegados a toda la sección de formulario */
.step-one .input-md-field {
  border: 1px solid #d1d5db;
  border-radius: 0;
  background-color: #f9fafb;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

/* Primer input después de cada categoría */
.form-categories + .input-md .input-md-field {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 1px solid #d1d5db;
}

/* Último input antes de una nueva categoría o final */
.input-md:last-child .input-md-field,
.input-md + .form-categories ~ .input-md:first-of-type .input-md-field {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
}


/* Formateo sutil para número de tarjeta */
#card-number-input {
  letter-spacing: 0.5px;
}

.form__group--revision > div {
  flex: 1;
}
.input-md-label--phone,
.input-md-label--identification {
  left: 88px;
}
.input-md-field--remove-pt {
  padding: 0 0 0 0.5rem;
}
 

.form-categories {
  font-size: 1.2rem;
   font-weight: 500;
   margin-top: 1.2rem;
}

.input-md--cvv {
  position: relative;
}

.input-md--cvv > button {
  background: transparent;
  display: grid;
  position: absolute;
  top: 11px;
  right: 8px;
}

.input-md--cvv > button svg {
  width: 24px;
}

.input-md--cvv > .hide-cvv-password {
  display: none;
}

/* Contenedor para iconos de tarjetas */
.input-md {
  position: relative;
}

.cards-images--interactive {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: auto;
  height: 20px;
}

.cards-images {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: auto;
  height: 20px;
}

/* Contenedor de iconos de tarjetas */
.card-icons-container {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 4px;
  align-items: center;
}

.card-icon {
  height: 20px;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Contenedor especial para CVC con espacio para ambos elementos */
.input-md--cvv {
  position: relative;
}

.input-md--cvv .input-md-field {
  padding-right: 80px !important; /* Más espacio para botón + icono */
}

/* Botón para mostrar/ocultar CVC - más a la izquierda */
.cvv-toggle-btn {
  position: absolute;
  top: 11px;
  left: 125px;
  z-index: 5;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
}

/* Icono CVC - a la derecha del botón */
.cvv-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  height: 18px;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cvv-toggle-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.cvv-toggle-btn:active {
  background-color: rgba(0, 0, 0, 0.12);
}

.cvv-toggle-btn svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Contenedor del título del plan y badge */
.plan-title-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.plan-title-container h1 {
  margin: 0;
  flex: 0 0 auto;
}

/* Badge de status */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-badge--active {
  background-color: #10b981;
  color: white;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.status-badge--blocked {
  background-color: #ef4444;
  color: white;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Animación de entrada para el badge */
.status-badge.fade-in {
  animation: fadeInBadge 0.3s ease-in-out;
}

@keyframes fadeInBadge {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Estilos para campo de tarjeta activa (solo lectura) */
.input-md-field[readonly] {
  background-color: #f8fafc;
  color: #475569;
  cursor: default;
  border-color: #e2e8f0;
}

.input-md-field[readonly]:focus {
  border-color: #e2e8f0;
  box-shadow: none;
}

/* Estilo especial para número de tarjeta enmascarado */
.input-md-field.masked-card {
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  font-weight: 600;
  color: #1e293b;
}

/* Botón "Actualizar tarjeta" */
#update-card-btn {
  width: 100%;
  margin-top: 12px;
}

/* Contenedor de botones de edición */
.edit-buttons-container {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: space-between;
}

.edit-buttons-container button {
  flex: 1;
}

/* Botón secundario para "Cancelar" */
.button--secondary {
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.button--secondary:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

/* Espaciado para botones pequeños */
.margin-top-small {
  margin-top: 8px;
}

/* Mensajes de validación */
.validation-error-container {
  margin: 12px 0;
}

.validation-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px;
  color: #dc2626;
}

.validation-error h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}

.validation-error ul {
  margin: 0;
  padding-left: 20px;
}

.validation-error li {
  margin: 4px 0;
  font-size: 13px;
}

/* Mensajes de éxito */
.success-message {
  margin: 12px 0;
}

.success-alert {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 12px;
  color: #16a34a;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Animaciones para mensajes */
.validation-error-container,
.success-message {
  animation: slideInMessage 0.3s ease-out;
}

@keyframes slideInMessage {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus state para todos los inputs */
.step-one .input-md-field:focus {
  z-index: 2;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
  outline: none;
}
.form__group--revision .input-md-field:focus {
  border-right: 1px solid #3b82f6;
}

/* Focus state */
.checkout__step-one .input-md-field:focus {
  z-index: 2;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
  outline: none;
}

@media (max-width: 980px) {
  .plan-user__container {
    width: 100%;
  }
  .product__container > h1 {
    justify-content: center;
  }
  .checkout__form {
    margin: 0 auto;
  }
  .layout__container {
    min-height: auto;

    justify-content: center;
  }
  main {
    padding: 1rem;
    flex-direction: column;
    gap: 2rem;
  }
  .checkout {
    border: 0;
    padding: 0;
  }

  .product {
    flex-direction: column;
    align-items: center;
  }
  .product__description {
    text-align: center;
  }

  .product__title {
    flex-direction: column;
    gap: 0;
  }
  .product__container {
    text-align: center;
  }
  .checkout {
    width: auto;
  }

  .checkout__form {
    width: min(490px, 100%);
  }

  .product__container {
    padding: 1rem 1rem 3rem 1rem;
  }

  .chatby-logo {
    bottom: 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 580px) {
  .plan-change {
    width: auto;
    padding: 1rem;
  }
  .plan-user__container {
    padding: 1rem;
  }
}

@media (max-width: 450px) {
  .btn-group {
    width: 100%;
  }
  .plan-user__description,
  .table__section {
    flex-wrap: wrap;
  }
  .table__section + .table__section {
    margin-top: 2rem;
  }
}

@media (max-width: 400px) {
  .input-md-label--phone,
  .input-md-label--identification {
    left: 81px;
  }
  select,
  input,
  label {
    font-size: 0.85rem;
  }
  .dial-code {
    min-width: 4rem;
  }

  .phone-numer__field--big {
    grid-template-columns: 3.5rem 1fr;
  }

  .phone-numer__field {
    grid-template-columns: 3.5rem 1fr;
  }
  .phone-number__code {
    padding: 0 0.2rem;
    font-size: 12px;
  }

  .card-number__container > img {
    height: 24px;
    top: 8px;
  }

  .congrats-info {
    font-size: 0.85rem;
  }

  .congrats-description {
    padding: 2rem 1rem;
  }
}

@media (max-width: 340px) {
  .form__phone {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .congrats-info {
    font-size: 0.8rem;
  }
}

.lds-ring.btn-visible {
  display: inline-block;
}

/* Estilos para términos y condiciones */
.terms-container {
  margin: 0.5rem 0;
  padding: 1rem;
  background: rgba(249, 250, 251, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(209, 213, 219, 0.5);
}

.checkbox-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #374151;
}

/* Sobrescribir cualquier estilo de label que pueda interferir */
label.checkbox-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
}

.checkbox-container input[type="checkbox"] {
  margin: 0 !important;
  margin-top: 0.2rem !important;
  min-width: 16px !important;
  width: 16px !important;
  height: 16px !important;
  accent-color: #10b981;
  cursor: pointer;
  flex-shrink: 0 !important;
  order: 1 !important;
}

.checkbox-container span {
  flex: 1 !important;
  order: 2 !important;
  margin: 0 !important;
}

/* Asegurar que no hay estilos de label que interfieran */
.checkout label.checkbox-container {
  display: flex !important;
  flex-direction: row !important;
}

.checkout .checkbox-container {
  display: flex !important;
  flex-direction: row !important;
}

.checkbox-container input[type="checkbox"]:focus {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.checkbox-container a {
  color: #10b981;
  text-decoration: underline;
  font-weight: 500;
}

.checkbox-container a:hover {
  color: #059669;
  text-decoration: none;
}

/* Validación visual para términos */
.terms-container.error {
  border-color: #ef4444;
  background: rgba(254, 242, 242, 0.8);
}

.terms-container.error .checkbox-container {
  color: #dc2626;
}

/* Deshabilitar botón cuando términos no están aceptados */
#continue:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

#continue:disabled:hover {
  background-color: #9ca3af;
  transform: none;
}

/* Estilos para el input de contactos */
.contacts-input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: white !important;
  font-weight: bold !important;
  text-align: right !important;
  font-size: inherit !important;
  width: 80px !important;
  padding: 2px 4px !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  outline: 1px solid rgba(255, 255, 255, 0.3) !important;
}
 

/* Ocultar flechas del input number en Chrome, Safari, Edge */
.contacts-input::-webkit-outer-spin-button,
.contacts-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Ocultar flechas del input number en Firefox */
.contacts-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
