/* Layout */
.mc-form { max-width: 1000px; margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.mc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.mc-field--full { grid-column: 1 / -1; }
.mc-hp { position: absolute; left: -9999px; }

/* Floating labels */
.mc-field { position: relative; }
.mc-input {
  width: 100%;
  padding: 20px 10px 12px 10px; /* espacio superior para la etiqueta */
  border: 1px solid #004F7B;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3125;
  background: #fff;
}
.mc-input::placeholder { color: transparent; } /* truco :placeholder-shown */
.mc-field > label {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 16px;   /* más pequeño que el input */
  font-weight: 400;
  line-height: 1;
  color: #004F7B;
  transition: all .15s ease;
  pointer-events: none;
  background: #fff;
  padding: 0 4px 0 0;
}

/* Mover la etiqueta arriba al escribir o enfocar */
.mc-input:focus { outline: none; border-color: #ccc; box-shadow: 0 0 0 0 rgba(0,0,0,0.15); }
.mc-input:focus + label,
.mc-input:not(:placeholder-shown) + label {
  font-size: 11px;
  color: #004F7B;
  font-weight: 400;
}

/* Textarea */
textarea.mc-input { min-height: 90px; resize: vertical; border-bottom: 1px solid #004F7B; }

/* Checkbox privacidad */
.mc-privacy { 
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}
.mc-privacy input[type=checkbox] { 
  display: block;
  width: 18px;
  height: 18px;
}
.mc-privacy span {
  display: block;
  position: relative;
  top: 0;
  left: 0;
  font-size: 16px;
}

.mc-privacy span a {
  font-weight: 700;
}

.mc-privacy span a:hover {
  color: #5EC4D6;
}

/* Acciones */
.mc-actions { margin-top: 4px; }
.mc-submit {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background-color: #004F7B;
  color: #fff;
  font-size: 16px;   /* más pequeño que el input */
  font-weight: 700;
  line-height: 1;
  border: none; border-radius: 100px;
  cursor: pointer;
}
.mc-submit:disabled { opacity: .65; cursor: not-allowed; }

/* Spinner */
.mc-spinner {
  width: 16px; height: 16px; border: 2px solid #004F7B;;
  border-top-color: #fff; border-radius: 50%;
  display: none; animation: mcspin 1s linear infinite;
}
.mc-submit.is-loading .mc-spinner { display: inline-block; }
@keyframes mcspin { to { transform: rotate(360deg); } }

/* Notices */
.mc-notice { margin-top: 10px; margin-bottom: 30px; padding: .6rem .8rem; border-radius: 0; font-size: 13px; display: inline-block; }
.mc-notice--ok  { background: #f0fff4; border: 1px solid #b7f5c5; color: #1c6b2a; }
.mc-notice--err { background: #fff5f5; border: 1px solid #f5b7b7; color: #7c1e1e; }

/* Responsive */
@media (max-width: 640px) {
  .mc-grid { grid-template-columns: 1fr; }
}
