.productores-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: none;

  --modal-overlay: rgba(0, 0, 0, 0.55);
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --title: #006098;

  --border: #d7d7d7;
  --error: #d60000;

  --button-bg: #0b5f8b;
  --button-text: #ffffff;

  --field-placeholder: #6b6b6b;

  --radius: 14px;
}

.productores-modal.is-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.productores-modal,
.productores-modal * {
  box-sizing: border-box;
}

.productores-modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay);
}

.productores-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);

  max-height: calc(100vh - 48px);
  overflow: auto;
}

.productores-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 40px;
  height: 40px;

  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;

  background: transparent !important;
  color: #222 !important;

  font-size: 28px !important;
  line-height: 1 !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.productores-modal__title {
  margin: 0 0 18px !important;
  text-align: center;
  color: var(--title);
  font-family: "DIN PRO", Sans-serif;
  font-size: 40px;
  font-weight: 700;
}

html.productores-modal-open,
body.productores-modal-open {
  overflow: hidden !important;
}

html.productores-modal-open #wpadminbar {
  z-index: 0 !important;
}

.productores-modal .productores-form {
  margin: 0 !important;
}

.productores-modal .productores-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.productores-modal .productores-field--full {
  grid-column: 1 / -1;
}

.productores-modal .productores-field {
  position: relative;
}

.productores-modal .productores-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.productores-modal .productores-input {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;

  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  padding: 12px 14px !important;

  font-size: 16px !important;
  line-height: 1.2 !important;

  color: var(--text) !important;
  background: #fff !important;

  outline: none !important;
  box-shadow: none !important;

  height: auto !important;
  min-height: 44px !important;
}

.productores-modal .productores-input::placeholder {
  color: var(--field-placeholder) !important;
}

.productores-modal .productores-input.is-invalid {
  border-color: var(--error) !important;
}

.productores-modal .productores-error {
  margin: 6px 0 0 !important;
  padding: 0 !important;

  font-size: 12px !important;
  line-height: 1.2 !important;

  color: var(--error) !important;
}

.productores-modal .productores-error:empty {
  display: none !important;
}

.productores-modal .productores-form__actions {
  margin-top: 18px !important;
  display: flex;
  justify-content: center;
}

.productores-modal .productores-submit {
  border: 0 !important;
  width: min(220px, 100%);
  background: var(--button-bg) !important;
  color: var(--button-text) !important;

  border-radius: 999px !important;
  padding: 14px 52px !important;

  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  cursor: pointer;
}

.productores-modal .productores-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.productores-modal .productores-form__general-error {
  margin-top: 12px !important;
  text-align: center;
  color: var(--error) !important;
  font-size: 14px !important;
}

/* =========================
   Success
   - Oculto por defecto
   - Visible sólo con .is-visible
========================= */
.productores-modal .productores-success {
  display: none !important;
  margin-top: 12px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;

  width: 100%;
  text-align: left;

  font-size: 14px !important;
  line-height: 1.2 !important;
}

.productores-modal .productores-success.is-visible {
  display: inline-flex !important;
}

.productores-modal .productores-success .elementor-message.productores-success-icon {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;

  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;

  background: transparent !important;
  border-radius: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.productores-modal .productores-success .elementor-message.productores-success-icon::before {
  content: "" !important;
  width: 18px !important;
  height: 18px !important;
  display: block !important;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%231f8a4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
}

.productores-modal .productores-success-text {
  line-height: 1.2 !important;
}

@media (max-width: 640px) {
  .productores-modal.is-open {
    padding: 16px;
  }

  .productores-modal__dialog {
    padding: 22px 18px 18px;
  }

  .productores-modal__title {
    font-size: 30px;
  }

  .productores-modal .productores-form__grid {
    grid-template-columns: 1fr;
  }
}

.experta-productores-button {
  appearance: none;
  border: 0;
  border-radius: 9999px;

  padding: 10px 45px;
  font-size: 25px;
  min-height: 54px;
  min-width: 300px;

  background: #0b5f8b;
  color: #ffffff;

  font-weight: 700;
  line-height: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  cursor: pointer;

  font-family: "DIN PRO", Sans-serif;
}

.experta-productores-button:hover,
.experta-productores-button:focus,
.experta-productores-button:active {
  background-color: #0b5f8b !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: brightness(1.05);
}

.experta-productores-button:focus {
  outline: 3px solid rgba(11, 95, 139, 0.35);
  outline-offset: 3px;
}

.experta-productores-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .experta-productores-button {
    width: 100%;
    max-width: 360px;
    min-width: 0;
  }
}

body.page-id-309 .grecaptcha-badge {
  left: 24px !important;
  right: auto !important;
  bottom: 24px !important;
  z-index: 999999 !important;
}