/* COMPONENTS ************************************************************/



/* Iconos ************************************************************/

.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
}

.svg-icon {
  width: 100%;
  height: 100%;
  fill: currentColor;
  /* permite cambiar el color desde el padre */
}


/* Nav button ************************************************************/

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--color-base);
  background-color: transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.nav-button:hover {
  color: var(--color-brand);
  background-color: rgba(0, 173, 238, 0.1);
}

.nav-button:active {
  background-color: rgba(0, 173, 238, 0.2);
}

/* Main button ************************************************************/

.main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 15px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  gap: 7px;
  cursor: pointer;
}

.main-button .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-button .icon svg {
  width: 100%;
  height: 100%;
}

/* --- PRIMARY --- */
.main-button.primary {
  background-color: var(--color-brand);
  border: none;
  color: #ffffff;
}

.main-button.primary .icon svg {
  fill: #ffffff;
}

.main-button.primary:hover {
  background-color: #00A2DF;
}

.main-button.primary:active {
  background-color: #079dd4;
}


/* --- SECONDARY --- */
.main-button.secondary {
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--color-brand);
  color: var(--color-brand);
}

.main-button.secondary .icon svg {
  fill: var(--color-brand);
}

.main-button.secondary:hover {
  background-color: rgba(0, 173, 238, 0.10);
}

.main-button.secondary:active {
  background-color: rgba(0, 173, 238, 0.15);
}

/* --- TERTIARY --- */
.main-button.tertiary {
  background-color: transparent;
  border: none;
  color: var(--color-brand);
}

.main-button.tertiary .icon svg {
  fill: var(--color-brand);
}

.main-button.tertiary:hover {
  background-color: #F5F5F5;
}

.main-button.tertiary:active {
  background-color: #EDEDED;
}

/* --- WHITE --- */
.main-button.white {
  background-color: #ffffff;
  border: none;
  color: var(--color-brand);
}

.main-button.white .icon svg {
  fill: var(--color-brand);
}

.main-button.white:hover {
  background-color: rgba(255, 255, 255, 0.95);
}

.main-button.white:active {
  background-color: rgba(255, 255, 255, 0.90);
}


/* Chip **************************************************************/

.chip {
  display: inline-block;
  padding: 7px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 20px;
  line-height: 1;
  color: var(--chip-color, #000);
  background-color: color-mix(in srgb, var(--chip-color) 10%, transparent);
}


/* FAQ Card **************************************************************/

.faq-card {
  width: 100%;
  border: 1px solid #DEDEDE;
  border-radius: 25px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 20px;
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding: 0 20px;
}

.faq-card:hover {
  border: 1px solid #c2c2c2;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.faq-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-base);
}

.faq-toggle {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  padding: 0 20px;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: var(--color-base);
  line-height: 22px;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-card.expanded .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-card.expanded .faq-toggle {
  transform: rotate(180deg);
}

/* FAQ-card 📱 **************************/

@media (max-width: 600px) {
  .faq-header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 15px;
    gap: 10px;
  }

  .faq-toggle {
    align-self: flex-end;
  }
}

/* Button video **************************************************************/

.button-video {
  display: inline-flex;
  align-items: center;
  height: 34px;
  background-color: #f5f5f5;
  border: 1px solid #e2e2e2;
  border-radius: 9999px;
  padding: 0 15px 0 5px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  gap: 8px;
  overflow: hidden;
  position: relative;
  z-index: 0;
  transition: background-color 0.3s ease;
}

.button-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #ace2f7, #f5f5f5);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.button-video:hover::before {
  transform: translateX(0);
}

.button-video .icon {
  width: 26px;
  height: 26px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c6c70;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.button-video .icon svg {
  margin-left: 2px;
}

.button-video .text {
  font-size: 14px;
  font-weight: 500;
  color: #6c6c70;
  white-space: nowrap;
  z-index: 1;
}

/* Form Messages **************************************************************/

.form-message {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.form-message--success {
  display: block;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.form-message--error {
  display: block;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.main-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}