:root {
  --color-bg-dark: #0f0f0f;
  --color-bg-light: #fefbff;
  --color-surface: #f7f2fa;
  --color-surface-variant: #e7e0ec;
  --color-surface-high: #ece6f0;
  --color-text-primary: #1d1b20;
  --color-text-secondary: #49454f;
  --color-text-tertiary: #79747e;
  --color-text-disabled: #c4c7c5;
  --color-accent: #9cceff;
  --color-accent-hover: #1c9ac5;
  --color-accent-light: #001d29;
  --color-on-accent: #003544;
  --color-on-accent-container: #9cceff;
  --color-success: #a9f7c4;
  --color-success-hover: #55e295;
  --color-success-light: #002110;
  --color-on-success: #003919;
  --color-on-success-container: #a9f7c4;
  --color-error: #ffb4ab;
  --color-error-container: #93000a;
  --color-on-error: #690005;
  --color-on-error-container: #ffb4ab;
  --color-warning: #ffb951;
  --color-warning-container: #633f00;
  --color-on-warning: #452b00;
  --color-info: #a0cafd;
  --color-info-container: #004a77;
  --color-on-info: #003258;
  --color-outline: #938f99;
  --color-outline-variant: #49454f;
  --color-inverse-surface: #e6e1e5;
  --color-inverse-on-surface: #322f35;
  --color-inverse-primary: #1c9ac5;
  --c1: #ccdbe5; /*#d6edff*/
  --c2: #f1ece0; /*#e0f4ff*/
  --transition-fast: 0.2s cubic-bezier(0.2, 0, 0, 1);
  --transition-medium: 0.3s cubic-bezier(0.2, 0, 0, 1);
  --transition-slow: 0.5s cubic-bezier(0.2, 0, 0, 1);
  --transition-emphasized: 0.5s cubic-bezier(0.05, 0.7, 0.1, 1);
  --fs-display-large: clamp(36px, 8vw, 57px);
  --fs-display-medium: clamp(32px, 7vw, 45px);
  --fs-display-small: clamp(28px, 6vw, 36px);
  --fs-headline-large: clamp(24px, 5vw, 32px);
  --fs-headline-medium: clamp(20px, 4vw, 28px);
  --fs-headline-small: clamp(18px, 3.5vw, 24px);
  --fs-title-large: clamp(16px, 3vw, 22px);
  --fs-title-medium: clamp(14px, 2.8vw, 16px);
  --fs-body-large: clamp(14px, 2.5vw, 16px);
  --fs-body-medium: clamp(12px, 2.2vw, 14px);
  --fs-label-large: clamp(12px, 2vw, 14px);
  --fs-label-medium: clamp(10px, 1.8vw, 12px);
  --elevation-1: 0px 1px 2px rgba(0, 0, 0, 0.3),
    0px 1px 3px 1px rgba(0, 0, 0, 0.15);
  --elevation-2: 0px 1px 2px rgba(0, 0, 0, 0.3),
    0px 2px 6px 2px rgba(0, 0, 0, 0.15);
  --elevation-3: 0px 4px 8px 3px rgba(0, 0, 0, 0.15),
    0px 1px 3px rgba(0, 0, 0, 0.3);
  --elevation-4: 0px 6px 10px 4px rgba(0, 0, 0, 0.15),
    0px 2px 3px rgba(0, 0, 0, 0.3);
  --elevation-5: 0px 8px 12px 6px rgba(0, 0, 0, 0.15),
    0px 4px 4px rgba(0, 0, 0, 0.3);
  --state-hover-opacity: 0.08;
  --state-focus-opacity: 0.12;
  --state-pressed-opacity: 0.12;
  --state-dragged-opacity: 0.16;
}
.dark {
  --color-bg-dark: #141218;
  --color-bg-light: #1d1b20;
  --color-surface: #1d1b20;
  --color-surface-variant: #49454f;
  --color-surface-high: #2b2930;
  --color-text-primary: #e6e1e5;
  --color-text-secondary: #cac4d0;
  --color-text-tertiary: #938f99;
  --color-text-disabled: #605d64;
  --elevation-1: 0px 1px 3px 1px rgba(0, 0, 0, 0.15),
    0px 1px 2px rgba(0, 0, 0, 0.3);
  --elevation-2: 0px 2px 6px 2px rgba(0, 0, 0, 0.15),
    0px 1px 2px rgba(0, 0, 0, 0.3);
  --elevation-3: 0px 4px 8px 3px rgba(0, 0, 0, 0.15),
    0px 1px 3px rgba(0, 0, 0, 0.3);
  --elevation-4: 0px 6px 10px 4px rgba(0, 0, 0, 0.15),
    0px 2px 3px rgba(0, 0, 0, 0.3);
  --elevation-5: 0px 8px 12px 6px rgba(0, 0, 0, 0.15),
    0px 4px 4px rgba(0, 0, 0, 0.3);
}
.dark .form-container {
  background: var(--color-bg-light);
}
.dark .input-field,
.dark .textarea {
  background: #2d3748;
  border-color: #4a5568;
  color: var(--color-text-primary);
}
.dark .input-field:focus,
.dark .textarea:focus {
  background: #374151;
  border-color: var(--color-accent);
}
.dark .thank-you {
  background: var(--color-bg-light);
}
.dark .star {
  fill: #4a5568;
  stroke: #6b7280;
}
.dark input.input-error,
.dark textarea.input-error,
.dark select.input-error {
  background: rgba(127, 29, 29, 0.3) !important;
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.1) !important;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.form-container {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: all var(--transition-fast);
}
.form-container:hover {
  scrollbar-color: var(--color-accent) transparent;
}
.container-main {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 100%);
  padding: 0 15px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  user-select: none;
}
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.logo {
  max-width: 70px;
  padding: 10px;
}
.logo img {
  width: 100%;
  border-radius: 100%;
  overflow: hidden;
}
.form-container {
  background: var(--color-bg-light);
  width: 100%;
  max-width: 500px;
  max-height: 1145px;
  height: 100%;
  position: relative;
  overflow: auto;
  padding: 10px 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.form-content {
  padding: 10px 20px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-slow);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.company-text {
  font-size: var(--fs-headline-large);
  color: var(--color-text-primary);
  text-transform: uppercase;
}
.address-text {
  font-size: var(--fs-body-large);
  color: var(--color-text-secondary);
}
.phone-link {
  font-size: var(--fs-body-large);
  text-decoration: initial;
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}
.phone-link:hover {
  color: var(--color-info);
}
.button-custom-sysall {
  background: transparent;
}
.button-custom-sysall span {
  background: var(--color-accent);
}
.button-custom-sysall p {
  font-size: var(--fs-label-medium);
}
.main-title {
  font-size: var(--fs-display-medium);
  color: var(--color-text-primary);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1;
}
.subtitle {
  font-size: var(--fs-body-large);
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}
.steps-container {
  position: relative;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: 100%;
  margin-bottom: 1rem;
  border: 0;
  overflow: hidden;
  z-index: 1;
  transition: max-height 0.8s ease-out;
}
.back-btn {
  display: flex;
  align-items: center;
  border: 0;
  background: 0;
  font-size: var(--fs-headline-large);
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.back-btn svg {
  width: 40px;
  height: 30px;
  margin-left: -15px;
}
.back-btn:hover {
  color: var(--color-accent);
}
.step.moving-up {
  transform: translateY(-20px);
  opacity: 0;
}
.step-title {
  font-size: var(--fs-title-large);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}
.step-subtitle {
  font-size: var(--fs-body-medium);
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}
.input-container {
  position: relative;
  /* margin-bottom: 20px; */
}
.input-field {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: var(--fs-body-large);
  transition: border-color var(--transition-fast),
    background var(--transition-fast);
  background: #f8fafc;
}
.input-field:focus {
  outline: none;
  border-color: var(--color-accent);
  background: white;
}
.next-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  background: var(--color-accent);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast),
    background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.next-btn.show {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}
.next-btn:hover {
  background: var(--color-accent-hover);
}
.animated-button {
  position: relative;
  background-color: var(--color-bg-dark);
  height: 70px;
  width: 270px;
  border: 1px solid var(--color-bg-light);
  text-align: left;
  padding: 12px;
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: underline;
  text-underline-offset: 2px;
  transform-origin: left;
  cursor: pointer;
  margin-top: 90px;
  text-align: center;
  transition: all 500ms ease;
}
/* Pseudo-elementos para los efectos de blur */
/* .animated-button::before {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  right: 4px;
  top: 4px;
  z-index: 10;
  background-color: var(--color-accent);
  border-radius: 50%;
  filter: blur(8px);
  transition: all 500ms ease;
}
.animated-button::after {
  content: "";
  position: absolute;
  z-index: 10;
  width: 80px;
  height: 80px;
  background-color: var(--color-success);
  right: 32px;
  top: 12px;
  border-radius: 50%;
  filter: blur(8px);
  transition: all 500ms ease;
} */
.animated-button span {
  position: relative;
  z-index: 11;
  left: 0;
  transition: left 500ms ease;
}
.animated-button:hover span {
  left: 15%;
}
/* Efectos hover */
.animated-button:hover {
  border-color: var(--color-success-hover);
  color: var(--color-success-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition-duration: 500ms;
}
/* .animated-button:hover::before {
  right: 90%;
  bottom: -32px;
  filter: blur(8px);
  box-shadow: 20px 20px 20px 30px var(--color-accent-hover);
  transition-duration: 500ms;
}
.animated-button:hover::after {
  right: -15px;
  transition-duration: 500ms;
} */
.rating-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rating-stars {
  position: relative;
  display: flex;
  gap: 5px;
}
.star-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}
.star-container .star-label {
  color: var(--color-text-tertiary);
  font-size: var(--fs-body-medium);
  width: 53px;
  text-align: center;
}
.star {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform var(--transition-fast), fill var(--transition-fast),
    filter var(--transition-fast);
  fill: #e2e8f0;
  stroke: #d7d9dc;
}
.star:hover,
.star.active {
  fill: #ffe13e;
  stroke: #ffe13e;
  transform: scale(1.1);
}
.star.explode {
  animation: explode var(--transition-slow);
}
@keyframes explode {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3) rotate(180deg);
    filter: brightness(1.5) drop-shadow(0 0 10px var(--color-star));
  }
  100% {
    transform: scale(1.1);
  }
}
.count-container {
  position: relative;
  margin-bottom: 1rem;
}
.textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: var(--fs-body-large);
  font-family: inherit;
  resize: vertical;
  transition: border-color var(--transition-fast),
    background var(--transition-fast);
  background: #f8fafc;
  resize: none;
}
.textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: white;
}
.submit-btn {
  width: 100%;
  background: var(--color-success-hover);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: var(--fs-body-large);
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  padding: 16px;
  overflow: hidden;
  transition: transform var(--transition-medium),
    opacity var(--transition-medium), margin-top var(--transition-medium),
    padding var(--transition-medium);
}
.submit-btn:hover {
  background: var(--color-success);
  transform: translateY(-2px);
}
.thank-you {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform var(--transition-slow);
  padding: 40px 30px;
  z-index: 1;
}
.thank-you.show {
  transform: translateY(0);
}
.thank-you h2 {
  font-size: var(--fs-display-small);
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 12px;
  text-align: center;
}
.thank-you p {
  font-size: var(--fs-body-large);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 30px;
}
.social-share {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.social-btn {
  width: 50px;
  height: 50px;
}
.social-btn img {
  width: 100%;
  height: 100%;
}
.g-recaptcha {
  display: flex;
  justify-content: center;
  align-items: center;
}
input.input-error,
textarea.input-error,
select.input-error {
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
  background: rgba(254, 242, 242, 0.8) !important;
}
.error {
  color: var(--color-error);
  font-size: var(--fs-label-medium);
  font-weight: 500;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.char-count {
  opacity: 0;
  font-size: var(--fs-label-medium);
  color: var(--color-text-secondary);
  text-align: right;
  position: absolute;
  bottom: 10px;
  right: 10px;
  transition: opacity var(--transition-fast);
}
.count-container:focus-within .char-count {
  opacity: 1;
  top: 100px;
}
.d-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.d-none {
  display: none;
}
.text-center {
  text-align: center;
}
.justify-content-start {
  justify-content: start !important;
}
.pointer-events-none {
  pointer-events: none;
}
form.jump .step {
  margin-bottom: 15px;
}
form.jump .step:last-child {
  margin-bottom: 0;
}
form.jump .step .count-container {
  margin-bottom: 0;
}
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.bubble-container {
  position: relative;
  width: calc(100% - 500px);
  height: 100%;
  overflow: hidden;
  padding: 0 20px;
  margin: 0 20px;
}
.review-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px;
  max-width: 280px;
  max-height: 150px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  will-change: transform, opacity;
}
.review-bubble::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid rgba(255, 255, 255, 0.95);
}
.review-content {
  color: #333;
  line-height: 1.6;
}
.reviewer {
  font-weight: bold;
  color: #667eea;
  margin-top: 10px;
  font-size: 0.9em;
}
.stars {
  color: #ffd700;
  font-size: 25px;
}
.form-error {
  background: #fff5f5;
  border: 1px solid #f44336;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  color: #d32f2f;
  font-size: 14px;
  display: none;
  animation: slideDown 0.3s ease;
}
.bubble-container {
  display: none;
}
.form-error.show {
  display: block;
}
.footer-container {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}
@keyframes floatUp {
  0% {
    transform: translateY(100vh);
    opacity: 0;
  }
  5% {
    opacity: 0.9;
  }
  95% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-350px);
    opacity: 0;
  }
}
.button-custom-sysall {
  position: relative;
  display: inline-block;
  padding: 10px 10px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
  border: 2px solid var(--color-accent);
  max-width: 270px;
  text-align: center;
  border-radius: 25px;
  background: transparent;
  margin: 0 auto;
  overflow: hidden;
  transition: color 0.7s ease-in-out;
}
.button-custom-sysall p {
  z-index: 1;
  position: relative;
  color: var(--color-text-primary);
  transition: color 0.7s ease-in-out;
}
.button-custom-sysall:hover p {
  color: #000;
}
.button-custom-sysall::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 24px;
  height: 16px;
  background: var(--color-success);
  border-radius: 12px;
  transform: translateY(-50%) scaleX(0);
  transform-origin: right center;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}
.button-custom-sysall:hover::before {
  transform: translateY(-50%) scaleX(15) scaleY(8);
}
.button-custom-sysall span {
  position: relative;
  background: var(--color-success);
  padding: 2px 8px;
  border-radius: 12px;
  color: #000;
  z-index: 1;
  transition: all 0.7s ease-in-out;
}
.button-custom-sysall:hover span {
  background: var(--color-accent);
}
.term_cond {
  color: var(--color-accent);
  margin-top: 10px;
  font-size: var(--fs-label-medium);
}
.term_cond span {
  color: var(--color-success);
}
@media (min-width: 576px) {
  .form-content {
    padding: 0 20px;
  }
  .header-container {
    margin-bottom: 10px;
  }
}
@media (min-width: 992px) {
  .container-main {
    padding: 20px;
  }
  .button-custom-sysall {
    margin-right: auto;
  }
  .d-lg-block {
    display: block;
  }
  .text-lg-center {
    text-align: center;
  }
  .form-container {
    overflow: hidden;
    border-radius: 12px;
  }
  .bubble-container {
    display: block;
  }
  .header-container {
    gap: 40px;
  }
  .rating-stars{
    gap: 10px;
  }
  .star-container .star-label {
    /* width: 100%; */
    color: var(--color-text-tertiary);
    font-size: var(--fs-title-medium);
    width: 70px;
    text-align: center;
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }
  .star-container .star:hover ~ .star-label {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
  }
  .step {
    position: relative;
    opacity: 1;
    transform: none;
    height: initial;
    top: auto;
    width: 100%;
    margin-bottom: 15px;
    max-height: 100%;
  }
  .form-content {
    padding: 20px;
    justify-content: space-between;
    overflow: auto;
  }
  .next-btn,
  .back-btn:not(.btn-thank) {
    display: none !important;
  }
  .submit-btn {
    opacity: 1 !important;
    max-height: 60px !important;
    margin-top: 10px !important;
    padding: 16px;
  }
  .logo {
    max-width: 150px;
    padding: 10px;
  }
}
@media (min-width: 1400px) {
  .form-content {
    overflow: hidden;
  }
  .form-content:hover {
    overflow: auto;
  }
}
@media (min-width: 1800px) {
  .form-container {
    max-width: 600px;
  }
}
