/* ============================================
   COMPONENTS - Buttons
   ============================================ */

.btn,
button[type="submit"],
input[type="button"],
input[type="submit"],
.wp-block-button__link,
.wp-element-button,
.is-style-button,
.button,
[type="submit"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}

.btn:hover,
button[type="submit"]:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
.is-style-button:hover,
.button:hover,
[type="submit"]:hover {
  color: #ffffff;
  background: var(--color-primary-active);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active,
button[type="submit"]:active,
input[type="button"]:active,
input[type="submit"]:active,
.wp-block-button__link:active,
.wp-element-button:active,
.is-style-button:active,
.button:active,
[type="submit"]:active {
  transform: translateY(0);
}

/* Button variants */
.btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
}

.btn--ghost:hover {
  background: var(--neutral-800);
  color: var(--color-heading);
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-xs);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: var(--font-size-base);
}

.btn--block {
  width: 100%;
}

/* Button widths (WordPress blocks) */
.wp-block-button__width-25 { width: 25%; }
.wp-block-button__width-50 { width: 50%; }
.wp-block-button__width-75 { width: 75%; }
.wp-block-button__width-100 { width: 100%; }

@media (max-width: 768px) {
  .wp-block-button__width-25,
  .wp-block-button__width-50,
  .wp-block-button__width-75 {
    width: 100%;
  }
}

/* Button alignment */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: flex-start;
}

.wp-block-buttons.is-content-justification-center {
  justify-content: center;
}

.wp-block-buttons.is-content-justification-right {
  justify-content: flex-end;
}

.wp-block-buttons.is-content-justification-space-between {
  justify-content: space-between;
}

.wp-block-buttons.is-vertical {
  flex-direction: column;
}

/* Align center on wrapper */
.wp-block-buttons.aligncenter {
  justify-content: center;
  text-align: center;
}

/* Estilos de botón squared (sin redondear) */
.wp-block-button.is-style-squared .wp-block-button__link,
.is-style-squared {
  border-radius: var(--radius-none);
}

/* Estilos de botón outline */
.wp-block-button.is-style-outline .wp-block-button__link,
.is-style-outline {
  background: transparent;
  border: 2px solid currentColor;
}

.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
.is-style-outline:not(.has-text-color) {
  color: var(--color-primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background),
.is-style-outline:not(.has-background) {
  background: transparent;
}

/* No border radius */
.wp-block-button.no-border-radius .wp-block-button__link,
.no-border-radius {
  border-radius: 0;
}
