/* =============================================
   Mi Formulario Pro — Estilos del frontend
   ============================================= */

.mfp-wrapper {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mfp-titulo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ---- Mensajes ---- */
.mfp-mensaje-exito,
.mfp-mensaje-error {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.mfp-mensaje-exito {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.mfp-mensaje-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ---- Formulario ---- */
.mfp-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.mfp-grupo {
    margin-bottom: 20px;
}

.mfp-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media ( max-width: 560px ) {
    .mfp-fila {
        grid-template-columns: 1fr;
    }
    .mfp-form {
        padding: 24px 20px;
    }
}

/* ---- Labels ---- */
.mfp-grupo label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.mfp-req {
    color: #ef4444;
}

.mfp-opcional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.8rem;
}

/* ---- Inputs ---- */
.mfp-grupo input,
.mfp-grupo textarea,
.mfp-grupo select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.mfp-grupo input:focus,
.mfp-grupo textarea:focus,
.mfp-grupo select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mfp-grupo input.mfp-invalido,
.mfp-grupo select.mfp-invalido,
.mfp-grupo textarea.mfp-invalido {
    border-color: #ef4444;
}

.mfp-grupo textarea {
    resize: vertical;
    min-height: 100px;
}

/* ---- Select wrapper ---- */
.mfp-select-wrapper {
    position: relative;
}

.mfp-select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6b7280;
    pointer-events: none;
}

.mfp-select-wrapper select {
    padding-right: 40px;
    cursor: pointer;
}

/* ---- Footer del form ---- */
.mfp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.mfp-privacidad {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
}

.mfp-privacidad a {
    color: #2563eb;
    text-decoration: none;
}

/* ---- Botón ---- */
.mfp-boton {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.mfp-boton:hover {
    background: #1d4ed8;
}

.mfp-boton:active {
    transform: scale(0.98);
}

.mfp-boton:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}
